性能测试首页定时任务列表
This commit is contained in:
parent
79c3e771c4
commit
998750d77f
|
@ -424,11 +424,13 @@ public class PerformanceTestService {
|
||||||
List<String> resourceIds = schedules.stream()
|
List<String> resourceIds = schedules.stream()
|
||||||
.map(Schedule::getResourceId)
|
.map(Schedule::getResourceId)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
LoadTestExample example = new LoadTestExample();
|
if (!resourceIds.isEmpty()) {
|
||||||
example.createCriteria().andIdIn(resourceIds);
|
LoadTestExample example = new LoadTestExample();
|
||||||
List<LoadTest> loadTests = loadTestMapper.selectByExample(example);
|
example.createCriteria().andIdIn(resourceIds);
|
||||||
Map<String, String> loadTestMap = loadTests.stream().collect(Collectors.toMap(LoadTest::getId, LoadTest::getName));
|
List<LoadTest> loadTests = loadTestMapper.selectByExample(example);
|
||||||
scheduleService.build(loadTestMap, schedules);
|
Map<String, String> loadTestMap = loadTests.stream().collect(Collectors.toMap(LoadTest::getId, LoadTest::getName));
|
||||||
|
scheduleService.build(loadTestMap, schedules);
|
||||||
|
}
|
||||||
return schedules;
|
return schedules;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
},
|
},
|
||||||
link(row) {
|
link(row) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: this.operators.linkUrl + '?id=' + row.resourceId,
|
path: this.operators.linkUrl + row.resourceId,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
update(schedule) {
|
update(schedule) {
|
||||||
|
@ -76,12 +76,12 @@
|
||||||
case SCHEDULE_TYPE.API_TEST:
|
case SCHEDULE_TYPE.API_TEST:
|
||||||
this.operators.listUrl = '/api/list/schedule';
|
this.operators.listUrl = '/api/list/schedule';
|
||||||
this.operators.updateUrl = '/api/schedule/update';
|
this.operators.updateUrl = '/api/schedule/update';
|
||||||
this.operators.linkUrl = '/api/test/edit';
|
this.operators.linkUrl = '/api/test/edit?id=';
|
||||||
break;
|
break;
|
||||||
case SCHEDULE_TYPE.PERFORMANCE_TEST:
|
case SCHEDULE_TYPE.PERFORMANCE_TEST:
|
||||||
this.operators.listUrl = '/performance/list/schedule';
|
this.operators.listUrl = '/performance/list/schedule';
|
||||||
this.operators.updateUrl = '/performance/schedule/update';
|
this.operators.updateUrl = '/performance/schedule/update';
|
||||||
this.operators.linkUrl = '/performance//test/edit';
|
this.operators.linkUrl = '/performance/test/edit/';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<ms-test-heatmap :values="values"/>
|
<ms-test-heatmap :values="values"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<ms-api-test-schedule-list :group="'PERFORMANCE_TEST'"/>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</ms-main-container>
|
</ms-main-container>
|
||||||
</ms-container>
|
</ms-container>
|
||||||
|
@ -25,10 +28,12 @@
|
||||||
import MsPerformanceTestRecentList from "./PerformanceTestRecentList"
|
import MsPerformanceTestRecentList from "./PerformanceTestRecentList"
|
||||||
import MsPerformanceReportRecentList from "./PerformanceReportRecentList"
|
import MsPerformanceReportRecentList from "./PerformanceReportRecentList"
|
||||||
import MsTestHeatmap from "../../common/components/MsTestHeatmap";
|
import MsTestHeatmap from "../../common/components/MsTestHeatmap";
|
||||||
|
import MsApiTestScheduleList from "../../api/home/ApiTestScheduleList";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "PerformanceTestHome",
|
name: "PerformanceTestHome",
|
||||||
components: {
|
components: {
|
||||||
|
MsApiTestScheduleList,
|
||||||
MsTestHeatmap,
|
MsTestHeatmap,
|
||||||
MsMainContainer,
|
MsMainContainer,
|
||||||
MsContainer,
|
MsContainer,
|
||||||
|
|
Loading…
Reference in New Issue