解决正射箭头丢失

tykong-cidian
duxiaoning 2024-09-06 14:06:28 +08:00
parent 1ba2c3001c
commit 9f5fb5f1c2
1 changed files with 24 additions and 16 deletions

View File

@ -193,25 +193,33 @@ export default {
this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER ||
this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY
) {
this.base64Data = this.$refs.reportQT.myCharts.getDataURL({
new Promise((res, rej) => {
setTimeout(() => {
res(this.$refs.reportQT.myCharts.getDataURL({
type: "png",
pixelRatio: 1.5, //
backgroundColor: "#fff",
excludeComponents: ["toolbox", "dataZoom"],
});
setTimeout(() => {
}))
}, 500)
}).then((res) => {
this.base64Data = res;
this.exportPdf(this.reportMsg);
}, 1500);
})
} else {
this.base64Data = this.$refs.reportRT.myCharts.getDataURL({
new Promise((res, rej) => {
setTimeout(() => {
res(this.$refs.reportRT.myCharts.getDataURL({
type: "png",
pixelRatio: 1.5, //
backgroundColor: "#fff",
excludeComponents: ["toolbox", "dataZoom"],
});
setTimeout(() => {
}))
}, 500)
}).then((res) => {
this.base64Data = res;
this.exportPdf(this.reportMsg);
}, 1500);
})
}
},
created() {