NEZ-753 fix: 修复enabled无效的问题

This commit is contained in:
chenjinsong
2021-06-21 16:28:30 +08:00
parent b8e7658600
commit 4d8dd4e7a0
3 changed files with 90 additions and 87 deletions

View File

@@ -140,11 +140,10 @@ 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(',')
}
this.$put(this.url, user).then(response => {
this.$put(this.api, user).then(response => {
if (response.code === 200) {
this.rightBox.show = false
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
} else {
this.$message.error(response.msg)