|
@@ -15,6 +15,10 @@ import type {
|
|
|
DeviceParams,
|
|
|
DevicesList,
|
|
|
DevicesListItemData,
|
|
|
+ DeviceTypeCount,
|
|
|
+ DevWorkHisDataQuery,
|
|
|
+ DevWorkHistoryData,
|
|
|
+ DevWorkRealTimeData,
|
|
|
DictTypeData,
|
|
|
DictTypeDataParams,
|
|
|
EquipmentDetailsItem,
|
|
@@ -268,6 +272,37 @@ export const getDeviceListSimple = async (deviceId: number) => {
|
|
|
return data;
|
|
|
};
|
|
|
|
|
|
+// 设备工况
|
|
|
+
|
|
|
+export const getDevWorkTypeCount = async (deviceGroupId: number) => {
|
|
|
+ const data = await request<DeviceTypeCount[]>(apiBiz('/deviceCondition/getTypeCount', { deviceGroupId }), {
|
|
|
+ method: 'POST',
|
|
|
+ });
|
|
|
+
|
|
|
+ return data;
|
|
|
+};
|
|
|
+
|
|
|
+export const getDevWorkRealTimeData = async (deviceIds: number[], deviceParamCode: string[]) => {
|
|
|
+ const data = await request<DevWorkRealTimeData[]>(apiBiz('/deviceCondition/getRTDList'), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify({
|
|
|
+ deviceIds,
|
|
|
+ deviceParamCode,
|
|
|
+ }),
|
|
|
+ });
|
|
|
+
|
|
|
+ return data;
|
|
|
+};
|
|
|
+
|
|
|
+export const getDevWorkHistoryData = async (params: DevWorkHisDataQuery) => {
|
|
|
+ const data = await request<DevWorkHistoryData[]>(apiBiz('/deviceCondition/getHisList'), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify(params),
|
|
|
+ });
|
|
|
+
|
|
|
+ return data;
|
|
|
+};
|
|
|
+
|
|
|
// 设备网关
|
|
|
|
|
|
export const deviceGatewayUpdate = async (equipmentUpdateForm: EquipmentUpdateForm[]) => {
|