wl
2022-12-21 61ce61386bbb5ac886fb1f577b1acd2d7a4fb0df
src/views/systemSetting/baseSetting/user/components/updateUser/index.vue
@@ -60,8 +60,8 @@
    },
    created() {
        this.user = JSON.parse(JSON.stringify(this.userInfo));
        this.tempName = this.user.departName;
        this.selectOrg.orgsid.push(this.user.departmentId);
        this.tempName = this.user.depart[0].departName;
        this.selectOrg.orgsid.push(this.user.depart[0].id);
        // 获取所有角色列表
        this.getRoleList();
        // 获取当前用户角色列表
@@ -175,7 +175,6 @@
        },
        // 部门修改
        handleCheck(data, checked) {
            console.log(this.selectOrg.orgsid[0])
            this.user.departName = data.departName;
            // 获取当前选择的id在数组中的索引
            const indexs = this.selectOrg.orgsid.indexOf(data.id);