From effc36a756331e93372e4b7870d721f8273b580e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Thu, 20 Mar 2025 10:00:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=B4=B9=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logistics-template/index.vue | 35 ++++++++++++++----- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/src/views/modules/logistics-fare/logistics-template/index.vue b/src/views/modules/logistics-fare/logistics-template/index.vue index e9844d5..44bd972 100644 --- a/src/views/modules/logistics-fare/logistics-template/index.vue +++ b/src/views/modules/logistics-fare/logistics-template/index.vue @@ -67,10 +67,20 @@ export default { }; }, created() { - this.searchForm = { - name: "", - linkId: this.marketId ? this.marketId : this.shopId, - }; + if ( + JSON.parse(sessionStorage.getItem("userInfo")).role === "ROLE_MERCHANT" + ) { + this.searchForm = { + name: "", + linkId: this.shopId, + }; + } else { + this.searchForm = { + name: "", + linkId: this.marketId ? this.marketId : this.shopId, + }; + } + this.$nextTick(() => { this.$refs.oTable.reload(); }); @@ -95,10 +105,19 @@ export default { }); }, Reset() { - this.searchForm = { - name: "", - linkId: this.marketId ? this.marketId : this.shopId, - }; + if ( + JSON.parse(sessionStorage.getItem("userInfo")).role === "ROLE_MERCHANT" + ) { + this.searchForm = { + name: "", + linkId: this.shopId, + }; + } else { + this.searchForm = { + name: "", + linkId: this.marketId ? this.marketId : this.shopId, + }; + } this.$refs.oTable.reload(); }, addFareTemplate() {