出报告图标缺失问题处理

tykong-cidian
陈荣宏 2024-09-02 18:57:33 +08:00
parent 926ec64c3d
commit c783552fa1
1 changed files with 18 additions and 13 deletions

View File

@ -193,21 +193,26 @@ export default {
this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER || this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER ||
this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY
) { ) {
this.$refs.reportQT.myCharts.on("finished",()=>{
this.base64Data = this.$refs.reportQT.myCharts.getDataURL({ this.base64Data = this.$refs.reportQT.myCharts.getDataURL({
type: "png", type: "png",
pixelRatio: 1.5, // pixelRatio: 1.5, //
backgroundColor: "#fff", backgroundColor: "#fff",
excludeComponents: ["toolbox", "dataZoom"], excludeComponents: ["toolbox", "dataZoom"],
}); });
this.exportPdf(this.reportMsg);
})
} else { } else {
this.$refs.reportRT.myCharts.on("finished",()=>{
this.base64Data = this.$refs.reportRT.myCharts.getDataURL({ this.base64Data = this.$refs.reportRT.myCharts.getDataURL({
type: "png", type: "png",
pixelRatio: 1.5, // pixelRatio: 1.5, //
backgroundColor: "#fff", backgroundColor: "#fff",
excludeComponents: ["toolbox", "dataZoom"], excludeComponents: ["toolbox", "dataZoom"],
}); });
}
this.exportPdf(this.reportMsg); this.exportPdf(this.reportMsg);
})
}
}, },
created() { created() {
if ( if (