diff --git a/src/api/lang/pendingOrder.js b/src/api/lang/pendingOrder.js index 1ff0b9e..7677a0b 100644 --- a/src/api/lang/pendingOrder.js +++ b/src/api/lang/pendingOrder.js @@ -163,19 +163,13 @@ export function checkReality(data) { } // 导出pdf模板 -export function exportWord(data, pdfName, localTiffPath, httpTiffPath, productType,polarizationMethod) { +export function exportWord(data, pdfName, productType) { return fileRequest({ url: "importPDF/importWordAndPDF?reportName=" + pdfName + - "&localTiffPath=" + - localTiffPath + - "&httpTiffPath=" + - httpTiffPath + "&productType=" + - productType + - "&polarizationMethod=" + - polarizationMethod, + productType, method: "post", // headers:{'Content-Type':'multipart/form-data'}, data diff --git a/src/components/ration/otgCorrection/index.vue b/src/components/ration/otgCorrection/index.vue index 8af2f98..b818571 100644 --- a/src/components/ration/otgCorrection/index.vue +++ b/src/components/ration/otgCorrection/index.vue @@ -75,7 +75,7 @@
- 待检验产品图 + 待检验正射校正产品图
diff --git a/src/components/ration/qualitative/index.vue b/src/components/ration/qualitative/index.vue index 40328f3..ddafeae 100644 --- a/src/components/ration/qualitative/index.vue +++ b/src/components/ration/qualitative/index.vue @@ -109,7 +109,7 @@
- 待检验产品图 + 待检验{{ productSubType | productTypeMap }}图
@@ -201,6 +201,24 @@ export default { getCoverName(paramStr) { return JSON.parse(paramStr).covernm; }, + productTypeMap(pdtype) { + const pdtypeMap = { + 45: "正射产品", + 46: "高程产品", + 51: "后向散射系数产品", + 52: "大气延迟校正产品", + 53: "干涉测量形变产品", + 39: "地表覆盖类型产品", + 38: "土壤水分产品", + 49: "土壤盐碱度产品", + 50: "地表粗糙度产品", + 48: "植被高度产品", + 43: "叶面积指数产品", + 47: "植被物候产品" + }; + if (pdtype == null) return null; + else return pdtypeMap[pdtype]; + } }, data() { return { diff --git a/src/components/ration/soilMoisture/index.vue b/src/components/ration/soilMoisture/index.vue index 33a2c3e..6b88615 100644 --- a/src/components/ration/soilMoisture/index.vue +++ b/src/components/ration/soilMoisture/index.vue @@ -55,7 +55,7 @@
- 待检验产品图 + 待检验{{ productSubType | productTypeMap }}图
@@ -89,7 +89,6 @@ import SampleSetting from "@/components/ration/sampleSetting/index.vue"; import WKT from "terraformer-wkt-parser"; import Formator from "@/mixins/formator"; import { drawScaleTwo, drawGrid, getNowFormatDate } from "@/lib/utils"; - export default { components: { SampleSetting, @@ -136,6 +135,24 @@ export default { getSampleVal(paramStr) { return JSON.parse(paramStr).featureValue.featureValue; }, + productTypeMap(pdtype) { + const pdtypeMap = { + 45: "正射产品", + 46: "高程产品", + 51: "后向散射系数产品", + 52: "大气延迟校正产品", + 53: "干涉测量形变产品", + 39: "地表覆盖类型产品", + 38: "土壤水分产品", + 49: "土壤盐碱度产品", + 50: "地表粗糙度产品", + 48: "植被高度产品", + 43: "叶面积指数产品", + 47: "植被物候产品" + }; + if (pdtype == null) return null; + else return pdtypeMap[pdtype]; + } }, data() { return { diff --git a/src/views/Daichuli/Feedback/Inspection/Report/index.vue b/src/views/Daichuli/Feedback/Inspection/Report/index.vue index 516456a..522a100 100644 --- a/src/views/Daichuli/Feedback/Inspection/Report/index.vue +++ b/src/views/Daichuli/Feedback/Inspection/Report/index.vue @@ -2,80 +2,37 @@
- + - +
产品检验报告PDF
-
- +
+
-
+
- + - + - + - + - + @@ -83,51 +40,28 @@ -
+
- + - + - + - + - +
- + @@ -148,23 +82,13 @@ {{ scope.row.dataTime | formatDate }} --> - + - +
@@ -439,22 +363,16 @@ export default { errorList: errorList, realList: realList, otgError: otgError, + sampleImgFd: rpm.imgRes.sampleImgFd, + sampleImg: rpm.imgRes.sampleImg, + productImg: rpm.imgRes.productImg, + microwaveDataJson: asmp.microwaveDataJson }; const pdfName = productTypeMap(self.pdSubType) + "报告"; - const localTiffPath = null; - let rt = rpm.tifPath.split("/"); - //由于空天院内网服务i无拉取外网资源,先改成内网资源访问 - // const httpTiffPath = - // "http://10.0.31.126:8085/microwaveData/tif/" + rt[rt.length - 1]; - const httpTiffPath = rpm.tifPath; - const polarizationMethod = "HH"; exportWord( pdfMsg, pdfName, - localTiffPath, - httpTiffPath, - psId, - polarizationMethod + psId ).then((res) => { if (res.msg === "success") { const ru = res.pdfUrl; @@ -710,7 +628,7 @@ export default { background-color: #354595; } -/deep/.cstop .el-radio__input.is-checked + .el-radio__label { +/deep/.cstop .el-radio__input.is-checked+.el-radio__label { color: #606266; } @@ -733,7 +651,7 @@ export default { color: black; } -/deep/.el-tabs--card > .el-tabs__header .el-tabs__item.is-active { +/deep/.el-tabs--card>.el-tabs__header .el-tabs__item.is-active { color: white; background-color: #409eff; border-color: #409eff; @@ -745,7 +663,7 @@ export default { // display: block; } -/deep/.el-tabs--card > .el-tabs__header .el-tabs__nav { +/deep/.el-tabs--card>.el-tabs__header .el-tabs__nav { display: block; left: 41.5%; // transform: translateX(-50%); @@ -754,12 +672,12 @@ export default { position: relative; } -/deep/.el-tabs--card > .el-tabs__header { +/deep/.el-tabs--card>.el-tabs__header { border-bottom: 0; // border-bottom: 1px solid #E4E7ED; } -/deep/.el-tabs--card > .el-tabs__header .el-tabs__nav { +/deep/.el-tabs--card>.el-tabs__header .el-tabs__nav { border-bottom: 1px solid #e4e7ed; } diff --git a/src/views/Daichuli/Feedback/Inspection/index.vue b/src/views/Daichuli/Feedback/Inspection/index.vue index 7f25ae9..0438cd4 100644 --- a/src/views/Daichuli/Feedback/Inspection/index.vue +++ b/src/views/Daichuli/Feedback/Inspection/index.vue @@ -374,7 +374,7 @@ export default { } // 关联的样本数据入库 const allSampleData = smpVal.allSampleData; - this.addCotSamples(this.sampleList, allSampleData, orderId); + // this.addCotSamples(this.sampleList, allSampleData, orderId); //更新真实性检验方法 this.updateTruthFun(orderId, tcf); this.checkRealityWait = true; @@ -394,7 +394,7 @@ export default { formData.append("pixelHandleType", this.pixelFun); //像元级处理方法(正射校正产品不需要) formData.append("truthCheckFuns", JSON.stringify(tcf)); //真实性校验 formData.append("featureMapping", JSON.stringify(featureMapData)); - formData.append("polarizationMethod", 'HH'); + formData.append("microwaveDataJson",this.productMsg.microwaveDataJson); //特殊参数设置 checkReality(formData).then((res) => { // console.log("真实性校验:", res); if (res?.code === 200 && res.message === "success") { @@ -416,6 +416,7 @@ export default { token: this.token, orderMsg: this.orderMsg, productMsg: this.productMsg, + imgRes: imgRes }; localStorage.setItem( this.configration.path.inspection, @@ -455,25 +456,29 @@ export default { } const sampleExtent = [Math.min(...allLon), Math.min(...allLat), Math.max(...allLon), Math.max(...allLat)] this.setViewToRect(sampleExtent[0], sampleExtent[1], sampleExtent[2], sampleExtent[3]); - this.getCaptrue().then(res => { - this.setViewToRect(gp[0], gp[1], gp[2], gp[3]); - this.getCaptrue().then(res1 => { - if (this.productSubType === productSubTypeVal.ACS_ORTHOPHOTO) window.selfDefine.farViewer.entities.removeAll(); - else window.selfDefine.viewer.entities.removeAll(); + setTimeout(() => { + this.getCaptrue('样本放大').then(res => { + this.setViewToRect(gp[0], gp[1], gp[2], gp[3]); setTimeout(() => { - this.getCaptrue().then(res2 => { - resolve({ - sampleImgFd: res, - sampleImg: res1, - productImg: res2 - }) - }); + this.getCaptrue('样本图').then(res1 => { + if (this.productSubType === productSubTypeVal.ACS_ORTHOPHOTO) window.selfDefine.farViewer.entities.removeAll(); + else window.selfDefine.viewer.entities.removeAll(); + setTimeout(() => { + this.getCaptrue('产品图').then(res2 => { + resolve({ + sampleImgFd: res, + sampleImg: res1, + productImg: res2 + }) + }); + }, 1000) + }) }, 1000) }) - }) + }, 1000) }) }, - getCaptrue() { + getCaptrue(picName) { return new Promise((resolve, reject) => { const sceneDom = document.getElementById('sceneShowContent'); if (sceneDom !== null) { @@ -489,7 +494,7 @@ export default { // const href = window.URL.createObjectURL(new Blob([blob])) // const link = document.createElement('a') // link.href = href - // link.download = '测试图片.png' + // link.download = picName + '.png' // document.body.appendChild(link) // link.click() // document.body.removeChild(link) @@ -500,16 +505,20 @@ export default { }) }, setViewToRect(minLon, minLat, maxLon, maxLat) { - minLon = Number(minLon); - minLat = Number(minLat); - maxLon = Number(maxLon); - maxLat = Number(maxLat); - const ctLon = ((minLon + maxLon) / 2).toFixed(8); - const ctLat = ((minLat + maxLat) / 2).toFixed(8); - const west = minLon * 2 - ctLon; - const south = minLat * 2 - ctLat; - const east = maxLon * 2 - ctLon; - const north = maxLat * 2 - ctLat; + // minLon = Number(minLon); + // minLat = Number(minLat); + // maxLon = Number(maxLon); + // maxLat = Number(maxLat); + // const ctLon = ((minLon + maxLon) / 2).toFixed(8); + // const ctLat = ((minLat + maxLat) / 2).toFixed(8); + // const west = minLon * 2 - ctLon; + // const south = minLat * 2 - ctLat; + // const east = maxLon * 2 - ctLon; + // const north = maxLat * 2 - ctLat; + const west = minLon - 0.01; + const south = minLat - 0.01; + const east = maxLon + 0.01; + const north = maxLat + 0.01; const rectangle = Cesium.Rectangle.fromDegrees(west, south, east, north); if (this.productSubType === productSubTypeVal.ACS_ORTHOPHOTO) { window.selfDefine.farViewer.camera.setView({ diff --git a/src/views/Daichuli/index.vue b/src/views/Daichuli/index.vue index 4ced1e4..7e19e0f 100644 --- a/src/views/Daichuli/index.vue +++ b/src/views/Daichuli/index.vue @@ -159,8 +159,13 @@ export default { } }, changePage(orderMsg) { - // 正射:152945 土水:150208 PL_DF_DF_20220905175209_8648 地表覆盖:153029 PL_DF_DF_20220905112508_4567 叶面积:150533 PL_DF_DF_20230221173349_4569 后向散射系数:152946 - this.$router.push("/orderUnprocessed?orderId=153029&token=WEB*1701681396582@7282_ZZX-yg000087_44bb4c27458645c6b4d2a30717d73e9a"); + // 正射:152945 地表覆盖:153029 后向散射系数:152946 + // 高程产品:153064 植被高度:153073 叶面积指数:153049 + // 粗糙度 153057 + + // 适配完成产品 + // 土壤盐:153079 干涉形变:153086 干涉大气 153087 + this.$router.push("/orderUnprocessed?orderId=153047&token=WEB*1701824857923@4QA4_ZZX-yg000087_92ce3354ff6b48808c7bd2d9f6949046"); }, }, }; diff --git a/vue.config.js b/vue.config.js index 1dfa636..ac07f8a 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,8 @@ module.exports = { } }, [process.env.VUE_APP_REALITY_API]: { - target: "http://124.16.188.131:28092/microwave", + // target: "http://124.16.188.131:28092/microwave", + target: "http://192.168.8.121:18092/microwave", // target: "http://192.168.1.104:18092/microwave", changeOrigin: true, pathRewrite: { @@ -43,8 +44,8 @@ module.exports = { } }, [process.env.VUE_APP_FILE_API]: { - target: "http://124.16.188.131:28093/file", - // target: "http://192.168.1.104:18093/file", + // target: "http://124.16.188.131:28093/file", + target: "http://192.168.8.121:18093/file", changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_FILE_API]: ""