提交 119f15d4 编写于 作者: C Captain.B

refactor(性能测试): 报告对比

上级 3a14671d
<template>
<ms-container>
<ms-main-container>
sss
<el-card>
</el-card>
</ms-main-container>
</ms-container>
</template>
......@@ -15,13 +17,12 @@ export default {
name: "PerformanceReportCompare",
components: {MsMainContainer, MsContainer},
mounted() {
console.log(111);
let reportId = this.$route.path.split('/')[4];
console.log(reportId);
let items = localStorage.getItem("compareReportIds");
console.log(JSON.parse(items));
},
computed: {
queryDataType: function () {
let reportIds = this.$route.params.reportIds;
return reportIds;
},
isReadOnly() {
return !checkoutTestManagerOrTestUser();
}
......
......@@ -47,7 +47,6 @@
import MsTablePagination from "@/business/components/common/pagination/TablePagination";
import MsDialogFooter from "@/business/components/common/components/MsDialogFooter";
import ReportTriggerModeItem from "@/business/components/common/tableItem/ReportTriggerModeItem";
import {getUUID} from "@/common/js/utils";
export default {
name: "SameTestReports",
......@@ -84,10 +83,10 @@ export default {
})
},
handleCompare() {
console.log(123);
let reportIds = [...this.selectIds];
let uuid = getUUID();
this.$router.push({path: '/performance/report/compare', params: {redirectID: uuid, reportIds: reportIds}});
localStorage.setItem("compareReportIds", JSON.stringify(reportIds));
this.close();
this.$router.push({path: '/performance/report/compare/' + reportIds[0]});
},
handleSelectAll(selection) {
if (selection.length > 0) {
......
import MsProject from "@/business/components/settings/project/MsProject";
const PerformanceTest = () => import('@/business/components/performance/PerformanceTest')
const PerformanceTestHome = () => import('@/business/components/performance/home/PerformanceTestHome')
const EditPerformanceTest = () => import('@/business/components/performance/test/EditPerformanceTest')
......@@ -65,7 +63,7 @@ export default {
component: PerformanceReportView
},
{
path: "report/compare",
path: "report/compare/:reportId",
name: "ReportCompare",
component: PerformanceReportCompare,
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册