From 2a865ce08ad71501542b0a512d7868e5a6622df4 Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期三, 17 一月 2024 08:55:31 +0800 Subject: [PATCH] # 配置属性修改 --- src/main/webapp/static/js/configType/configType.js | 33 +++++++++++++++++++++------------ 1 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/static/js/configType/configType.js b/src/main/webapp/static/js/configType/configType.js index 234ddc0..fc3a2d6 100644 --- a/src/main/webapp/static/js/configType/configType.js +++ b/src/main/webapp/static/js/configType/configType.js @@ -173,7 +173,7 @@ }); // 鐩戝惉琛屽伐鍏蜂簨浠� - table.on('tool(role)', function(obj){ + table.on('tool(configType)', function(obj){ var data = obj.data; switch (obj.event) { // 璇︽儏 @@ -246,17 +246,26 @@ }); } break; - case 'power': - roleId = data.id; - layer.open({ - type: 2, - title: data.name + ' 鏉冮檺鍒嗛厤', - maxmin: true, - area: [top.detailWidth/2, '85%'], - shadeClose: false, - content: 'role_power_detail.html', - success: function(layero, index){ - } + case 'delete': + id = data.id; + layer.confirm('纭畾鍒犻櫎鍚�', function(){ + $.ajax({ + url: baseUrl+"/configType/delete/auth", + headers: {'token': localStorage.getItem('token')}, + data: {id: id}, + method: 'POST', + traditional:true, + success: function (res) { + if (res.code === 200){ + layer.closeAll(); + tableReload(false); + } else if (res.code === 403){ + top.location.href = baseUrl+"/"; + } else { + layer.msg(res.msg) + } + } + }) }); break; } -- Gitblit v1.9.1