From cc1c0a396698648256c350f6f0fe2cb2f0b02c7e Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 27 Mar 2024 15:44:10 +0800
Subject: [PATCH] 许可按钮放出,备案审批按钮放出

---
 src/views/statisticalQueryManagement/securityGuardDetail.vue |  106 +++++++++++++++++++++++++++-------------------------
 1 files changed, 55 insertions(+), 51 deletions(-)

diff --git a/src/views/statisticalQueryManagement/securityGuardDetail.vue b/src/views/statisticalQueryManagement/securityGuardDetail.vue
index 4efc3de..e488957 100644
--- a/src/views/statisticalQueryManagement/securityGuardDetail.vue
+++ b/src/views/statisticalQueryManagement/securityGuardDetail.vue
@@ -15,15 +15,17 @@
       @size-change="sizeChange"
       @refresh-change="refreshChange"
       @row-click="handleRowClick"
+      @on-load="onLoad"
     >
     </avue-crud>
   </basic-container>
 </template>
 <script>
 import { mapGetters } from "vuex";
-import { getListSecurity } from "@/api/system/user";
+import { pageSecurity } from "../../api/statisticalQueryManagement/statisticalQueryManagement";
 export default {
   name: "保安员明细",
+  props: ["fwdeptId", "paramCz"],
   data() {
     return {
       page: {
@@ -87,6 +89,7 @@
         searchShow: true,
         searchMenuSpan: 6,
         index: true,
+        indexLabel:'序号',
         viewBtn: true,
         dialogClickModal: false,
         column: [
@@ -95,8 +98,7 @@
             prop: "realName",
             search: true,
             searchSpan: 4,
-            display: false,
-            width: 78
+            display: false
           },
           {
             label: "性别",
@@ -116,15 +118,14 @@
               }
             ],
             slot: true,
-            display: false,
-            width: 48
+            display: false
           },
           {
-            label: "保安公司",
+            label: "企业名称",
             prop: "deptName",
-            // width: 120,
-            search: true,
-            searchSpan: 4,
+            width: 300,
+            // search: true,
+            // searchSpan: 4,
             overHidden: true,
             slot: true,
             display: false
@@ -134,7 +135,8 @@
             prop: "securitynumber",
             display: false,
             searchSpan: 5,
-            searchLabelWidth: 110
+            searchLabelWidth: 110,
+            width: 180
             // search: true,
           },
           {
@@ -142,37 +144,37 @@
             prop: "cardid",
             slot: true,
             display: false,
-            width: 145
+            width: 180
           },
           {
             label: "联系方式",
             prop: "phone",
             slot: true,
             display: false,
-            width: 100
+            width: 180
           },
-          {
-            label: "联系地址",
-            prop: "address",
-            slot: true,
-            display: false,
-            hide: true
-          },
+          // {
+          //   label: "联系地址",
+          //   prop: "address",
+          //   slot: true,
+          //   display: false,
+          //   hide: true
+          // },
           {
             label: "入职时间",
             prop: "rtime",
             slot: true,
             display: false,
-            width: 82
+            width: 180
           },
-          {
-            label: "所属角色",
-            prop: "roleName",
-            slot: true,
-            display: false,
-            width: 78,
-            hide: true
-          },
+          // {
+          //   label: "所属角色",
+          //   prop: "roleName",
+          //   slot: true,
+          //   display: false,
+          //   width: 78,
+          //   hide: true
+          // },
 
           // {
           //   label: "所属辖区",
@@ -204,7 +206,7 @@
             dicData: [
               {
                 label: "否",
-                value: 0
+                value: 2
               },
               {
                 label: "是",
@@ -212,32 +214,30 @@
               }
             ],
             slot: true,
-            display: false,
-            width: 70
+            display: false
           },
           {
             label: "是否持证",
             prop: "hold",
             type: "select",
-            search: true,
+            search: !this.paramCz,
             searchSpan: 4,
             dicData: [
               {
                 label: "是",
-                value: "0"
-              },
-              {
-                label: "否",
                 value: "1"
               },
               {
-                label: "已吊销",
+                label: "否",
                 value: "2"
+              },
+              {
+                label: "已吊销",
+                value: "3"
               }
             ],
             slot: true,
-            display: false,
-            width: 70
+            display: false
           }
         ]
       },
@@ -283,13 +283,18 @@
     },
     onLoad(page, params = {}) {
       this.loading = true;
-      params["deptName"] = params["enterpriseName"];
-      params["jurisdiction"] = this.jurisdiction;
-      getListSecurity(
-        page.currentPage,
-        page.pageSize,
-        Object.assign(params, this.query)
-      ).then(res => {
+      let param = {};
+      param["realName"] = params["realName"] || "";
+      param["status"] = params["status"] || "";
+      param["deptId"] = this.fwdeptId;
+      if (this.paramCz) {
+        param["hold"] = '1';
+      } else {
+        param["hold"] = params["hold"] || "";
+      }
+      param["current"] = page.currentPage;
+      param["size"] = page.pageSize;
+      pageSecurity(param).then(res => {
         const data = res.data.data;
         this.page.total = data.total;
         this.data = data.records;
@@ -304,15 +309,14 @@
         let mm = urlArr[i].split("=");
         object[decodeURIComponent(mm[0])] = decodeURIComponent(mm[1]);
       }
-      let enterpriseName = object["enterpriseName"] || "";
-      let obj = { enterpriseName: enterpriseName };
-      this.onLoad(this.page, obj);
+      this.deptid = object["departmentid"] || "";
+      this.query = { deptid: this.deptid };
+      this.onLoad(this.page, this.query);
       //   this.onLoad(this.page, this.query);
     }
   },
   mounted() {
-    this.getLocationParams();
+    // this.getLocationParams();
   }
 };
 </script>
-<style lang="scss" scoped></style>

--
Gitblit v1.9.3