feat(admin,player,api): 优胜冠军通用管理与界面精简

管理端新增冠军盘列表/编辑、展开懒加载与 ECharts 修复;各列表页去掉重复标题。玩家端支持多赛事冠军盘、分批加载与语言切换刷新。API 扩展 outright CRUD 与列表性能优化。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-04 09:17:01 +08:00
parent 9b63d67e7c
commit 27580b2479
39 changed files with 2250 additions and 578 deletions

View File

@@ -1,11 +1,12 @@
<script setup lang="ts">
import { ref, computed, onMounted } from 'vue';
import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import api from '../../api';
import { useBetSlipStore } from '../../stores/betSlip';
import { PARLAY_MAX_LEGS, canSelectForParlay } from '@thebet365/shared';
import { PARLAY_MARKET_TYPES, PARLAY_SELECTION_KEYS } from '../../utils/parlayColumns';
import BetGuideHelp from '../BetGuideHelp.vue';
import { useOnLocaleChange } from '../../composables/useOnLocaleChange';
type TimeFilter = 'all' | 'today';
@@ -43,7 +44,7 @@ const timeFilter = ref<TimeFilter>('all');
const parlayMarketKeys = PARLAY_MARKET_TYPES.map((c) => c.key);
onMounted(async () => {
async function loadParlayMatches() {
loading.value = true;
try {
const { data } = await api.get('/player/matches');
@@ -53,7 +54,9 @@ onMounted(async () => {
} finally {
loading.value = false;
}
});
}
useOnLocaleChange(loadParlayMatches);
function parseLine(v: string | number | null | undefined) {
if (v == null || v === '') return null;