Explorar o código

fix: hide button when not related

Eagle hai 8 meses
pai
achega
2cc6278491
Modificáronse 1 ficheiros con 15 adicións e 3 borrados
  1. 15 3
      src/views/task/bizProcess/index.vue

+ 15 - 3
src/views/task/bizProcess/index.vue

@@ -18,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">