Commit dee09f0b by wusiyi

feat: 概览数据优化

parent 39faf252
......@@ -101,7 +101,7 @@
<el-tooltip
class="item"
effect="light"
content="昨日转为已发货状态的总订单数(昨日北京时间0-24点数据)"
:content="`昨日转为已发货状态的总订单数(${yesterday}北京时间 0-24点数据)`"
placement="bottom"
>
<div class="card-icon"></div>
......@@ -121,7 +121,11 @@
style="display: flex; margin-left: 10px"
>
<div class="text-green">
{{ statisticData?.compareYesterdayShipmentOrderNum }}
{{
statisticData?.compareYesterdayShipmentOrderNum.toFixed(
2,
)
}}
</div>
<div class="up-icon-green"></div>
</div>
......@@ -130,7 +134,7 @@
{{
Math.abs(
statisticData?.compareYesterdayShipmentOrderNum || 0,
)
).toFixed(2)
}}
</div>
<div class="down-icon-red"></div>
......@@ -154,7 +158,7 @@
<el-tooltip
class="item"
effect="light"
content="昨日已发货订单中从接单转为已发货状态在24小时内的比例(昨日北京时间0-24点数据)"
:content="`昨日已发货订单中从接单转为已发货状态在24小时内的比例(${yesterday}北京时间 0-24点数据)`"
placement="bottom"
>
<div class="card-icon"></div>
......@@ -175,8 +179,9 @@
>
<div class="text-green">
{{
(statisticData?.compareLastDayShipmentRateOf24Hour ??
'-') + '%'
(statisticData?.compareLastDayShipmentRateOf24Hour.toFixed(
2,
) ?? '-') + '%'
}}
</div>
<div class="up-icon-green"></div>
......@@ -187,7 +192,7 @@
Math.abs(
statisticData?.compareLastDayShipmentRateOf24Hour ||
0,
) + '%'
).toFixed(2) + '%'
}}
</div>
<div class="down-icon-red"></div>
......@@ -232,8 +237,9 @@
>
<div class="text-green">
{{
(statisticData?.compareLastDayShipmentRateOf48Hour ??
'-') + '%'
(statisticData?.compareLastDayShipmentRateOf48Hour.toFixed(
2,
) ?? '-') + '%'
}}
</div>
<div class="up-icon-green"></div>
......@@ -244,7 +250,7 @@
Math.abs(
statisticData?.compareLastDayShipmentRateOf48Hour ||
0,
) + '%'
).toFixed(2) + '%'
}}
</div>
<div class="down-icon-red"></div>
......@@ -294,8 +300,9 @@
>
<div class="text-red">
{{
(statisticData?.compareLastDayOverTimeShipmentRate ??
'-') + '%'
(statisticData?.compareLastDayOverTimeShipmentRate.toFixed(
2,
) ?? '-') + '%'
}}
</div>
<div class="up-icon-red"></div>
......@@ -306,7 +313,7 @@
Math.abs(
statisticData?.compareLastDayOverTimeShipmentRate ||
0,
) + '%'
).toFixed(2) + '%'
}}
</div>
<div class="down-icon-green"></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