|
@@ -44,6 +44,7 @@ import type {
|
|
DevicesList,
|
|
DevicesList,
|
|
DevicesListItemData,
|
|
DevicesListItemData,
|
|
DeviceTypeCount,
|
|
DeviceTypeCount,
|
|
|
|
+ DevStartStopStatus,
|
|
DevWorkHisDataQuery,
|
|
DevWorkHisDataQuery,
|
|
DevWorkHistoryData,
|
|
DevWorkHistoryData,
|
|
DevWorkRealTimeData,
|
|
DevWorkRealTimeData,
|
|
@@ -1264,12 +1265,13 @@ export const updateGroupModuleInfo = async (params: Partial<GroupModuleInfo>) =>
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
-export const getGroupModuleDevData = async (deviceId: number, deviceType: number) => {
|
|
|
|
|
|
+export const getGroupModuleDevData = async (deviceId: number, deviceType: number, valveType?: number) => {
|
|
const data = await request<GroupModuleDevData>(apiBiz('/moduleInfo/info/device/detail'), {
|
|
const data = await request<GroupModuleDevData>(apiBiz('/moduleInfo/info/device/detail'), {
|
|
method: 'POST',
|
|
method: 'POST',
|
|
body: JSON.stringify({
|
|
body: JSON.stringify({
|
|
deviceId,
|
|
deviceId,
|
|
deviceType,
|
|
deviceType,
|
|
|
|
+ valveType,
|
|
}),
|
|
}),
|
|
});
|
|
});
|
|
|
|
|
|
@@ -1287,6 +1289,19 @@ export const updateGroupModuleDevData = async (deviceId: number, deviceParamCode
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+export const getDevStartStopStatus = async (deviceId: number, deviceType: number, valveType?: number) => {
|
|
|
|
+ const data = await request<DevStartStopStatus>(apiBiz('/moduleInfo/info/device/determine'), {
|
|
|
|
+ method: 'POST',
|
|
|
|
+ body: JSON.stringify({
|
|
|
|
+ deviceId,
|
|
|
|
+ deviceType,
|
|
|
|
+ valveType,
|
|
|
|
+ }),
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ return data;
|
|
|
|
+};
|
|
|
|
+
|
|
export const getGroupModuleDevStatus = async (groupId: number) => {
|
|
export const getGroupModuleDevStatus = async (groupId: number) => {
|
|
const data = await request<GroupModuleBatchItem[]>(apiBiz('/moduleInfo/info/batch/status'), {
|
|
const data = await request<GroupModuleBatchItem[]>(apiBiz('/moduleInfo/info/batch/status'), {
|
|
method: 'POST',
|
|
method: 'POST',
|