fix(接口测试): 修复用例执行结果不实时同步问题

--bug=1008017 --user=赵勇 批量执行接口case,执行结果没有自动更新,实际上已经失败了 https://www.tapd.cn/55049933/s/1070239
This commit is contained in:
fit2-zhao 2021-11-19 10:06:07 +08:00 committed by fit2-zhao
parent 93dbd244a5
commit 29a1e72a76
1 changed files with 3 additions and 7 deletions

View File

@ -548,6 +548,7 @@ export default {
this.$post('/api/testcase/batch/run', obj, () => {
this.condition.ids = [];
this.$refs.batchRun.close();
this.$store.state.currentApiCase.case = true;
this.search();
});
},
@ -643,7 +644,7 @@ export default {
this.condition.protocol = this.currentProtocol;
}
//
this.isSelectThissWeekData();
this.isSelectThisWeekData();
this.condition.selectThisWeedData = false;
this.condition.id = null;
if (this.selectDataRange == 'thisWeekCount') {
@ -799,7 +800,6 @@ export default {
obj = Object.assign(obj, this.condition);
this.$post('/api/testcase/deleteBatchByParam/', obj, () => {
this.$refs.caseTable.clearSelectRows();
// this.initTable();
this.$emit('refreshTable');
this.$success(this.$t('commons.delete_success'));
});
@ -879,7 +879,6 @@ export default {
if (action === 'confirm') {
this.$get('/api/testcase/delete/' + apiCase.id, () => {
this.$success(this.$t('commons.delete_success'));
// this.initTable();
this.$emit('refreshTable');
});
}
@ -987,7 +986,7 @@ export default {
}
},
//
isSelectThissWeekData() {
isSelectThisWeekData() {
this.selectDataRange = "all";
let routeParam = this.$route.params.dataSelectRange;
let dataType = this.$route.params.dataType;
@ -1010,8 +1009,6 @@ export default {
this.$refs.viewRef.open(param);
},
showEnvironment(row) {
let projectID = this.projectId;
if (this.projectId) {
this.$get('/api/environment/list/' + this.projectId, response => {
this.environments = response.data;
@ -1078,7 +1075,6 @@ export default {
}
let projectId = getCurrentProjectID();
let runData = [];
let singleLoading = true;
row.request = JSON.parse(row.request);
row.request.name = row.id;
row.request.useEnvironment = environment.id;