From 965aec327b950438842661beff1131929d19bb02 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Sun, 28 Apr 2024 10:18:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=B5=E5=8E=8B=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sidebar.vue | 30 +++--- .../dyInformation/components/addDyDialog.vue | 1 + src/views/iceWeather/components/leftTree.vue | 11 +- src/views/iceWeather/weather/index.vue | 23 ++-- .../components/addPhotoDialog.vue | 100 +++++++++++------- .../components/towerDialog.vue | 49 +++++++-- .../components/carouselChart.vue | 10 +- .../components/setChannelDialog.vue | 7 +- .../towerInformation/components/addDialog.vue | 49 +++++++-- 9 files changed, 192 insertions(+), 88 deletions(-) diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index b33faf0..664e7cf 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -78,21 +78,21 @@ export default { index: "/realTimeSearch", title: "历史图片", }, - // { - // icon: "iconfont icon-fubing", - // index: "/weatherIce", - // title: "气象覆冰", - // subs: [ - // { - // index: "/weather", - // title: "气象监测", - // }, - // { - // index: "/icing", - // title: "覆冰监测", - // }, - // ], - // }, + { + icon: "iconfont icon-fubing", + index: "/weatherIce", + title: "气象覆冰", + subs: [ + { + index: "/weather", + title: "气象监测", + }, + { + index: "/icing", + title: "覆冰监测", + }, + ], + }, { icon: "el-icon-files", index: "/property", diff --git a/src/views/dyInformation/components/addDyDialog.vue b/src/views/dyInformation/components/addDyDialog.vue index 554c8c8..171b80f 100644 --- a/src/views/dyInformation/components/addDyDialog.vue +++ b/src/views/dyInformation/components/addDyDialog.vue @@ -55,6 +55,7 @@ export default { this.$refs.formInfo.validate((valid) => { if (valid) { if (this.title == "新增") { + this.$set(this.formdata, "dyValue", "220"); addDyJoggle(this.formdata) .then((res) => { this.isShow = false; diff --git a/src/views/iceWeather/components/leftTree.vue b/src/views/iceWeather/components/leftTree.vue index 8f4fee6..a0633c1 100644 --- a/src/views/iceWeather/components/leftTree.vue +++ b/src/views/iceWeather/components/leftTree.vue @@ -136,17 +136,17 @@ export default { getLineTreeList() { this.role = localStorage.getItem("role"); console.log(this.role); - const menuName = localStorage.getItem("menuActive"); + const menuName = this.$route.path; console.log(menuName); this.treeLoading = true; let devtypeList; - //气象 + //微气象 if (menuName == "/weather") { - devtypeList = [2]; + devtypeList = [3]; } - //覆冰 + //覆冰拉力 if (menuName == "/icing") { - devtypeList = [3]; + devtypeList = [2]; } console.log(devtypeList); getICEdyTreeList({ @@ -154,6 +154,7 @@ export default { devtype: devtypeList, }) .then((res) => { + this.lineTreeData = []; this.lineTreeData = res.data.list; this.treeLoading = false; this.icecurrentData = JSON.parse( diff --git a/src/views/iceWeather/weather/index.vue b/src/views/iceWeather/weather/index.vue index e78b970..43d08ff 100644 --- a/src/views/iceWeather/weather/index.vue +++ b/src/views/iceWeather/weather/index.vue @@ -17,7 +17,7 @@