diff --git a/src/components/qtReport/index.vue b/src/components/qtReport/index.vue index 28c9fa4..8a009b8 100644 --- a/src/components/qtReport/index.vue +++ b/src/components/qtReport/index.vue @@ -1,61 +1,64 @@ diff --git a/src/components/rtReport/index.vue b/src/components/rtReport/index.vue index 8f5f807..774395d 100644 --- a/src/components/rtReport/index.vue +++ b/src/components/rtReport/index.vue @@ -431,7 +431,7 @@ export default { }, }, yAxis: { - name: "误差", + name: "实测值(" + this.getProductDes() + ")", nameTextStyle: { lineHeight: 30, height: 60, @@ -531,7 +531,7 @@ export default { let num = converted.geometry.coordinates[0]; const p = Math.floor(Math.log(num) / Math.LN10); const n = num * 10 ** -p; - return `${n.toFixed(4)}xe${p}`; + return `${n.toFixed(4)}e${p}`; }, }, }, @@ -551,7 +551,7 @@ export default { let num = converted.geometry.coordinates[1]; const p = Math.floor(Math.log(num) / Math.LN10); const n = num * 10 ** -p; - return `${n.toFixed(4)}xe${p}`; + return `${n.toFixed(4)}e${p}`; }, }, }, diff --git a/src/views/Daichuli/Feedback/Inspection/Report/index.vue b/src/views/Daichuli/Feedback/Inspection/Report/index.vue index 8433863..28d5b3c 100644 --- a/src/views/Daichuli/Feedback/Inspection/Report/index.vue +++ b/src/views/Daichuli/Feedback/Inspection/Report/index.vue @@ -193,7 +193,12 @@ export default { this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER || this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY ) { - this.base64Data = this.$refs.reportQT.myCharts.getDataURL(); + this.base64Data = this.$refs.reportQT.myCharts.getDataURL({ + type: "png", + pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题 + backgroundColor: "#fff", + excludeComponents: ["toolbox", "dataZoom"], + }); } else { this.base64Data = this.$refs.reportRT.myCharts.getDataURL({ type: "png",