From a5a225e225c304311aa1a1e76c8b758de6f0ebf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Mon, 6 Jul 2020 21:50:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=B9=E9=87=8F=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/pages/manage/systemConfig.html | 47 ++++++++++++-------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/erp_web/pages/manage/systemConfig.html b/erp_web/pages/manage/systemConfig.html index 1f74a0f6..dbae82e0 100644 --- a/erp_web/pages/manage/systemConfig.html +++ b/erp_web/pages/manage/systemConfig.html @@ -297,33 +297,28 @@ } ids += row[i].id + ","; } - if(row[i].loginName == "jsh"){ - $.messager.alert('提示', '管理员jsh不能删除!', 'warning'); - return; - } else { - $.ajax({ - type: "post", - url: "/systemConfig/batchDeleteSystemConfigByIds", - dataType: "json", - async: false, - data: ({ - ids: ids - }), - success: function (res) { - if(res && res.code === 200) { - $("#searchBtn").click(); - $(":checkbox").attr("checked", false); - } else { - $.messager.alert('删除提示', '删除系统配置信息失败,请稍后再试!', 'error'); - } - }, - //此处添加错误处理 - error: function () { - $.messager.alert('删除提示', '删除系统配置信息异常,请稍后再试!', 'error'); - return; + $.ajax({ + type: "post", + url: "/systemConfig/batchDeleteSystemConfigByIds", + dataType: "json", + async: false, + data: ({ + ids: ids + }), + success: function (res) { + if(res && res.code === 200) { + $("#searchBtn").click(); + $(":checkbox").attr("checked", false); + } else { + $.messager.alert('删除提示', '删除系统配置信息失败,请稍后再试!', 'error'); } - }); - } + }, + //此处添加错误处理 + error: function () { + $.messager.alert('删除提示', '删除系统配置信息异常,请稍后再试!', 'error'); + return; + } + }); } }); }