From 374c0bed6cf21f6e3e0a433a2a5b78b5b6af0eb6 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Wed, 24 Jan 2024 15:43:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B8=E9=82=BB=E5=8C=BA=E5=9F=9F=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mkmj/area/components/editGate.vue | 22 ++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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) {