Просмотр исходного кода

feat(physical-tournaments): 更新比赛类型字典引用

- 将比赛类型筛选逻辑从 tournaments_type 迁移至 physical_tournaments_type
- 移除对 tournaments_status 字典的引用- 引入新的 physical_tournaments_type 字典以支持物理赛事类型配置
fugui001 1 месяц назад
Родитель
Сommit
998cbd758b
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/views/system/physical/tournaments/index.vue

+ 3 - 3
src/views/system/physical/tournaments/index.vue

@@ -232,7 +232,7 @@
         <el-form-item label="比赛类型" prop="gameType">
         <el-form-item label="比赛类型" prop="gameType">
           <el-select aria-required="true" v-model="form.gameType" placeholder="请选择">
           <el-select aria-required="true" v-model="form.gameType" placeholder="请选择">
             <el-option
             <el-option
-              v-for="dict in tournaments_type.filter((item) => item.value !== '1')"
+              v-for="dict in physical_tournaments_type"
               :key="dict.value"
               :key="dict.value"
               :label="dict.label"
               :label="dict.label"
               :value="dict.value"
               :value="dict.value"
@@ -350,8 +350,8 @@ import { uploadTournament } from '@/api/system/business/tournaments';
 import { parseTime } from '@/utils/dateUtils';
 import { parseTime } from '@/utils/dateUtils';
 import LevelsIndex from '@/views/system/physical/blindLevels/index.vue';
 import LevelsIndex from '@/views/system/physical/blindLevels/index.vue';
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
-const { tournaments_type, tournaments_time, tournaments_status } = toRefs<any>(
-  proxy?.useDict('tournaments_type', 'tournaments_time', 'tournaments_status')
+const { tournaments_type, tournaments_time, physical_tournaments_type } = toRefs<any>(
+  proxy?.useDict('tournaments_type', 'tournaments_time', 'physical_tournaments_type')
 );
 );
 const tournamentsList = ref<TournamentsVO[]>([]);
 const tournamentsList = ref<TournamentsVO[]>([]);
 const buttonLoading = ref(false);
 const buttonLoading = ref(false);