From 1e95c45ad698b563c2c2f3f1c54c0c470a20ed64 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, 22 Oct 2024 17:26:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AD=9B=E9=80=89=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=AE=BD=E5=BA=A6=E5=8A=A8=E6=80=81=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/xiaoqu/bottomList.vue | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/src/views/components/xiaoqu/bottomList.vue b/src/views/components/xiaoqu/bottomList.vue index aa47953..21c463f 100644 --- a/src/views/components/xiaoqu/bottomList.vue +++ b/src/views/components/xiaoqu/bottomList.vue @@ -128,6 +128,9 @@ export default { "queryParamsXiaoqu.type"(newValue, oldValue) { this.handleChange(); }, + "queryParamsXiaoqu.buildingId"(newValue, oldValue) { + this.handleChange(); + }, }, created() { this.handleChange(); @@ -135,10 +138,23 @@ export default { methods: { handleChange(newValue) { this.reset(); - this.queryParams = { ...this.queryParams, ...this.queryParamsXiaoqu }; - this.queryParams.buildingid = undefined; - this.queryParams.deptId = undefined; + setTimeout(() => { + const list = document.getElementsByClassName("foldPane-bottom")[0]; + const build = document.getElementsByClassName("building-container")[0]; + if (this.queryParams.buildingId) { + list.style.left = `390px`; + list.style.width = `calc(100% - (390px + ${build.offsetWidth}px) )`; + list.style.transform = `translateX(0)`; + } else { + list.style.left = ``; + list.style.width = ``; + list.style.transform = ``; + } + }, 500); + + // this.queryParams.buildingid = undefined; + // this.queryParams.deptId = undefined; this.disabled = false; this.load(); },