fix(工作台): 修复执行失败就进入工作台待更新列表问题
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001019490 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018365 --user=郭雨琦
This commit is contained in:
parent
da7c2aefd6
commit
1186418eef
|
@ -237,11 +237,6 @@ public class ApiDefinitionExecResultService {
|
|||
// 更新用例最后执行结果
|
||||
caseWithBLOBs.setLastResultId(reportId);
|
||||
caseWithBLOBs.setStatus(status);
|
||||
if (status.equals(ApiReportStatus.ERROR.name())) {
|
||||
caseWithBLOBs.setToBeUpdated(true);
|
||||
} else {
|
||||
caseWithBLOBs.setToBeUpdated(false);
|
||||
}
|
||||
caseWithBLOBs.setUpdateTime(System.currentTimeMillis());
|
||||
apiTestCaseMapper.updateByPrimaryKey(caseWithBLOBs);
|
||||
|
||||
|
|
|
@ -517,7 +517,23 @@ export default {
|
|||
this.batchSyncApiVisible = true;
|
||||
}
|
||||
}
|
||||
if (this.apiSyncRuleRelation.showUpdateRule === true && !this.noShowSyncRuleRelation) {
|
||||
if (this.request.authManager && this.beforeRequest.authManager) {
|
||||
let submitRequestAuthManager = JSON.stringify(this.request.authManager);
|
||||
let beforeRequestAuthManager = JSON.stringify(this.beforeRequest.authManager);
|
||||
if ((submitRequestAuthManager !== beforeRequestAuthManager) && !this.noShowSyncRuleRelation) {
|
||||
this.batchSyncApiVisible = true;
|
||||
}
|
||||
}
|
||||
if (this.request.hashTree && this.beforeRequest.hashTree) {
|
||||
let submitRequestHashTree = JSON.stringify(this.request.hashTree);
|
||||
let beforeRequestHashTree = JSON.stringify(this.beforeRequest.hashTree);
|
||||
if ((submitRequestHashTree !== beforeRequestHashTree) && !this.noShowSyncRuleRelation) {
|
||||
this.batchSyncApiVisible = true;
|
||||
}
|
||||
}
|
||||
if (((this.request.connectTimeout !== this.beforeRequest.connectTimeout) || (this.request.responseTimeout !== this.beforeRequest.responseTimeout)
|
||||
|| (this.request.followRedirects !== this.beforeRequest.followRedirects) || (this.request.alias !== this.beforeRequest.alias)
|
||||
|| this.apiSyncRuleRelation.showUpdateRule === true) && !this.noShowSyncRuleRelation) {
|
||||
this.batchSyncApiVisible = true;
|
||||
}
|
||||
if (this.batchSyncApiVisible !== true) {
|
||||
|
|
Loading…
Reference in New Issue