feat: 网元公共配置多语言翻译

This commit is contained in:
TsMask
2024-05-20 16:20:58 +08:00
parent c1a9497b77
commit 624f67ecca
3 changed files with 13 additions and 3 deletions

View File

@@ -727,6 +727,11 @@ export default {
licensePath: "License File", licensePath: "License File",
licensePathTip: "Please upload license file", licensePathTip: "Please upload license file",
}, },
neConfPara5G: {
title: 'Save Info',
sync: 'Sync to NE',
syncNe: 'Select NE',
},
}, },
neUser: { neUser: {
auth: { auth: {

View File

@@ -727,6 +727,11 @@ export default {
licensePath: "许可证文件", licensePath: "许可证文件",
licensePathTip: "请上传许可证文件", licensePathTip: "请上传许可证文件",
}, },
neConfPara5G: {
title: '保存信息',
sync: '同步到网元',
syncNe: '选择网元',
},
}, },
neUser: { neUser: {
auth: { auth: {

View File

@@ -394,7 +394,7 @@ onMounted(() => {
:keyboard="false" :keyboard="false"
:mask-closable="false" :mask-closable="false"
:visible="state.visible" :visible="state.visible"
title="保存信息" :title="t('views.ne.neConfPara5G.title')"
:confirm-loading="state.confirmLoading" :confirm-loading="state.confirmLoading"
@ok="fnModalOk" @ok="fnModalOk"
@cancel="fnModalCancel" @cancel="fnModalCancel"
@@ -405,7 +405,7 @@ onMounted(() => {
:label-col="{ span: 5 }" :label-col="{ span: 5 }"
:label-wrap="true" :label-wrap="true"
> >
<a-form-item label="Sync To NE" name="sync"> <a-form-item :label="t('views.ne.neConfPara5G.sync')" name="sync">
<a-switch <a-switch
:checked-children="t('common.switch.open')" :checked-children="t('common.switch.open')"
:un-checked-children="t('common.switch.shut')" :un-checked-children="t('common.switch.shut')"
@@ -413,7 +413,7 @@ onMounted(() => {
:disabled="state.confirmLoading" :disabled="state.confirmLoading"
></a-switch> ></a-switch>
</a-form-item> </a-form-item>
<a-form-item label="Select NE" name="syncNe" v-if="state.sync"> <a-form-item :label="t('views.ne.neConfPara5G.syncNe')" name="syncNe" v-if="state.sync">
<a-select <a-select
v-model:value="state.syncNe" v-model:value="state.syncNe"
mode="multiple" mode="multiple"