From 21c7375b7b38ebf2c8a2ca8fbf6fe9fb4f28250f Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 12 Jan 2022 10:59:40 +0800
Subject: [PATCH] 新增公司注册机公司注册审核
---
src/views/licenseApproval/securityPermit.vue | 53 ++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 46 insertions(+), 7 deletions(-)
diff --git a/src/views/licenseApproval/securityPermit.vue b/src/views/licenseApproval/securityPermit.vue
index 8b76260..dbdfe67 100644
--- a/src/views/licenseApproval/securityPermit.vue
+++ b/src/views/licenseApproval/securityPermit.vue
@@ -3,12 +3,17 @@
* @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>
<div>
- <basic-container class="permit">
+ <basic-container
+ :class="[
+ 'permit',
+ $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
+ ]"
+ >
<avue-crud
:option="option"
:table-loading="loading"
@@ -48,14 +53,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 +77,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>
@@ -241,6 +249,7 @@
pageSize: 10,
currentPage: 1,
total: 0,
+ ...this.$store.state.control.changePageSize,
},
selectionList: [],
option: {
@@ -262,8 +271,11 @@
selection: true,
dialogClickModal: false,
column: column,
+ ...this.$store.state.control.clearOtherBut,
},
data: [],
+
+ userData: "",
};
},
computed: {
@@ -288,6 +300,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);
},
@@ -392,7 +427,8 @@
message: "操作成功!",
});
this.$refs.crud.toggleSelection();
- });
+ })
+ .catch();
},
beforeOpen(done, type) {
if (["edit", "view"].includes(type)) {
@@ -429,8 +465,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