diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index c40451ca46..7354cd5e89 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -935,6 +935,7 @@ public class TestPlanService { planScenarioID + ":" + request.getTestPlanReportId(), item.getName(), request.getTriggerMode() == null ? ReportTriggerMode.MANUAL.name() : request.getTriggerMode(), request.getExecuteType(), item.getProjectId(), request.getReportUserID(),null); + apiScenarioReportMapper.insert(report); group.setHashTree(scenarios); testPlan.getHashTree().add(group); returnId = request.getId(); @@ -1056,7 +1057,6 @@ public class TestPlanService { //执行场景执行任务 if (!planScenarioIdMap.isEmpty()) { - LogUtil.info("-------------- testplan schedule ---------- api case over -----------------"); SchedulePlanScenarioExecuteRequest scenarioRequest = new SchedulePlanScenarioExecuteRequest(); String senarionReportID = UUID.randomUUID().toString(); scenarioRequest.setId(senarionReportID); @@ -1076,7 +1076,6 @@ public class TestPlanService { scenarioIsExcuting = true; scenarioCaseIdArray= JSONArray.toJSONString(new ArrayList<>(planScenarioIdMap.keySet())); } - LogUtil.info("-------------- testplan schedule ---------- scenario case over -----------------"); } diff --git a/frontend/src/business/components/api/definition/components/mock/MockConfig.vue b/frontend/src/business/components/api/definition/components/mock/MockConfig.vue index e38edaa8c7..0a210cc1f8 100644 --- a/frontend/src/business/components/api/definition/components/mock/MockConfig.vue +++ b/frontend/src/business/components/api/definition/components/mock/MockConfig.vue @@ -266,8 +266,7 @@ export default { let mockConfigId = this.mockConfigData.mockConfig.id; this.mockExpectConfig.mockConfigId = mockConfigId; this.mockExpectConfig.id = ""; - let formCheckResult = this.checkMockExpectForm("mockExpectForm"); - this.cleanMockExpectConfig(); + let formCheckResult = this.checkMockExpectForm("mockExpectForm", true); }, cleanMockExpectConfig() { this.showHeadTable = false; @@ -294,13 +293,16 @@ export default { updateMockExpectConfig() { this.checkMockExpectForm("mockExpectForm"); }, - uploadMockExpectConfig() { + uploadMockExpectConfig(clearForm) { let url = "/mockConfig/updateMockExpectConfig"; let param = this.mockExpectConfig; this.$post(url, param, response => { let returnData = response.data; this.mockExpectConfig.id = returnData.id; this.refreshMockInfo(param.mockConfigId); + if (clearForm) { + this.cleanMockExpectConfig(); + } this.$message({ type: 'success', message: this.$t('commons.save_success'), @@ -314,10 +316,10 @@ export default { this.mockConfigData = response.data; }); }, - checkMockExpectForm(formName) { + checkMockExpectForm(formName, clearForm) { this.$refs[formName].validate((valid) => { if (valid) { - this.uploadMockExpectConfig(); + this.uploadMockExpectConfig(clearForm); return true; } else { return false; diff --git a/frontend/src/business/components/common/components/table/MsTable.vue b/frontend/src/business/components/common/components/table/MsTable.vue index 530726a585..a2be096b99 100644 --- a/frontend/src/business/components/common/components/table/MsTable.vue +++ b/frontend/src/business/components/common/components/table/MsTable.vue @@ -151,7 +151,6 @@ export default { watch: { selectNodeIds() { this.selectDataCounts = 0; - this.$refs.selectPopover.reload(); }, }, computed: {