钟日健
2022-02-08 2c461eb9efb980d55dfd7407ee70088fc90a4a7a
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) {