refactor(性能测试): 修改性能测试报告页面
This commit is contained in:
parent
d220cb5992
commit
e06adada9b
|
@ -122,7 +122,6 @@ export default {
|
||||||
props: ['report', 'export', 'isShare', 'shareId', 'planReportTemplate'],
|
props: ['report', 'export', 'isShare', 'shareId', 'planReportTemplate'],
|
||||||
methods: {
|
methods: {
|
||||||
initTableData() {
|
initTableData() {
|
||||||
this.initData();
|
|
||||||
if (this.planReportTemplate) {
|
if (this.planReportTemplate) {
|
||||||
let data = this.planReportTemplate.loadOverview;
|
let data = this.planReportTemplate.loadOverview;
|
||||||
this.buildInfo(data);
|
this.buildInfo(data);
|
||||||
|
@ -140,13 +139,6 @@ export default {
|
||||||
this.getErrorChart();
|
this.getErrorChart();
|
||||||
this.getResponseCodeChart();
|
this.getResponseCodeChart();
|
||||||
},
|
},
|
||||||
initData() {
|
|
||||||
this.buildInfo();
|
|
||||||
// this.loadOption = {};
|
|
||||||
// this.resOption = {};
|
|
||||||
// this.errorOption = {};
|
|
||||||
// this.resCodeOption = {};
|
|
||||||
},
|
|
||||||
buildInfo(data) {
|
buildInfo(data) {
|
||||||
this.maxUsers = data ? data.maxUsers : '0';
|
this.maxUsers = data ? data.maxUsers : '0';
|
||||||
this.avgThroughput = data ? data.avgThroughput : '0';
|
this.avgThroughput = data ? data.avgThroughput : '0';
|
||||||
|
|
Loading…
Reference in New Issue