fix: 修复 userTable 接口传参格式错误问题,修复role 编辑时内容回显问题
This commit is contained in:
@@ -143,14 +143,14 @@ export default {
|
||||
methods: {
|
||||
statusChange (user) {
|
||||
if (user.roles) {
|
||||
user.roleIds = user.roles.map(t => t.id)
|
||||
user.roleIds = user.roles.map(t => t.id).join(',')
|
||||
}
|
||||
// if (!user.id){
|
||||
// return
|
||||
// }
|
||||
put('sys/user', user).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.rightBox.show = false
|
||||
// this.rightBox.show = false
|
||||
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
|
||||
} else {
|
||||
this.$message.error(response.msg)
|
||||
|
||||
Reference in New Issue
Block a user