fix(性能测试): 修复性能测试使用企业版实时报告不显示新的错误记录的问题
This commit is contained in:
parent
58f9d5ea26
commit
4cb5139fdc
|
@ -272,6 +272,7 @@ public class PerformanceReportService {
|
||||||
if (StringUtils.isEmpty(content)) {
|
if (StringUtils.isEmpty(content)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return JSON.parseObject(content, SamplesRecord.class);
|
return JSON.parseObject(content, SamplesRecord.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -307,7 +307,6 @@ export default {
|
||||||
checkReportStatus(status) {
|
checkReportStatus(status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 'Error':
|
case 'Error':
|
||||||
// this.$warning(this.$t('report.generation_error'));
|
|
||||||
this.active = '4';
|
this.active = '4';
|
||||||
break;
|
break;
|
||||||
case 'Starting':
|
case 'Starting':
|
||||||
|
@ -368,6 +367,7 @@ export default {
|
||||||
this.$error(e.data);
|
this.$error(e.data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.checkSampleResults(this.report.id);
|
||||||
this.$set(this.report, "status", 'Running');
|
this.$set(this.report, "status", 'Running');
|
||||||
this.status = 'Running';
|
this.status = 'Running';
|
||||||
this.initReportTimeInfo();
|
this.initReportTimeInfo();
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
min-width="180">
|
min-width="180">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="errors"
|
prop="error"
|
||||||
label="Errors"
|
label="Errors"
|
||||||
min-width="180">
|
min-width="180">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -137,7 +137,6 @@ export default {
|
||||||
},
|
},
|
||||||
openRecord(row) {
|
openRecord(row) {
|
||||||
let drawerSamples = this.errorSamples.samples[row.name][row.code];
|
let drawerSamples = this.errorSamples.samples[row.name][row.code];
|
||||||
console.info(drawerSamples);
|
|
||||||
this.$refs.sampleDrawer.openRecord(drawerSamples);
|
this.$refs.sampleDrawer.openRecord(drawerSamples);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue