fix: 修复测试计划全部执行时只执行了部分接口的问题

修复测试计划全部执行时只执行了部分接口的问题
This commit is contained in:
song-tianyang 2021-04-26 17:51:24 +08:00 committed by 刘瑞斌
parent 8ab5782b64
commit affcb543bc
2 changed files with 23 additions and 14 deletions

View File

@ -0,0 +1,18 @@
package io.metersphere.track.dto;
import lombok.Getter;
import lombok.Setter;
/**
* @author song.tianyang
* @Date 2021/4/26 5:06 下午
* @Description
*/
@Getter
@Setter
public class TestPlanScenarioCaseDTO {
private String id;
private String projectId;
private String testPlanId;
private String apiScenarioId;
}

View File

@ -257,7 +257,8 @@ export default {
setTimeout(this.$refs.scenarioTable.doLayout, 200);
}
this.$nextTick(() => {
checkTableRowIsSelect(this,this.condition,this.tableData,this.$refs.scenarioTable,this.selectRows);
checkTableRowIsSelect(this, this.condition, this.tableData, this.$refs.scenarioTable, this.selectRows);
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
})
});
}
@ -278,7 +279,8 @@ export default {
setTimeout(this.$refs.scenarioTable.doLayout, 200);
}
this.$nextTick(() => {
checkTableRowIsSelect(this,this.condition,this.tableData,this.$refs.scenarioTable,this.selectRows);
checkTableRowIsSelect(this, this.condition, this.tableData, this.$refs.scenarioTable, this.selectRows);
this.selectDataCounts = getSelectDataCounts(this.condition, this.total, this.selectRows);
})
});
}
@ -294,18 +296,7 @@ export default {
})
},
handleBatchExecute() {
if(this.condition != null && this.condition.selectAll) {
this.$alert(this.$t('commons.option_cannot_spread_pages'), '', {
confirmButtonText: this.$t('commons.confirm'),
callback: (action) => {
if (action === 'confirm') {
this.$refs.runMode.open();
}
}
})
}else {
this.$refs.runMode.open();
}
this.$refs.runMode.open();
},
orderBySelectRows(rows){
let selectIds = Array.from(rows).map(row => row.id);