---新增系统信息国际化
This commit is contained in:
@@ -656,6 +656,40 @@ export default {
|
||||
getOut:'Forced retreat',
|
||||
getOutSure:'Confirm the forced logout of the user whose login account is {userName} ?',
|
||||
},
|
||||
system:{
|
||||
systemInfo:'System Information',
|
||||
runPlace:'Running Platform',
|
||||
placeVersion:'Platform Version',
|
||||
systemPlace:'System Platform',
|
||||
systemArchitecture:'System Architecture',
|
||||
host:'Host Name',
|
||||
runTime:'Running Time',
|
||||
cpuInfo:'CPU information',
|
||||
model:'Model',
|
||||
hz:'Rate Hz',
|
||||
cores:'Number of Cores',
|
||||
usage:'Usage Rate (%)',
|
||||
memory:'memory information',
|
||||
totalMemory:'Total Memory',
|
||||
lastMemory:'Remaining Memory',
|
||||
proMemory:'Total process memory',
|
||||
heapSize:'Total size of the heap',
|
||||
heapUsage:'Heap Allocated',
|
||||
libUse:'Link Library Occupation',
|
||||
timeInfo:'Time Information',
|
||||
time:'Time',
|
||||
timeZone:'Time Zone',
|
||||
timeZoneName:'time Zone Name',
|
||||
networkInfo:'Network Information',
|
||||
ethernet:'Ethernet',
|
||||
localConnect:'Local Connection* ',
|
||||
diskInfo:'Disk Information',
|
||||
disk:'Path Drive Letter',
|
||||
totalSize:'Total size',
|
||||
lastSize:'Remaining size',
|
||||
usageSize:'Used size',
|
||||
spaceUsage:'Space usage (%)'
|
||||
},
|
||||
job: {
|
||||
jobName: "JobName",
|
||||
jobNamePlease: 'Please enter the task name correctly, limited to 2-20 characters',
|
||||
@@ -902,7 +936,7 @@ export default {
|
||||
delAllSure:'Confirm to clear all login log data items?',
|
||||
delAllSuss:'Cleared successfully',
|
||||
operModule:'Operation module',
|
||||
operTime:'operation time',
|
||||
operTime:'Operation time',
|
||||
delAll:'Clear',
|
||||
fail:'Failed',
|
||||
suss:'Normal',
|
||||
@@ -916,7 +950,7 @@ export default {
|
||||
account:'Login Account',
|
||||
loginIp:'Login Address',
|
||||
loginLoc:'Login Location',
|
||||
os:'operating System',
|
||||
os:'Operating System',
|
||||
browser:'Browser',
|
||||
status:'Status',
|
||||
info:'Login Information',
|
||||
@@ -928,7 +962,7 @@ export default {
|
||||
unlockSuss:'{userName} unlocked successfully',
|
||||
unlockSure:'Confirm to unlock user [{username}] data item?',
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
mmlManage: {
|
||||
cmdTitle: "Command Navigator",
|
||||
|
||||
@@ -656,6 +656,40 @@ export default {
|
||||
getOut:'强退',
|
||||
getOutSure:'确认强退登录账号为 {userName} 的用户?',
|
||||
},
|
||||
system:{
|
||||
systemInfo:'系统信息',
|
||||
runPlace:'运行平台',
|
||||
placeVersion:'平台版本',
|
||||
systemPlace:'系统平台',
|
||||
systemArchitecture:'系统架构',
|
||||
host:'主机名称',
|
||||
runTime:'运行时长',
|
||||
cpuInfo:'CPU信息',
|
||||
model:'型号',
|
||||
hz:'速率Hz',
|
||||
cores:'核心数',
|
||||
usage:'使用率(%)',
|
||||
memory:'内存信息',
|
||||
totalMemory:'总内存',
|
||||
lastMemory:'剩余内存',
|
||||
proMemory:'进程总内存',
|
||||
heapSize:'堆的总大小',
|
||||
heapUsage:'堆已分配',
|
||||
libUse:'链接库占用',
|
||||
timeInfo:'时间信息',
|
||||
time:'时间',
|
||||
timeZone:'时区',
|
||||
timeZoneName:'时区名称',
|
||||
networkInfo:'网络信息',
|
||||
ethernet:'以太网',
|
||||
localConnect:'本地连接* ',
|
||||
diskInfo:'磁盘信息',
|
||||
disk:'路径盘符',
|
||||
totalSize:'总大小',
|
||||
lastSize:'剩余大小',
|
||||
usageSize:'已使用大小',
|
||||
spaceUsage:'空间使用率(%)'
|
||||
},
|
||||
job: {
|
||||
jobName: "任务名称",
|
||||
jobNamePlease: '请正确输入任务名称,限2-20个字符',
|
||||
|
||||
@@ -13,28 +13,28 @@ let loading = ref<boolean>(true);
|
||||
/**磁盘信息表格字段列 */
|
||||
let diskTableColumns: ColumnsType = [
|
||||
{
|
||||
title: '路径盘符',
|
||||
title: t('views.monitor.system.disk'),
|
||||
dataIndex: 'target',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '总大小',
|
||||
title: t('views.monitor.system.totalSize'),
|
||||
dataIndex: 'size',
|
||||
align: 'center',
|
||||
},
|
||||
|
||||
{
|
||||
title: '剩余大小',
|
||||
title: t('views.monitor.system.lastSize'),
|
||||
dataIndex: 'avail',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '已使用大小',
|
||||
title: t('views.monitor.system.usageSize'),
|
||||
dataIndex: 'used',
|
||||
align: 'center',
|
||||
},
|
||||
{
|
||||
title: '空间使用率(%)',
|
||||
title: t('views.monitor.system.spaceUsage'),
|
||||
dataIndex: 'pcent',
|
||||
align: 'center',
|
||||
},
|
||||
@@ -122,7 +122,7 @@ onMounted(() => {
|
||||
<template>
|
||||
<PageContainer :loading="loading">
|
||||
<a-card
|
||||
title="系统信息"
|
||||
:title="t('views.monitor.system.systemInfo')"
|
||||
:bordered="false"
|
||||
:body-style="{ marginBottom: '24px', padding: 0 }"
|
||||
>
|
||||
@@ -133,29 +133,31 @@ onMounted(() => {
|
||||
:column="{ lg: 2, md: 2, xs: 1 }"
|
||||
:bordered="true"
|
||||
>
|
||||
<a-descriptions-item label="运行平台">
|
||||
<a-descriptions-item :label="t('views.monitor.system.runPlace')">
|
||||
{{ server.system.platform }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="平台版本">
|
||||
<a-descriptions-item :label="t('views.monitor.system.placeVersion')">
|
||||
{{ server.system.platformVersion }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="系统平台">
|
||||
<a-descriptions-item :label="t('views.monitor.system.systemPlace')">
|
||||
{{ server.system.os }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="系统架构">
|
||||
<a-descriptions-item
|
||||
:label="t('views.monitor.system.systemArchitecture')"
|
||||
>
|
||||
{{ server.system.arch }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="主机名称">
|
||||
<a-descriptions-item :label="t('views.monitor.system.host')">
|
||||
{{ server.system.hostname }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="运行时长">
|
||||
<a-descriptions-item :label="t('views.monitor.system.runTime')">
|
||||
{{ loadUpTime(server.system.bootTime) }}
|
||||
</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
</a-card>
|
||||
|
||||
<a-card
|
||||
title="CPU信息"
|
||||
:title="t('views.monitor.system.cpuInfo')"
|
||||
:bordered="false"
|
||||
:body-style="{ marginBottom: '24px', padding: 0 }"
|
||||
>
|
||||
@@ -166,23 +168,23 @@ onMounted(() => {
|
||||
:column="1"
|
||||
:bordered="true"
|
||||
>
|
||||
<a-descriptions-item label="型号">
|
||||
<a-descriptions-item :label="t('views.monitor.system.model')">
|
||||
{{ server.cpu.model }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="速率Hz">
|
||||
<a-descriptions-item :label="t('views.monitor.system.hz')">
|
||||
{{ server.cpu.speed }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="核心数">
|
||||
<a-descriptions-item :label="t('views.monitor.system.cores')">
|
||||
{{ server.cpu.core }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="使用率(%)">
|
||||
<a-descriptions-item :label="t('views.monitor.system.usage')">
|
||||
{{ server.cpu.coreUsed }}
|
||||
</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
</a-card>
|
||||
|
||||
<a-card
|
||||
title="内存信息"
|
||||
:title="t('views.monitor.system.memory')"
|
||||
:bordered="false"
|
||||
:body-style="{ marginBottom: '24px', padding: 0 }"
|
||||
>
|
||||
@@ -193,32 +195,32 @@ onMounted(() => {
|
||||
:column="{ lg: 2, md: 2, xs: 1 }"
|
||||
:bordered="true"
|
||||
>
|
||||
<a-descriptions-item label="总内存">
|
||||
<a-descriptions-item :label="t('views.monitor.system.totalMemory')">
|
||||
{{ server.memory.totalmem }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="剩余内存">
|
||||
<a-descriptions-item :label="t('views.monitor.system.lastMemory')">
|
||||
{{ server.memory.freemem }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="使用率(%)">
|
||||
<a-descriptions-item :label="t('views.monitor.system.usage')">
|
||||
{{ server.memory.usage }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="进程总内存">
|
||||
<a-descriptions-item :label="t('views.monitor.system.proMemory')">
|
||||
{{ server.memory.rss }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="堆的总大小">
|
||||
<a-descriptions-item :label="t('views.monitor.system.heapSize')">
|
||||
{{ server.memory.heapTotal }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="堆已分配">
|
||||
<a-descriptions-item :label="t('views.monitor.system.heapUsage')">
|
||||
{{ server.memory.heapUsed }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="链接库占用">
|
||||
<a-descriptions-item :label="t('views.monitor.system.libUse')">
|
||||
{{ server.memory.external }}
|
||||
</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
</a-card>
|
||||
|
||||
<a-card
|
||||
title="时间信息"
|
||||
:title="t('views.monitor.system.timeInfo')"
|
||||
:bordered="false"
|
||||
:body-style="{ marginBottom: '24px', padding: 0 }"
|
||||
>
|
||||
@@ -229,20 +231,20 @@ onMounted(() => {
|
||||
:column="{ lg: 3, md: 3, xs: 1 }"
|
||||
:bordered="true"
|
||||
>
|
||||
<a-descriptions-item label="时间">
|
||||
<a-descriptions-item :label="t('views.monitor.system.time')">
|
||||
{{ server.time.current }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="时区">
|
||||
<a-descriptions-item :label="t('views.monitor.system.timeZone')">
|
||||
{{ server.time.timezone }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="时区名称">
|
||||
<a-descriptions-item :label="t('views.monitor.system.timeZoneName')">
|
||||
{{ server.time.timezoneName }}
|
||||
</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
</a-card>
|
||||
|
||||
<a-card
|
||||
title="网络信息"
|
||||
:title="t('views.monitor.system.networkInfo')"
|
||||
:bordered="false"
|
||||
:body-style="{ marginBottom: '24px', padding: 0 }"
|
||||
>
|
||||
@@ -263,7 +265,11 @@ onMounted(() => {
|
||||
</a-descriptions>
|
||||
</a-card>
|
||||
|
||||
<a-card title="磁盘信息" :bordered="false" :body-style="{ padding: 0 }">
|
||||
<a-card
|
||||
:title="t('views.monitor.system.diskInfo')"
|
||||
:bordered="false"
|
||||
:body-style="{ padding: 0 }"
|
||||
>
|
||||
<a-table
|
||||
class="disk"
|
||||
row-key="target"
|
||||
|
||||
Reference in New Issue
Block a user