{{ t('deposit.deposit_orders_title') }}
diff --git a/apps/admin/src/views/FinanceLogs.vue b/apps/admin/src/views/FinanceLogs.vue
index fe1b29a..3e3290f 100644
--- a/apps/admin/src/views/FinanceLogs.vue
+++ b/apps/admin/src/views/FinanceLogs.vue
@@ -50,11 +50,13 @@ const creditItems = ref
([]);
const creditTotal = ref(0);
const creditPage = ref(1);
const creditPageSize = ref(10);
+const creditLoading = ref(false);
const transferItems = ref([]);
const transferTotal = ref(0);
const transferPage = ref(1);
const transferPageSize = ref(10);
+const transferLoading = ref(false);
const keyword = ref('');
const agentId = ref('');
@@ -125,7 +127,9 @@ function dateParams() {
};
}
-async function loadCredit() {
+async function loadCredit(opts?: { silent?: boolean }) {
+ if (!opts?.silent) creditLoading.value = true;
+ try {
const { data } = await api.get(creditApiPath.value, {
params: {
page: creditPage.value,
@@ -139,9 +143,14 @@ async function loadCredit() {
});
creditItems.value = (data.data?.items ?? []) as CreditTxRow[];
creditTotal.value = data.data?.total ?? 0;
+ } finally {
+ if (!opts?.silent) creditLoading.value = false;
+ }
}
-async function loadTransfer() {
+async function loadTransfer(opts?: { silent?: boolean }) {
+ if (!opts?.silent) transferLoading.value = true;
+ try {
const parentRaw = parentAgentKeyword.value.trim();
const parentIsId = parentRaw && /^\d+$/.test(parentRaw);
const { data } = await api.get(transferApiPath.value, {
@@ -157,6 +166,9 @@ async function loadTransfer() {
});
transferItems.value = (data.data?.items ?? []) as TransferTxRow[];
transferTotal.value = data.data?.total ?? 0;
+ } finally {
+ if (!opts?.silent) transferLoading.value = false;
+ }
}
function onSearch() {
@@ -206,10 +218,9 @@ onMounted(() => {
if (activeTab.value === 'credit') void loadCredit();
else void loadTransfer();
});
-// KeepAlive 激活时静默刷新
onActivated(() => {
- if (activeTab.value === 'credit' && creditItems.value.length > 0) void loadCredit();
- else if (activeTab.value === 'transfer' && transferItems.value.length > 0) void loadTransfer();
+ if (activeTab.value === 'credit' && creditItems.value.length > 0) void loadCredit({ silent: true });
+ else if (activeTab.value === 'transfer' && transferItems.value.length > 0) void loadTransfer({ silent: true });
});
watch(
@@ -321,7 +332,7 @@ watch(
-
+
@@ -392,7 +403,7 @@ watch(
-
+
diff --git a/apps/admin/src/views/Matches.vue b/apps/admin/src/views/Matches.vue
index c1343f5..33fb7d4 100644
--- a/apps/admin/src/views/Matches.vue
+++ b/apps/admin/src/views/Matches.vue
@@ -1,7 +1,8 @@
diff --git a/apps/admin/src/views/agent/Bets.vue b/apps/admin/src/views/agent/Bets.vue
index 715224d..babb67a 100644
--- a/apps/admin/src/views/agent/Bets.vue
+++ b/apps/admin/src/views/agent/Bets.vue
@@ -1,5 +1,8 @@
@@ -51,7 +54,7 @@ function onSizeChange(size: number) {
{{ t('page.agent_bets.desc') }}
-
+
diff --git a/apps/admin/src/views/agent/Players.vue b/apps/admin/src/views/agent/Players.vue
index a5978c6..4131614 100644
--- a/apps/admin/src/views/agent/Players.vue
+++ b/apps/admin/src/views/agent/Players.vue
@@ -1,5 +1,7 @@