fix:NEZ-621 以及 修改endpoint 导出导入相关

This commit is contained in:
zhangyu
2021-05-12 17:45:48 +08:00
parent ba5dae7172
commit 613e65ca7b
6 changed files with 43 additions and 15 deletions

View File

@@ -64,10 +64,12 @@ export default {
name: '',
username: '',
email: '',
pin: '',
pinChange: '',
status: '1',
createTime: '',
receiver: [],
roleIds: 0,
roleIds: '',
roles: [],
lang: '',
notifications: []
@@ -99,7 +101,32 @@ export default {
}
this.getTableData()
})
}
},
edit (u) {
this.$get(`${this.url}/${u.id}`).then(response => {
console.log(response)
const user = response.user
if (response.code === 200) {
this.object = {
id: user.id,
name: user.name,
username: user.username,
email: user.email,
status: user.status + '',
createAt: this.utcTimeToTimezoneStr(user.createAt),
receiver: user.receiver,
roleIds: Number(user.roles.map(item => item.id).join(',')),
roles: user.roles,
lang: user.lang,
notifications: user.notifications,
pin: '',
pinChange: ''
}
console.log(this.object);
this.rightBox.show = true
}
})
},
},
computed: {
isCurrentUser () {