Commit 058c3a3b3cd396aad5403f87acaacfa5ac43ef9d

Authored by fengtao
Committed by xp.Huang
1 parent f9039217

fix: 设备历史数据查询时,查询为升序,分页正常显示

... ... @@ -2,7 +2,7 @@ export default {
2 2 search: {
3 3 entityType: '资源类型',
4 4 actionType: '操作类型',
5   - time: '@:common.createText 时间',
  5 + time: '创建时间',
6 6 },
7 7 operationalData: '操作数据',
8 8 failureInformation: '失败信息',
... ...
... ... @@ -2,7 +2,7 @@ export default {
2 2 search: {
3 3 entityType: '资源类型',
4 4 actionType: '操作类型',
5   - time: '@:common.createText 时间',
  5 + time: '创建时间',
6 6 },
7 7 operationalData: '操作数据',
8 8 failureInformation: '失败信息',
... ...
... ... @@ -2,7 +2,7 @@ export default {
2 2 search: {
3 3 entityType: '资源类型',
4 4 actionType: '操作类型',
5   - time: '@:common.createText 时间',
  5 + time: '创建时间',
6 6 },
7 7 operationalData: '操作数据',
8 8 failureInformation: '失败信息',
... ...
... ... @@ -122,7 +122,7 @@
122 122 loading.value = false;
123 123 };
124 124
125   - const handleTableChange = async (_pag, _filters, sorter: SorterResult) => {
  125 + const handleTableChange = async (page, _filters, sorter: SorterResult) => {
126 126 sortOrder.value = sorter.order;
127 127 await setColumns(unref(columns));
128 128 if (sorter.field == 'ts') {
... ... @@ -132,6 +132,11 @@
132 132 getTableList(OrderByEnum.ASC);
133 133 }
134 134 }
  135 + if (page.current >= 1) {
  136 + const value = method.getFieldsValue();
  137 + const { orderBy } = getSearchParams(value);
  138 + getTableList(orderBy as OrderByEnum);
  139 + }
135 140 };
136 141
137 142 const { setOptions, getInstance } = useECharts(chartRef as Ref<HTMLDivElement>);
... ...