From 9a1a448d6bc80cb085e64f7117b2dfd53eceb779 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Mon, 30 Aug 2021 10:26:50 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/zhba_regulatory

---
 src/views/statisticalQueryManagement/businessStatistics.vue |   46 +++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 39 insertions(+), 7 deletions(-)

diff --git a/src/views/statisticalQueryManagement/businessStatistics.vue b/src/views/statisticalQueryManagement/businessStatistics.vue
index 2590585..0731965 100644
--- a/src/views/statisticalQueryManagement/businessStatistics.vue
+++ b/src/views/statisticalQueryManagement/businessStatistics.vue
@@ -26,7 +26,10 @@
 import FileSaver from "file-saver";
 import XLSX from "xlsx";
 import { mapGetters } from "vuex";
-import { selectYw } from "../../api/statisticalQueryManagement/statisticalQueryManagement";
+import {
+  selectYw,
+  dictionaryList
+} from "../../api/statisticalQueryManagement/statisticalQueryManagement";
 import { lazyTreeJu } from "../../api/index/index";
 export default {
   name: "业务情况统计",
@@ -85,7 +88,19 @@
             searchSpan: 4,
             display: false
           },
-
+          {
+            label: "单位类型",
+            prop: "stats",
+            search: true,
+            searchSpan: 4,
+            display: false,
+            type: "select",
+            props: {
+              label: "dictValue",
+              value: "dictKey"
+            },
+            dicData: []
+          },
           {
             label: "所属辖区",
             prop: "jurname",
@@ -145,6 +160,17 @@
         }
       });
     },
+    getDictionaryList() {
+      dictionaryList().then(res => {
+        if (res.data.code === 200) {
+          this.tableOption.column.forEach(item => {
+            if (item.label == "单位类型") {
+              item.dicData = res.data.data;
+            }
+          });
+        }
+      });
+    },
     searchChange(params, done) {
       this.query = params;
       this.page.currentPage = 1;
@@ -158,9 +184,11 @@
     },
     currentChange(currentPage) {
       this.page.currentPage = currentPage;
+      this.onLoad(this.page, this.query);
     },
     sizeChange(pageSize) {
       this.page.pageSize = pageSize;
+      this.onLoad(this.page, this.query);
     },
     refreshChange() {
       this.onLoad(this.page, this.query);
@@ -168,8 +196,9 @@
     onLoad(page, params = {}) {
       this.loading = true;
       let param = {};
-      param["jurisdiction"] = params["jurname"] ? params["jurname"] : "";
-      param["deptid"] = "";
+      param["jurisdiction"] = params["jurname"] || "";
+      param["deptid"] = params["enterpriseName"] || "";
+      param["stats"] = params["stats"] || "";
       param["current"] = page.currentPage;
       param["size"] = page.pageSize;
       selectYw(param).then(res => {
@@ -182,13 +211,15 @@
     handleRowClick(row, column, cell, event) {
       if (column.label == "服务对象数量") {
         this.$router.push({
-          path: "/statisticalQueryManagement/businessStatisticsDetail"
+          path:
+            "/statisticalQueryManagement/businessStatisticsDetail?&departmentid=" +
+            row.departmentid
         });
       } else if (column.label == "保安员人数") {
         this.$router.push({
           path:
-            "/statisticalQueryManagement/securityGuardDetail?enterpriseName=" +
-            row.enterpriseName
+            "/statisticalQueryManagement/securityGuardDetail?departmentid=" +
+            row.departmentid
         });
       }
     },
@@ -199,6 +230,7 @@
   },
   mounted() {
     this.getSubOfficeData();
+    this.getDictionaryList();
   }
 };
 </script>

--
Gitblit v1.9.3