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/cancellationOfFiling.vue | 42 ++++++++++++++++++++++++++++++++++++------
1 files changed, 36 insertions(+), 6 deletions(-)
diff --git a/src/views/licenseApproval/cancellationOfFiling.vue b/src/views/licenseApproval/cancellationOfFiling.vue
index a21caa1..5df956d 100644
--- a/src/views/licenseApproval/cancellationOfFiling.vue
+++ b/src/views/licenseApproval/cancellationOfFiling.vue
@@ -2,7 +2,7 @@
* @Author: liu
* @Date: 2021-08-26 17:00:04
* @Last Modified by: liu
- * @Last Modified time: 2021-09-22 11:23:44
+ * @Last Modified time: 2021-11-05 15:24:32
*/
@@ -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>
</template>
@@ -64,9 +64,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>
@@ -152,6 +155,7 @@
column: column,
},
data: [],
+ userData: "",
};
},
computed: {
@@ -176,6 +180,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);
},
@@ -185,7 +212,7 @@
path: "/attachOnce/index",
// redirect: { name: "foo" },
// query: { row: row },
- query: { deptid: row.cardid, type: "6" },
+ query: { deptid: row.cardid, type: "4" },
// params: { row: row.identificationnumber },
});
},
@@ -316,8 +343,11 @@
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
+ this.changeuserData();
this.loading = true;
params["ptype"] = 4;
+ params["jurisdiction"] = this.userInfo.jurisdiction;
+ params["usetype"] = this.userData;
getList(
page.currentPage,
page.pageSize,
--
Gitblit v1.9.3