提交 66338f92 authored 作者: thy's avatar thy

合并分支 'thy' 到 'master'

Thy 查看合并请求 !108
...@@ -5,26 +5,24 @@ ...@@ -5,26 +5,24 @@
<div class="content"> <div class="content">
<p class="search"> <p class="search">
<span class="searchVal"> <span class="searchVal">
<!-- <span>查询:</span> --> <!-- <span>关键技术:</span> -->
<el-select v-model="input3" size="medium" @change="mySelect" placeholder="请选择查询条件"> <el-select v-model="input3" size="medium" placeholder="请选择关键技术">
<el-option
label="关键技术"
value="technologyName">
</el-option>
<el-option
label="关键字"
value="target">
</el-option>
<el-option <el-option
label="范围" v-for="item in keyNameList"
value="suffix"> :key="item.id"
:label="item.technologyName"
:value="item.technologyName">
</el-option> </el-option>
</el-select> </el-select>
</span> </span>
<span class="searchVal"> <span class="searchVal">
<span>查询:</span> <span>查询:</span>
<el-input v-model="input2" size="medium" @change="search" placeholder="请输入关键技术"></el-input> <el-input v-model="input2" size="medium" placeholder="请输入关键字"></el-input>
</span>
<span class="searchVal" style="margin-left:30px;">
<!-- <span>查询:</span> -->
<el-input v-model="input1" size="medium" placeholder="请输入范围"></el-input>
</span> </span>
<span class="button searchBtn" @click="search">搜索</span> <span class="button searchBtn" @click="search">搜索</span>
<span class="button add" @click="addRole"><img src="../../assets/img/add.png"></span> <span class="button add" @click="addRole"><img src="../../assets/img/add.png"></span>
...@@ -95,6 +93,7 @@ export default { ...@@ -95,6 +93,7 @@ export default {
searchKey:'', searchKey:'',
input3:'', input3:'',
input2: '', input2: '',
input1: '',
suffix:'', suffix:'',
target:'', target:'',
tableData: [], tableData: [],
...@@ -104,6 +103,7 @@ export default { ...@@ -104,6 +103,7 @@ export default {
components: '', components: '',
myPage: 1, myPage: 1,
detailData: {}, detailData: {},
keyNameList:[],
modalName: '' modalName: ''
} }
}, },
...@@ -115,26 +115,37 @@ export default { ...@@ -115,26 +115,37 @@ export default {
this.$message.error('数据请求失败!'); this.$message.error('数据请求失败!');
}) })
this.search(); this.search();
this.keyName()
}, },
methods: { methods: {
// 搜索 // 搜索
mySelect(val){ keyName(){
this.searchKey =val let val = {
'technologyName': '',
}
this.$server.getAllPageList(this.myPage,this.pageSize,val).then(res=>{
console.log(res.data)
this.keyNameList = res.data.rows;
}).catch(err => {
this.$message.error('数据请求失败!');
})
}, },
search () { search () {
let obj = { let obj = {
technologyName:'', technologyName:this.input3,
target:'', target:this.input2,
suffix:'', suffix:this.input1,
} }
if(this.searchKey == 'suffix'){
obj.suffix = this.input2 // if(this.searchKey == 'suffix'){
}else if (this.searchKey == 'technologyName'){ // obj.suffix = this.input2
obj.technologyName = this.input2 // }else if (this.searchKey == 'technologyName'){
}else if (this.searchKey == 'target'){ // obj.technologyName = this.input2
obj.target = this.input2 // }else if (this.searchKey == 'target'){
} // obj.target = this.input2
// }
this.$server.getConfigPageList(this.myPage,this.pageSize,obj).then(res => { this.$server.getConfigPageList(this.myPage,this.pageSize,obj).then(res => {
console.log(res) console.log(res)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论