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,8 +1,6 @@
<script setup lang="ts">
import { computed } from 'vue';
import VChart from 'vue-echarts';
import type { EChartsOption } from 'echarts';
import './echarts-setup';
import { VChart, type EChartsOption } from './echarts-setup';
const props = withDefaults(
defineProps<{
@@ -19,7 +17,7 @@ const style = computed(() => ({ height: props.height, width: '100%' }));
<template>
<div class="chart-panel">
<div v-if="title" class="chart-title">{{ title }}</div>
<v-chart class="chart-canvas" :option="option" :style="style" autoresize />
<VChart class="chart-canvas" :option="option" :style="style" autoresize />
</div>
</template>

View File

@@ -1,22 +1,8 @@
import { use } from 'echarts/core';
import { BarChart, LineChart, PieChart } from 'echarts/charts';
import {
GridComponent,
TooltipComponent,
LegendComponent,
TitleComponent,
GraphicComponent,
} from 'echarts/components';
import { CanvasRenderer } from 'echarts/renderers';
/**
* 管理端图表统一入口:使用完整 ECharts 构建,避免多实例 + 按需注册遗漏
*/
import * as echarts from 'echarts';
import ECharts from 'vue-echarts';
use([
CanvasRenderer,
BarChart,
LineChart,
PieChart,
GridComponent,
TooltipComponent,
LegendComponent,
TitleComponent,
GraphicComponent,
]);
export { echarts, ECharts as VChart };
export type { EChartsOption } from 'echarts';