fix(项目报告): 为饼状图柱状图设置白色背景色避免导出了背景为灰色的图片

--bug=1018509 --user=宋天阳 【报表统计】项目报表-测试用例统计导出图标优化图标背景
https://www.tapd.cn/55049933/s/1269760
This commit is contained in:
song-tianyang 2022-10-20 16:06:48 +08:00 committed by 建国
parent 67e5b0748e
commit d6075090cc
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,7 @@ export default {
this.resetOptions(); this.resetOptions();
if (barData) { if (barData) {
this.formatData(barData); this.formatData(barData);
this.loadOption.backgroundColor = "#FFFFFF";
this.loadOption.legend = barData.legend; this.loadOption.legend = barData.legend;
this.loadOption.xAxis = barData.xaxis; this.loadOption.xAxis = barData.xaxis;
this.loadOption.xaxis = barData.xaxis; this.loadOption.xaxis = barData.xaxis;
@ -136,6 +137,7 @@ export default {
} }
if (pieData) { if (pieData) {
this.formatData(pieData); this.formatData(pieData);
this.pieOption.backgroundColor = "#FFFFFF";
this.pieOption.legend = pieData.legend; this.pieOption.legend = pieData.legend;
this.pieOption.series = pieData.series; this.pieOption.series = pieData.series;
this.pieOption.title = pieData.title; this.pieOption.title = pieData.title;