Showing
1 changed file
with
4 additions
and
2 deletions
@@ -130,8 +130,10 @@ $(document).on("click", ".delbtn", function() { | @@ -130,8 +130,10 @@ $(document).on("click", ".delbtn", function() { | ||
130 | var item = g.rows[$(this).data("index")]; | 130 | var item = g.rows[$(this).data("index")]; |
131 | common.dialog.confirm("警告", "是否确认删除?",function() { | 131 | common.dialog.confirm("警告", "是否确认删除?",function() { |
132 | common.util.__ajax({ | 132 | common.util.__ajax({ |
133 | - url: "/resources/deleteAllResourceByCode", | ||
134 | - data: {code: item.code} | 133 | + //url: "/resources/deleteAllResourceByCode", |
134 | + //data: {code: item.code}, | ||
135 | + url: "/resources/deleteResourceById", | ||
136 | + data: {id: item.id}, | ||
135 | }, function () { | 137 | }, function () { |
136 | g.reload(); | 138 | g.reload(); |
137 | }); | 139 | }); |
-
Please register or login to post a comment