diff --git a/src/views/mkmj/area/components/editGate.vue b/src/views/mkmj/area/components/editGate.vue index 188b7ea..b18645a 100644 --- a/src/views/mkmj/area/components/editGate.vue +++ b/src/views/mkmj/area/components/editGate.vue @@ -62,7 +62,7 @@ - + @@ -120,6 +120,7 @@ export default { page: 1, limit: 20 }, + AreaList: [], multipleSelection: [], accidentList: [], categoryList: [ @@ -145,8 +146,27 @@ export default { if (this.AREA_GATE_ID) { this.getDataByID() } + this.getList() }, 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() { this.$refs.form.validate(valid => { if (valid) {