forked from github/dataease
fix: 用户列表按状态排序报错
This commit is contained in:
parent
a58c485c6a
commit
94ae241403
@ -309,8 +309,16 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
sortChange({ column, prop, order }) {
|
sortChange({ column, prop, order }) {
|
||||||
|
this.orderConditions = []
|
||||||
|
if (!order) {
|
||||||
|
this.search(this.last_condition)
|
||||||
|
return
|
||||||
|
}
|
||||||
if (prop === 'dept') {
|
if (prop === 'dept') {
|
||||||
prop = 'deptId'
|
prop = 'u.deptId'
|
||||||
|
}
|
||||||
|
if (prop === 'status') {
|
||||||
|
prop = 'u.enabled'
|
||||||
}
|
}
|
||||||
this.orderConditions = []
|
this.orderConditions = []
|
||||||
addOrder({ field: prop, value: order }, this.orderConditions)
|
addOrder({ field: prop, value: order }, this.orderConditions)
|
||||||
|
Loading…
Reference in New Issue
Block a user