From d221c4c7a0b06e73ce89f8d65207a3ec69a70ae5 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sun, 14 Nov 2021 00:04:45 +0800
Subject: [PATCH] 权限修改
---
src/views/accreditationRecords/accreditationRecordsPaper.vue | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/src/views/accreditationRecords/accreditationRecordsPaper.vue b/src/views/accreditationRecords/accreditationRecordsPaper.vue
index 996ab4e..0a5b101 100644
--- a/src/views/accreditationRecords/accreditationRecordsPaper.vue
+++ b/src/views/accreditationRecords/accreditationRecordsPaper.vue
@@ -24,11 +24,11 @@
>
<template slot="menuLeft">
<el-button
- style="display: none"
+ style="display:none"
type="danger"
size="small"
icon="el-icon-delete"
- v-if="permission.notice_delete"
+ v-if="permission.accreditationRecords_paper_delete || check"
plain
@click="handleDelete"
>删 除
@@ -46,7 +46,7 @@
type="primary"
size="small"
plain
- v-if="permission.accreditationRecords_batch_audit"
+ v-if="permission.accreditationRecords_batch_audit || check"
icon="el-icon-collection-tag"
@click="handleSecurityAudit"
>批量审批
@@ -79,7 +79,7 @@
<el-button
:type="type"
:size="size"
- v-if="permission.accreditationRecords_audit"
+ v-if="permission.accreditationRecords_audit || check"
icon="el-icon-folder-checked"
@click="handleAudit(row)"
>审核
@@ -197,6 +197,7 @@
export default {
data() {
return {
+ check:false,
certificateYear: null,
certificateMonth: null,
certificateFlag: false,
@@ -576,10 +577,7 @@
permissionList() {
return {
addBtn: this.vaildData(null, false),
- viewBtn: this.vaildData(
- this.permission.accreditationRecords_paper_view,
- false
- ),
+ viewBtn: this.vaildData(this.permission.accreditationRecords_paper_view, false),
delBtn: this.vaildData(null, false),
editBtn: this.vaildData(null, false),
};
@@ -606,6 +604,16 @@
this.questionBankSearch["userType"] = 7;
this.questionBankSearch["auditStatus"] = 2;
}
+ if (this.userInfo.role_name == "公安管理员") {
+ //判断是否为市局管理员
+ if(this.userInfo.jurisdiction=="1372091709474910209"){
+ this.check = true;
+ // this.vaildData(this.permission.accreditationRecords_paper_delete, false);
+ }else{
+ this.check = false;
+ // this.vaildData(null, false);
+ }
+ }
},
methods: {
//获取当前用户部门信息
--
Gitblit v1.9.3