From dc91db9bb3473c3ed058f86f74359e15c035a8a5 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Mon, 23 Aug 2021 22:13:10 +0800
Subject: [PATCH] 表查询完善

---
 src/views/statisticalQueryManagement/businessStatistics.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/views/statisticalQueryManagement/businessStatistics.vue b/src/views/statisticalQueryManagement/businessStatistics.vue
index 62103cf..2590585 100644
--- a/src/views/statisticalQueryManagement/businessStatistics.vue
+++ b/src/views/statisticalQueryManagement/businessStatistics.vue
@@ -145,7 +145,7 @@
         }
       });
     },
-     searchChange(params, done) {
+    searchChange(params, done) {
       this.query = params;
       this.page.currentPage = 1;
       this.onLoad(this.page, params);
@@ -175,21 +175,27 @@
       selectYw(param).then(res => {
         const data = res.data.data;
         this.page.total = data.total;
-        this.tableData = res.data.data;
+        this.tableData = data.records;
         this.loading = false;
       });
     },
     handleRowClick(row, column, cell, event) {
-      if (column.label == "服务对象数量" || column.label == "保安员人数") {
+      if (column.label == "服务对象数量") {
         this.$router.push({
           path: "/statisticalQueryManagement/businessStatisticsDetail"
+        });
+      } else if (column.label == "保安员人数") {
+        this.$router.push({
+          path:
+            "/statisticalQueryManagement/securityGuardDetail?enterpriseName=" +
+            row.enterpriseName
         });
       }
     },
     cellStyle(row, column, rowIndex, columnIndex) {
       // if (columnIndex == 4 || columnIndex == 5) {
       // }
-    },
+    }
   },
   mounted() {
     this.getSubOfficeData();

--
Gitblit v1.9.3