From a780e0c20351864ba1fc6cf1b6fab1e0af9e02ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AE=8F=E6=9D=B0?= <1943105267@qq.com> Date: Tue, 5 Nov 2024 08:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A3=AE=E8=8C=82=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E4=B8=AD=E5=BF=83=E8=BF=9B=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NavigationBar/index.vue | 30 ++++++++++++++----- src/views/components/xiaoqu/house.vue | 5 ++++ .../xiaoqu/leftData/networkInfo.vue | 2 +- .../components/xiaoqu/map/buildjson/8_4.json | 28 ----------------- 4 files changed, 29 insertions(+), 36 deletions(-) diff --git a/src/components/NavigationBar/index.vue b/src/components/NavigationBar/index.vue index 9ea492b..cb94fff 100644 --- a/src/components/NavigationBar/index.vue +++ b/src/components/NavigationBar/index.vue @@ -114,12 +114,28 @@ export default { }, lookBuild(item) { this.open = false; - this.$store.commit("SET_CLICK_RESULT", { - id: item.houseId, - buildingId: item.buildingId, - name: item.housename, - keyId: item.houseId, - }); + if (item.xiaoquId == 267) { + this.$store.commit("SET_BUILDING_WIDTH", { + id: item.houseId, + buildingId: item.buildingId, + deptId: item.deptId, + buildingWidth: + this.houseItem.buildingWidth > 0 + ? this.houseItem.buildingWidth + : window.innerWidth, + name: item.housename, + keyId: item.houseId, + sm: true, + }); + } else { + this.$store.commit("SET_CLICK_RESULT", { + id: item.houseId, + buildingId: item.buildingId, + name: item.housename, + keyId: item.houseId, + }); + } + this.$store.commit("CHANGE_QUERY", { buildingId: item.buildingId }); }, /** @@ -137,7 +153,7 @@ export default { }, }, computed: { - ...mapGetters(["name", "yjTotal", "dept"]), + ...mapGetters(["name", "yjTotal", "dept", "houseItem"]), handlerBtn() { return ( this.$route.name == "xiaoqu" && diff --git a/src/views/components/xiaoqu/house.vue b/src/views/components/xiaoqu/house.vue index 767a860..d5a6538 100644 --- a/src/views/components/xiaoqu/house.vue +++ b/src/views/components/xiaoqu/house.vue @@ -830,6 +830,11 @@ export default { handleClose() { this.show = false; + if (this.houseItem.sm) { + this.$store.commit("CHANGE_QUERY", { + buildingId: undefined, + }); //存储全局参数 + } this.$store.commit("SET_BUILDING_WIDTH", {}); }, async getPersonList() { diff --git a/src/views/components/xiaoqu/leftData/networkInfo.vue b/src/views/components/xiaoqu/leftData/networkInfo.vue index dd3f778..c048542 100644 --- a/src/views/components/xiaoqu/leftData/networkInfo.vue +++ b/src/views/components/xiaoqu/leftData/networkInfo.vue @@ -1,7 +1,7 @@