秩序册导出

This commit is contained in:
马梓彭 2026-09-29 22:39:27 +08:00
parent 4cd0578673
commit 4a063be189
2 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,7 @@ const sql = read('../YD_Event.Admin/二期需求/dbo.sql');
const launcher = read('src/views/scoring/launcher/index.vue');
const workbench = read('src/views/scoring/workbench/index.vue');
const orderBookPage = read('src/views/scoring/orderbook/index.vue');
const workbenchApi = read('src/api/match/workbench.js');
const scoreScreen = read('src/views/scoring/screen/index.vue');
const checkinScreen = read('src/views/scoring/checkin-screen/index.vue');
const menuSeed = read('../YD_Event.Admin/YD_Event.Core/InitData/sysmenu.txt');
@ -43,6 +44,7 @@ const checks = [
['启动页统一保存赛事上下文', launcher, 'saveScoringContext({eventId:Number(event.id)'],
['秩序册具有独立页面', orderBookPage, 'orderBookImportPost'],
['秩序册自动解析已选赛事', orderBookPage, 'resolveScoringEvent(route.query)'],
['秩序册接口路径与OpenAPI一致', workbenchApi, "http.get('/orderbook/template'"],
['成绩管理与投屏使用独立菜单路由', menuSeed, '"Path": "/scoring/cast"'],
['秩序册直达路由具有兼容兜底', backEndRoutes, 'ensureScoringOperationalRoutes'],
['旧秩序册菜单路由自动修正', backEndRoutes, 'normalizeScoringMenuRoutes(routeList)'],

View File

@ -49,15 +49,15 @@ export const workbenchScoreSheetsExportGet = (params) =>
http.get('/workbench/score-sheets/export', { params, responseType: 'blob' });
export const orderBookTemplateGet = () =>
http.get('/order-book/template', { responseType: 'blob' });
http.get('/orderbook/template', { responseType: 'blob' });
export const orderBookImportPost = (eventId, file) => {
const data = new FormData();
data.append('eventId', String(eventId));
data.append('importMode', 'overwrite');
data.append('file', file);
return http.post('/order-book/import', data, { headers: { 'Content-Type': 'multipart/form-data' } });
return http.post('/orderbook/import', data, { headers: { 'Content-Type': 'multipart/form-data' } });
};
export const orderBookConfirmPost = (batchId) =>
http.post('/order-book/confirm', { batchId, generateJudgeAccount: false });
http.post('/orderbook/confirm', { batchId, generateJudgeAccount: false });