优化批量删除系统配置
This commit is contained in:
@@ -297,33 +297,28 @@
|
|||||||
}
|
}
|
||||||
ids += row[i].id + ",";
|
ids += row[i].id + ",";
|
||||||
}
|
}
|
||||||
if(row[i].loginName == "jsh"){
|
$.ajax({
|
||||||
$.messager.alert('提示', '管理员jsh不能删除!', 'warning');
|
type: "post",
|
||||||
return;
|
url: "/systemConfig/batchDeleteSystemConfigByIds",
|
||||||
} else {
|
dataType: "json",
|
||||||
$.ajax({
|
async: false,
|
||||||
type: "post",
|
data: ({
|
||||||
url: "/systemConfig/batchDeleteSystemConfigByIds",
|
ids: ids
|
||||||
dataType: "json",
|
}),
|
||||||
async: false,
|
success: function (res) {
|
||||||
data: ({
|
if(res && res.code === 200) {
|
||||||
ids: ids
|
$("#searchBtn").click();
|
||||||
}),
|
$(":checkbox").attr("checked", false);
|
||||||
success: function (res) {
|
} else {
|
||||||
if(res && res.code === 200) {
|
$.messager.alert('删除提示', '删除系统配置信息失败,请稍后再试!', 'error');
|
||||||
$("#searchBtn").click();
|
|
||||||
$(":checkbox").attr("checked", false);
|
|
||||||
} else {
|
|
||||||
$.messager.alert('删除提示', '删除系统配置信息失败,请稍后再试!', 'error');
|
|
||||||
}
|
|
||||||
},
|
|
||||||
//此处添加错误处理
|
|
||||||
error: function () {
|
|
||||||
$.messager.alert('删除提示', '删除系统配置信息异常,请稍后再试!', 'error');
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
});
|
},
|
||||||
}
|
//此处添加错误处理
|
||||||
|
error: function () {
|
||||||
|
$.messager.alert('删除提示', '删除系统配置信息异常,请稍后再试!', 'error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user