feat(admin,api,player): 代理层级管理、额度上下分与玩家钱包详情

新增代理管理器与二级代理体系,完善信用额度/上下分上下文与冻结策略;代理端玩家与子代理管理增强;玩家端新增钱包详情页与交易筛选优化。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-08 15:34:12 +08:00
parent b2216abd0c
commit 414998ce36
54 changed files with 6641 additions and 481 deletions

View File

@@ -1,12 +1,28 @@
<script setup lang="ts">
import { shallowRef, onBeforeMount, type Component } from 'vue';
import { useAuthStore } from '../stores/auth';
import AdminDashboard from './Dashboard.vue';
import AgentDashboard from './agent/Dashboard.vue';
import { ensureStaffSession } from '../utils/session-hydrate';
const auth = useAuthStore();
const dashboardView = shallowRef<Component | null>(null);
const booting = shallowRef(true);
onBeforeMount(async () => {
await ensureStaffSession();
dashboardView.value = auth.isAdmin.value
? (await import('./Dashboard.vue')).default
: (await import('./agent/Dashboard.vue')).default;
booting.value = false;
});
</script>
<template>
<AdminDashboard v-if="auth.isAdmin" />
<AgentDashboard v-else />
<div v-if="booting" v-loading="true" class="home-boot" />
<component v-else :is="dashboardView" />
</template>
<style scoped>
.home-boot {
min-height: 240px;
}
</style>