|
|
|
@ -44,7 +44,7 @@ |
|
|
|
<div v-else v-for="item in cashData.markets" :key="item.name" class="market-item"> |
|
|
|
<span class="market-name">代收{{ item.name }}:</span> |
|
|
|
<span class="market-value">{{ item.value.toLocaleString() }} </span> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
@ -100,6 +100,7 @@ const startDate = `${currentYear}-01-01 00:00:00`; |
|
|
|
const endDate = `${currentYear}-12-31 23:59:59`; |
|
|
|
// 获取接口数据 |
|
|
|
const fetchCashData = async () => { |
|
|
|
getAdminData() |
|
|
|
try { |
|
|
|
const res = await request({ |
|
|
|
url: '/workbench/getTotalRevenue', |
|
|
|
@ -131,7 +132,7 @@ const fetchCashData = async () => { |
|
|
|
name: m.name, |
|
|
|
value: resMap.get(m.name) ?? 0 |
|
|
|
})) |
|
|
|
} else { |
|
|
|
} else if (marksFlag.value=== false) { |
|
|
|
// 1. 定义币种中英文对照表 |
|
|
|
const currencyMap = { |
|
|
|
sgd: '新币', |
|
|
|
@ -227,7 +228,7 @@ const renderChart = () => { |
|
|
|
} |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
getAdminData() |
|
|
|
// getAdminData() |
|
|
|
fetchCashData() |
|
|
|
}) |
|
|
|
</script> |
|
|
|
|