From 97c78ea61bf7611f57e85ce96224aa85a7c9e9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Tue, 12 Nov 2024 18:18:33 +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-fare/logistics-template/index.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/modules/logistics-fare/logistics-template/index.vue b/src/views/modules/logistics-fare/logistics-template/index.vue index fa49791..6649973 100644 --- a/src/views/modules/logistics-fare/logistics-template/index.vue +++ b/src/views/modules/logistics-fare/logistics-template/index.vue @@ -54,7 +54,18 @@ export default { }; }, created() { - this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId; + if (JSON.parse(sessionStorage.getItem("userInfo")).markets.length > 0) { + this.shopId = true; + this.formInline.marketId = JSON.parse( + sessionStorage.getItem("userInfo") + ).markets[0].marketId; + this.marketList = JSON.parse(sessionStorage.getItem("userInfo")).markets; + console.log(this.marketList); + } else if (JSON.parse(sessionStorage.getItem("userInfo")).shopId) { + this.shopId = true; + } else { + this.shopId = false; + } }, methods: { queryList(pageNo, pageSize) {