相邻区域问题修复完成

pull/8/head
zhaoyu 2024-01-24 15:43:48 +08:00
parent bd6bd0a8a4
commit 374c0bed6c
1 changed files with 21 additions and 1 deletions

View File

@ -62,7 +62,7 @@
<el-col :span="6"> <el-col :span="6">
<el-form-item v-if="form.IS_ADJACENT=='1'" label="相邻区域:" prop="ADJACENT_AREA_ID"> <el-form-item v-if="form.IS_ADJACENT=='1'" label="相邻区域:" prop="ADJACENT_AREA_ID">
<el-select v-model="form.ADJACENT_AREA_ID" style="width: 100%;"> <el-select v-model="form.ADJACENT_AREA_ID" style="width: 100%;">
<el-option v-for="item in AreaList" :key="item.ID" :label="item.NAME" :value="item.ID" /> <el-option v-for="item in AreaList" :key="item.AREA_ID" :label="item.AREA_NAME" :value="item.AREA_ID" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -120,6 +120,7 @@ export default {
page: 1, page: 1,
limit: 20 limit: 20
}, },
AreaList: [],
multipleSelection: [], multipleSelection: [],
accidentList: [], accidentList: [],
categoryList: [ categoryList: [
@ -145,8 +146,27 @@ export default {
if (this.AREA_GATE_ID) { if (this.AREA_GATE_ID) {
this.getDataByID() this.getDataByID()
} }
this.getList()
}, },
methods: { methods: {
//
getList() {
this.AreaList = []
requestFN(
'/mkmjArea/list?showCount=100&currentPage=1',
{
AREA_PARENT_ID: this.form.AREA_PARENT_ID
}
).then((data) => {
for (var i = 0; i < data.varList.length; i++) {
var item = data.varList[i]
if (item.AREA_ID != this.form.AREA_ID) {
this.AreaList.push(item)
}
}
}).catch((e) => {
})
},
confirm() { confirm() {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {