feat(sensor): 完善监测点结果编辑与图层切换
This commit is contained in:
@@ -3,6 +3,7 @@ import { config } from "@/config/config";
|
||||
import type {
|
||||
AdjustmentStatus,
|
||||
SensorPlacementScheme,
|
||||
SensorPoint,
|
||||
} from "./types";
|
||||
|
||||
export interface OptimizeSchemeInput {
|
||||
@@ -32,6 +33,15 @@ export const getSensorPlacementScheme = async (
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const getSensorPlacementCandidate = async (
|
||||
nodeId: string,
|
||||
): Promise<SensorPoint> => {
|
||||
const response = await api.get<SensorPoint>(
|
||||
`${config.BACKEND_URL}/api/v1/sensor-placement-candidates/${encodeURIComponent(nodeId)}`,
|
||||
);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
export const overwriteSensorPlacementScheme = async (
|
||||
schemeId: number,
|
||||
expectedSensorLocation: string[],
|
||||
|
||||
Reference in New Issue
Block a user