Commit 2e5248de authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

fix: 数据统计积分显示小数后2位

See merge request !144
parents a2dde296 e5e9bad7
...@@ -27,7 +27,7 @@ export function createPlatformAgentUsageDetail() { ...@@ -27,7 +27,7 @@ export function createPlatformAgentUsageDetail() {
tooltip: true, tooltip: true,
}, },
render(row: IPlatformAgentUsageDetailItem) { render(row: IPlatformAgentUsageDetailItem) {
return row.totalPoint.toFixed(1) || '--' return row.totalPoint.toFixed(2) || '--'
}, },
}, },
{ {
......
...@@ -46,7 +46,7 @@ async function handleGetPlatformPointUsage() { ...@@ -46,7 +46,7 @@ async function handleGetPlatformPointUsage() {
> >
<div class="bg-px-statistics-today_point_icon-png absolute bottom-0 right-0 h-[93px] w-[90px]" /> <div class="bg-px-statistics-today_point_icon-png absolute bottom-0 right-0 h-[93px] w-[90px]" />
<div class="font-600 text-[30px]"> <div class="font-600 text-[30px]">
<n-number-animation :from="0" :to="platformPointUsage.today" :precision="1" /> <n-number-animation :from="0" :to="platformPointUsage.today" :precision="2" />
</div> </div>
<span class="mt-3">{{ t('statistic_module.today_usage') }}</span> <span class="mt-3">{{ t('statistic_module.today_usage') }}</span>
</div> </div>
...@@ -56,7 +56,7 @@ async function handleGetPlatformPointUsage() { ...@@ -56,7 +56,7 @@ async function handleGetPlatformPointUsage() {
> >
<div class="bg-px-statistics-week_point_icon-png absolute bottom-0 right-0 h-[93px] w-[90px]" /> <div class="bg-px-statistics-week_point_icon-png absolute bottom-0 right-0 h-[93px] w-[90px]" />
<div class="font-600 text-[30px]"> <div class="font-600 text-[30px]">
<n-number-animation :from="0" :to="platformPointUsage.week" :precision="1" /> <n-number-animation :from="0" :to="platformPointUsage.week" :precision="2" />
</div> </div>
<span class="mt-3">{{ t('statistic_module.current_week_usage') }}</span> <span class="mt-3">{{ t('statistic_module.current_week_usage') }}</span>
</div> </div>
...@@ -66,7 +66,7 @@ async function handleGetPlatformPointUsage() { ...@@ -66,7 +66,7 @@ async function handleGetPlatformPointUsage() {
> >
<div class="bg-px-statistics-month_point_icon-png absolute bottom-0 right-0 h-[93px] w-[90px]" /> <div class="bg-px-statistics-month_point_icon-png absolute bottom-0 right-0 h-[93px] w-[90px]" />
<div class="font-600 text-[30px]"> <div class="font-600 text-[30px]">
<n-number-animation :from="0" :to="platformPointUsage.month" :precision="1" /> <n-number-animation :from="0" :to="platformPointUsage.month" :precision="2" />
</div> </div>
<span class="mt-3">{{ t('statistic_module.current_month_usage') }}</span> <span class="mt-3">{{ t('statistic_module.current_month_usage') }}</span>
</div> </div>
...@@ -76,7 +76,7 @@ async function handleGetPlatformPointUsage() { ...@@ -76,7 +76,7 @@ async function handleGetPlatformPointUsage() {
> >
<div class="bg-px-statistics-year_point_icon-png absolute bottom-0 right-0 h-[93px] w-[90px]" /> <div class="bg-px-statistics-year_point_icon-png absolute bottom-0 right-0 h-[93px] w-[90px]" />
<div class="font-600 text-[30px]"> <div class="font-600 text-[30px]">
<n-number-animation :from="0" :to="platformPointUsage.year" :precision="1" /> <n-number-animation :from="0" :to="platformPointUsage.year" :precision="2" />
</div> </div>
<span class="mt-3">{{ t('statistic_module.current_year_usage') }}</span> <span class="mt-3">{{ t('statistic_module.current_year_usage') }}</span>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment