问题管理-表头排序(问题优先级)

This commit is contained in:
zhn
2024-01-16 15:34:27 +08:00
parent 7a969015cc
commit be3c193e03
3 changed files with 41 additions and 3 deletions
@@ -301,6 +301,7 @@
align: 'left',
dataIndex: 'problemPriority_dictText',
width: 120,
sorter:true,
ellipsis: true,
},
{
@@ -432,7 +433,12 @@
},
tableOnChange(pagination, filters, sorter) {
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
this.orderByField = sorter.columnKey
if (sorter.columnKey == 'problemPriority_dictText'){
this.orderByField = 'problemPriority'
}else{
this.orderByField = sorter.columnKey
}
this.getList()
},
getList() {