ソースを参照

feat:添加文章类型

wenkai 1 週間 前
コミット
ad0e198d09
1 ファイル変更19 行追加3 行削除
  1. 19 3
      src/views/system/gameEvent/index.vue

+ 19 - 3
src/views/system/gameEvent/index.vue

@@ -323,6 +323,19 @@
             </el-form-item>
           </div>
         </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>
       <template #footer>
         <div class="dialog-footer">
@@ -728,7 +741,8 @@ const tabTypeMapping: Record<string, number> = {
   'competition-flow': 5, // 竞赛流程
   'event-grouping': 6, // 赛事分组
   'athlete-handbook': 7, // 运动员号码簿
-  'project-venue': 8 // 项目场地
+  'project-venue': 8, // 项目场地
+  'traffic-guide': 9 // 交通指示
 };
 
 const articleData = reactive({
@@ -739,7 +753,8 @@ const articleData = reactive({
   competitionFlow: { id: undefined, title: '', content: '', remark: '' },
   eventGrouping: { 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
@@ -831,7 +846,8 @@ const getDataKeyByTabName = (tabName: string): keyof typeof articleData | null =
     'competition-flow': 'competitionFlow',
     'event-grouping': 'eventGrouping',
     'athlete-handbook': 'athleteHandbook',
-    'project-venue': 'projectVenue'
+    'project-venue': 'projectVenue',
+    'traffic-guide': 'trafficGuide'
   };
   return mapping[tabName] || null;
 };