解决正射箭头丢失
parent
1ba2c3001c
commit
9f5fb5f1c2
|
@ -193,25 +193,33 @@ export default {
|
||||||
this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER ||
|
this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER ||
|
||||||
this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY
|
this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY
|
||||||
) {
|
) {
|
||||||
this.base64Data = this.$refs.reportQT.myCharts.getDataURL({
|
new Promise((res, rej) => {
|
||||||
type: "png",
|
setTimeout(() => {
|
||||||
pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题
|
res(this.$refs.reportQT.myCharts.getDataURL({
|
||||||
backgroundColor: "#fff",
|
type: "png",
|
||||||
excludeComponents: ["toolbox", "dataZoom"],
|
pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题
|
||||||
});
|
backgroundColor: "#fff",
|
||||||
setTimeout(() => {
|
excludeComponents: ["toolbox", "dataZoom"],
|
||||||
|
}))
|
||||||
|
}, 500)
|
||||||
|
}).then((res) => {
|
||||||
|
this.base64Data = res;
|
||||||
this.exportPdf(this.reportMsg);
|
this.exportPdf(this.reportMsg);
|
||||||
}, 1500);
|
})
|
||||||
} else {
|
} else {
|
||||||
this.base64Data = this.$refs.reportRT.myCharts.getDataURL({
|
new Promise((res, rej) => {
|
||||||
type: "png",
|
setTimeout(() => {
|
||||||
pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题
|
res(this.$refs.reportRT.myCharts.getDataURL({
|
||||||
backgroundColor: "#fff",
|
type: "png",
|
||||||
excludeComponents: ["toolbox", "dataZoom"],
|
pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题
|
||||||
});
|
backgroundColor: "#fff",
|
||||||
setTimeout(() => {
|
excludeComponents: ["toolbox", "dataZoom"],
|
||||||
|
}))
|
||||||
|
}, 500)
|
||||||
|
}).then((res) => {
|
||||||
|
this.base64Data = res;
|
||||||
this.exportPdf(this.reportMsg);
|
this.exportPdf(this.reportMsg);
|
||||||
}, 1500);
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
Loading…
Reference in New Issue