feat: 网元信息多语言翻译

This commit is contained in:
TsMask
2024-05-20 10:56:55 +08:00
parent 2e8a878365
commit 9b9d6222e1
3 changed files with 37 additions and 29 deletions

View File

@@ -586,17 +586,21 @@ export default {
neType: 'NE Type',
neTypePlease: "Please select network element type",
neId: 'NE ID',
serialNum: 'Serial Num',
rmUid: 'Resource Unique ID',
serialNum: 'Serial Number',
expiryDate: 'Expiry Date',
normalcy: 'Normal',
exceptions: 'Abnormal',
restart: 'Restart',
start: 'Start',
stop: 'Stop',
reload: 'Reload',
oam: 'OAM',
},
neInfo: {
version: "Version",
serialNum: 'Serial Number',
expiryDate: 'Expiry Date',
state: "State",
serviceState: "Service Status",
normalcy: "Normal",
exceptions: "Abnormal",
info: 'Status Message',
resourceInfo: 'Resource Situation',
sysMem: "SYS Mem",

View File

@@ -586,17 +586,21 @@ export default {
neType: '网元类型',
neTypePlease: "请选择网元类型",
neId: '网元内部标识',
rmUid: '资源唯一标识',
serialNum: '序列号',
expiryDate: '许可证到期时间',
expiryDate: '许可证到期日期',
normalcy: '正常',
exceptions: '异常',
restart: '重启',
start: '启动',
stop: '停止',
reload: '重载',
oam: 'OAM',
},
neInfo: {
version: "网元版本",
serialNum: '序列号',
expiryDate: '许可证到期日期',
state: "网元状态",
serviceState: "服务状态",
normalcy: "正常",
exceptions: "异常",
info: '状态信息',
resourceInfo: '资源情况',
sysMem: "系统内存",

View File

@@ -82,19 +82,19 @@ let tableState: TabeStateType = reactive({
/**表格字段列 */
let tableColumns: ColumnsType = [
{
title: t('views.configManage.neManage.neType'),
title: t('views.ne.common.neType'),
dataIndex: 'neType',
align: 'left',
width: 100,
},
{
title: t('views.configManage.neManage.neId'),
title: t('views.ne.common.neId'),
dataIndex: 'neId',
align: 'left',
width: 100,
},
{
title: t('views.configManage.neManage.uid'),
title: t('views.ne.common.rmUid'),
dataIndex: 'rmUid',
align: 'left',
width: 150,
@@ -415,7 +415,7 @@ onMounted(() => {
<a-row :gutter="16">
<a-col :lg="6" :md="12" :xs="24">
<a-form-item
:label="t('views.configManage.neManage.neType')"
:label="t('views.ne.common.neType')"
name="neType "
>
<a-auto-complete
@@ -544,7 +544,7 @@ onMounted(() => {
</a-tooltip>
<a-tooltip>
<template #title>
{{ t('views.configManage.neManage.restart') }}
{{ t('views.ne.common.restart') }}
</template>
<a-button
type="link"
@@ -567,11 +567,11 @@ onMounted(() => {
</a-menu-item>
<a-menu-item key="start">
<ThunderboltOutlined />
{{ t('views.configManage.neManage.start') }}
{{ t('views.ne.common.start') }}
</a-menu-item>
<a-menu-item key="stop">
<CloseSquareOutlined />
{{ t('views.configManage.neManage.stop') }}
{{ t('views.ne.common.stop') }}
</a-menu-item>
<a-menu-item
key="reload"
@@ -580,7 +580,7 @@ onMounted(() => {
"
>
<SyncOutlined />
{{ t('views.configManage.neManage.reload') }}
{{ t('views.ne.common.reload') }}
</a-menu-item>
<a-menu-item key="delete">
<DeleteOutlined />
@@ -588,7 +588,7 @@ onMounted(() => {
</a-menu-item>
<a-menu-item key="oam">
<FileTextOutlined />
OAM
{{ t('views.ne.common.oam') }}
</a-menu-item>
</a-menu>
</template>
@@ -610,8 +610,8 @@ onMounted(() => {
>
{{
record.serverState.online
? t('views.ne.neInfo.normalcy')
: t('views.ne.neInfo.exceptions')
? t('views.ne.common.normalcy')
: t('views.ne.common.exceptions')
}}
</a-tag>
</div>
@@ -620,11 +620,11 @@ onMounted(() => {
<span>{{ record.serverState.version }}</span>
</div>
<div>
<span>{{ t('views.ne.neInfo.serialNum') }}</span>
<span>{{ t('views.ne.common.serialNum') }}</span>
<span>{{ record.serverState.sn }}</span>
</div>
<div>
<span>{{ t('views.ne.neInfo.expiryDate') }}</span>
<span>{{ t('views.ne.common.expiryDate') }}</span>
<span>{{ record.serverState.expire }}</span>
</div>
</a-col>