From b6d9bbb38cc344d1538439750c3db5a4a6b0d79a Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Sun, 22 Aug 2021 17:53:53 +0800
Subject: [PATCH] 首页及表完善

---
 src/views/securityUnitOperation/operationTable.vue |   37 ++++++++++++++++++++++++++-----------
 1 files changed, 26 insertions(+), 11 deletions(-)

diff --git a/src/views/securityUnitOperation/operationTable.vue b/src/views/securityUnitOperation/operationTable.vue
index 0ac115f..a280ff1 100644
--- a/src/views/securityUnitOperation/operationTable.vue
+++ b/src/views/securityUnitOperation/operationTable.vue
@@ -136,7 +136,6 @@
                 label: "缴纳社保保安数"
               }
             ],
-            search: true,
             rules: [
               {
                 required: true,
@@ -154,17 +153,19 @@
           },
           {
             label: "所属辖区",
-            prop: "jurname",
+            prop: "jurisdiction",
             searchSpan: 4,
-            type: "select",
+            // cascaderItem: ["city", "area"],
+            // dicUrl: "/api/information/lazyTreeJu",
+            // dicMethod:'post',
             props: {
               label: "title",
-              value: "value"
+              value: "id"
             },
-            // cascaderItem: ["city", "area"],
-            // dicUrl:subofficeOptions,
-            dicData: this.subOfficeData,
+            dicData: [],
             search: true,
+            // overHidden: true,
+            type: "tree",
             rules: [
               {
                 required: true,
@@ -238,15 +239,29 @@
     getSubOfficeData() {
       lazyTreeJu().then(res => {
         if (res.data.code === 200) {
-          this.subOfficeData = res.data.data;
-          this.subOfficeValue = this.subOfficeData[0].value || "";
+          console.log(res.data, 99)
+
+          this.tableOption.column.forEach(item => {
+
+            if (item.label == "所属辖区") {
+              item.dicData = res.data.data
+            }
+          })
+          // this.subOfficeData = res.data.data;
+          // this.subOfficeValue = this.subOfficeData[0].value || "";
         } else {
           this.$message.error(res.msg);
         }
       });
     },
     getTableData() {
-      selectTb().then(res => {
+      let params = {
+        jurisdiction: "",
+        enterpriseName: "",
+        size: 1,
+        current: 10
+      };
+      selectTb(params).then(res => {
         if (res.data.code === 200) {
           this.tableData = res.data.data;
           this.loading = false;
@@ -274,7 +289,7 @@
     // }
   },
   mounted() {
-    this.getSubOfficeData();
+    this.getSubOfficeData(); 
     this.getTableData();
   }
 };

--
Gitblit v1.9.3