From 8a6638ae1a16078b8574c6d91663fc2d8c68ad0b Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 30 Apr 2024 11:54:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=9A=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../realTimeMonitor/components/parameterArea.vue | 5 +++-- .../realTimeMonitor/components/setChannelDialog.vue | 12 +++++++++--- src/views/realTimeMonitor/components/setschedule.vue | 11 ++++++++++- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/views/realTimeMonitor/components/parameterArea.vue b/src/views/realTimeMonitor/components/parameterArea.vue index 735486a..0c56d2a 100644 --- a/src/views/realTimeMonitor/components/parameterArea.vue +++ b/src/views/realTimeMonitor/components/parameterArea.vue @@ -387,6 +387,7 @@ export default { //获取通道的接口 getChannelList() { console.log(this.areaData); + console.log("我是选择的通道号", localStorage.getItem("channelId")); getChannelByTermidJoggle({ termid: this.areaData.id }) .then((res) => { console.log(res); @@ -396,8 +397,8 @@ export default { this.channelListOption = this.channelListOption.concat(res.data.list); console.log(this.channelListOption); this.channelfocalOpyion = res.data.list; //焦距通道 - - this.selectChannelValue = this.channelListOption[0].channelid; //默认选中所有通道; + console.log("我是获取通道接口之后的通道",this.channelListOption[0].channelid) + this.selectChannelValue = Number(localStorage.getItem("channelId")); //默认选中所有通道; this.$store.commit("channelId", this.selectChannelValue); //通道保存在vuex中 this.$store.commit("channelIdList", res.data.list); //将通道保存在vuex中 this.$parent.getPhotoList( diff --git a/src/views/realTimeMonitor/components/setChannelDialog.vue b/src/views/realTimeMonitor/components/setChannelDialog.vue index 07cff9a..8fd1e34 100644 --- a/src/views/realTimeMonitor/components/setChannelDialog.vue +++ b/src/views/realTimeMonitor/components/setChannelDialog.vue @@ -115,7 +115,7 @@