Commit 29bdf8c0 authored by yht15023815643's avatar yht15023815643

评标助手资质标准

parent c3b6a8a5
...@@ -433,7 +433,7 @@ ...@@ -433,7 +433,7 @@
}, },
{ {
"name": "工程勘察劳务", "name": "工程勘察劳务",
"id": 267, "id": 1701,
"type": 2, "type": 2,
"parentId": 227 "parentId": 227
} }
......
...@@ -13,12 +13,20 @@ ...@@ -13,12 +13,20 @@
:value="item"> :value="item">
</el-option> </el-option>
</el-select> </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 <el-option
v-for="item in options" v-for="item in options"
:key="item.name" :key="item.name"
:label="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-option>
</el-select> </el-select>
</div> </div>
...@@ -61,8 +69,10 @@ export default { ...@@ -61,8 +69,10 @@ export default {
list, list,
activeIndex:0, activeIndex:0,
options: [], options: [],
options2: [],
value: '', value: '',
value1: '', value1: '',
value2: '',
info:"", info:"",
} }
}, },
...@@ -98,6 +108,7 @@ export default { ...@@ -98,6 +108,7 @@ export default {
} }
}, },
selectChange(){ selectChange(){
this.info = "";
if(this.value.list&&this.value.list.length>0){ if(this.value.list&&this.value.list.length>0){
this.options = this.value.list; this.options = this.value.list;
this.value1 = "" this.value1 = ""
...@@ -105,20 +116,36 @@ export default { ...@@ -105,20 +116,36 @@ export default {
this.options = [] this.options = []
standard({id:this.value.id}).then(res=>{ standard({id:this.value.id}).then(res=>{
this.info = res.data this.info = res.data
}) })
} }
this.value2 = "";
this.options2 = []
}, },
selectChange1(){ 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 this.info = res.data
}) })
}, },
changeActiveIndex(index){ changeActiveIndex(index){
this.info = "";
this.activeIndex=index; this.activeIndex=index;
this.value = ''; 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