From 3da442cd47a206d0edffb4606d07c305f9d54cd9 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Tue, 16 Nov 2021 10:11:34 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/views/accreditationRecords/accreditationRecordsPaper.vue | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/src/views/accreditationRecords/accreditationRecordsPaper.vue b/src/views/accreditationRecords/accreditationRecordsPaper.vue
index 996ab4e..130e219 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"
>删 除
@@ -38,7 +38,7 @@
size="small"
plain
icon="el-icon-download"
- v-if="permission.accreditationRecords_paper_export"
+ v-if="permission.accreditationRecords_paper_export || check"
@click="handleExport"
>制证信息导出
</el-button>
@@ -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