diff --git a/backend/src/main/java/io/metersphere/api/service/APITestService.java b/backend/src/main/java/io/metersphere/api/service/APITestService.java index a886c9ed3a..648d4a8c4d 100644 --- a/backend/src/main/java/io/metersphere/api/service/APITestService.java +++ b/backend/src/main/java/io/metersphere/api/service/APITestService.java @@ -314,6 +314,7 @@ public class APITestService { } public List listSchedule(QueryScheduleRequest request) { + request.setEnable(true); List schedules = scheduleService.list(request); List resourceIds = schedules.stream() .map(Schedule::getResourceId) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtScheduleMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtScheduleMapper.xml index 8738fdf285..5cb36cffce 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtScheduleMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtScheduleMapper.xml @@ -10,6 +10,9 @@ and schedule.workspace_id = #{request.workspaceId} + + and schedule.enable = #{request.enable} + diff --git a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java index 6625dc899b..a52187115d 100644 --- a/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java +++ b/backend/src/main/java/io/metersphere/performance/service/PerformanceTestService.java @@ -420,6 +420,7 @@ public class PerformanceTestService { } public List listSchedule(QueryScheduleRequest request) { + request.setEnable(true); List schedules = scheduleService.list(request); List resourceIds = schedules.stream() .map(Schedule::getResourceId) diff --git a/frontend/src/business/components/api/home/ApiTestHome.vue b/frontend/src/business/components/api/home/ApiTestHome.vue index 431568988b..69919d5c8a 100644 --- a/frontend/src/business/components/api/home/ApiTestHome.vue +++ b/frontend/src/business/components/api/home/ApiTestHome.vue @@ -14,7 +14,7 @@ - + @@ -28,13 +28,13 @@ import MsApiTestRecentList from "./ApiTestRecentList"; import MsApiReportRecentList from "./ApiReportRecentList"; import MsTestHeatmap from "../../common/components/MsTestHeatmap"; - import MsApiTestScheduleList from "./ApiTestScheduleList"; + import MsScheduleList from "./ScheduleList"; export default { name: "ApiTestHome", components: { - MsApiTestScheduleList, + MsScheduleList, MsTestHeatmap, MsApiReportRecentList, MsApiTestRecentList, MsMainContainer, MsContainer }, diff --git a/frontend/src/business/components/api/home/ApiTestScheduleList.vue b/frontend/src/business/components/api/home/ScheduleList.vue similarity index 96% rename from frontend/src/business/components/api/home/ApiTestScheduleList.vue rename to frontend/src/business/components/api/home/ScheduleList.vue index 1495f1e11a..d0cdfcf42d 100644 --- a/frontend/src/business/components/api/home/ApiTestScheduleList.vue +++ b/frontend/src/business/components/api/home/ScheduleList.vue @@ -1,7 +1,7 @@ @@ -59,9 +63,6 @@ scheduleChange() { this.$emit('scheduleChange'); }, - resultListChange(resultList) { - this.recentList = resultList; - }, flashResultList() { this.$refs.crontabResult.expressionChange(); } diff --git a/frontend/src/business/components/common/cron/CrontabResult.vue b/frontend/src/business/components/common/cron/CrontabResult.vue index fa7f206531..a1f4c74e6a 100644 --- a/frontend/src/business/components/common/cron/CrontabResult.vue +++ b/frontend/src/business/components/common/cron/CrontabResult.vue @@ -1,5 +1,5 @@ - +