从 main 同步站内信手动发送、媒体库选择、列表子路由重构等 API/Admin 改动;玩家端仅合并 ADMIN_CUSTOM 富文本、消息预览与充值截图压缩逻辑,保留 theme-4 样式。
54 lines
1.2 KiB
Vue
54 lines
1.2 KiB
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { useRoute } from 'vue-router';
|
|
import { useAdminLocale } from '../../composables/useAdminLocale';
|
|
import AdminSubNav from '../../components/AdminSubNav.vue';
|
|
import LeagueOutrightOddsPanel from './LeagueOutrightOddsPanel.vue';
|
|
|
|
defineOptions({ name: 'AdminLeagueOutrights' });
|
|
|
|
const route = useRoute();
|
|
const { t } = useAdminLocale();
|
|
|
|
const leagueId = computed(() => String(route.params.leagueId ?? ''));
|
|
const leagueTitle = computed(() => {
|
|
const title = String(route.query.title ?? '').trim();
|
|
return title || `#${leagueId.value}`;
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div class="admin-list-page league-outrights-page">
|
|
<AdminSubNav
|
|
:title="leagueTitle"
|
|
:subtitle="t('match.league_outrights_subtitle')"
|
|
/>
|
|
|
|
<section class="list-panel">
|
|
<LeagueOutrightOddsPanel :league-id="leagueId" />
|
|
</section>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.league-outrights-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
.league-outrights-page :deep(.admin-subnav) {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.league-outrights-page .list-panel {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
}
|
|
</style>
|