liuyg
2021-09-23 6c795d91013e54eea0e553cd4cdf8745c2a9909b
src/views/system/user.vue
@@ -193,6 +193,7 @@
  add,
  grant,
  resetPassword,
  getJurisdiction,
} from "@/api/system/user";
import { getDeptTree, getDeptLazyTree } from "@/api/system/dept";
import { getRoleTree } from "@/api/system/role";
@@ -220,8 +221,7 @@
      }
    };
    return {
      form: {
      },
      form: {},
      search: {},
      roleBox: false,
      excelBox: false,
@@ -415,7 +415,7 @@
              {
                label: "密码",
                prop: "password",
                type:'password',
                type: "password",
                hide: true,
                editDisplay: false,
                viewDisplay: false,
@@ -426,7 +426,7 @@
              {
                label: "确认密码",
                prop: "password2",
                type:'password',
                type: "password",
                hide: true,
                editDisplay: false,
                viewDisplay: false,
@@ -794,6 +794,18 @@
      row.deptId = row.deptId;
      row.roleId = row.roleId.join(",");
      row.postId = row.postId.join(",");
      console.log(row, "row");
      var params = {
        deptname: row.$deptId,
      };
      getJurisdiction(params).then((res) => {
        // console.log(res.data.data);
        // return;
        if (res.msg != "暂无承载数据") {
          row.jurisdiction = res.data.data;
        } else {
          row.jurisdiction = "";
        }
      add(row).then(
        () => {
          this.initFlag = false;
@@ -809,6 +821,8 @@
          loading();
        }
      );
      });
      // return;
    },
    rowUpdate(row, index, done, loading) {
      row.deptId = row.deptId;
@@ -985,7 +999,7 @@
    },
    onLoad(page, params = {}) {
      this.loading = true;
      params['status'] = 1;
      params["status"] = 1;
      getList(
        page.currentPage,
        page.pageSize,