|
@@ -59,10 +59,10 @@ layui.config({
|
|
|
|
|
|
}
|
|
}
|
|
if(d.status==2){ //项目表头操作
|
|
if(d.status==2){ //项目表头操作
|
|
- xml +="<span class='myspan'>操作</span>";
|
|
|
|
|
|
+ xml +="<span class='myspan' self-id ="+d.pid+">操作</span>";
|
|
}
|
|
}
|
|
if(d.status==3){ //项目类型
|
|
if(d.status==3){ //项目类型
|
|
- xml +="<a style='margin-top: 3px;' class='layui-btn layui-btn-xs' href=\"${ctx}/jkxl/list?id="+d.id+"&type="+d.type+"\">编辑</a>"
|
|
|
|
|
|
+ xml +="<a style='margin-top: 3px;' self-id="+d.pid+" class='layui-btn layui-btn-xs' href=\"${ctx}/jkxl/list?id="+d.id+"&type="+d.type+"\">编辑</a>"
|
|
+"<a style='margin-top: 3px;' class='layui-btn layui-btn-xs layui-btn-danger' id=del"+d.id+" onclick=\"deleteItem('" + d.id + "')\">删除</a>";
|
|
+"<a style='margin-top: 3px;' class='layui-btn layui-btn-xs layui-btn-danger' id=del"+d.id+" onclick=\"deleteItem('" + d.id + "')\">删除</a>";
|
|
}
|
|
}
|
|
|
|
|
|
@@ -257,7 +257,8 @@ function deleteProject(id) {//删除工程
|
|
success: function (data) {
|
|
success: function (data) {
|
|
if (data.success) {
|
|
if (data.success) {
|
|
layer.msg(data.msg, {icon: 6,offset:['40%','40%']},function () {
|
|
layer.msg(data.msg, {icon: 6,offset:['40%','40%']},function () {
|
|
- window.location.reload();
|
|
|
|
|
|
+ $("#delPro"+id).closest('tr').remove();
|
|
|
|
+ $("[self-id="+id+"]").closest('tr').remove();
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
layer.msg(data.msg, {icon: 5,offset:['40%','40%']});
|
|
layer.msg(data.msg, {icon: 5,offset:['40%','40%']});
|