字典判重复,用户排序显示

This commit is contained in:
2022-12-02 18:02:18 +08:00
parent c22a8545ee
commit b59abc4263
5 changed files with 13 additions and 2 deletions

View File

@@ -285,7 +285,7 @@ export default {
}).then(() => {
crudDept.edit(data).then(res => {
this.crud.notify(this.dict.label.dept_status[val] + '成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
// this.crud.toQuery()
this.crud.toQuery()
}).catch(err => {
data.enabled = !data.enabled
console.log(err.response.data.message)

View File

@@ -269,7 +269,7 @@ export default {
return CRUD({
title: '用户',
url: 'api/users',
sort: ['deptId', 'nickName', 'username'],
sort: ['deptId', 'username'],
crudMethod: { ...crudUser }
})
},