|
|
@@ -55,13 +55,13 @@
|
|
|
<template #default="scope">
|
|
|
<div v-if="scope.row.trainingState==='SUCCESS'">
|
|
|
<el-button type="text" @click="editUseModel(scope.row.id)">模型使用</el-button>
|
|
|
+ <el-button type="text" @click="handleDeploy(scope.row.id)">部署</el-button>
|
|
|
<el-button type="text" @click="handlePipeline(scope.row.id)">新建流水线
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
<el-button type="text" style="color: gray">暂未成功训练</el-button>
|
|
|
</div>
|
|
|
- <el-button type="text" @click="handleDeploy(scope.row.id)">部署</el-button>
|
|
|
<el-button type="text" class="yellow" @click="handleShare(scope.$index, scope.row)">分享</el-button>
|
|
|
<el-button type="text" class="red" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
@@ -354,6 +354,10 @@ export default {
|
|
|
modelId: deployModel.value,
|
|
|
deploymentName: deployName.value
|
|
|
}
|
|
|
+ if(payload.deploymentName === undefined){
|
|
|
+ alert('请输入必要信息!')
|
|
|
+ return
|
|
|
+ }
|
|
|
addDeployment(payload).then(res=>{
|
|
|
if (res.msg === '成功'){
|
|
|
ElMessage.success('开始部署!')
|