src/views/system/user copy.vue
@@ -196,7 +196,7 @@
  grant,
  resetPassword,
  getJurisdiction,
  getJurisdictionDetail
  getJurisdictionDetail,
} from "@/api/system/user";
import { getDeptTree, getDeptLazyTree } from "@/api/system/dept";
import { getRoleTree } from "@/api/system/role";
@@ -244,11 +244,13 @@
        pageSize: 10,
        currentPage: 1,
        total: 0,
        ...this.$store.state.control.changePageSize,
      },
      platformPage: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
        ...this.$store.state.control.changePageSize,
      },
      init: {
        roleTree: [],
@@ -322,6 +324,7 @@
        viewBtn: true,
        //dialogType: 'drawer',
        dialogClickModal: false,
        ...this.$store.state.control.clearOtherBut,
        column: [
          {
            label: "登录账号",
@@ -997,16 +1000,16 @@
        }
        // getJurisdictionDetail(this.userInfo.jurisdiction).then((res)=>{
          //     console.log(res.data.data,123);
          // })
          var parentId = this.userInfo.dept_id;
          if (parentId == "1123598813738675201") {
            parentId = 0;
          }
          getDeptLazyTree(parentId).then((res) => {
            const column = this.findObject(this.option.group, "deptId");
            column.dicData = res.data.data;
          });
        //     console.log(res.data.data,123);
        // })
        var parentId = this.userInfo.dept_id;
        if (parentId == "1123598813738675201") {
          parentId = 0;
        }
        getDeptLazyTree(parentId).then((res) => {
          const column = this.findObject(this.option.group, "deptId");
          column.dicData = res.data.data;
        });
        getUser(this.form.id).then((res) => {
          this.form = res.data.data;
@@ -1028,13 +1031,13 @@
        }
        var parentId1 = this.userInfo.dept_id;
          if (parentId1 == "1123598813738675201") {
            parentId = 0;
          }
        if (parentId1 == "1123598813738675201") {
          parentId = 0;
        }
        getDeptLazyTree(parentId1).then((res) => {
            const column = this.findObject(this.option.group, "deptId");
            column.dicData = res.data.data;
          });
          const column = this.findObject(this.option.group, "deptId");
          column.dicData = res.data.data;
        });
      }
      this.initFlag = true;
      done();