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) {