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

This commit is contained in:
2026-06-18 15:41:47 +08:00
parent 929352bc62
commit ca482b1916
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"

View File

@@ -328,11 +328,7 @@ defineExpose({ reload: load });
<template>
<div class="league-matches-panel">
<div class="nested-panel-toolbar">
<el-button type="primary" size="small" @click.stop="emit('add-match')">
{{ t('match.create_fixture_btn') }}
</el-button>
</div>
<el-table v-loading="loading" :data="matches" stripe row-key="id" class="nested-match-table">
<el-table-column type="index" :index="(i: number) => (matchPage - 1) * matchPageSize + i + 1" :label="t('common.seq')" width="70" align="center" />
<el-table-column :label="t('match.col.matchup')" min-width="180">