From efdbc4fd94e74d1a86c9f47d0a34bcefd9bd4a4e Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sun, 28 Apr 2024 14:14:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20mpoint=E7=95=8C=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/enum.js | 13 ++ src/views/em/mpoint.vue | 48 ++++--- src/views/em/mpoint_form.vue | 234 ++++++++++++++++++++--------------- 3 files changed, 174 insertions(+), 121 deletions(-) diff --git a/src/utils/enum.js b/src/utils/enum.js index 3ac712fa..4d671134 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -104,4 +104,17 @@ export const iMEnum = new EnumFactory({ 10: '单开为开/单停为停', 20: '单开为开/都停为停', 30: '都开为开/单停为停', +}, parseInt) + + +export const mpointTypeEnum = new EnumFactory({ + 10: '自动采集', + 20: '计算测点', + 30: '手动录入', +}, parseInt) + +export const mpointGatherStateEnum = new EnumFactory({ + "0": { text: '正常', type: 'success' }, + "-1": { text: '错误', type: 'danger' }, + "-2": { text: '无', type: 'info' }, }, parseInt) \ No newline at end of file diff --git a/src/views/em/mpoint.vue b/src/views/em/mpoint.vue index 3b19dafd..e22a7799 100644 --- a/src/views/em/mpoint.vue +++ b/src/views/em/mpoint.vue @@ -12,8 +12,8 @@ - - + @@ -36,7 +36,8 @@ - + + - + + + + + + + + + + + + + + + - - - - - - - + -