fix: 用户列表按状态排序报错

This commit is contained in:
fit2cloud-chenyw 2021-06-02 16:36:36 +08:00
parent a58c485c6a
commit 94ae241403

View File

@ -309,8 +309,16 @@ export default {
methods: {
sortChange({ column, prop, order }) {
this.orderConditions = []
if (!order) {
this.search(this.last_condition)
return
}
if (prop === 'dept') {
prop = 'deptId'
prop = 'u.deptId'
}
if (prop === 'status') {
prop = 'u.enabled'
}
this.orderConditions = []
addOrder({ field: prop, value: order }, this.orderConditions)