|
@@ -39,16 +39,19 @@ import type {
|
|
|
GroupingListData,
|
|
|
GroupRegions,
|
|
|
InterfaceData,
|
|
|
+ LimitForm,
|
|
|
ListEquipmentParametersItemData,
|
|
|
ListInfo,
|
|
|
ListInterfaces,
|
|
|
ListPhysicalInterfaces,
|
|
|
MonitoringForm,
|
|
|
MonitorPointInfo,
|
|
|
+ MonitorPointItem,
|
|
|
OutdooForm,
|
|
|
ParameterVerification,
|
|
|
ParamValueListAutomaticData,
|
|
|
ParamValueListAutomaticQuery,
|
|
|
+ PointTimeSeriesQuery,
|
|
|
PostProtocolPage,
|
|
|
PostProtocolPageItem,
|
|
|
PostProtocolPageItemData,
|
|
@@ -70,8 +73,10 @@ import type {
|
|
|
SerialNumberItem,
|
|
|
SerialNumberItemData,
|
|
|
SubmitSorting,
|
|
|
+ TempHumidityControlSettings,
|
|
|
VerificationAgreement,
|
|
|
VerificationEquipment,
|
|
|
+ WarningItem,
|
|
|
} from '@/types';
|
|
|
|
|
|
/**
|
|
@@ -127,6 +132,27 @@ export const refreshUser = async () => {
|
|
|
|
|
|
// ----- 系统服务 -----
|
|
|
|
|
|
+// 环境监控-监测点预警配置
|
|
|
+
|
|
|
+export const addBatchMonitorPointAlarm = async (params: WarningItem[]) => {
|
|
|
+ await request(apiBiz('/monitorPointAlarm/addBatch'), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify({ monitorPointAlarms: params }),
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+export const getMonitorPointAlarm = async (pointId: number) => {
|
|
|
+ const data = await request<MonitorPointItem[]>(apiBiz(`/monitorPointAlarm/point/${pointId}`));
|
|
|
+ return data;
|
|
|
+};
|
|
|
+
|
|
|
+export const updateBatchMonitorPointAlarm = async (params: WarningItem[]) => {
|
|
|
+ await request(apiBiz('/monitorPointAlarm/updateBatch'), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify({ monitorPointAlarms: params }),
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
// 环境监控-区域
|
|
|
|
|
|
export const addRegion = async (params: RegionQuery) => {
|
|
@@ -197,6 +223,21 @@ export const getMonitorPointInfo = async (id: number) => {
|
|
|
return data;
|
|
|
};
|
|
|
|
|
|
+export const updateLimits = async (params: LimitForm) => {
|
|
|
+ await request(apiBiz('/monitorPoint/updateLimits'), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify(params),
|
|
|
+ });
|
|
|
+};
|
|
|
+
|
|
|
+export const getPointTimeSeries = async (params: PointTimeSeriesQuery, pointId: number) => {
|
|
|
+ const data = await request<TempHumidityControlSettings>(apiBiz(`/monitorPoint/pointTimeSeries/${pointId}`), {
|
|
|
+ method: 'POST',
|
|
|
+ body: JSON.stringify(params),
|
|
|
+ });
|
|
|
+ return data;
|
|
|
+};
|
|
|
+
|
|
|
// 字典类型表
|
|
|
export const getDictTypeData = async (params: DictTypeDataParams) => {
|
|
|
const data = await request<DictTypeData[]>(apiSys('/sysDictType/typeAndData/', params));
|