| | |
| | | }, |
| | | 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(); |
| | | // 获取当前用户角色列表 |
| | |
| | | // 修改用户信息 |
| | | 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}`; |
| | |
| | | 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({ |
| | |
| | | } |
| | | 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({ |
| | |
| | | <style lang="scss" scoped> |
| | | .updateUser { |
| | | border-radius: 1px; |
| | | background-color: #09152f; |
| | | // background-color: #09152f; |
| | | |
| | | :deep(.el-tag) { |
| | | background-color: #09152f; |
| | | } |
| | | // :deep(.el-tag) { |
| | | // background-color: #09152f; |
| | | // } |
| | | |
| | | .el-select-dropdown.is-multiple .el-select-dropdown__item.selected { |
| | | background-color: #09152f; |
| | | color: #4b9bb7; |
| | | } |
| | | // .el-select-dropdown.is-multiple .el-select-dropdown__item.selected { |
| | | // background-color: #09152f; |
| | | // color: #4b9bb7; |
| | | // } |
| | | |
| | | main { |
| | | text-align: left; |
| | | padding: 0 55px; |
| | | background-color: #09152f; |
| | | // background-color: #09152f; |
| | | padding-bottom: 50px; |
| | | |
| | | .mainContent { |
| | |
| | | } |
| | | } |
| | | |
| | | .updateUser::v-deep .el-form-item__label { |
| | | color: #4b9bb7; |
| | | } |
| | | // .updateUser::v-deep .el-form-item__label { |
| | | // color: #4b9bb7; |
| | | // } |
| | | |
| | | .updateUser::v-deep .el-input__inner { |
| | | background-color: #09152f; |
| | | border: 1px solid #17324c; |
| | | } |
| | | // .updateUser::v-deep .el-input__inner { |
| | | // background-color: #09152f; |
| | | // border: 1px solid #17324c; |
| | | // } |
| | | </style> |