From c6b75277a31069e1dd0eb6ca41a5e9513a8e76dd Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Thu, 26 Aug 2021 21:45:00 +0800
Subject: [PATCH] 表完善

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

diff --git a/src/views/statisticalQueryManagement/securityGuardDetail.vue b/src/views/statisticalQueryManagement/securityGuardDetail.vue
index 478ab5f..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
@@ -282,15 +282,15 @@
       this.onLoad(this.page, this.query);
     },
     onLoad(page, params = {}) {
-      debugger
       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;
@@ -305,9 +305,9 @@
         let mm = urlArr[i].split("=");
         object[decodeURIComponent(mm[0])] = decodeURIComponent(mm[1]);
       }
-      let enterpriseName = object["enterpriseName"] || "";
-      this.query = { enterpriseName: enterpriseName };
-      this.onLoad(this.page,  this.query);
+      this.deptid = object["departmentid"] || "";
+      this.query = { deptid: this.deptid };
+      this.onLoad(this.page, this.query);
       //   this.onLoad(this.page, this.query);
     }
   },

--
Gitblit v1.9.3