sync(theme-4): 同步 main 最新 API/Admin 与玩家端逻辑
从 main 同步站内信手动发送、媒体库选择、列表子路由重构等 API/Admin 改动;玩家端仅合并 ADMIN_CUSTOM 富文本、消息预览与充值截图压缩逻辑,保留 theme-4 样式。
This commit is contained in:
53
apps/admin/src/views/matches/LeagueOutrightsPage.vue
Normal file
53
apps/admin/src/views/matches/LeagueOutrightsPage.vue
Normal file
@@ -0,0 +1,53 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user