相邻区域问题修复完成
parent
bd6bd0a8a4
commit
374c0bed6c
|
@ -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¤tPage=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) {
|
||||||
|
|
Loading…
Reference in New Issue