Browse Source

[bug] 修改算法任务相关bug

zishang 3 months ago
parent
commit
5f489007ac
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/modules/alg/train.vue

+ 3 - 3
src/views/modules/alg/train.vue

@@ -84,8 +84,8 @@
           <!-- <el-button type="text" size="small"
             @click="install(scope.row.algorithmTrainingId)">安装</el-button> -->
 
-          <el-button v-if="isAuth('train:run')" type="text" size="small" :disabled="scope.row.missStatus==1?false:true"
-            @click="runtrain(scope.row.algorithmTrainingId,scope.row.algFrameId,scope.row.algorithmId)">运行</el-button>
+          <el-button v-if="isAuth('train:run')" type="text" size="small"
+            @click="runtrain(scope.row.algorithmTrainingId,scope.row.algFrameId,scope.row.algorithmId)">{{ scope.row.hasRun !==null ? '再次运行' : '运行' }}</el-button>
 
           <el-button v-if="isAuth('train:stop')" type="text" size="small" :disabled="scope.row.missStatus==2?false:true"
             @click="pauseHandle(scope.row.algorithmTrainingId)">暂停</el-button>
@@ -519,9 +519,9 @@ export default {
                   algorithmTrainingId:id
                 }),
               }).then(({data})=>{
-
             });
         });
+        this.getDataList();
       }).catch(() => {})