From 293ea20bdf163ac640aed5e9419ab96c247f3bcb Mon Sep 17 00:00:00 2001 From: PLUTO <> Date: Thu, 12 Oct 2023 19:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=85=83=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dataBoard/cpts/homeDetails/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/dataBoard/cpts/homeDetails/index.vue b/src/views/dataBoard/cpts/homeDetails/index.vue index 38ff69a85..7c15239c3 100644 --- a/src/views/dataBoard/cpts/homeDetails/index.vue +++ b/src/views/dataBoard/cpts/homeDetails/index.vue @@ -202,6 +202,7 @@ export default { homeMsg: {}, list: [], homeText: "", + searchId: "", buildingList: [], houseMountArr: [ // [ @@ -307,7 +308,7 @@ export default { search() { this.queryParams.pageNo = 1; - this.getTableData(); + this.getTableData(this.searchId); }, getList(buid) { @@ -324,6 +325,7 @@ export default { this.buildingList.forEach((item, i) => { if (item.id === buid) { item.ifActive = true; + this.searchId = item.id; this.getUnitList(item.id); this.getTableData(item.id); } else { @@ -335,6 +337,7 @@ export default { if (i === 0) { item.ifActive = true; this.getUnitList(item.id); + this.searchId = item.id; this.getTableData(item.id); } else { item.ifActive = false; @@ -349,6 +352,7 @@ export default { }); } else { this.getUnitList(this.$route.query.id); + this.searchId = this.$route.query.id; this.getTableData(this.$route.query.id); } }, @@ -408,6 +412,7 @@ export default { buildList.forEach((d) => { if (item.id === d.id) { d.ifActive = true; + this.searchId = item.id; this.getUnitList(item.id); this.getTableData(item.id); } else {