Browse Source

规则测试bug

zhouna 4 years ago
parent
commit
0721c1a771
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/components/autoTest/AutoKnowledgeMapRuleTest.vue

+ 5 - 5
src/components/autoTest/AutoKnowledgeMapRuleTest.vue

@@ -52,21 +52,21 @@
             <el-button
               type="text"
               size="small"
-              @click="handleTest(scope.row, scope.$index)"
+              @click="handleTest(scope.row, scope.row.caseId-1)"
               :disabled="!runningStatus"
             >
               {{
-              runningStatusArr[scope.$index] === 1
+              runningStatusArr[scope.row.caseId-1] === 1
               ? '执行测试中'
               : '执行测试'
               }}
             </el-button>
-            <span v-if="runningStatusArr[scope.$index] === 1">|</span>
+            <span v-if="runningStatusArr[scope.row.caseId-1] === 1">|</span>
             <el-button
-              v-if="runningStatusArr[scope.$index] === 1"
+              v-if="runningStatusArr[scope.row.caseId-1] === 1"
               type="text"
               size="small"
-              @click="handleUpdateStatus(scope.row, scope.$index)"
+              @click="handleUpdateStatus(scope.row, scope.row.caseId-1)"
             >重置</el-button>
           </template>
         </el-table-column>