fix(性能测试): 修复查看报告详情全部取消后loading不消失的问题

--bug=1014891 --user=刘瑞斌 【性能测试】github #15776,性能测试报告,测试详情全部取消后折线图一直转圈 https://www.tapd.cn/55049933/s/1229004

Closes #15776
This commit is contained in:
CaptainB 2022-08-22 13:04:15 +08:00 committed by 刘瑞斌
parent 1facf0ca8f
commit ea482d4f53
1 changed files with 7 additions and 0 deletions

View File

@ -241,6 +241,7 @@
<el-row> <el-row>
<el-col :offset="2" :span="20"> <el-col :offset="2" :span="20">
<el-table <el-table
v-if="refresh"
:data="tableData" :data="tableData"
stripe stripe
border border
@ -506,6 +507,12 @@ export default {
}, },
handleGetTotalChart(res) { handleGetTotalChart(res) {
res = res.filter(v => !!v); res = res.filter(v => !!v);
if (res.length === 0) {
this.refresh = false;
this.result.loading = false;
} else {
this.refresh = true;
}
for (let i = 0; i < res.length; i++) { for (let i = 0; i < res.length; i++) {
if (i === 0) { if (i === 0) {
this.baseOption.yAxis.push({ this.baseOption.yAxis.push({