feat: UDM鉴权用户多语言

This commit is contained in:
TsMask
2023-09-21 20:29:44 +08:00
parent 43f4451269
commit 1a3d1e0d49
3 changed files with 35 additions and 38 deletions

View File

@@ -3,7 +3,7 @@ export default {
i18n: 'English', i18n: 'English',
hello: 'Hello', hello: 'Hello',
// 网管通用 // 通用
common: { common: {
title: 'Core network management system', title: 'Core network management system',
desc: '', desc: '',
@@ -12,10 +12,10 @@ export default {
msgSuccess: 'Success {msg}', msgSuccess: 'Success {msg}',
errorFields: 'Please fill in the required information in {num} correctly!', errorFields: 'Please fill in the required information in {num} correctly!',
tablePaginationTotal: 'A total of {total} items', tablePaginationTotal: 'A total of {total} items',
ok: "Ok", ok: 'Ok',
cancel: "Cancel", cancel: 'Cancel',
search: "Search", search: 'Search',
reset: "Reset", reset: 'Reset',
addText: 'Add', addText: 'Add',
editText: 'Edit', editText: 'Edit',
deleteText: 'Delete', deleteText: 'Delete',
@@ -36,16 +36,10 @@ export default {
launch: 'Launch', launch: 'Launch',
fold: 'Fold', fold: 'Fold',
}, },
rowId:"RowID", rowId: 'RowID',
operate: "Operate", operate: 'Operate',
}, },
// 网元通用
nfCommon:{
getAll:'Get ALL'
},
// 全局页脚 // 全局页脚
globalFooter: { globalFooter: {
help: 'Help', help: 'Help',
@@ -73,18 +67,18 @@ nfCommon:{
// 页面 // 页面
views: { views: {
index:{ index: {
hostName:"hostName", hostName: 'hostName',
osInfo:"osInfo", osInfo: 'osInfo',
dbInfo:"dbInfo", dbInfo: 'dbInfo',
ipAddress:"ipAddress", ipAddress: 'ipAddress',
port:"port", port: 'port',
version: "version", version: 'version',
cpuUse: "CPU Usage", cpuUse: 'CPU Usage',
memoryUse:"memoryUse", memoryUse: 'memoryUse',
capability:"capability" , capability: 'capability',
serialNum: "serialNum", serialNum: 'serialNum',
expiryDate:"expiryDate", expiryDate: 'expiryDate',
}, },
login: { login: {
tabPane1: 'Account password login', tabPane1: 'Account password login',
@@ -121,10 +115,15 @@ nfCommon:{
neTypePlease: '查询网元类型', neTypePlease: '查询网元类型',
neType: 'Type', neType: 'Type',
fileName: 'FileName', fileName: 'FileName',
version: 'Version', version: 'Version',
softwareLoadTime: '软件加载时间', softwareLoadTime: '软件加载时间',
description: '功能描述', description: '功能描述',
}, },
}, },
neUser: {
auth: {
getAll: 'Get ALL',
},
},
}, },
}; };

View File

@@ -3,7 +3,7 @@ export default {
i18n: '中文', i18n: '中文',
hello: '你好', hello: '你好',
// 网管通用 // 通用
common: { common: {
title: '核心网管理系统', title: '核心网管理系统',
desc: '', desc: '',
@@ -40,13 +40,6 @@ export default {
operate: '操作', operate: '操作',
}, },
// 网元通用
nfCommon:{
getAll:'全部获取'
},
// 全局页脚 // 全局页脚
globalFooter: { globalFooter: {
help: '', help: '',
@@ -122,10 +115,15 @@ export default {
neTypePlease: '查询网元类型', neTypePlease: '查询网元类型',
neType: '网元类型', neType: '网元类型',
fileName: '文件名', fileName: '文件名',
version: '版本', version: '版本',
softwareLoadTime: '软件加载时间', softwareLoadTime: '软件加载时间',
description: '功能描述', description: '功能描述',
}, },
}, },
neUser: {
auth: {
getAll: '全部获取',
},
},
}, },
}; };

View File

@@ -429,10 +429,10 @@ onMounted(() => {
<template #icon><PlusOutlined /></template> <template #icon><PlusOutlined /></template>
{{ t('common.addText') }} {{ t('common.addText') }}
</a-button> </a-button>
<!-- <a-button type="primary" @click.prevent="fnGetAll"> <a-button type="primary" @click.prevent="fnGetAll">
<template #icon><PlusOutlined /></template> <template #icon><PlusOutlined /></template>
{{ t('nfCommon.getAll') }} {{ t('views.neUser.auth.getAll') }}
</a-button> --> </a-button>
</a-space> </a-space>
</template> </template>