From f8c0e9b318d946439e9bd1584eae1fa932af6d96 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 17 十一月 2023 16:32:38 +0800
Subject: [PATCH] 未生产中的完成进度显示0 因为plc 有数据 修改为可以显示数据

---
 src/common/constants/index.ts |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/common/constants/index.ts b/src/common/constants/index.ts
index 898de77..a739be6 100644
--- a/src/common/constants/index.ts
+++ b/src/common/constants/index.ts
@@ -1,3 +1,25 @@
 // 鏈枃浠舵斁缃叕鍏卞父閲忓畾涔�/鍏叡閰嶇疆绛�
 
-export {}
+export const TASK_STATUS_MAP = {
+  1: '鏈敓浜�',
+  2: '鐢熶骇涓�',
+  3: '鐢熶骇瀹屾垚'
+}
+
+export const CHANNEL_NAME_MAP: { [channel: number]: string } = {
+  0: '0',
+  1: 'A',
+  2: 'B',
+  3: 'C',
+  4: 'D',
+  5: 'E',
+  6: 'F',
+  7: 'G'
+}
+
+// plc 杞闂撮殧
+export const PLC_POLLING_DURATION = 6_000
+// 璁惧淇℃伅 杞闂撮殧
+export const DEVICE_INFO_POLLING_DURATION = 15_000
+// 闂璇婃柇
+export const PROBLEMS_POLLING_DURATION = 30_000

--
Gitblit v1.8.0