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