feat: SMF数据单位转换MB显示
This commit is contained in:
@@ -69,8 +69,8 @@ const option = {
|
||||
} else {
|
||||
downlinkValue = params[1].value;
|
||||
}
|
||||
const uplinkValueF = parseSizeFromByte(uplinkValue);
|
||||
const downlinkValueF = parseSizeFromByte(downlinkValue);
|
||||
const uplinkValueF = parseSizeFromByte(uplinkValue, 'MB');
|
||||
const downlinkValueF = parseSizeFromByte(downlinkValue, 'MB');
|
||||
return `
|
||||
<div style="font-weight: bold;">${title}</div>
|
||||
<div>Downlink: ${downlinkValueF}</div>
|
||||
@@ -466,8 +466,8 @@ function fnRanderChartDataUpdate() {
|
||||
downlinkTotal += dataVolumeDownlinkYSeriesData[index];
|
||||
}
|
||||
state.dataUsage = [
|
||||
parseSizeFromByte(uplinkTotal),
|
||||
parseSizeFromByte(downlinkTotal),
|
||||
parseSizeFromByte(uplinkTotal, 'MB'),
|
||||
parseSizeFromByte(downlinkTotal, 'MB'),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -684,7 +684,7 @@ onBeforeUnmount(() => {
|
||||
<!-- 图数据 -->
|
||||
<div ref="cdrChartDom" style="height: 600px; width: 100%"></div>
|
||||
|
||||
<a-descriptions title="Data Usage" bordered :column="2">
|
||||
<a-descriptions title="Data Usage" bordered :column="2" style="width: 60%;">
|
||||
<a-descriptions-item label="Total Uplink">
|
||||
{{ state.dataUsage[0] }}
|
||||
</a-descriptions-item>
|
||||
|
||||
Reference in New Issue
Block a user