地区选择器增加组
This commit is contained in:
@@ -49,7 +49,8 @@ export default {
|
||||
},
|
||||
valueLevel() {
|
||||
return this.$route.query.valueLevel || 5
|
||||
}
|
||||
},
|
||||
extra: v => v.$route.query.extra
|
||||
},
|
||||
methods: {
|
||||
getOptionsByRoot() {
|
||||
@@ -77,8 +78,17 @@ export default {
|
||||
this.selectList.push(row)
|
||||
this.options = res.data.map(e => ({...e, isChecked: !!this.selected[e.id]}))
|
||||
}
|
||||
row.locked = false
|
||||
})
|
||||
}).finally(() => row.locked = false)
|
||||
} else if (this.extra && !row.locked) {
|
||||
row.locked = true
|
||||
this.$http.post("/admin/appresident/queryAreaIdGroup", null, {
|
||||
params: {currentAreaId: id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.selectList.push(row)
|
||||
this.options = res.data.map(id => ({id, name: id, isChecked: !!this.selected[id]}))
|
||||
}
|
||||
}).finally(() => row.locked = false)
|
||||
}
|
||||
},
|
||||
selectListClick(row, index) {
|
||||
|
||||
Reference in New Issue
Block a user