修复编辑、移除按钮动作传参取值

Signed-off-by: finalpro <finalpro@163.com>
This commit is contained in:
finalpro
2023-06-25 13:11:21 +00:00
committed by Gitee
parent 6cd58bbd9d
commit 5596f32940
+2 -2
View File
@@ -209,7 +209,7 @@
title: '修改', title: '修改',
shade: 0.1, shade: 0.1,
area: ['450px', '500px'], area: ['450px', '500px'],
content: MODULE_PATH + 'edit/' + obj.data['powerId'] content: MODULE_PATH + 'edit/' + obj.data['id']
}) })
} }
window.remove = function (obj) { window.remove = function (obj) {
@@ -217,7 +217,7 @@
layer.close(index) layer.close(index)
let loading = layer.load() let loading = layer.load()
$.ajax({ $.ajax({
url: MODULE_PATH + 'remove/' + obj.data['powerId'], url: MODULE_PATH + 'remove/' + obj.data['id'],
dataType: 'json', dataType: 'json',
type: 'delete', type: 'delete',
success: function (result) { success: function (result) {