feat(admin): 将新增赛事按钮移至联赛操作栏,并移除列表下方的旧按钮

This commit is contained in:
2026-06-18 15:41:56 +08:00
parent 5baac41ce8
commit a832998b0a
2 changed files with 5 additions and 7 deletions

View File

@@ -441,7 +441,6 @@ function onLeagueArchived() {
:filter-status="filterStatus"
:keyword="keyword"
@changed="() => load({ keepExpand: true })"
@add-match="openCreateFixture(row)"
/>
</template>
</template>
@@ -494,7 +493,7 @@ function onLeagueArchived() {
<el-table-column :label="t('match.col.league_code')" width="120" show-overflow-tooltip>
<template #default="{ row }">{{ rowOf(row).code }}</template>
</el-table-column>
<el-table-column width="168" align="center" fixed="right">
<el-table-column width="280" align="center" fixed="right">
<template #header>
<div class="actions-col-header">
<span class="actions-col-header__label">{{ t('common.actions') }}</span>
@@ -506,6 +505,9 @@ function onLeagueArchived() {
<el-button size="small" type="primary" @click.stop="openEditLeague(row)">
{{ t('common.edit') }}
</el-button>
<el-button size="small" type="primary" @click.stop="openCreateFixture(row)">
{{ t('match.create_fixture_btn') }}
</el-button>
<el-button
v-if="!leagueIsPublished(row)"
size="small"