diff --git a/oms_web/oms_vue/src/views/approve/all/index.vue b/oms_web/oms_vue/src/views/approve/all/index.vue
index e065f1c3..cda05b55 100644
--- a/oms_web/oms_vue/src/views/approve/all/index.vue
+++ b/oms_web/oms_vue/src/views/approve/all/index.vue
@@ -70,12 +70,12 @@
-
+
-
+
{{ scope.row.processTitle }}
@@ -85,7 +85,7 @@
-
+
{{ formatAmount(scope.row.totalAmount) }}
@@ -685,11 +685,18 @@ export default {
approveStatus: statusMap[this.activeTab],
pageNum: 1,
pageSize: this.searchParams.pageSize,
- orderByColumn: 'startTime',
- isAsc: 'desc'
+ orderByColumn: this.searchParams.orderByColumn,
+ isAsc: this.searchParams.isAsc
}
this.getList()
},
+ handleSortChange({ column, prop, order }) {
+ if (prop === 'startTime') {
+ this.searchParams.orderByColumn = 'startTime'
+ this.searchParams.isAsc = order === 'ascending' ? 'asc' : 'desc'
+ this.getList()
+ }
+ },
getApproveTypeLabel(value) {
if (!value) return '-'
const item = (this.dict.type.approve_type || []).find(d => d.value == value)