From 4e8951a439c03e87568789cedeb62033884412db Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期二, 16 五月 2023 10:24:17 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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