From b4fdd3c1369a53a45a2f08a67a3287530dc458b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Tue, 22 Sep 2026 09:14:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E5=8F=91=E8=B5=B7?= =?UTF-8?q?=E6=88=90=E7=BB=A9=E4=BF=AE=E6=AD=A3=E5=90=8E=E8=A3=81=E5=88=A4?= =?UTF-8?q?=E7=AB=AF=E5=90=8C=E6=AD=A5=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/match/workbench.js | 4 ++-- src/views/scoring/workbench/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/match/workbench.js b/src/api/match/workbench.js index a0e3a30..2ecc1d2 100644 --- a/src/api/match/workbench.js +++ b/src/api/match/workbench.js @@ -34,8 +34,8 @@ export const workbenchEntryRematchPost = (data) => export const workbenchResultVoidPost = (data) => http.post('/workbench/results/void', data); -export const judgeScoreCorrectionInitiatePost = (data) => - http.post('/judgescore/corrections/initiate', data); +export const workbenchCorrectionInitiatePost = (data) => + http.post('/workbench/corrections/initiate', data); export const checkinScreenCastGet = (params) => http.get('/checkin/screen-cast', { params }); diff --git a/src/views/scoring/workbench/index.vue b/src/views/scoring/workbench/index.vue index 31f602b..b03274d 100644 --- a/src/views/scoring/workbench/index.vue +++ b/src/views/scoring/workbench/index.vue @@ -102,7 +102,7 @@ import { workbenchScreenCastCurrentGet, workbenchScreenCastWithdrawPost, workbenchCorrectionsGet, workbenchCorrectionDetailGet, workbenchCorrectionApprovePost, workbenchResultConfirmPost, workbenchResultsBatchConfirmPost, workbenchEntryRematchPost, workbenchResultVoidPost, - judgeScoreCorrectionInitiatePost, workbenchResultsExportGet, workbenchScoreSheetsExportGet, + workbenchCorrectionInitiatePost, workbenchResultsExportGet, workbenchScoreSheetsExportGet, } from '/@/api/match/workbench'; const route=useRoute(), router=useRouter(); @@ -311,7 +311,7 @@ async function batchConfirm(){ function openReason(action,row){reasonAction.value=action;reasonRow.value=row;reasonText.value='';reasonVisible.value=true} async function submitReason(){const text=reasonText.value.trim();if(text.length<2)return ElMessage.warning('请填写至少 2 个字符的原因');actionLoading.value=true;try{if(reasonAction.value==='rematch')await workbenchEntryRematchPost({originalSessionEntryId:reasonRow.value.sessionEntryId,rematchReason:text});else await workbenchResultVoidPost({sessionEntryId:reasonRow.value.sessionEntryId,voidReason:text});reasonVisible.value=false;ElMessage.success(reasonAction.value==='rematch'?'重赛已安排到场次末尾':'成绩已作废');loadEntries()}finally{actionLoading.value=false}} function openCorrection(row){correctionRow.value=row;const firstRoleType=(row.judgeScores||[])[0]?.judgeRoleType??null;correctionForm.value={judgeRoleType:firstRoleType,scoreSheetId:null,reason:''};correctionVisible.value=true} -async function submitCorrection(){const reason=correctionForm.value.reason.trim();if(!correctionForm.value.scoreSheetId)return ElMessage.warning('请选择裁判评分单');if(reason.length<2)return ElMessage.warning('请填写至少 2 个字符的修正原因');actionLoading.value=true;try{await judgeScoreCorrectionInitiatePost({scoreSheetId:correctionForm.value.scoreSheetId,reason});correctionVisible.value=false;ElMessage.success('修正任务已发送给裁判');loadEntries()}finally{actionLoading.value=false}} +async function submitCorrection(){const reason=correctionForm.value.reason.trim();if(!correctionForm.value.scoreSheetId)return ElMessage.warning('请选择裁判评分单');if(reason.length<2)return ElMessage.warning('请填写至少 2 个字符的修正原因');actionLoading.value=true;try{await workbenchCorrectionInitiatePost({sessionEntryId:correctionRow.value.sessionEntryId,scoreSheetIds:[correctionForm.value.scoreSheetId],reason});correctionVisible.value=false;ElMessage.success('修正任务已发送给裁判');loadEntries()}finally{actionLoading.value=false}} async function approveCorrection(row,isApproved){let remark='';if(!isApproved)remark=await ElMessageBox.prompt('请输入驳回原因','驳回修正申请',{inputValidator:v=>String(v||'').trim().length>=2||'至少输入2个字符'}).then(x=>x.value);else await ElMessageBox.confirm('批准后将向裁判下发修正任务,是否继续?','批准申请');await workbenchCorrectionApprovePost({correctionId:row.correctionId,isApproved,approveRemark:remark});ElMessage.success('申请已处理');loadCorrections()} async function showCorrectionDetail(row){const res=await workbenchCorrectionDetailGet(row.correctionId);const x=res?.data;if(!x)return;ElMessageBox.alert(`选手:${x.entry?.participantName||'-'}\n裁判:${x.originalScore?.judgeName||'-'}(${x.originalScore?.judgeRoleName||'-'})\n原分:${score(x.originalScore?.totalScore)}\n原因:${x.applyReason}`,'修正详情',{confirmButtonText:'关闭'})}