Browse Source

fix:bug 数据展示问题

lihuilin/feature-20250923114949-现金
lihuibear 1 month ago
parent
commit
40e7540c6b
  1. 7
      src/components/workspace/CashManagement.vue

7
src/components/workspace/CashManagement.vue

@ -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>

Loading…
Cancel
Save