diff --git a/apps/web-antd/src/api-client/schemas.gen.ts b/apps/web-antd/src/api-client/schemas.gen.ts index 41f995b..b90e3df 100644 --- a/apps/web-antd/src/api-client/schemas.gen.ts +++ b/apps/web-antd/src/api-client/schemas.gen.ts @@ -8623,6 +8623,9 @@ export const PageDeviceInputSchema = { lifeInfo: { '$ref': '#/components/schemas/DeviceLifeTypeEnum' }, + deviceOnlineStatus: { + '$ref': '#/components/schemas/DeviceOnlineStatus' + }, addressList: { type: 'array', items: { diff --git a/apps/web-antd/src/api-client/types.gen.ts b/apps/web-antd/src/api-client/types.gen.ts index 3cb2ddb..d001e6a 100644 --- a/apps/web-antd/src/api-client/types.gen.ts +++ b/apps/web-antd/src/api-client/types.gen.ts @@ -4826,6 +4826,7 @@ export type PageDeviceInput = { searchKeyword?: (string) | null; deviceSourceType?: DeviceSourceTypeEnum; lifeInfo?: DeviceLifeTypeEnum; + deviceOnlineStatus?: DeviceOnlineStatus; /** * 设备地址列表(批量查询) */ @@ -8553,6 +8554,7 @@ export type GetOneNetServiceReceiveCiphertextDataChangeError = unknown; export type GetOneNetServiceCheckLocalMemroyData = { query?: { key?: string; + productId?: string; }; }; diff --git a/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts b/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts index c7da8a8..efade3c 100644 --- a/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts +++ b/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts @@ -118,6 +118,68 @@ export const querySchema = computed(() => [ }; }, }, + { + component: 'ApiSelect', + fieldName: 'deviceOnlineStatus', + label: '在线状态', + componentProps: { + api: getCommonGetSelectList, + params: { + query: { + typeName: 'DeviceOnlineStatus', + }, + }, + labelField: 'value', + valueField: 'key', + optionsPropName: 'options', + immediate: true, + allowClear: true, + placeholder: '请选择在线状态', + afterFetch: (res: any) => { + if (Array.isArray(res)) { + return res; + } + if (res && Array.isArray(res.items)) { + return res.items; + } + if (res && Array.isArray(res.data)) { + return res.data; + } + return []; + }, + }, + }, + { + component: 'ApiSelect', + fieldName: 'lifeInfo', + label: '生命周期', + componentProps: { + api: getCommonGetSelectList, + params: { + query: { + typeName: 'DeviceLifeTypeEnum', + }, + }, + labelField: 'value', + valueField: 'key', + optionsPropName: 'options', + immediate: true, + allowClear: true, + placeholder: '请选择生命周期', + afterFetch: (res: any) => { + if (Array.isArray(res)) { + return res; + } + if (res && Array.isArray(res.items)) { + return res.items; + } + if (res && Array.isArray(res.data)) { + return res.data; + } + return []; + }, + }, + }, { component: 'Select', fieldName: 'isPlatformPushSuccess',