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/securityTraining.vue |   49 +++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 43 insertions(+), 6 deletions(-)

diff --git a/src/views/licenseApproval/securityTraining.vue b/src/views/licenseApproval/securityTraining.vue
index e5e7baf..646a2ff 100644
--- a/src/views/licenseApproval/securityTraining.vue
+++ b/src/views/licenseApproval/securityTraining.vue
@@ -2,13 +2,18 @@
  * @Author: liu
  * @Date: 2021-08-26 16:55:25 
  * @Last Modified by: liu
- * @Last Modified time: 2021-09-22 11:24:49
+ * @Last Modified time: 2021-11-05 14:52:22
  */
 
 
 <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,10 @@
         selection: true,
         dialogClickModal: false,
         column: column,
+        ...this.$store.state.control.clearOtherBut,
       },
       data: [],
+      userData: "",
     };
   },
   computed: {
@@ -288,6 +299,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);
     },
@@ -428,8 +462,11 @@
       this.onLoad(this.page, this.query);
     },
     onLoad(page, params = {}) {
+      this.changeuserData();
       this.loading = true;
       params["ptype"] = 1;
+      params["jurisdiction"] = this.userInfo.jurisdiction;
+      params["usetype"] = this.userData;
       getList(
         page.currentPage,
         page.pageSize,

--
Gitblit v1.9.3