diff --git a/frontend/src/business/components/performance/report/components/SameTestReports.vue b/frontend/src/business/components/performance/report/components/SameTestReports.vue
index a7895f865e..076601a460 100644
--- a/frontend/src/business/components/performance/report/components/SameTestReports.vue
+++ b/frontend/src/business/components/performance/report/components/SameTestReports.vue
@@ -2,14 +2,20 @@
-
-
+
+
+
{{ scope.row.createTime | timestampFormatDate }}
-
+
-
-
-
-
@@ -50,11 +52,12 @@
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 {WORKSPACE_ID} from "@/common/js/constants";
+import MsTable from "@/business/components/common/components/table/MsTable";
+import MsDialogHeader from "@/business/components/common/components/MsDialogHeader";
export default {
name: "SameTestReports",
- components: {ReportTriggerModeItem, MsDialogFooter, MsTablePagination},
+ components: {MsDialogHeader, MsTable, ReportTriggerModeItem, MsDialogFooter, MsTablePagination},
data() {
return {
loadReportVisible: false,
@@ -63,9 +66,9 @@ export default {
currentPage: 1,
pageSize: 10,
total: 0,
- selectIds: new Set,
report: {},
compareReports: [],
+ screenHeight: 'calc(100vh - 400px)',
}
},
methods: {
@@ -93,7 +96,8 @@ export default {
});
},
handleCompare() {
- let reportIds = [...this.selectIds];
+
+ let reportIds = [...this.$refs.table.selectIds];
this.tableData
.filter(r => reportIds.indexOf(r.id) > -1 && this.report.id !== r.id)
.forEach(r => this.compareReports.push(r));
@@ -102,30 +106,20 @@ export default {
this.close();
this.$router.push({path: '/performance/report/compare/' + reportIds[0]});
},
- handleSelectAll(selection) {
- if (selection.length > 0) {
- this.tableData.forEach(item => {
- this.selectIds.add(item.id);
- });
- } else {
- this.tableData.forEach(item => {
- if (this.selectIds.has(item.id)) {
- this.selectIds.delete(item.id);
- }
- });
- }
- },
- handleSelectionChange(selection, row) {
- if (this.selectIds.has(row.id)) {
- this.selectIds.delete(row.id);
- } else {
- this.selectIds.add(row.id);
- }
- },
}
}