diff --git a/backend/src/main/java/io/metersphere/api/controller/APITestController.java b/backend/src/main/java/io/metersphere/api/controller/APITestController.java index 9d461bb032..78bd6367af 100644 --- a/backend/src/main/java/io/metersphere/api/controller/APITestController.java +++ b/backend/src/main/java/io/metersphere/api/controller/APITestController.java @@ -341,8 +341,10 @@ public class APITestController { public List runningTask(@PathVariable String projectID) { List resultList = scheduleService.findRunningTaskInfoByProjectID(projectID); + int dataIndex = 1; for (TaskInfoResult taskInfo : resultList) { + taskInfo.setIndex(dataIndex++); Date nextExecutionTime = CronUtils.getNextTriggerTime(taskInfo.getRule()); if(nextExecutionTime!=null){ taskInfo.setNextExecutionTime(nextExecutionTime.getTime()); diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index af60326fd4..92e71d8b20 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -215,7 +215,7 @@ export default { this.condition.executeStatus = null; this.isSelectThissWeekData(); switch (this.selectDataRange){ - case 'thisWeek': + case 'thisWeekCount': this.condition.selectThisWeedData = true; break; case 'unExecute':