From 60f61da97dd643d3f808fba14cf7d136a8b5f11b Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 05 Nov 2021 17:27:21 +0800
Subject: [PATCH] +许可审批修改
---
src/views/licenseApproval/securityPermit.vue | 41 ++++++++++++++++++++++++++++++++++++-----
1 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/src/views/licenseApproval/securityPermit.vue b/src/views/licenseApproval/securityPermit.vue
index 56d95c8..859f63c 100644
--- a/src/views/licenseApproval/securityPermit.vue
+++ b/src/views/licenseApproval/securityPermit.vue
@@ -3,7 +3,7 @@
* @Author: liu
* @Date: 2021-08-26 16:22:20
* @Last Modified by: liu
- * @Last Modified time: 2021-09-22 11:22:57
+ * @Last Modified time: 2021-11-05 14:52:21
*/
<template>
@@ -48,14 +48,14 @@
:type="type"
class="zhengJian-icon"
@click.stop="handleCredentials(row)"
- >附件查阅
+ >附件
</el-button>
<el-button
icon="el-icon-edit"
:size="size"
:type="type"
@click.stop="rowDel(row)"
- v-if="row.type == '2'"
+ v-if="row.type == '2' && userData == '0'"
>许可审批
</el-button>
<el-button
@@ -72,9 +72,12 @@
{{
row.type == "0" ? "通过" : row.type == "1" ? "不通过" : "待审核"
}}
- <i class="gz" v-if="row.type == '0'"></i>
+ <i class="gz" v-if="row.type == '2'"></i>
+ <!-- 黄色 -->
<i class="yj" v-if="row.type == '1'"></i>
- <i class="zc" v-if="row.type == '2'"></i>
+ <!-- 红色 -->
+ <i class="zc" v-if="row.type == '0'"></i>
+ <!-- 绿色 -->
</el-tag>
</template>
</avue-crud>
@@ -264,6 +267,8 @@
column: column,
},
data: [],
+
+ userData: "",
};
},
computed: {
@@ -288,6 +293,29 @@
// console.log(this.userInfo.dept_id);
// },
methods: {
+ changeuserData() {
+ // console.log(this.userInfo, "userDatauserDatauserData");
+ if (this.userInfo.Id == "1123598821738675201") {
+ this.userData = "0";
+ return;
+ }
+ var gonganj = "";
+ if (this.userInfo.role_name == "公安管理员") {
+ let test = /派出所$/g;
+ if (test.test(this.userInfo.list.name)) {
+ gonganj = "2";
+ }
+ test = /分局|公安局$/g;
+ if (test.test(this.userInfo.list.name)) {
+ gonganj = "1";
+ }
+ test = /市公安局$/g;
+ if (test.test(this.userInfo.list.name)) {
+ gonganj = "0";
+ }
+ }
+ this.userData = gonganj;
+ },
Print() {
this.$Print(this.$refs.licence);
},
@@ -430,8 +458,11 @@
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
+ this.changeuserData();
this.loading = true;
params["ptype"] = 0;
+ params["jurisdiction"] = this.userInfo.jurisdiction;
+ params["usetype"] = this.userData;
getList(
page.currentPage,
page.pageSize,
--
Gitblit v1.9.3