fix(性能测试): 修复查看报告详情全部取消后loading不消失的问题
--bug=1014891 --user=刘瑞斌 【性能测试】github #15776,性能测试报告,测试详情全部取消后折线图一直转圈 https://www.tapd.cn/55049933/s/1229004 Closes #15776
This commit is contained in:
parent
1facf0ca8f
commit
ea482d4f53
|
@ -241,6 +241,7 @@
|
|||
<el-row>
|
||||
<el-col :offset="2" :span="20">
|
||||
<el-table
|
||||
v-if="refresh"
|
||||
:data="tableData"
|
||||
stripe
|
||||
border
|
||||
|
@ -506,6 +507,12 @@ export default {
|
|||
},
|
||||
handleGetTotalChart(res) {
|
||||
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++) {
|
||||
if (i === 0) {
|
||||
this.baseOption.yAxis.push({
|
||||
|
|
Loading…
Reference in New Issue