Commit d4990ebb32b2fa130bcd88b26e6847a3730ad273

Authored by ww
1 parent e55dbbf8

fix: 修复边缘事件排序

1   -import { BaseQueryParams } from '../../base';
2 1 import {
3 2 Configuration,
4 3 ProvisionConfiguration,
... ... @@ -6,10 +5,14 @@ import {
6 5 } from '../../device/model/deviceModel';
7 6 import { ModelOfMatterParams } from '../../device/model/modelOfMatterModel';
8 7
9   -export type QueryEdgeInstancePageParams = BaseQueryParams & {
  8 +export type QueryEdgeInstancePageParams = {
10 9 name?: string;
11 10 tenantId?: string;
12 11 textSearch?: string;
  12 + page: number;
  13 + pageSize: number;
  14 + sortOrder?: string;
  15 + sortProperty?: string;
13 16 };
14 17
15 18 export interface EdgeInstanceItemType {
... ...
... ... @@ -24,6 +24,8 @@
24 24 page: page - 1 < 0 ? 0 : page - 1,
25 25 pageSize,
26 26 tenantId: props?.recordData?.tenantId?.id,
  27 + sortOrder: 'DESC',
  28 + sortProperty: 'ts',
27 29 },
28 30 props?.recordData?.id?.id
29 31 );
... ...