forked from JointCloud/JCC-RIP
multilingual
This commit is contained in:
parent
c9dae16e32
commit
c47de5df49
|
@ -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": "智算任务名称"
|
||||
}
|
||||
}
|
|
@ -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": "智算任务名称"
|
||||
}
|
||||
}
|
|
@ -52,7 +52,7 @@
|
|||
<el-col :span="24">
|
||||
<el-card class="">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>资源</span>
|
||||
<span>{{ $t('page.resource') }}</span>
|
||||
</div>
|
||||
<el-row v-for="(item, index) in resourceList" :key="index" class="resource">
|
||||
<el-col :span="14">
|
||||
|
@ -66,8 +66,8 @@
|
|||
<el-col :span="10">
|
||||
<div class="dataset">
|
||||
<div class="impact">{{ item.name.toUpperCase() }}</div>
|
||||
<p>已使用 {{ item.used }}</p>
|
||||
<span class="tips">总数: {{ item.total }}</span>
|
||||
<p>{{ $t('page.used') }} {{ item.used }}</p>
|
||||
<span class="tips">{{ $t('page.allNum') }}: {{ item.total }}</span>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -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 <div> <a href='https://' target='_blank'>{ this.$t('page.clusterDetails') }</a> </div>
|
||||
} }
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
<el-row>
|
||||
<el-card class="modelarts-div">
|
||||
<div slot="header" class="clearfix">
|
||||
<span>集群情况</span>
|
||||
<span>{{ $t('page.clusterSituation') }}</span>
|
||||
<div class="floatRight">
|
||||
<el-radio-group v-model="current" @change="change_current">
|
||||
<el-radio-button label="当前" />
|
||||
<el-radio-button label="历史" />
|
||||
<el-radio-button label="current">{{ $t('page.current') }}</el-radio-button>
|
||||
<el-radio-button label="history">{{ $t('page.history') }}</el-radio-button>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -81,7 +81,7 @@
|
|||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-card class="dashboardList">
|
||||
<h3>智算算力中心展示</h3>
|
||||
<h3>{{ $t('page.centerShow') }}</h3>
|
||||
<List
|
||||
ref="multipleTable"
|
||||
:get-list-action="getCenterList"
|
||||
|
@ -94,7 +94,7 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-card class="dashboardList">
|
||||
<h3>智算任务作业情况</h3>
|
||||
<h3>{{ $t('page.jobSituation') }}</h3>
|
||||
<List
|
||||
ref="multipleTable"
|
||||
:get-list-action="getCenterTaskList"
|
||||
|
@ -128,24 +128,24 @@ export default {
|
|||
},
|
||||
taskData: [
|
||||
],
|
||||
current: '当前',
|
||||
current: 'current',
|
||||
getNoticeList,
|
||||
height: Math.round(document.body.offsetHeight * 0.38 - 115).toString(),
|
||||
exhibitionArray: [
|
||||
{ name: '智算中心数', src: 'hpc-1', value: '0', key: 'adapterCount' },
|
||||
{ name: '智算任务数', src: 'modelart-2', value: '0', key: 'taskCount' },
|
||||
{ name: '算力卡张数', src: 'modelart-gpu', value: '0', key: 'clusterCount' },
|
||||
{ name: '合计接入算力(TOPS)', src: 'modelart-4', value: '0', key: 'clusterCount' }
|
||||
{ name: this.$t('page.centerNum'), src: 'hpc-1', value: '0', key: 'adapterCount' },
|
||||
{ name: this.$t('page.modelartTaskNum'), src: 'modelart-2', value: '0', key: 'taskCount' },
|
||||
{ name: this.$t('page.cards'), src: 'modelart-gpu', value: '0', key: 'clusterCount' },
|
||||
{ name: this.$t('page.computingPower') + '(TOPS)', src: 'modelart-4', value: '0', key: 'clusterCount' }
|
||||
],
|
||||
columns1: [
|
||||
{ prop: 'name', label: '算力中心名称' },
|
||||
{ prop: 'stack', label: '技术栈名称' },
|
||||
{ prop: 'version', label: '技术栈版本' }
|
||||
{ prop: 'name', label: this.$t('page.centerName') },
|
||||
{ prop: 'stack', label: this.$t('page.stackName') },
|
||||
{ prop: 'version', label: this.$t('page.stackVersion') }
|
||||
],
|
||||
columns2: [
|
||||
{ prop: 'name', label: '智算任务名称' },
|
||||
{ prop: 'status', label: '作业状态' },
|
||||
{ prop: 'elapsed', label: '已运行时间', formatter: row => {
|
||||
{ prop: 'name', label: this.$t('page.modelartName') },
|
||||
{ prop: 'status', label: this.$t('page.jobStatus') },
|
||||
{ prop: 'elapsed', label: this.$t('page.elapsedTime'), formatter: row => {
|
||||
return <div>{ formatDuration(row.elapsed)}</div>
|
||||
} },
|
||||
{ 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 || []
|
||||
|
|
Loading…
Reference in New Issue