From 75d21602bf5fb8f77f80a62342a2492f2f430869 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 16 Sep 2021 09:40:43 +0800
Subject: [PATCH] 所属辖区调整

---
 src/views/securityCompany/security.vue       |    2 
 src/views/securityCompany/column.js          |    2 
 src/views/securityCompany/companyDetails.vue |   58 ++++++++++++++--------------
 3 files changed, 31 insertions(+), 31 deletions(-)

diff --git a/src/views/securityCompany/column.js b/src/views/securityCompany/column.js
index 9761a83..3fdaa01 100644
--- a/src/views/securityCompany/column.js
+++ b/src/views/securityCompany/column.js
@@ -137,7 +137,7 @@
     },
     {
         label: "所属辖区",
-        prop: "region",
+        prop: "jurisdiction",
         labelWidth: 160,
         // width: 110,
         type: "tree",
diff --git a/src/views/securityCompany/companyDetails.vue b/src/views/securityCompany/companyDetails.vue
index 9bb460d..3287df5 100644
--- a/src/views/securityCompany/companyDetails.vue
+++ b/src/views/securityCompany/companyDetails.vue
@@ -2,7 +2,7 @@
  * @Author: Morpheus
  * @Date: 2021-07-05 16:31:54
  * @Last Modified by: liu
- * @Last Modified time: 2021-09-13 20:55:12
+ * @Last Modified time: 2021-09-14 15:22:25
  * menu-name 保安公司详细资料
  */
 <template>
@@ -109,7 +109,7 @@
                     <el-form-item label="所属辖区">
                       <el-input
                         disabled="true"
-                        v-model="form.region"
+                        v-model="form.$jurisdiction"
                         autocomplete="off"
                       ></el-input>
                     </el-form-item>
@@ -551,35 +551,35 @@
       this.form = this.$route.query;
       // console.log(this.form, "obj1");
     }
-    usejurisdiction().then((res) => {
-      const data = res.data.data;
-      console.log(data);
-      let d = this.inspects(data, this.form.region);
-      this.form.region = d;
-    });
+    // usejurisdiction().then((res) => {
+    //   const data = res.data.data;
+    //   console.log(data);
+    //   let d = this.inspects(data, this.form.region);
+    //   this.form.region = d;
+    // });
   },
   methods: {
-    inspects(d, val) {
-      var a = "";
-      var doit = (d, val) => {
-        for (let k in d) {
-          if (d[k].key == val) {
-            a = d[k].title;
-            break;
-          } else {
-            if (d[k].hasChildren) {
-              doit(d[k].children, val);
-            } else {
-            }
-          }
-        }
-      };
-      doit(d, val);
-      // if (a == "") {
-      //   a = val;
-      // }
-      return a;
-    },
+    // inspects(d, val) {
+    //   var a = "";
+    //   var doit = (d, val) => {
+    //     for (let k in d) {
+    //       if (d[k].key == val) {
+    //         a = d[k].title;
+    //         break;
+    //       } else {
+    //         if (d[k].hasChildren) {
+    //           doit(d[k].children, val);
+    //         } else {
+    //         }
+    //       }
+    //     }
+    //   };
+    //   doit(d, val);
+    //   // if (a == "") {
+    //   //   a = val;
+    //   // }
+    //   return a;
+    // },
     handleClick(tab) {
       if (tab.index == 1) {
         this.investorSearchReset();
diff --git a/src/views/securityCompany/security.vue b/src/views/securityCompany/security.vue
index 200eaac..7ccc517 100644
--- a/src/views/securityCompany/security.vue
+++ b/src/views/securityCompany/security.vue
@@ -419,7 +419,7 @@
       // delete (row["name"]);
       var obj = row;
       obj["name"] = "保安公司详细信息";
-      console.log(obj, "obj");
+      // console.log(obj, "obj");
       this.$router.push({
         path: `/securityCompany/index`,
         query: obj,

--
Gitblit v1.9.3