From 150fe16fbe2d38aa40ccfb9860b06d92898cea2b Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期二, 20 一月 2026 17:05:54 +0800
Subject: [PATCH] 设备运行 状态 功能按键 完善 开机 停机 点检记录 故障登记 履历 工艺 按钮点击功能

---
 utils/common.js |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/utils/common.js b/utils/common.js
index 69f9d1d..6905022 100644
--- a/utils/common.js
+++ b/utils/common.js
@@ -481,7 +481,7 @@
             FieldListCache = FieldListCache.filter(elem => !role.test(elem.ColmCols))
         })
         
-        FieldListCache = FieldListCache.filter(elem => !ExcludeKeys.includes(elem))
+        FieldListCache = FieldListCache.filter(elem => !ExcludeKeys.includes(elem.ColmCols))
         return {
             status: true,
             data: FieldListCache,
@@ -494,6 +494,20 @@
             return item[e.ColmCols]
         })
     }
+    
+    httpFormatWs(httpUrl=this.serverUrl) {
+        if(httpUrl.indexOf("http://") === 0){
+            httpUrl = httpUrl.replace("http://", "")
+            httpUrl = "ws://" + httpUrl.split(":")[0]+":8089/ws"
+        }else if(httpUrl.indexOf("https://") === 0) {
+            httpUrl = httpUrl.replace("https://", "")
+            httpUrl = "wss://" + httpUrl.split(":")[0]+":8089/ws"
+        }else{
+            // 鎻愮ず浼犲叆杩炴帴閿欒
+        }
+        
+        return httpUrl
+    }
 }
 
 export const CommonUtils = new commonUtils()
\ No newline at end of file

--
Gitblit v1.9.1