From 65050768bf5662148e17a824e1e2495fb3cbdac5 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期五, 30 六月 2023 15:17:54 +0800
Subject: [PATCH] 完善称重页面逻辑

---
 pages/tabbar-page/index-tabbar/index-tabbar.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/pages/tabbar-page/index-tabbar/index-tabbar.vue b/pages/tabbar-page/index-tabbar/index-tabbar.vue
index 7fe7a38..1c4698e 100644
--- a/pages/tabbar-page/index-tabbar/index-tabbar.vue
+++ b/pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -13,7 +13,7 @@
 				</view>
 			</view>
 		</view>
-		<customer-index v-if="roleType == 1"
+		<customer-index v-if="roleType == 1||roleType == 4"
 			ref="customerIndexRef"
 			:orderPlanDataStore="orderPlanDataStore"></customer-index>
 		<freight-forwarder-index v-if="roleType == 2"
@@ -70,7 +70,7 @@
 				});
 			}
 			// 瀹㈡埛鑾峰彇鏃ヨ鍒�
-			if (this.roleType == 1) {
+			if (this.roleType == 1 || this.roleType == 4) {
 				this.$reqGet('GetOrderPlan').then(res => {
 					if (res.data) {
 						this.orderPlanDataStore = res.data;
@@ -175,7 +175,7 @@
 			if (this.globalisconnect) {
 				this.$store.dispatch('websocketInit')
 				this.changeisconnect(false)
-				console.log(this.globalisconnect, 'index鐨剋s蹇冧簨鈥�');
+				console.log(this.globalisconnect, 'index鐨剋s鏁版嵁鈥�');
 			}
 			this.userAuthorization();
 			this.messageReq();
@@ -217,6 +217,12 @@
 							this.$refs.driverIndexRef.init();
 						});
 						break;
+					case 4:
+						console.log('customerIndexRef');
+						this.$nextTick(() => {
+							this.$refs.customerIndexRef.init();
+						});
+						break;
 					default:
 						break;
 				}

--
Gitblit v1.9.1