This commit is contained in:
ann 2024-03-06 10:20:30 +08:00
commit 6e5457b522
4 changed files with 17 additions and 21 deletions

View File

@ -17,7 +17,8 @@
"name": "Name",
"confirm": "确定",
"easyCreate": "快捷创建",
"next": "下一步"
"next": "下一步",
"success": "操作成功"
},
"menu": {
"taskManagement": "Task Management",
@ -71,9 +72,6 @@
"address":"地址",
"creationTime":"创建时间",
"delete":"删除",
"shu":"数算",
"zhi":"智算",
"chao":"云算",
"associatedCluster":"已关联集群",
"description":"description",
"edit":"编辑",

View File

@ -17,7 +17,8 @@
"name": "名称",
"confirm": "确定",
"easyCreate": "快捷创建",
"next": "下一步"
"next": "下一步",
"success": "操作成功"
},
"menu": {
"taskManagement": "任务管理",
@ -49,7 +50,7 @@
"requireSelect": "必选项"
},
"page": {
"cloud": "算",
"cloud": "算",
"hpc": "超算",
"ai": "智算",
"title": "云际计算开源社区",
@ -71,9 +72,6 @@
"address":"地址",
"creationTime":"创建时间",
"delete":"删除",
"shu":"数算",
"zhi":"智算",
"chao":"超算",
"associatedCluster":"已关联集群",
"description":"描述",
"edit":"编辑",

View File

@ -9,33 +9,33 @@
>
<el-form-item
prop="name"
label="Participant名称"
:label="$t('page.participantName')"
>
<el-input v-model="editInfoForm.name" :maxlength="63" />
</el-form-item>
<el-form-item
prop="type"
label="计算类型"
:label="$t('page.calculationType')"
>
<el-radio v-model="editInfoForm.type" label="0">数算</el-radio>
<el-radio v-model="editInfoForm.type" label="1">智算</el-radio>
<el-radio v-model="editInfoForm.type" label="2">超算</el-radio>
<el-radio v-model="editInfoForm.type" label="0">{{ $t('page.cloud') }}</el-radio>
<el-radio v-model="editInfoForm.type" label="1">{{ $t('page.ai') }}</el-radio>
<el-radio v-model="editInfoForm.type" label="2">{{ $t('page.hpc') }}</el-radio>
</el-form-item>
<el-form-item
prop="nickname"
label="技术栈名称"
:label="$t('page.stackName')"
>
<el-input v-model="editInfoForm.nickname" />
</el-form-item>
<el-form-item
prop="version"
label="技术栈版本号"
:label="$t('page.stackVersion')"
>
<el-input v-model="editInfoForm.version" />
</el-form-item>
<el-form-item
prop="server"
label="地址"
:label="$t('page.address')"
>
<el-input v-model="editInfoForm.server" />
</el-form-item>
@ -120,13 +120,13 @@ export default {
if (valid) {
if (this.isEdit) {
updateAdapter(this.editInfoForm).then(res => {
this.$message.success('操作成功')
this.$message.success(this.$t('message.success'))
this.createFormVisible = false
this.$emit('getList')
})
} else {
createAdapter(this.editInfoForm).then(res => {
this.$message.success('操作成功')
this.$message.success(this.$t('message.success'))
this.createFormVisible = false
this.$emit('getList')
})

View File

@ -1,7 +1,7 @@
<template>
<div class="podInfo">
<el-card class="basicInfo">
<img src="@/assets/images/node.png" class="sidebar-logo" alt="项目">
<img src="@/assets/images/node.png" class="sidebar-logo" alt="">
<h4>{{ $t('page.adapter') }}</h4>
<span class="tips title-tips">
{{ $t('page.adapterDesc') }}</span>
@ -70,7 +70,7 @@ export default {
}
},
num: 0,
typeList: [this.$t('page.shu'), this.$t('page.zhi'), this.$t('page.chao')],
typeList: [this.$t('page.cloud'), this.$t('page.ai'), this.$t('page.hpc')],
activeName: '0',
updateData: {},
columns: [