From 8022a67f3a15006ebdc6b851c1e1c3f0c2fe08ac Mon Sep 17 00:00:00 2001 From: duxiaoning <17621883433@163.com> Date: Tue, 27 Aug 2024 03:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AD=A3=E5=B0=84=E6=8A=A5?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/qtReport/index.vue | 564 +++++++++--------- src/components/rtReport/index.vue | 6 +- .../Feedback/Inspection/Report/index.vue | 7 +- 3 files changed, 298 insertions(+), 279 deletions(-) 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",