From b3769f24157008c202deec2fab9170fdcafa0eac Mon Sep 17 00:00:00 2001 From: guoyue Date: Tue, 9 Aug 2022 13:13:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=9E=8D=E5=90=88=E6=9C=8D=E5=8A=A1-?= =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assignedScene/components/infrastructure-modal.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/back/src/views/modules/ability/assignedScene/components/infrastructure-modal.vue b/back/src/views/modules/ability/assignedScene/components/infrastructure-modal.vue index 67a7163a..bf8d6c71 100644 --- a/back/src/views/modules/ability/assignedScene/components/infrastructure-modal.vue +++ b/back/src/views/modules/ability/assignedScene/components/infrastructure-modal.vue @@ -162,6 +162,9 @@ export default { this.$nextTick(() => { this.selectCheckbox() }) + if (this.modalType == 'add') { + this.clear() + } } } }, @@ -246,8 +249,7 @@ export default { this.$nextTick(() => { this.currentList = this.tabData.find(v => v.tabName == this.activeBtn).list || []; if (this.modalType == 'add') { - // 获取列表 - this.getData() + this.clear() } }) }).catch(err => { @@ -276,7 +278,7 @@ export default { }, // 获取列表 getData() { - let postData = Object.assign({ + let postData = Object.assign({}, { checkStatus: 1, gpsX: '', gpsY: '', @@ -311,11 +313,10 @@ export default { this.dataList.map(v => { if (idtCameraChannelArray.includes(v.idtCameraChannel)) { this.displayList.push({ - name: v.channelName + channelName: v.channelName }) } }) - this.$emit('update', { title: this.type, list: this.selectedArray.map(v => v.idtCameraChannel)