diff --git a/public/locales/en.json b/public/locales/en.json index 334b07c..80c8f4d 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -308,7 +308,7 @@ "minute": "分钟", "second": "秒", "immediately": "即刻", - "warnListText": "...", + "warnListText": "实时展示系统异常,快速定位风险,确保业务稳定运行。", "month": "月", "daty": "日", "cpuLoad": "CPU整体负载", @@ -330,6 +330,25 @@ "compStatus": "PCM组件状态", "cpuUsageTop": "节点CPU用量", "memoryUsageTop": "节点内存用量", - "resourceUsage": "集群资源使用情况" + "resourceUsage": "集群资源使用情况", + "resource": "资源", + "used": "已使用", + "allNum": "总数", + "adapterNum": "适配器总数", + "stackNum": "软件栈总数", + "clusterNum": "集群总数", + "jobName": "作业名称", + "jobDomain": "作业所在域", + "clusterSituation": "集群情况", + "centerNum": "智算中心数", + "modelartTaskNum": "智算任务数", + "cards": "算力卡张数", + "current": "当前", + "history": "历史", + "centerShow": "智算算力中心展示", + "jobSituation": "智算任务作业情况", + "computingPower": "合计接入算力", + "centerName": "算力中心名称", + "modelartName": "智算任务名称" } } \ No newline at end of file diff --git a/public/locales/zh.json b/public/locales/zh.json index aba520f..7f9e5b2 100644 --- a/public/locales/zh.json +++ b/public/locales/zh.json @@ -308,7 +308,7 @@ "minute": "分钟", "second": "秒", "immediately": "即刻", - "warnListText": "...", + "warnListText": "实时展示系统异常,快速定位风险,确保业务稳定运行。", "month": "月", "daty": "日", "cpuLoad": "CPU整体负载", @@ -330,6 +330,25 @@ "compStatus": "PCM组件状态", "cpuUsageTop": "节点CPU用量", "memoryUsageTop": "节点内存用量", - "resourceUsage": "集群资源使用情况" + "resourceUsage": "集群资源使用情况", + "resource": "资源", + "used": "已使用", + "allNum": "总数", + "adapterNum": "适配器总数", + "stackNum": "软件栈总数", + "clusterNum": "集群总数", + "jobName": "作业名称", + "jobDomain": "作业所在域", + "clusterSituation": "集群情况", + "centerNum": "智算中心数", + "modelartTaskNum": "智算任务数", + "cards": "算力卡张数", + "current": "当前", + "history": "历史", + "centerShow": "智算算力中心展示", + "jobSituation": "智算任务作业情况", + "computingPower": "合计接入算力", + "centerName": "算力中心名称", + "modelartName": "智算任务名称" } } \ No newline at end of file diff --git a/src/views/hpcOverview/index.vue b/src/views/hpcOverview/index.vue index b3532c7..a211d66 100644 --- a/src/views/hpcOverview/index.vue +++ b/src/views/hpcOverview/index.vue @@ -52,7 +52,7 @@
- 资源 + {{ $t('page.resource') }}
@@ -66,8 +66,8 @@
{{ item.name.toUpperCase() }}
-

已使用 {{ item.used }}

- 总数: {{ item.total }} +

{{ $t('page.used') }} {{ item.used }}

+ {{ $t('page.allNum') }}: {{ item.total }}
@@ -101,22 +101,22 @@ export default { taskList: [], taskDBList: [], exhibitionArray: [ - { name: '适配器总数', src: 'hpc-1', value: '0', key: 'adapterCount' }, - { name: '任务总数', src: 'blockChainBrowser-4', value: '0', key: 'taskCount' }, - { name: '软件栈总数', src: 'blockChainBrowser-1', value: '0', key: 'stackCount' }, - { name: '集群总数', src: 'blockChainBrowser-5', value: '0', key: 'clusterCount' } + { name: this.$t('page.adapterNum'), src: 'hpc-1', value: '0', key: 'adapterCount' }, + { name: this.$t('page.TaskSum'), src: 'blockChainBrowser-4', value: '0', key: 'taskCount' }, + { name: this.$t('page.stackNum'), src: 'blockChainBrowser-1', value: '0', key: 'stackCount' }, + { name: this.$t('page.clusterNum'), src: 'blockChainBrowser-5', value: '0', key: 'clusterCount' } ], domainColumns: [ - { prop: 'adapterName', label: '超算域' }, - { prop: 'stackCount', label: '软件栈总数' }, - { prop: 'taskCount', label: '任务总数' }, - { prop: 'clusterCount', label: '集群总数' } + { prop: 'adapterName', label: this.$t('page.hpcDomain') }, + { prop: 'stackCount', label: this.$t('page.stackNum') }, + { prop: 'taskCount', label: this.$t('page.TaskSum') }, + { prop: 'clusterCount', label: this.$t('page.clusterNum') } ], taskColumns: [ - { prop: 'jobName', label: '作业名称' }, - { prop: 'jobStatus', label: '作业状态' }, - { prop: 'adapterName', label: '作业所在域' }, - { prop: 'clusterName', label: '集群名称' }, + { prop: 'jobName', label: this.$t('page.jobName') }, + { prop: 'jobStatus', label: this.$t('page.jobStatus') }, + { prop: 'adapterName', label: this.$t('page.jobDomain') }, + { prop: 'clusterName', label: this.$t('page.clusterName') }, { prop: 'more', label: this.$t('message.operation'), formatter: (row) => { return
{ this.$t('page.clusterDetails') }
} } diff --git a/src/views/modelarts/overview/index.vue b/src/views/modelarts/overview/index.vue index 6c85354..f0420f7 100644 --- a/src/views/modelarts/overview/index.vue +++ b/src/views/modelarts/overview/index.vue @@ -11,11 +11,11 @@
- 集群情况 + {{ $t('page.clusterSituation') }}
- - + {{ $t('page.current') }} + {{ $t('page.history') }}
@@ -81,7 +81,7 @@ -

智算算力中心展示

+

{{ $t('page.centerShow') }}

-

智算任务作业情况

+

{{ $t('page.jobSituation') }}

{ + { prop: 'name', label: this.$t('page.modelartName') }, + { prop: 'status', label: this.$t('page.jobStatus') }, + { prop: 'elapsed', label: this.$t('page.elapsedTime'), formatter: row => { return
{ formatDuration(row.elapsed)}
} }, { prop: 'more', label: this.$t('message.operation'), formatter: (row) => { @@ -163,7 +163,7 @@ export default { }) getCenterQueueing().then(res => { this.taskOj = res || res.data - if (this.current === '当前') { + if (this.current === 'current') { this.taskData = res.current || res.data.current || [] } else { this.taskData = res.history || res.data.history || [] @@ -172,7 +172,7 @@ export default { }, methods: { change_current() { - if (this.current === '当前') { + if (this.current === 'current') { this.taskData = this.taskOj.current || [] } else { this.taskData = this.taskOj.history || []