From 27c5590aab433687c58dbf41e9271f71008834f0 Mon Sep 17 00:00:00 2001 From: TreeWish <1131093754@qq.com> Date: 星期一, 27 二月 2023 11:48:05 +0800 Subject: [PATCH] 修改大屏首页 --- src/components/Screen/bottom.vue | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/components/Screen/bottom.vue b/src/components/Screen/bottom.vue index 1aacfc6..94e85d3 100644 --- a/src/components/Screen/bottom.vue +++ b/src/components/Screen/bottom.vue @@ -70,21 +70,21 @@ return { YXState: true, yxImg: require("../../assets/img/Screen/yximg.png"), - currMenu: "椤圭洰灞曠ず", + currMenu: "涓撻灞曠ず", currProject: "", searchName: "", menuList: [ { - menuName: "椤圭洰灞曠ず", + menuName: "涓撻灞曠ず", children: [ - // { - // name: "鍏ㄥ浗绠$綉鍥�", - // id: "qggwt", - // }, - // { - // name: "鍏ㄧ悆绠$綉鍥�", - // id: "qqgwt", - // }, + { + name: "鍏ㄥ浗绠$綉鍥�", + id: "qggwt", + }, + { + name: "鍏ㄧ悆绠$綉鍥�", + id: "qqgwt", + }, { name: "鍏ㄥ浗椤圭洰", id: "qgxm", @@ -96,7 +96,7 @@ ], }, { - menuName: "宸ョ▼灞曠ず", + menuName: "椤圭洰灞曠ず", children: [ { name: "涓縿涓滅嚎绠¢亾宸ョ▼", @@ -199,16 +199,18 @@ case "宸ョ▼宸¤": this.showPathLine(child) break - case "宸ョ▼灞曠ず": + case "椤圭洰灞曠ず": this.DisplayCurrentProject(child) break - case "椤圭洰灞曠ず": + case "涓撻灞曠ず": this.changeProject(child) break default: break } }, + + //宸ョ▼宸¤ async showPathLine(params) { const line = wktToGeoJSON(params.wkt) const position = line.coordinates[0] @@ -280,7 +282,7 @@ async getCountProjectDisplay() { const res = await countProjectLocation() if (res.code === 200) { - const menu = this.menuList.find(item => item.menuName == "宸ョ▼灞曠ず") + const menu = this.menuList.find(item => item.menuName == "椤圭洰灞曠ず") menu.children = res.result.map(item => { return { name: item.projname, @@ -305,6 +307,7 @@ } }, + //涓撻灞曠ず changeProject(params) { this.$bus.$emit('changeProject', params.name) } -- Gitblit v1.9.3