设备在线状态查询
This commit is contained in:
parent
61a3e7e594
commit
90e0463306
@ -8623,6 +8623,9 @@ export const PageDeviceInputSchema = {
|
||||
lifeInfo: {
|
||||
'$ref': '#/components/schemas/DeviceLifeTypeEnum'
|
||||
},
|
||||
deviceOnlineStatus: {
|
||||
'$ref': '#/components/schemas/DeviceOnlineStatus'
|
||||
},
|
||||
addressList: {
|
||||
type: 'array',
|
||||
items: {
|
||||
|
||||
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user