feat:中英文补充

This commit is contained in:
zhongzm
2025-08-15 19:04:53 +08:00
parent c43e57a5d8
commit 40705c6863
3 changed files with 28 additions and 12 deletions

View File

@@ -499,6 +499,14 @@ export default {
sgwcVolumeGPRSUplink: 'GPRS Uplink', sgwcVolumeGPRSUplink: 'GPRS Uplink',
sgwcVolumeGPRSDownlink: 'GPRS Downlink', sgwcVolumeGPRSDownlink: 'GPRS Downlink',
}, },
chart:{
charttitle:'Data Usage Report',
uplink:'Uplink(Byte)',
downlink:'Downlink(Byte)',
datausage:'Data Usage',
totaluplink:'Total Uplink',
totaldownlink:'Total Downlink',
},
ue: { ue: {
eventType: "Event Type", eventType: "Event Type",
realTimeDataStart: "Turn on real-time data", realTimeDataStart: "Turn on real-time data",

View File

@@ -499,6 +499,14 @@ export default {
sgwcVolumeGPRSUplink: 'GPRS 上行链路', sgwcVolumeGPRSUplink: 'GPRS 上行链路',
sgwcVolumeGPRSDownlink: 'GPRS 下行链路', sgwcVolumeGPRSDownlink: 'GPRS 下行链路',
}, },
chart:{
charttitle:'数据使用报告',
uplink:'上行流量(B)',
downlink:'下行流量(B)',
datausage:'流量使用',
totaluplink:'总上行流量',
totaldownlink:'总下行流量',
},
ue: { ue: {
eventType: "事件类型", eventType: "事件类型",
realTimeDataStart: "开启实时数据", realTimeDataStart: "开启实时数据",

View File

@@ -49,7 +49,7 @@ let cdrChart: echarts.ECharts | null = null;
/**图表配置 */ /**图表配置 */
const option = { const option = {
title: { title: {
text: 'Data Usage Report', text: t('views.dashboard.chart.charttitle'),
left: 'left', left: 'left',
}, },
tooltip: { tooltip: {
@@ -149,12 +149,12 @@ const option = {
], ],
yAxis: [ yAxis: [
{ {
name: 'Downlink (Byte)', name: t('views.dashboard.chart.downlink'),
type: 'value', type: 'value',
}, },
{ {
gridIndex: 1, gridIndex: 1,
name: 'Uplink (Byte)', name: t('views.dashboard.chart.uplink'),
type: 'value', type: 'value',
inverse: true, inverse: true,
}, },
@@ -687,11 +687,11 @@ onBeforeUnmount(() => {
<!-- 图数据 --> <!-- 图数据 -->
<div ref="cdrChartDom" style="height: 600px; width: 100%"></div> <div ref="cdrChartDom" style="height: 600px; width: 100%"></div>
<a-descriptions title="Data Usage" bordered :column="2"> <a-descriptions :title="t('views.dashboard.chart.datausage')" bordered :column="2">
<a-descriptions-item label="Total Uplink"> <a-descriptions-item :label="t('views.dashboard.chart.totaluplink')">
{{ state.dataUsage[0] }} {{ state.dataUsage[0] }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="Total Downlink"> <a-descriptions-item :label="t('views.dashboard.chart.totaldownlink')">
{{ state.dataUsage[1] }} {{ state.dataUsage[1] }}
</a-descriptions-item> </a-descriptions-item>
</a-descriptions> </a-descriptions>