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() {
tooltip: true,
},
render(row: IPlatformAgentUsageDetailItem) {
return row.totalPoint.toFixed(1) || '--'
return row.totalPoint.toFixed(2) || '--'
},
},
{
......
......@@ -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="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>
<span class="mt-3">{{ t('statistic_module.today_usage') }}</span>
</div>
......@@ -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="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>
<span class="mt-3">{{ t('statistic_module.current_week_usage') }}</span>
</div>
......@@ -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="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>
<span class="mt-3">{{ t('statistic_module.current_month_usage') }}</span>
</div>
......@@ -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="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>
<span class="mt-3">{{ t('statistic_module.current_year_usage') }}</span>
</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