展示区域
This commit is contained in:
@@ -65,7 +65,12 @@
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-model-item label="展示区域" prop="showArea">
|
||||
<j-dict-select-tag type="list" v-model="form.showArea" dictCode="" placeholder="请选择展示区域" />
|
||||
<a-select placeholder="请选择展示区域" @change="handleChange">
|
||||
<a-select-option v-for="(item,index) in areaOptions" :key="item.id" :value="item.id">
|
||||
{{item.showarea}}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<!-- <j-dict-select-tag type="list" v-model="form.showArea" dictCode="" placeholder="请选择展示区域" />-->
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
@@ -204,7 +209,9 @@
|
||||
add: "tag/onlCgformTag/add",
|
||||
edit: "tag/onlCgformTag/edit",
|
||||
queryById: "tag/onlCgformTag/queryById"
|
||||
}
|
||||
},
|
||||
//展示区域选项内容
|
||||
areaOptions:[]
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
@@ -252,6 +259,7 @@
|
||||
this.showFlowData();
|
||||
},
|
||||
mounted() {
|
||||
this.loadShowArea()
|
||||
console.log('edit3333',this.editData)
|
||||
this.form={...this.editData}
|
||||
// console.log('drawerVisible',this.drawerVisible)
|
||||
@@ -269,9 +277,9 @@
|
||||
//获取展示区域
|
||||
loadShowArea(){
|
||||
let params = {};
|
||||
getAction(``,params).then((res)=>{
|
||||
getAction(`tag/onlCgformTag/queryShowArea`,params).then((res)=>{
|
||||
if(res.success){
|
||||
|
||||
this.areaOptions=res.success.records
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -348,7 +356,10 @@
|
||||
} else {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
},
|
||||
handleChange(value) {
|
||||
console.log(`selected ${value}`);
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user