...
|
...
|
@@ -14,7 +14,7 @@ |
14
|
14
|
import { ColEx } from '/@/components/Form/src/types';
|
15
|
15
|
import { useHistoryData } from '../../hook/useHistoryData';
|
16
|
16
|
import { formatToDateTime } from '/@/utils/dateUtil';
|
17
|
|
- import { useTable, BasicTable, BasicColumn } from '/@/components/Table';
|
|
17
|
+ import { useTable, BasicTable, BasicColumn, SorterResult } from '/@/components/Table';
|
18
|
18
|
import {
|
19
|
19
|
ModeSwitchButton,
|
20
|
20
|
TABLE_CHART_MODE_LIST,
|
...
|
...
|
@@ -64,7 +64,7 @@ |
64
|
64
|
}
|
65
|
65
|
|
66
|
66
|
const sortOrder = ref<any>('descend');
|
67
|
|
- const columns: BasicColumn[] | any = computed(() => {
|
|
67
|
+ const columns = computed<BasicColumn[]>(() => {
|
68
|
68
|
return [
|
69
|
69
|
{
|
70
|
70
|
title: '属性',
|
...
|
...
|
@@ -119,7 +119,7 @@ |
119
|
119
|
loading.value = false;
|
120
|
120
|
};
|
121
|
121
|
|
122
|
|
- const handleTableChange = async (_pag, _filters, sorter: any) => {
|
|
122
|
+ const handleTableChange = async (_pag, _filters, sorter: SorterResult) => {
|
123
|
123
|
sortOrder.value = sorter.order;
|
124
|
124
|
await setColumns(unref(columns));
|
125
|
125
|
if (sorter.field == 'ts') {
|
...
|
...
|
|