From 578b94aa39f76d446f144c9311799f6f28967d2c Mon Sep 17 00:00:00 2001 From: DevOps Date: Mon, 29 Dec 2025 15:08:29 +0800 Subject: [PATCH] feat: add estimated duration field and exception status persistence - Add estimatedDuration field to project form with validation - Add estimatedDuration column to project table - Add updateCheckInStatus API for exception status persistence - Call backend API when marking/removing exception status --- src/api/martial/schedulePlan.js | 13 +++++++++++++ src/views/martial/project/index.vue | 21 +++++++++++++++++++++ src/views/martial/schedule/index.vue | 22 +++++++++++++++++++--- 3 files changed, 53 insertions(+), 3 deletions(-) diff --git a/src/api/martial/schedulePlan.js b/src/api/martial/schedulePlan.js index 83f3fc2..247224e 100644 --- a/src/api/martial/schedulePlan.js +++ b/src/api/martial/schedulePlan.js @@ -194,3 +194,16 @@ export const exportSchedulePlans = (params) => { responseType: 'blob' }) } + +/** + * 更新参赛者签到状态 + * @param {Number} participantId - 参赛者ID + * @param {String} status - 状态:未签到/已签到/异常 + */ +export const updateCheckInStatus = (participantId, status) => { + return request({ + url: '/api/blade-martial/schedule/update-check-in-status', + method: 'post', + data: { participantId, status } + }) +} diff --git a/src/views/martial/project/index.vue b/src/views/martial/project/index.vue index d6d0334..647a8c9 100644 --- a/src/views/martial/project/index.vue +++ b/src/views/martial/project/index.vue @@ -177,6 +177,11 @@ 未设置 + + +