wl
2022-10-27 3c95ff1fcada23113575283542914f31763c13b1
src/views/systemSetting/baseSetting/department/updateUser/index.vue
@@ -129,13 +129,14 @@
    this.checkedList.forEach((e) => {
      this.checkedUser.push(e.userId);
    });
    console.log(this.checkedUser)
    this.$axios({
      method: "get",
      url: "sccg/depart/tree",
    }).then((res) => {
      that.departList = res.data;
    });
    this.getUserList();
    this.getUserList(this.user.id);
    // 获取部门类型
    this.getDepartType();
  },
@@ -191,11 +192,11 @@
    },
    // 获取所有用户信息
    getUserList() {
    getUserList(id) {
      // 获取所有用户信息、用户查询(暂时支持电话号码)
      this.$axios.get(`sccg/admin/list`).then((res) => {
      this.$axios.get(`/sccg/depart/query_surplus_exist_user?id=`+id).then((res) => {
        if (res.code === 200) {
          this.userList = res.data.records;
          this.userList = res.data;
        }
      });
    },