From 47eb81eebc9a87af5f64dd765dc1a1267317d9a8 Mon Sep 17 00:00:00 2001
From: yantian yue <306727702@qq.com>
Date: 星期二, 24 十月 2023 16:21:55 +0800
Subject: [PATCH] OPCUA更新

---
 guns-vip-main/src/main/webapp/assets/modular/bs/opcuaConf/opcuaConf.js |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/guns-vip-main/src/main/webapp/assets/modular/bs/opcuaConf/opcuaConf.js b/guns-vip-main/src/main/webapp/assets/modular/bs/opcuaConf/opcuaConf.js
index 61fd8f2..2956c47 100644
--- a/guns-vip-main/src/main/webapp/assets/modular/bs/opcuaConf/opcuaConf.js
+++ b/guns-vip-main/src/main/webapp/assets/modular/bs/opcuaConf/opcuaConf.js
@@ -6,7 +6,7 @@
     var func = layui.func;
 
     /**
-     * 绠$悊
+     * OPCUA閰嶇疆绠$悊
      */
     var OpcuaConf = {
         tableId: "opcuaConfTable"
@@ -24,7 +24,14 @@
             {field: 'length', sort: true, title: '闀垮害'},
             {field: 'sysTypes', sort: true, title: '绫诲瀷'},
             {field: 'functionality', sort: true, title: '鍔熻兘璇存槑'},
-            {field: 'subscribe', sort: true, title: '鏄惁璁㈤槄'},
+            {field: 'subscribe', align: "center", title: '鏄惁璁㈤槄', templet: function (d) {
+                if (d.subscribe === '1') {
+                        return "鍚敤";
+                    } else {
+                        return "绂佺敤";
+                    }
+                }
+            },
             {field: 'rModule', sort: true, title: '璁㈤槄鍝嶅簲妯″潡'},
             {field: 'rFunction', sort: true, title: '璁㈤槄鍝嶅簲鍑芥暟'},
             {field: 'remarks', sort: true, title: '澶囨敞'},
@@ -38,13 +45,15 @@
     OpcuaConf.search = function () {
         var queryData = {};
 
+        queryData['node'] = $('#node').val();
+        queryData['subscribe'] = $('#subscribe').val();
 
         table.reload(OpcuaConf.tableId, {
             where: queryData, page: {curr: 1}
         });
     };
 
-    /**
+     /**
      * 璺宠浆鍒版坊鍔犻〉闈�
      */
     OpcuaConf.jumpAddPage = function () {

--
Gitblit v1.9.3