diff --git a/src/utils/api/index.js b/src/utils/api/index.js index 6b2842a..ef58415 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -445,3 +445,11 @@ export function selectPhotoTimeGetJoggle(data) { data, }); } +//拍照时间表查询 +export function selectPhotoTimeJoggle(data) { + return request({ + url: "/api/selectPhotoTime", + method: "post", + data, + }); +} diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue index ebbc0a2..941404c 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue @@ -15,7 +15,11 @@ :model="formInfo" > - + { - channelnr.push(item.id) + let channelnr = []; + val.list.forEach((item) => { + channelnr.push(item.id); }); - this.$set(this.formInfo,'channelVal',channelnr) + this.$set(this.formInfo, "channelVal", channelnr); }, // 保存确定操作 submitForm() { @@ -173,7 +177,7 @@ export default { sim: this.formInfo.simCard, displayName: this.formInfo.cmdid, towerid: this.formInfo.towerVal, - id: this.formInfo.id + id: this.formInfo.id, }; updateTerminalJoggle(this.formInfo) .then((res) => { @@ -200,7 +204,8 @@ export default { this.formInfo.lineVal = ""; } else { this.lineOptions = res.data.list; - this.formInfo.lineVal = res.data.list[0].id; + // this.formInfo.lineVal = res.data.list[0].id; + this.$set(this.formInfo, "lineVal", res.data.list[0].id); } // this.dyOptions = res.data.list; // this.formdata.dyid = res.data.list == [] ? "" : res.data.list[0].id; @@ -216,7 +221,8 @@ export default { this.formInfo.towerVal = ""; } else { this.toweridOptions = res.data.list; - this.formInfo.towerVal = res.data.list[0].id; + // this.formInfo.towerVal = res.data.list[0].id; + this.$set(this.formInfo, "towerVal", res.data.list[0].id); } }) .catch((err) => {}); @@ -227,8 +233,7 @@ export default { .then((res) => { this.channelOptions = res.data.list; }) - .catch((err) => { - }); + .catch((err) => {}); }, display() { this.isShow = true; @@ -236,10 +241,10 @@ export default { hide() { this.isShow = false; }, - handleclose(){ + handleclose() { this.$parent.terminalList(); - } - } + }, + }, };