From a77d847dfc0dc70d30c06775e9410ecf8a24b11f Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Tue, 21 Feb 2023 17:38:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=97=E7=AE=A1=E7=90=86=20=20?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E9=A6=96=E9=A1=B5=E5=88=87=E6=8D=A2=E5=9F=BA?= =?UTF-8?q?=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/massif/index.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pages/massif/index.vue b/pages/massif/index.vue index 82c9d12..8801238 100644 --- a/pages/massif/index.vue +++ b/pages/massif/index.vue @@ -114,8 +114,6 @@ import request,{host} from '@/common/request' return{ host:host('imgUrl'), searchVal:{ - companyId:this.$store.getters.userInfo.companyId, - plantBaseInfoId:this.$store.state.plantBaseInfoId, search:"", pageNo:1, pageSize:5, @@ -124,6 +122,13 @@ import request,{host} from '@/common/request' total:0, } }, + watch:{ + //监听首页切换基地 + "$store.state.plantBaseInfoId"(n){ + this.clean() + this.search() + }, + }, onLoad(){ this.search() }, @@ -149,7 +154,11 @@ import request,{host} from '@/common/request' async search(){ if(this.total==0 || this.list.length