From 21fb37c7162d5b47a14d6438870377c85fcc0b52 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期六, 07 十月 2023 10:23:21 +0800
Subject: [PATCH] 修改装卸员页面 调整websocket逻辑

---
 pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue b/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue
index d5a45e6..1e34c21 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock.vue
@@ -21,10 +21,6 @@
 <script>
 	import { todayDate } from '@/utils/util.js';
 	export default {
-		onLoad(params) {
-			this.punchTheClockObj.tmcoa = params.tmId.toString();
-			this.coalStatus = params.coalStatus;
-		},
 		data() {
 			return {
 				nowTime: '',
@@ -36,7 +32,9 @@
 				}
 			};
 		},
-		onLoad() {
+		onLoad(params) {
+			this.punchTheClockObj.tmcoa = params.tmId;
+			this.coalStatus = params.coalStatus;
 			this.getSetting(); //鑾峰彇鎺堟潈
 			this.getFuzzyLocation(); //鑾峰彇浣嶇疆
 			this.todayDate(); //褰撳墠鏃堕棿

--
Gitblit v1.9.1