From 94d3d5c759ae5426bfcdd6053eb3a0bf6a64a8f7 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Fri, 30 Jun 2023 18:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../photographicDevice/components/addPhotoDialog.vue | 5 ++++- .../photographicDevice/components/imageCapturebak.vue | 4 ++-- .../photographicDevice/components/videoCapturebak.vue | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue index 9a3ec3d..6ab68ec 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue @@ -376,7 +376,10 @@ export default { .then((res) => { this.channelOptions = res.data.list; this.filterOption = res.data.list; - this.formInfo.list[0].id = this.filterOption[0].id; + if (this.photoDialogTitle == "新增") { + this.formInfo.list[0].id = this.filterOption[0].id; + } + //this.formInfo.list[0].id = this.filterOption[0].id; }) .catch((err) => {}); }, diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/imageCapturebak.vue b/src/views/management/monitoringEquipment/photographicDevice/components/imageCapturebak.vue index 3c10d77..6c591ff 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/components/imageCapturebak.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/components/imageCapturebak.vue @@ -219,7 +219,7 @@ export default { this.setForm = {}; console.log(val); this.seltermid = val.id; - this.selcmdId = val.cmdid; + this.selcmdId = val.cmdId; getChannelListJoggle({ termid: this.seltermid }) .then((res) => { this.accesslist = res.data.list; @@ -244,7 +244,7 @@ export default { this.searchloading = true; getPhotoParamApi({ channelId: this.selaccess, - cmdId: this.selcmdId, + termId: this.seltermid, }) .then((res) => { if (res.code == 200) { diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/videoCapturebak.vue b/src/views/management/monitoringEquipment/photographicDevice/components/videoCapturebak.vue index a0f1563..a5b39b0 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/components/videoCapturebak.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/components/videoCapturebak.vue @@ -166,7 +166,7 @@ export default { this.setForm = {}; console.log(val); this.seltermid = val.id; - this.selcmdId = val.cmdid; + this.selcmdId = val.cmdId; getChannelListJoggle({ termid: this.seltermid }) .then((res) => { this.accesslist = res.data.list; @@ -190,7 +190,7 @@ export default { this.searchloading = true; getVideoParamApi({ channelId: this.selaccess, - cmdId: this.selcmdId, + termId: this.seltermid, }) .then((res) => { if (res.code == 200) {