From 905afa72079ff4948534bd96b9b7866b20291825 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 12 七月 2023 19:08:26 +0800
Subject: [PATCH] 修改验质图片错误,增加图片回显

---
 pages/tabbar-page/index-tabbar/index-tabbar.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/pages/tabbar-page/index-tabbar/index-tabbar.vue b/pages/tabbar-page/index-tabbar/index-tabbar.vue
index a2087ce..330e9d4 100644
--- a/pages/tabbar-page/index-tabbar/index-tabbar.vue
+++ b/pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -57,7 +57,7 @@
 		//棣栭〉涓嬫媺鍒锋柊
 		onPullDownRefresh() {
 			uni.showLoading({ title: '鍔犺浇涓�...' });
-			// 鑾峰彇鍘嗗彶鎻愮叅鍗�
+			// 鑾峰彇鍘嗗彶閫氱煡鍗�
 			if (this.roleType == 1 || this.roleType == 2) {
 				this.$reqGet('getJhOrderPlanDataPage', { current: 1, size: 10 }).then(res => {
 					if (res.data.records) {
@@ -150,9 +150,13 @@
 						if (nowWeighObj.eqInfraredStatus) {
 							this.changeinfraredStatus(true);
 							this.changeWeigh(nowWeighObj.weigh);
+							let warningState = nowWeighObj.warning == 1
+							this.changeWarning(warningState)
 						} else {
 							this.changeinfraredStatus(false);
 							this.changeWeigh(nowWeighObj.weigh);
+							let warningState = nowWeighObj.warning == 1
+							this.changeWarning(warningState)
 						}
 					}
 				} else if (v.startsWith('msg')) {
@@ -188,7 +192,7 @@
 		},
 		methods: {
 			...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit',
-				'changeisLogin'
+				'changeisLogin', 'changeWarning'
 			]),
 			messagePage() {
 				uni.navigateTo({

--
Gitblit v1.9.1