提交 94ae2414 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

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

上级 a58c485c
...@@ -309,8 +309,16 @@ export default { ...@@ -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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论