|
@@ -3,7 +3,6 @@
|
|
|
<ProTable ref="proTable" :columns="columns" row-key="id" :data="bizProcessList">
|
|
|
<!-- 表格 header 按钮 -->
|
|
|
<template #tableHeader="scope">
|
|
|
- <!-- #tableHeader="scope"-->
|
|
|
<!-- <el-button type="primary" v-auth="['identification:identificationSubtaskDetails:add']" icon="CirclePlus" @click="openDialog(1, '算法业务处理新增')"> 新增 </el-button>
|
|
|
<el-button type="primary" v-auth="['identification:identificationSubtaskDetails:import']" icon="Upload" plain @click="batchAdd"> 导入 </el-button> -->
|
|
|
<!-- <el-button type="primary" v-auth="['identification:identificationSubtaskDetails:export']" icon="Download" plain @click="downloadFile">-->
|
|
@@ -19,10 +18,22 @@
|
|
|
<!-- >-->
|
|
|
<!-- 批量删除-->
|
|
|
<!-- </el-button>-->
|
|
|
- <el-button type="primary" icon="View" @click="showCompareResult"> 验证指标对比 </el-button>
|
|
|
+ <!-- v-if="!scope.row.name.includes('训练')"-->
|
|
|
+ <el-button v-if="listData.length > 0 && !listData[0].name.includes('训练')" type="primary" icon="View" @click="showCompareResult()">
|
|
|
+ 验证指标对比
|
|
|
+ </el-button>
|
|
|
<!-- <el-button type="primary" icon="View" @click="showValResult(true)"> 验证结果 </el-button>-->
|
|
|
- <el-button type="primary" icon="View" @click="showValResult(false && scope.row)"> 测试结果 </el-button>
|
|
|
- <el-button type="primary" icon="View" @click="showValResult(true)"> 验证结果 </el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="listData.length > 0 && !listData[0].name.includes('训练')"
|
|
|
+ type="primary"
|
|
|
+ icon="View"
|
|
|
+ @click="showValResult(false && scope.row)"
|
|
|
+ >
|
|
|
+ 测试结果
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="listData.length > 0 && !listData[0].name.includes('训练')" type="primary" icon="View" @click="showValResult(true)">
|
|
|
+ 验证结果
|
|
|
+ </el-button>
|
|
|
</template>
|
|
|
<!-- 表格操作 -->
|
|
|
<template #operation="scope">
|
|
@@ -35,6 +46,7 @@
|
|
|
<!-- >-->
|
|
|
<!-- 查看详情-->
|
|
|
<!-- </el-button>-->
|
|
|
+
|
|
|
<el-button v-if="scope.row.name.indexOf('训练') === -1" type="primary" link icon="Refresh" @click="reRunTask(scope.row)">
|
|
|
执行训练
|
|
|
</el-button>
|
|
@@ -51,11 +63,6 @@
|
|
|
</el-button>
|
|
|
|
|
|
<el-button type="primary" link icon="Refresh" @click="exportData(scope.row)"> 导出结果 </el-button>
|
|
|
-
|
|
|
- <!-- <el-button type="primary" link icon="EditPen" v-auth="['identification:identificationSubtaskDetails:edit']" @click="openDialog(2, '算法业务处理编辑', scope.row)">-->
|
|
|
- <!-- 编辑-->
|
|
|
- <!-- </el-button>-->
|
|
|
- <!-- <el-button type="primary" link icon="Delete" v-auth="['identification:identificationSubtaskDetails:remove']" @click="deleteBizProcess(scope.row)"> 删除 </el-button>-->
|
|
|
</template>
|
|
|
</ProTable>
|
|
|
<FormDialog ref="formDialogRef" />
|