|
@@ -35,7 +35,7 @@
|
|
|
<el-select
|
|
|
v-model="form.region2"
|
|
|
placeholder="请选择类型"
|
|
|
- :disabled="!!editData.id || !form.region1"
|
|
|
+ :disabled="(!!editData.id&&editData.controlType!='1'&&editData.controlType!='2') || !form.region1"
|
|
|
@change="readyChangeSelect(2)"
|
|
|
>
|
|
|
<el-option
|
|
@@ -418,7 +418,15 @@
|
|
|
if (res.data.code === '0') {
|
|
|
this.Adscriptions = res.data.data[1];
|
|
|
this.labelTypesList = this.qaType==1?res.data.data[2]:res.data.data[3];
|
|
|
- this.labelTypes = this.labelTypesList;
|
|
|
+ const editData = this.$props.editData;
|
|
|
+ //编辑时,单选、多选可互相切换
|
|
|
+ if(editData.controlType=='1'||editData.controlType=='2'){
|
|
|
+ this.labelTypes = this.labelTypesList.filter((it)=>{
|
|
|
+ return it.val==='1'||it.val==='2';
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.labelTypes = this.labelTypesList;
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|