加上loading
This commit is contained in:
parent
a1f24eca5e
commit
59468b492c
|
@ -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);
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue