From 8f70db3e82e273387e133e7d429be48dfc34e262 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sat, 27 Nov 2021 14:59:08 +0800
Subject: [PATCH] 保安员,证书申请权限修改
---
src/views/securityGuard/securityGuard.vue | 39 +++++++++++++++++----------------------
1 files changed, 17 insertions(+), 22 deletions(-)
diff --git a/src/views/securityGuard/securityGuard.vue b/src/views/securityGuard/securityGuard.vue
index cdc9f98..998f674 100644
--- a/src/views/securityGuard/securityGuard.vue
+++ b/src/views/securityGuard/securityGuard.vue
@@ -86,6 +86,7 @@
size="small"
plain
icon="el-icon-download"
+ v-if="permission.export_security_info"
@click="handleExportSecurityInfo"
>保安信息导出
</el-button>
@@ -1256,6 +1257,7 @@
},
beforeCreate() {},
created() {
+ var that = this;
// console.log(this.userInfo, 9999);
if (this.userInfo.role_name == "办证管理员") {
this.search["userType"] = 7;
@@ -1274,6 +1276,19 @@
column.defaultExpandAll = true;
column.dicUrl =
"/api/blade-system/dept/security_lazy-tree?deptId="+this.userInfo.dept_id;
+ }else if(roleName == "公安管理员" ||
+ roleName == "administrator"){
+ var columnDept = that.findObject(that.option.column, "deptId");
+ columnDept.dicUrl =
+ "/api/blade-system/dept/security_lazy-tree?jurisdiction=" +
+ that.userInfo.jurisdiction;
+ }else {
+ //查询保安单位信息(包含子级)
+ const column = this.findObject(this.option.column, "deptId");
+ // column.search = false;
+ //默认全部展开
+ column.dicUrl =
+ "/api/blade-system/dept/security_lazy-tree";
}
})
@@ -2317,14 +2332,9 @@
roleAlias == "administrator"
) {
params["jurisdiction"] = that.userInfo.jurisdiction;
- var columnDept = that.findObject(that.option.column, "deptId");
- columnDept.dicUrl =
- "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
- that.userInfo.jurisdiction;
var ColumnDeptUpdate = that.findObject(that.option.group, "deptId");
ColumnDeptUpdate.dicUrl =
- "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" +
- that.userInfo.jurisdiction;
+ "/api/blade-system/dept/security_lazy-tree?jurisdiction=" + that.userInfo.jurisdiction;
//审查状态查询开启
var columnExaminationType = that.findObject(
@@ -2333,28 +2343,13 @@
);
columnExaminationType.search = true;
columnExaminationType.hide = false;
- } else if (roleAlias == "培训公司管理员") {
- //如果是培训公司管理员
- // params["trainingUnitId"] = that.userInfo.dept_id;
- var columnDept2 = that.findObject(that.option.column, "deptId");
- columnDept2.dicUrl =
- "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
- var ColumnDeptUpdate2 = that.findObject(
- that.option.group,
- "deptId"
- );
- ColumnDeptUpdate2.dicUrl =
- "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
} else {
- var columnDept1 = that.findObject(that.option.column, "deptId");
- columnDept1.dicUrl =
- "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
var ColumnDeptUpdate1 = that.findObject(
that.option.group,
"deptId"
);
ColumnDeptUpdate1.dicUrl =
- "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
+ "/api/blade-system/dept/security_lazy-tree";
}
let values = {
--
Gitblit v1.9.3