From 61dedbff9e9965eda9c91be5cc0e64f0db7db22e Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 06 十一月 2023 17:46:30 +0800
Subject: [PATCH] feat: 过长文本截断,调整日期组件防止换行
---
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