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();
        // 获取当前用户角色列表
@@ -83,7 +83,7 @@
        // 修改用户信息
        handleUser() {
            const { flag, user, tempName, selectOrg, tempRole, isArraySame } = this;
            let umsDepartManage={userId:user.id,departId:selectOrg.orgsid[0]}
            let umsDepartManage = { userId: user.id, departId: selectOrg.orgsid[0] }
            this.$refs.user.validate((valid) => {
                if (valid) {
                    user.isDy = `${user.isDy}`;
@@ -97,7 +97,7 @@
                            if (user.departName) {
                                this.$axios({
                                    method: 'put',
                                    url: `/sccg/depart/user_update_depart?userId=`+user.id+'&departId='+selectOrg.orgsid[0]
                                    url: `/sccg/depart/user_update_depart?userId=` + user.id + '&departId=' + selectOrg.orgsid[0]
                                })
                                    .then(res => {
                                        this.$message({
@@ -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);