出报告图标缺失问题处理

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_VEGETATIONPHENOLOGY
) {
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.$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);
})
}
},
created() {
if (