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

@@ -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>