sync(theme-2): 从 main 同步优胜赛结算态与钱包流水展示优化

- checkout shared/api/admin 自 d3c2114
- player: outright 结算态逻辑、wallet txAmountClass、i18n 新增 key(保留蓝白主题样式)
This commit is contained in:
2026-06-23 13:49:43 +08:00
parent 021d216613
commit 26e2adf786
36 changed files with 577 additions and 127 deletions

View File

@@ -34,9 +34,15 @@ const leagueTitle = computed(() => {
const panelRef = ref<{ reload: () => void } | null>(null);
const createVisible = ref(false);
const createLoading = ref(false);
const isOutrightSettled = ref(false);
const form = ref<MatchCreateForm>(emptyMatchForm());
function onLeagueMeta(meta: { isOutrightSettled: boolean }) {
isOutrightSettled.value = meta.isOutrightSettled;
}
function openCreateFixture() {
if (isOutrightSettled.value) return;
form.value = emptyMatchForm();
form.value.leagueId = leagueId.value;
createVisible.value = true;
@@ -85,9 +91,10 @@ watch(leagueId, () => {
:subtitle="t('match.league_fixtures_subtitle')"
>
<template #extra>
<el-button type="primary" @click="openCreateFixture">
<el-button v-if="!isOutrightSettled" type="primary" @click="openCreateFixture">
{{ t('match.create_fixture_btn') }}
</el-button>
<span v-else class="settled-hint">{{ t('league.hint.outright_settled_no_fixture') }}</span>
</template>
</AdminSubNav>
@@ -97,6 +104,7 @@ watch(leagueId, () => {
:league-id="leagueId"
:filter-status="filterStatus"
:keyword="filterKeyword"
@league-meta="onLeagueMeta"
/>
</section>
@@ -254,6 +262,12 @@ watch(leagueId, () => {
font-weight: 700;
}
.settled-hint {
font-size: 13px;
color: var(--warning-text);
font-weight: 600;
}
@media (max-width: 760px) {
.teams-row {
grid-template-columns: 1fr;