出报告图标缺失问题处理
parent
926ec64c3d
commit
c783552fa1
|
@ -193,21 +193,26 @@ export default {
|
|||
this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER ||
|
||||
this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY
|
||||
) {
|
||||
this.base64Data = this.$refs.reportQT.myCharts.getDataURL({
|
||||
type: "png",
|
||||
pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题
|
||||
backgroundColor: "#fff",
|
||||
excludeComponents: ["toolbox", "dataZoom"],
|
||||
});
|
||||
this.$refs.reportQT.myCharts.on("finished",()=>{
|
||||
this.base64Data = this.$refs.reportQT.myCharts.getDataURL({
|
||||
type: "png",
|
||||
pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题
|
||||
backgroundColor: "#fff",
|
||||
excludeComponents: ["toolbox", "dataZoom"],
|
||||
});
|
||||
this.exportPdf(this.reportMsg);
|
||||
})
|
||||
} else {
|
||||
this.base64Data = this.$refs.reportRT.myCharts.getDataURL({
|
||||
type: "png",
|
||||
pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题
|
||||
backgroundColor: "#fff",
|
||||
excludeComponents: ["toolbox", "dataZoom"],
|
||||
});
|
||||
this.$refs.reportRT.myCharts.on("finished",()=>{
|
||||
this.base64Data = this.$refs.reportRT.myCharts.getDataURL({
|
||||
type: "png",
|
||||
pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题
|
||||
backgroundColor: "#fff",
|
||||
excludeComponents: ["toolbox", "dataZoom"],
|
||||
});
|
||||
this.exportPdf(this.reportMsg);
|
||||
})
|
||||
}
|
||||
this.exportPdf(this.reportMsg);
|
||||
},
|
||||
created() {
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue