fix:修改dashboard界面左下角的asset type图表无数据时会有一个type块的显示
This commit is contained in:
@@ -446,7 +446,10 @@
|
|||||||
right: 25,
|
right: 25,
|
||||||
icon: "circle",
|
icon: "circle",
|
||||||
};
|
};
|
||||||
this.assetData.typeStat && this.$refs.assetTypePie.setSeries(series, legend, legendData);
|
if(typeSeriesData.length===0 || !vm.assetData.typeStat || vm.assetData.typeStat.length == 0) {
|
||||||
|
legend.show=false;
|
||||||
|
}
|
||||||
|
this.assetData.typeStat && this.assetData.typeStat.length === 0 && this.$refs.assetTypePie.setSeries(series, legend, legendData);
|
||||||
this.$refs.assetTypePie.endLoading();
|
this.$refs.assetTypePie.endLoading();
|
||||||
}
|
}
|
||||||
resolve()
|
resolve()
|
||||||
|
|||||||
Reference in New Issue
Block a user