From c8a9c92eeaf0c41a9105d492d9d662b6b92e7ebd Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Fri, 27 Aug 2021 15:05:15 +0800
Subject: [PATCH] 心里咨询

---
 src/views/statisticalQueryManagement/securityGuardDetail.vue |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/src/views/statisticalQueryManagement/securityGuardDetail.vue b/src/views/statisticalQueryManagement/securityGuardDetail.vue
index 4efc3de..f9e009c 100644
--- a/src/views/statisticalQueryManagement/securityGuardDetail.vue
+++ b/src/views/statisticalQueryManagement/securityGuardDetail.vue
@@ -21,7 +21,7 @@
 </template>
 <script>
 import { mapGetters } from "vuex";
-import { getListSecurity } from "@/api/system/user";
+import { pageSecurity } from "../../api/statisticalQueryManagement/statisticalQueryManagement";
 export default {
   name: "保安员明细",
   data() {
@@ -123,8 +123,8 @@
             label: "保安公司",
             prop: "deptName",
             // width: 120,
-            search: true,
-            searchSpan: 4,
+            // search: true,
+            // searchSpan: 4,
             overHidden: true,
             slot: true,
             display: false
@@ -204,7 +204,7 @@
             dicData: [
               {
                 label: "否",
-                value: 0
+                value: 2
               },
               {
                 label: "是",
@@ -283,13 +283,14 @@
     },
     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.deptid;
+      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,9 +305,9 @@
         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);
     }
   },
@@ -315,4 +316,3 @@
   }
 };
 </script>
-<style lang="scss" scoped></style>

--
Gitblit v1.9.3