fix(性能测试): 修复性能测试对比报告不能全屏问题
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001019517 --user=郭雨琦
This commit is contained in:
parent
1d5e541524
commit
722de82676
|
@ -4,10 +4,11 @@
|
||||||
:title="$t('load_test.completed_test_report')" width="60%"
|
:title="$t('load_test.completed_test_report')" width="60%"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:show-close="false"
|
:show-close="false"
|
||||||
|
:fullscreen="showFullscreen"
|
||||||
:visible.sync="loadReportVisible">
|
:visible.sync="loadReportVisible">
|
||||||
|
|
||||||
<el-header class="header-btn">
|
<el-header class="header-btn">
|
||||||
<ms-dialog-header :enable-cancel="true" @cancel="close" @confirm="handleCompare" btn-size="mini">
|
<ms-dialog-header :enable-cancel="true" @cancel="close" @confirm="handleCompare" @fullScreen="fullScreen" btn-size="mini">
|
||||||
</ms-dialog-header>
|
</ms-dialog-header>
|
||||||
</el-header>
|
</el-header>
|
||||||
|
|
||||||
|
@ -71,6 +72,7 @@ export default {
|
||||||
report: {},
|
report: {},
|
||||||
compareReports: [],
|
compareReports: [],
|
||||||
screenHeight: 'calc(100vh - 400px)',
|
screenHeight: 'calc(100vh - 400px)',
|
||||||
|
showFullscreen:false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -99,7 +101,6 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleCompare() {
|
handleCompare() {
|
||||||
|
|
||||||
let reportIds = [...this.$refs.table.selectIds];
|
let reportIds = [...this.$refs.table.selectIds];
|
||||||
this.tableData
|
this.tableData
|
||||||
.filter(r => reportIds.indexOf(r.id) > -1 && this.report.id !== r.id)
|
.filter(r => reportIds.indexOf(r.id) > -1 && this.report.id !== r.id)
|
||||||
|
@ -109,6 +110,9 @@ export default {
|
||||||
this.close();
|
this.close();
|
||||||
this.$router.push({path: '/performance/report/compare/' + reportIds[0]});
|
this.$router.push({path: '/performance/report/compare/' + reportIds[0]});
|
||||||
},
|
},
|
||||||
|
fullScreen(){
|
||||||
|
this.showFullscreen = !this.showFullscreen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue