Merge branch 'master' of http://git.gxwebsoft.com/shengtaiting/shengtai-admin
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
<a-col :lg="6" :md="12" :sm="24" :xs="24">
|
||||
<a-form-item label="区域:">
|
||||
<a-select
|
||||
v-model:value="where.regionNameList"
|
||||
v-model:value="where.regionNameList" mode="multiple"
|
||||
allowClear
|
||||
placeholder="未选择"
|
||||
>
|
||||
@@ -214,15 +214,30 @@ export default {
|
||||
this.filter = newList;
|
||||
},
|
||||
|
||||
/**获取下来框数据 */
|
||||
/**获取下来框数据 */
|
||||
loadOptionData() {
|
||||
getLakeDropdown().then((res) => {
|
||||
this.palceOptions = res.data.data.map((item) => {
|
||||
return {
|
||||
label: item.regionName,
|
||||
value: item.regionName,
|
||||
};
|
||||
});
|
||||
|
||||
let palceOptions = {}
|
||||
let newPlace = []
|
||||
res.data.data.forEach(item=>{
|
||||
palceOptions[item.regionName] = item.regionName
|
||||
})
|
||||
for(let i in palceOptions){
|
||||
newPlace.push({
|
||||
label: palceOptions[i],
|
||||
value: palceOptions[i],
|
||||
})
|
||||
}
|
||||
this.palceOptions = [...newPlace]
|
||||
|
||||
|
||||
// this.palceOptions = res.data.data.map((item) => {
|
||||
// return {
|
||||
// label: item.regionName,
|
||||
// value: item.regionName,
|
||||
// };
|
||||
// });
|
||||
this.sectionOptions= res.data.data.map((item) => {
|
||||
return {
|
||||
label: item.sectionName,
|
||||
|
||||
Reference in New Issue
Block a user