Administrator
2022-01-12 4d17a8f6954964d70062ac86f9ec039df8413a8d
tree 测试修改
1 files modified
15 ■■■■■ changed files
src/views/securityUnit/localCompany.vue 15 ●●●●● patch | view | raw | blame | history
src/views/securityUnit/localCompany.vue
@@ -96,6 +96,7 @@
  remove,
} from "@/api/securityUnit/securityUnit";
import { mapGetters } from "vuex";
import { getJurisdictionTree } from "@/api/jurisdiction/jurisdiction";
export default {
  data() {
    return {
@@ -205,6 +206,8 @@
            labelWidth: 145,
            type: "tree",
            dicUrl: "/api/jurisdiction/lazy-trees",
            // dicData:[],
            // nodeKey: "id",
            props: {
              label: "title",
              value: "id",
@@ -388,6 +391,7 @@
      column.editDisabled = false;
      column.addDisabled = false;
    }
    // this.getJurisdictionTree();
  },
  computed: {
    ...mapGetters(["userInfo"]),
@@ -400,6 +404,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",