pcp-tgu-ops-ui: Ф6 ядро — draft/validate/promote в редакторе (replace), прямой прокси /api/pcp-tgu

This commit is contained in:
Дмитрий Соловьев
2026-06-03 13:53:24 +03:00
parent ae7effe1fa
commit ec67d9d83d
9 changed files with 418 additions and 59 deletions
@@ -22,6 +22,8 @@ export type AddShootInput = {
label: string;
modeId?: string;
target: EditorTarget;
/** id сохранённого режима съёмки в БД черновика (если съёмка персистнута). */
planModeId?: number;
/** Параметры построенного маршрута (если съёмка строилась с превью). */
revolution?: number;
rollDeg?: number;
@@ -36,6 +38,8 @@ export type AddDownlinkInput = {
endMs: number;
label: string;
station: EditorGroundStation;
/** id сохранённого режима сброса в БД черновика (если сброс персистнут). */
planModeId?: number;
};
export function seedDraft(plan?: TguPlanUi, spacecraftId?: string): Draft {
@@ -151,6 +155,7 @@ export function addShoot(draft: Draft, input: AddShootInput): Draft {
targetName: input.target.name,
targetLat: input.target.lat,
targetLon: input.target.lon,
planModeId: input.planModeId,
revolution: input.revolution,
rollDeg: input.rollDeg,
captureAngleDeg: input.captureAngleDeg,
@@ -171,6 +176,7 @@ export function addDownlink(draft: Draft, input: AddDownlinkInput): Draft {
startMs: input.startMs,
endMs: input.endMs,
stationId: input.station.id,
planModeId: input.planModeId,
origin: "added",
isNew: true
};