Commit 058c3a3b3cd396aad5403f87acaacfa5ac43ef9d
Committed by
xp.Huang
1 parent
f9039217
fix: 设备历史数据查询时,查询为升序,分页正常显示
Showing
4 changed files
with
9 additions
and
4 deletions
| @@ -2,7 +2,7 @@ export default { | @@ -2,7 +2,7 @@ export default { | ||
| 2 | search: { | 2 | search: { |
| 3 | entityType: '资源类型', | 3 | entityType: '资源类型', |
| 4 | actionType: '操作类型', | 4 | actionType: '操作类型', |
| 5 | - time: '@:common.createText 时间', | 5 | + time: '创建时间', |
| 6 | }, | 6 | }, |
| 7 | operationalData: '操作数据', | 7 | operationalData: '操作数据', |
| 8 | failureInformation: '失败信息', | 8 | failureInformation: '失败信息', |
| @@ -2,7 +2,7 @@ export default { | @@ -2,7 +2,7 @@ export default { | ||
| 2 | search: { | 2 | search: { |
| 3 | entityType: '资源类型', | 3 | entityType: '资源类型', |
| 4 | actionType: '操作类型', | 4 | actionType: '操作类型', |
| 5 | - time: '@:common.createText 时间', | 5 | + time: '创建时间', |
| 6 | }, | 6 | }, |
| 7 | operationalData: '操作数据', | 7 | operationalData: '操作数据', |
| 8 | failureInformation: '失败信息', | 8 | failureInformation: '失败信息', |
| @@ -2,7 +2,7 @@ export default { | @@ -2,7 +2,7 @@ export default { | ||
| 2 | search: { | 2 | search: { |
| 3 | entityType: '资源类型', | 3 | entityType: '资源类型', |
| 4 | actionType: '操作类型', | 4 | actionType: '操作类型', |
| 5 | - time: '@:common.createText 时间', | 5 | + time: '创建时间', |
| 6 | }, | 6 | }, |
| 7 | operationalData: '操作数据', | 7 | operationalData: '操作数据', |
| 8 | failureInformation: '失败信息', | 8 | failureInformation: '失败信息', |
| @@ -122,7 +122,7 @@ | @@ -122,7 +122,7 @@ | ||
| 122 | loading.value = false; | 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 | sortOrder.value = sorter.order; | 126 | sortOrder.value = sorter.order; |
| 127 | await setColumns(unref(columns)); | 127 | await setColumns(unref(columns)); |
| 128 | if (sorter.field == 'ts') { | 128 | if (sorter.field == 'ts') { |
| @@ -132,6 +132,11 @@ | @@ -132,6 +132,11 @@ | ||
| 132 | getTableList(OrderByEnum.ASC); | 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 | const { setOptions, getInstance } = useECharts(chartRef as Ref<HTMLDivElement>); | 142 | const { setOptions, getInstance } = useECharts(chartRef as Ref<HTMLDivElement>); |