From b8aa0226aa7b9826a6d8acf249258e475a07c000 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sun, 26 Sep 2021 11:59:09 +0800
Subject: [PATCH] 派出所管理权限
---
src/views/licenseApproval/securityGuard.vue | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/src/views/licenseApproval/securityGuard.vue b/src/views/licenseApproval/securityGuard.vue
index 8f5913f..5f04651 100644
--- a/src/views/licenseApproval/securityGuard.vue
+++ b/src/views/licenseApproval/securityGuard.vue
@@ -2,7 +2,7 @@
* @Author: liu
* @Date: 2021-08-26 16:57:58
* @Last Modified by: liu
- * @Last Modified time: 2021-09-23 09:27:18
+ * @Last Modified time: 2021-09-25 17:58:55
*/
@@ -552,9 +552,24 @@
onLoad(page, params = {}) {
this.loading = true;
params["ptype"] = 3;
+ 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),
};
console.log(params, "params");
// return;
--
Gitblit v1.9.3