From 478947a847fb71c054ddb4cf1e2cf3ee83aeee77 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 30 Aug 2021 11:51:22 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_regulatory

---
 src/views/statisticalQueryManagement/businessStatistics.vue |   38 ++++++++++++++++++++++++++++++++------
 1 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/src/views/statisticalQueryManagement/businessStatistics.vue b/src/views/statisticalQueryManagement/businessStatistics.vue
index 1cdfe32..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;
@@ -170,10 +196,9 @@
     onLoad(page, params = {}) {
       this.loading = true;
       let param = {};
-      param["jurisdiction"] = params["jurname"] ? params["jurname"] : "";
-      param["deptid"] = params["enterpriseName"]
-        ? params["enterpriseName"]
-        : "";
+      param["jurisdiction"] = params["jurname"] || "";
+      param["deptid"] = params["enterpriseName"] || "";
+      param["stats"] = params["stats"] || "";
       param["current"] = page.currentPage;
       param["size"] = page.pageSize;
       selectYw(param).then(res => {
@@ -205,6 +230,7 @@
   },
   mounted() {
     this.getSubOfficeData();
+    this.getDictionaryList();
   }
 };
 </script>

--
Gitblit v1.9.3