From 92bd815250054f79473bfe10df31b93c996e32ea Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 06 十一月 2023 17:51:04 +0800
Subject: [PATCH] 工艺列表的更新按钮状态修改
---
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