Merge remote-tracking branch 'origin/v1.2' into v1.2

This commit is contained in:
wenyann 2020-08-28 16:39:23 +08:00
commit 5353d7a04a
2 changed files with 207 additions and 223 deletions

View File

@ -91,8 +91,6 @@
import MsMainContainer from "../../common/components/MsMainContainer";
import {checkoutTestManagerOrTestUser} from "@/common/js/utils";
import writer from "file-writer";
import ResumeCss from "../../../../common/css/main.css";
export default {
name: "PerformanceReportView",
@ -290,22 +288,7 @@
this.$set(this.report, "status", data.status);
this.checkReportStatus(data.status);
if (this.status === "Completed") {
this.result = this.$get("/performance/report/content/report_time/" + this.reportId).then(res => {
let data = res.data.data;
if (data) {
this.startTime = data.startTime;
this.endTime = data.endTime;
let duration = data.duration;
this.minutes = Math.floor(duration / 60);
this.seconds = duration % 60;
}
}).catch(() => {
this.clearData();
})
} else {
this.clearData();
}
this.initReportTimeInfo();
} else {
this.$error(this.$t('report.not_exist'));
}

View File

@ -164,6 +164,7 @@ export default {
} else {
this.calculateChart();
}
this.getResourcePools();
},
},
methods: {