Authored by 陶雨

资源位修改删除资源位方法

@@ -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 });