|
@@ -39,6 +39,8 @@ import type {
|
|
ListInterfaces,
|
|
ListInterfaces,
|
|
ListPhysicalInterfaces,
|
|
ListPhysicalInterfaces,
|
|
MonitoringForm,
|
|
MonitoringForm,
|
|
|
|
+ MonitorPointInfo,
|
|
|
|
+ OutdooForm,
|
|
ParameterVerification,
|
|
ParameterVerification,
|
|
ParamValueListAutomaticData,
|
|
ParamValueListAutomaticData,
|
|
ParamValueListAutomaticQuery,
|
|
ParamValueListAutomaticQuery,
|
|
@@ -59,6 +61,7 @@ import type {
|
|
ProtocolStandardParamData,
|
|
ProtocolStandardParamData,
|
|
ProtocolStandardParamQuery,
|
|
ProtocolStandardParamQuery,
|
|
RegionQuery,
|
|
RegionQuery,
|
|
|
|
+ RegionsPointsItem,
|
|
SerialNumberItem,
|
|
SerialNumberItem,
|
|
SerialNumberItemData,
|
|
SerialNumberItemData,
|
|
SubmitSorting,
|
|
SubmitSorting,
|
|
@@ -148,6 +151,13 @@ export const getGroupRegions = async (devGroupId: number) => {
|
|
return data;
|
|
return data;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+export const getRegionsPointsData = async (devGroupId: number) => {
|
|
|
|
+ const data = await request<RegionsPointsItem[]>(apiBiz(`/region/pointsData/${devGroupId}`), {
|
|
|
|
+ method: 'POST',
|
|
|
|
+ });
|
|
|
|
+ return data;
|
|
|
|
+};
|
|
|
|
+
|
|
// 环境监控-监测点
|
|
// 环境监控-监测点
|
|
|
|
|
|
export const addMonitorPoint = async (params: MonitoringForm) => {
|
|
export const addMonitorPoint = async (params: MonitoringForm) => {
|
|
@@ -157,6 +167,31 @@ export const addMonitorPoint = async (params: MonitoringForm) => {
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+export const deleteMonitorPoint = async (id: number) => {
|
|
|
|
+ await request(apiBiz(`/monitorPoint/delete/${id}`), {
|
|
|
|
+ method: 'POST',
|
|
|
|
+ });
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+export const updateMonitorPoint = async (params: MonitoringForm) => {
|
|
|
|
+ await request(apiBiz('/monitorPoint/update'), {
|
|
|
|
+ method: 'POST',
|
|
|
|
+ body: JSON.stringify(params),
|
|
|
|
+ });
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+export const updateRegionMonitorPoint = async (params: OutdooForm) => {
|
|
|
|
+ await request(apiBiz('/region/monitorPoint/update'), {
|
|
|
|
+ method: 'POST',
|
|
|
|
+ body: JSON.stringify(params),
|
|
|
|
+ });
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+export const getMonitorPointInfo = async (id: number) => {
|
|
|
|
+ const data = await request<MonitorPointInfo>(apiBiz(`/monitorPoint/info/${id}`));
|
|
|
|
+ return data;
|
|
|
|
+};
|
|
|
|
+
|
|
// 字典类型表
|
|
// 字典类型表
|
|
export const getDictTypeData = async (params: DictTypeDataParams) => {
|
|
export const getDictTypeData = async (params: DictTypeDataParams) => {
|
|
const data = await request<DictTypeData[]>(apiSys('/sysDictType/typeAndData/', params));
|
|
const data = await request<DictTypeData[]>(apiSys('/sysDictType/typeAndData/', params));
|