zhanghua
2022-12-27 dfb5adf5d4dc7971d9ef7c6528c302dc57f871fc
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({
@@ -130,8 +130,8 @@
                        }
                        else {
                            this.$axios({
                                method: 'post',
                                url: 'sccg/admin/role/update?adminId=' + user.id + '&roleIds=' + user.role,
                                method: 'put',
                                url: 'sccg/depart/user_update_Role?id=' + user.id + '&roles=' + user.role,
                            })
                                .then(res => {
                                    this.$message({