|
@@ -323,6 +323,19 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</div>
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
+ <el-tab-pane label="交通指示" name="traffic-guide">
|
|
|
|
+ <div class="article-form">
|
|
|
|
+ <el-form-item label="标题">
|
|
|
|
+ <el-input v-model="articleData.trafficGuide.title" placeholder="请输入标题" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="内容">
|
|
|
|
+ <Editor v-model="articleData.trafficGuide.content" :min-height="300" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="备注">
|
|
|
|
+ <el-input v-model="articleData.trafficGuide.remark" placeholder="请输入备注" type="textarea" :rows="3" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ </el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
<template #footer>
|
|
<template #footer>
|
|
<div class="dialog-footer">
|
|
<div class="dialog-footer">
|
|
@@ -728,7 +741,8 @@ const tabTypeMapping: Record<string, number> = {
|
|
'competition-flow': 5, // 竞赛流程
|
|
'competition-flow': 5, // 竞赛流程
|
|
'event-grouping': 6, // 赛事分组
|
|
'event-grouping': 6, // 赛事分组
|
|
'athlete-handbook': 7, // 运动员号码簿
|
|
'athlete-handbook': 7, // 运动员号码簿
|
|
- 'project-venue': 8 // 项目场地
|
|
|
|
|
|
+ 'project-venue': 8, // 项目场地
|
|
|
|
+ 'traffic-guide': 9 // 交通指示
|
|
};
|
|
};
|
|
|
|
|
|
const articleData = reactive({
|
|
const articleData = reactive({
|
|
@@ -739,7 +753,8 @@ const articleData = reactive({
|
|
competitionFlow: { id: undefined, title: '', content: '', remark: '' },
|
|
competitionFlow: { id: undefined, title: '', content: '', remark: '' },
|
|
eventGrouping: { id: undefined, title: '', content: '', remark: '' },
|
|
eventGrouping: { id: undefined, title: '', content: '', remark: '' },
|
|
athleteHandbook: { id: undefined, title: '', content: '', remark: '' },
|
|
athleteHandbook: { id: undefined, title: '', content: '', remark: '' },
|
|
- projectVenue: { id: undefined, title: '', content: '', remark: '' }
|
|
|
|
|
|
+ projectVenue: { id: undefined, title: '', content: '', remark: '' },
|
|
|
|
+ trafficGuide: { id: undefined, title: '', content: '', remark: '' }
|
|
});
|
|
});
|
|
|
|
|
|
// 打开排行榜组件并传递赛事ID
|
|
// 打开排行榜组件并传递赛事ID
|
|
@@ -831,7 +846,8 @@ const getDataKeyByTabName = (tabName: string): keyof typeof articleData | null =
|
|
'competition-flow': 'competitionFlow',
|
|
'competition-flow': 'competitionFlow',
|
|
'event-grouping': 'eventGrouping',
|
|
'event-grouping': 'eventGrouping',
|
|
'athlete-handbook': 'athleteHandbook',
|
|
'athlete-handbook': 'athleteHandbook',
|
|
- 'project-venue': 'projectVenue'
|
|
|
|
|
|
+ 'project-venue': 'projectVenue',
|
|
|
|
+ 'traffic-guide': 'trafficGuide'
|
|
};
|
|
};
|
|
return mapping[tabName] || null;
|
|
return mapping[tabName] || null;
|
|
};
|
|
};
|