加上loading

This commit is contained in:
Captain.B 2020-04-22 11:10:37 +08:00
parent a1f24eca5e
commit 59468b492c
2 changed files with 2 additions and 3 deletions

View File

@ -113,7 +113,6 @@ public class ReportService {
} }
public ReportTimeInfo getReportTimeInfo(String id) { public ReportTimeInfo getReportTimeInfo(String id) {
checkReportStatus(id);
LoadTestReportWithBLOBs loadTestReport = loadTestReportMapper.selectByPrimaryKey(id); LoadTestReportWithBLOBs loadTestReport = loadTestReportMapper.selectByPrimaryKey(id);
String content = loadTestReport.getContent(); String content = loadTestReport.getContent();
ReportTimeInfo reportTimeInfo = GenerateReport.getReportTimeInfo(content); ReportTimeInfo reportTimeInfo = GenerateReport.getReportTimeInfo(content);

View File

@ -120,14 +120,14 @@
} }
}, },
getLog(testId) { getLog(testId) {
this.$get('/performance/log/' + testId, response => { this.result = this.$get('/performance/log/' + testId, response => {
this.testLogging = response.data; this.testLogging = response.data;
}) })
} }
}, },
mounted() { mounted() {
this.reportId = this.$route.path.split('/')[4]; this.reportId = this.$route.path.split('/')[4];
this.$get("/performance/report/" + this.reportId, res => { this.result = this.$get("/performance/report/" + this.reportId, res => {
let data = res.data; let data = res.data;
this.status = data.status; this.status = data.status;
switch (data.status) { switch (data.status) {