From 1ba2c3001c4e6d1806231d7c7bf18c75082c3fe1 Mon Sep 17 00:00:00 2001 From: duxiaoning <17621883433@163.com> Date: Tue, 3 Sep 2024 16:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E8=A1=A8=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/qtReport/index.vue | 34 ++++----------- src/lib/variateMap.js | 1 - .../Feedback/Inspection/Report/index.vue | 42 +++++++++---------- .../Daichuli/Feedback/Inspection/index.vue | 6 +-- src/views/Daichuli/Feedback/index.vue | 9 ++-- vue.config.js | 8 ++-- 6 files changed, 41 insertions(+), 59 deletions(-) diff --git a/src/components/qtReport/index.vue b/src/components/qtReport/index.vue index 8a009b8..b1eb0b5 100644 --- a/src/components/qtReport/index.vue +++ b/src/components/qtReport/index.vue @@ -8,41 +8,22 @@
- + - + - + - + - + @@ -51,8 +32,7 @@
- {{ pdSubTypeName }}误差结果图 + {{ pdSubTypeName }}误差结果图
@@ -113,7 +93,7 @@ export default { let dataArr = []; newTableData.forEach((a, index1) => { a.forEach((b, index2) => { - dataArr.push([index1, index2, b.count]); + dataArr.push([index2, index1, b.count]); }); }); let echartOption = { diff --git a/src/lib/variateMap.js b/src/lib/variateMap.js index 5a3648e..b69909e 100644 --- a/src/lib/variateMap.js +++ b/src/lib/variateMap.js @@ -54,7 +54,6 @@ export function truthFunctionsMap(truthFun) { 13: "Kappa系数", 11: "产品真值", 112: "正射误差列表", - 99: "有效值" }; if (truthFun == null) return null; else return truthFunMap[truthFun]; diff --git a/src/views/Daichuli/Feedback/Inspection/Report/index.vue b/src/views/Daichuli/Feedback/Inspection/Report/index.vue index a0d8cad..a1c6f48 100644 --- a/src/views/Daichuli/Feedback/Inspection/Report/index.vue +++ b/src/views/Daichuli/Feedback/Inspection/Report/index.vue @@ -193,25 +193,25 @@ 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.base64Data = this.$refs.reportQT.myCharts.getDataURL({ + type: "png", + pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题 + backgroundColor: "#fff", + excludeComponents: ["toolbox", "dataZoom"], + }); + setTimeout(() => { this.exportPdf(this.reportMsg); - // }) + }, 1500); + } else { + this.base64Data = this.$refs.reportRT.myCharts.getDataURL({ + type: "png", + pixelRatio: 1.5, //放大两倍下载,之后压缩到同等大小展示。解决生成图片在移动端模糊问题 + backgroundColor: "#fff", + excludeComponents: ["toolbox", "dataZoom"], + }); + setTimeout(() => { + this.exportPdf(this.reportMsg); + }, 1500); } }, created() { @@ -379,9 +379,9 @@ export default { microwaveDataJson: asmp.microwaveDataJson, satellite: asmm.satellite, load: asmm.load, - pixelHandleMsg:rpm.pixelHandleMsg, - projStr:rpm.projStr, - sampleFun:rpm.sampleFun + pixelHandleMsg: rpm.pixelHandleMsg, + projStr: rpm.projStr, + sampleFun: rpm.sampleFun }; const pdfName = productTypeMap(self.pdSubType) + "报告"; exportWord( diff --git a/src/views/Daichuli/Feedback/Inspection/index.vue b/src/views/Daichuli/Feedback/Inspection/index.vue index 4c2247a..468740e 100644 --- a/src/views/Daichuli/Feedback/Inspection/index.vue +++ b/src/views/Daichuli/Feedback/Inspection/index.vue @@ -283,10 +283,10 @@ export default { const pm = (self.productMsg = am.productMsg); self.geoWorkSpace = pm.geoWorkspace; self.geoLayerName = pm.geoLayerName; - self.tifPath = pm.ftpPath; + // self.tifPath = pm.ftpPath; //由于空天院内网服务无法拉取外网资源,先改成内网资源访问 - // let rt = pm.ftpPath.split('/'); - // self.tifPath = 'http://10.0.31.125:18030/inspection/files/' + rt[rt.length - 1]; + let rt = pm.ftpPath.split('/'); + self.tifPath = 'http://10.0.31.125:18030/inspection/files/' + rt[rt.length - 1]; self.projection = pm.projection; self.microwaveDataJson = self.productMsg.microwaveDataJson // 赋值真实性检验方法 diff --git a/src/views/Daichuli/Feedback/index.vue b/src/views/Daichuli/Feedback/index.vue index 90f348e..c437c55 100644 --- a/src/views/Daichuli/Feedback/index.vue +++ b/src/views/Daichuli/Feedback/index.vue @@ -88,8 +88,8 @@
{{ orderMsg.productSubClassId == 39 - ? "地表覆盖类型表" - : "植被物候类型表" + ? "地表覆盖类型表" + : "植被物候类型表" }}