From 17a21eb623864ad92ca41087dfcd8814641a9587 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期一, 15 五月 2023 15:53:24 +0800 Subject: [PATCH] BUG修改 --- management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice.js | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice.js b/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice.js index c2e71ce..13ffad5 100644 --- a/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice.js +++ b/management/guns-admin/src/main/webapp/static/modular/system/tBranchOffice/tBranchOffice.js @@ -127,6 +127,13 @@ * 删除 */ TBranchOffice.delete = function (id) { + + var userType = $('#userType').val() + if(userType == 2){ + Feng.error("无权删除分公司!") + return; + } + var ajax = new $ax(Feng.ctxPath + "/tBranchOffice/delete", function (data) { Feng.success("删除成功!"); TBranchOffice.table.refresh(); -- Gitblit v1.7.1