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

View File

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

View File

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