From 2c461eb9efb980d55dfd7407ee70088fc90a4a7a Mon Sep 17 00:00:00 2001
From: 钟日健 <5689795+arsn@user.noreply.gitee.com>
Date: Tue, 08 Feb 2022 14:24:31 +0800
Subject: [PATCH] 保安员详情修改

---
 src/views/securityUnit/localCompany.vue |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/src/views/securityUnit/localCompany.vue b/src/views/securityUnit/localCompany.vue
index 86bfc63..98f35dd 100644
--- a/src/views/securityUnit/localCompany.vue
+++ b/src/views/securityUnit/localCompany.vue
@@ -96,6 +96,8 @@
   remove,
 } from "@/api/securityUnit/securityUnit";
 import { mapGetters } from "vuex";
+import { getJurisdictionTree } from "@/api/jurisdiction/jurisdiction";
+import { getToken } from "@/util/auth";
 export default {
   data() {
     return {
@@ -205,6 +207,8 @@
             labelWidth: 145,
             type: "tree",
             dicUrl: "/api/jurisdiction/lazy-trees",
+            // dicData:[],
+            // nodeKey: "id",
             props: {
               label: "title",
               value: "id",
@@ -388,6 +392,7 @@
       column.editDisabled = false;
       column.addDisabled = false;
     }
+    // this.getJurisdictionTree();
   },
   computed: {
     ...mapGetters(["userInfo"]),
@@ -400,6 +405,17 @@
     },
   },
   methods: {
+    //获取辖区数据
+    getJurisdictionTree() {
+      getJurisdictionTree().then((res) => {
+        const column = this.findObject(this.option.column, "jurisdiction");
+        column.dicData = res.data.data;
+        column.defaultExpandedKeys = [];
+        res.data.data.forEach((item) => {
+          column.defaultExpandedKeys.push(item.id);
+        });
+      });
+    },
     rowClickSelf(val) {
       this.$router.push({
         path: "/securityGuardOnce/index",
@@ -416,7 +432,10 @@
       done();
     },
     handleTemplate1() {
-      window.open(`/api/examSubjectChoices/export-template`);
+      window.open(`/api/examSubjectChoices/export-template?${
+            this.website.tokenHeader
+          }=${getToken()}&`
+        );
     },
     //保安单位基本信息
     sizeChange(val) {

--
Gitblit v1.9.3