Commit 29bdf8c0 authored by yht15023815643's avatar yht15023815643

评标助手资质标准

parent c3b6a8a5
......@@ -433,7 +433,7 @@
},
{
"name": "工程勘察劳务",
"id": 267,
"id": 1701,
"type": 2,
"parentId": 227
}
......
......@@ -13,12 +13,20 @@
:value="item">
</el-option>
</el-select>
<el-select v-model="value1" @change="selectChange1" v-if="options.length>0" placeholder="请选择">
<el-select v-model="value1" value-key="id" @change="selectChange1" v-if="options.length>0" placeholder="请选择">
<el-option
v-for="item in options"
:key="item.name"
:label="item.name"
:value="item.id">
:value="item">
</el-option>
</el-select>
<el-select v-model="value2" value-key="id" @change="selectChange2" v-if="options2.length>0" placeholder="请选择">
<el-option
v-for="item in options2"
:key="item.name"
:label="item.name"
:value="item">
</el-option>
</el-select>
</div>
......@@ -61,8 +69,10 @@ export default {
list,
activeIndex:0,
options: [],
options2: [],
value: '',
value1: '',
value2: '',
info:"",
}
},
......@@ -98,6 +108,7 @@ export default {
}
},
selectChange(){
this.info = "";
if(this.value.list&&this.value.list.length>0){
this.options = this.value.list;
this.value1 = ""
......@@ -105,20 +116,36 @@ export default {
this.options = []
standard({id:this.value.id}).then(res=>{
this.info = res.data
})
}
this.value2 = "";
this.options2 = []
},
selectChange1(){
standard({id:this.value1}).then(res=>{
this.info = "";
if(this.value1.list&&this.value1.list.length>0){
this.options2 = this.value1.list;
this.value2 = ""
}else{
this.options2 = []
standard({id:this.value1.id}).then(res=>{
this.info = res.data
})
}
},
selectChange2(){
this.info = "";
standard({id:this.value2.id}).then(res=>{
this.info = res.data
})
},
changeActiveIndex(index){
this.info = "";
this.activeIndex=index;
this.value = '';
this.options = []
this.options = [];
this.value2 = "";
this.options2 = []
},
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment