diff --git a/nezha-fronted/src/components/common/table/settings/operationLogTable.vue b/nezha-fronted/src/components/common/table/settings/operationLogTable.vue index c1a22c3c7..ebf8c2df4 100644 --- a/nezha-fronted/src/components/common/table/settings/operationLogTable.vue +++ b/nezha-fronted/src/components/common/table/settings/operationLogTable.vue @@ -25,6 +25,7 @@ :min-width="`${item.minWidth}`" :prop="item.prop" :resizable="true" + :sortable="item.sortable" :sort-orders="['ascending', 'descending']" :width="`${item.width}`" class="data-column" @@ -59,12 +60,14 @@ export default { label: this.$t('config.operationlog.id'), prop: 'id', show: true, - width: 80 + width: 80, + sortable: 'custom' }, { label: this.$t('config.operationlog.username'), prop: 'username', show: true, - minWidth: 80 + minWidth: 80, + sortable: 'custom' }, { label: this.$t('config.operationlog.ip'), @@ -76,13 +79,15 @@ export default { label: this.$t('config.operationlog.operation'), prop: 'operation', show: true, - minWidth: 140 + minWidth: 140, + sortable: 'custom' }, { label: this.$t('config.operationlog.type'), prop: 'type', show: true, - minWidth: 80 + minWidth: 80, + sortable: 'custom' }, { label: this.$t('config.operationlog.state'), diff --git a/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue b/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue index d7bbb4a5c..e8a8fd8a2 100644 --- a/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue +++ b/nezha-fronted/src/components/common/table/settings/terminalLogTable.vue @@ -25,6 +25,7 @@ :min-width="`${item.minWidth}`" :prop="item.prop" :resizable="true" + :sortable="item.sortable" :sort-orders="['ascending', 'descending']" :width="`${item.width}`" class="data-column" @@ -35,7 +36,7 @@