From 9e1b90ee51923869010b2394f8efbdd3b76f77d1 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 24 Nov 2021 09:37:48 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_enterprises_ys

---
 src/views/licenseApproval/securityPermit.vue |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/views/licenseApproval/securityPermit.vue b/src/views/licenseApproval/securityPermit.vue
index 2e16383..4727f12 100644
--- a/src/views/licenseApproval/securityPermit.vue
+++ b/src/views/licenseApproval/securityPermit.vue
@@ -483,9 +483,24 @@
     onLoad(page, params = {}) {
       this.loading = true;
       params["ptype"] = 0;
+       var gonganj = "";
+      if (this.userInfo.role_name == "公安管理员") {
+        let test = /派出所$/g;
+        if (test.test(this.userInfo.list.name)) {
+          gonganj = "派出所管理员";
+        }
+        test = /分局|公安局$/g;
+        if (test.test(this.userInfo.list.name)) {
+          gonganj = "县局管理员";
+        }
+        test = /市公安局$/g;
+        if (test.test(this.userInfo.list.name)) {
+          gonganj = "市局管理员";
+        }
+      }
       params = {
         ...params,
-        ...this.getFenji(this.userInfo.role_name),
+        ...this.getFenji(gonganj),
       };
       getList(
         page.currentPage,

--
Gitblit v1.9.3