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/securityGuardStatistics.vue |   49 +++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 45 insertions(+), 4 deletions(-)

diff --git a/src/views/statisticalQueryManagement/securityGuardStatistics.vue b/src/views/statisticalQueryManagement/securityGuardStatistics.vue
index 07c9f6a..7bb6353 100644
--- a/src/views/statisticalQueryManagement/securityGuardStatistics.vue
+++ b/src/views/statisticalQueryManagement/securityGuardStatistics.vue
@@ -23,7 +23,10 @@
 import FileSaver from "file-saver";
 import XLSX from "xlsx";
 import { mapGetters } from "vuex";
-import { selectLi } from "../../api/statisticalQueryManagement/statisticalQueryManagement";
+import {
+  selectLi,
+  dictionaryList
+} from "../../api/statisticalQueryManagement/statisticalQueryManagement";
 import { lazyTreeJu } from "../../api/index/index";
 export default {
   name: "业务情况统计",
@@ -100,13 +103,27 @@
             prop: "deptname",
             search: true,
             searchSpan: 4,
+            width: 300,
             display: false
+          },
+          {
+            label: "单位类型",
+            prop: "stats",
+            search: true,
+            searchSpan: 4,
+            display: false,
+            type: "select",
+            props: {
+              label: "dictValue",
+              value: "dictKey"
+            },
+            dicData: []
           },
           {
             label: "所属辖区",
             prop: "jurname",
             searchSpan: 4,
-            type: "select",
+            type: "tree",
             props: {
               label: "title",
               value: "value"
@@ -207,11 +224,33 @@
         if (res.data.code === 200) {
           this.tableOption.column.forEach(item => {
             if (item.label == "所属辖区") {
+              // let data = res.data.data;
               item.dicData = res.data.data;
             }
           });
         } else {
           this.$message.error(res.msg);
+        }
+      });
+    },
+    // searchChildren(data) {
+    //   data.forEach(item => {
+    //     if(item.hasChildren)(
+
+    //     )
+    //     else {
+    //       this.searchChildren()
+    //     }
+    //   });
+    // },
+    getDictionaryList() {
+      dictionaryList().then(res => {
+        if (res.data.code === 200) {
+          this.tableOption.column.forEach(item => {
+            if (item.label == "单位类型") {
+              item.dicData = res.data.data;
+            }
+          });
         }
       });
     },
@@ -228,11 +267,11 @@
     },
     currentChange(currentPage) {
       this.page.currentPage = currentPage;
-      this.onLoad(this.page, this.query)
+      this.onLoad(this.page, this.query);
     },
     sizeChange(pageSize) {
       this.page.pageSize = pageSize;
-      this.onLoad(this.page, this.query)
+      this.onLoad(this.page, this.query);
     },
     refreshChange() {
       this.onLoad(this.page, this.query);
@@ -242,6 +281,7 @@
       let param = {};
       param["jurisdiction"] = params["jurname"] || "";
       param["deptid"] = params["deptname"] || "";
+      param["stats"] = params["stats"] || "";
       param["current"] = page.currentPage;
       param["size"] = page.pageSize;
       selectLi(param).then(res => {
@@ -259,6 +299,7 @@
   },
   mounted() {
     this.getSubOfficeData();
+    this.getDictionaryList();
   }
 };
 </script>

--
Gitblit v1.9.3