From fa672aad1a91b2a8481324339e063230d378039e Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期五, 09 八月 2024 14:56:36 +0800
Subject: [PATCH] 7.17

---
 guns-admin/src/main/webapp/static/modular/system/tDevice/tDevice.js |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/guns-admin/src/main/webapp/static/modular/system/tDevice/tDevice.js b/guns-admin/src/main/webapp/static/modular/system/tDevice/tDevice.js
index 4d6232d..fb103b6 100644
--- a/guns-admin/src/main/webapp/static/modular/system/tDevice/tDevice.js
+++ b/guns-admin/src/main/webapp/static/modular/system/tDevice/tDevice.js
@@ -32,7 +32,7 @@
         },
         {title: '操作', visible: true, align: 'center', valign: 'middle',width:'16%',
             formatter: function (value, row) {
-                    return '&nbsp;'+'<a href="#" onclick="TDevice.openTCharteredServiceDetails('+row.id+')" style="color:cornflowerblue">详情</a>' +'&nbsp;'
+                    return '&nbsp;'+'<a href="#" onclick="TDevice.openTCharteredServiceDetails('+row.id+')" style="color:cornflowerblue">详情</a>' +'&nbsp;'+'<a href="#" onclick="TDevice.unbinding('+row.id+')" style="color:cornflowerblue">解除绑定</a>'
             }
         }
     ];
@@ -53,6 +53,27 @@
 
 
 
+TDevice.unbinding = function (tCharteredServiceId) {
+
+
+    var operation = function(){
+        var ajax = new $ax(Feng.ctxPath + "/tDevice/delete", function () {
+            Feng.success("删除成功!");
+            TDevice.table.refresh();
+        }, function (data) {
+            Feng.error("删除失败!" + data.responseJSON.message + "!");
+        });
+        ajax.set("tDeviceId",tCharteredServiceId);
+        ajax.start();
+    };
+
+    Feng.confirm("是否解除绑定?", operation);
+
+};
+
+
+
+
 /**
  * 检查是否选中
  */

--
Gitblit v1.7.1