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",
@@ -1788,8 +1796,8 @@ export default {
baseDnPlease: 'Please enter the LDAP base DN correctly', baseDnPlease: 'Please enter the LDAP base DN correctly',
ldapUserFilter: "User Filter", ldapUserFilter: "User Filter",
userFilterPlease: 'Please enter the LDAP user filter correctly', userFilterPlease: 'Please enter the LDAP user filter correctly',
ldapBindDN: "Bind DN", ldapBindDN: "Bind DN",
ldapBindPassword: "Bind Password", ldapBindPassword: "Bind Password",
smtpHost: 'Server Address', smtpHost: 'Server Address',
smtpHostPlease: 'Please enter the SMTP server address correctly', smtpHostPlease: 'Please enter the SMTP server address correctly',
smtpPort: 'Port Number', smtpPort: 'Port Number',
@@ -1816,7 +1824,7 @@ export default {
uploadFileErr: 'Authentication source icon upload failed', uploadFileErr: 'Authentication source icon upload failed',
viewInfoErr: "Failed to get authentication source information", viewInfoErr: "Failed to get authentication source information",
addInfo: "Add Authentication Source", addInfo: "Add Authentication Source",
editInfo: "Modify Authentication Source", editInfo: "Modify Authentication Source",
delTip: "Confirm deleting the authentication source number [{num}] data item?", delTip: "Confirm deleting the authentication source number [{num}] data item?",
delOk: "Deleted Successfully", delOk: "Deleted Successfully",
}, },

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: "开启实时数据",
@@ -1788,8 +1796,8 @@ export default {
baseDnPlease: '请正确输入LDAP 基础DN', baseDnPlease: '请正确输入LDAP 基础DN',
ldapUserFilter: "用户过滤", ldapUserFilter: "用户过滤",
userFilterPlease: '请正确输入LDAP 用户过滤', userFilterPlease: '请正确输入LDAP 用户过滤',
ldapBindDN: "绑定DN", ldapBindDN: "绑定DN",
ldapBindPassword: "绑定密码", ldapBindPassword: "绑定密码",
smtpHost: '服务器地址', smtpHost: '服务器地址',
smtpHostPlease: '请正确输入SMTP 服务器地址', smtpHostPlease: '请正确输入SMTP 服务器地址',
smtpPort: '端口号', smtpPort: '端口号',
@@ -1816,7 +1824,7 @@ export default {
uploadFileErr: '认证源图标上传失败', uploadFileErr: '认证源图标上传失败',
viewInfoErr: "获取认证源信息失败", viewInfoErr: "获取认证源信息失败",
addInfo: "添加认证源", addInfo: "添加认证源",
editInfo: "修改认证源", editInfo: "修改认证源",
delTip: "确认删除认证源编号为 【{num}】 的数据项?", delTip: "确认删除认证源编号为 【{num}】 的数据项?",
delOk: "删除成功", delOk: "删除成功",
}, },

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>