diff --git a/src/components/rtReport/index.vue b/src/components/rtReport/index.vue index 9a5918c..07193cd 100644 --- a/src/components/rtReport/index.vue +++ b/src/components/rtReport/index.vue @@ -54,31 +54,31 @@ size="medium" > @@ -141,17 +141,17 @@ export default { filters: { truthFunFilter(truthFun) { const truthFunMap = { - 0: "平均误差", - 1: "平均绝对误差", - 2: "相对误差", - 3: "平均相对误差", - 4: "平均绝对相对误差", - 5: "均方根误差", - 6: "平面中误差", + 4: "平均误差", + 9: "平均绝对误差", + 5: "相对误差", + 8: "平均相对误差", + 24: "平均绝对相对误差", + 6: "均方根误差", + 23: "平面中误差", 7: "相关系数", - 8: "误差矩阵", - 9: "总体分类精度", - 10: "Kappa系数", + 12: "误差矩阵", + 14: "总体分类精度", + 13: "Kappa系数", }; return truthFunMap[truthFun]; }, @@ -173,7 +173,7 @@ export default { }, mounted() { this.myCharts = this.$echarts.init(this.$refs.chart); - if (this.pdSubType === 1) { + if (this.pdSubType === productSubTypeVal.ACS_ORTHOPHOTO) { this.drawOtgEchart(this.realRes.otgVal); let da = {}; let dae = {}; @@ -234,31 +234,31 @@ export default { getProductDes() { let prodDes = null; switch (this.pdSubType) { - case 46: + case productSubTypeVal.ACS_DEM: prodDes = "高程值,单位:米"; break; - case 51: + case productSubTypeVal.ACS_BACKSCATTERINGCOEFFICIENT: prodDes = "后向散射系数,单位:dB"; break; - case 52: + case productSubTypeVal.ACS_ATMOSPHERICDELAYCORRECTION: prodDes = "延迟相位值"; break; - case 53: + case productSubTypeVal.ACS_DEFORMATION: prodDes = "形变量,单位:米"; break; - case 38: + case productSubTypeVal.ACS_SOILMOISTURE: prodDes = "土壤含水量"; break; - case 49: + case productSubTypeVal.ACS_SOILSALINITYINVERSION: prodDes = "土壤盐碱度"; break; - case 50: + case productSubTypeVal.ACS_SURFACEROUGHNESS: prodDes = "地表粗糙度"; break; - case 48: + case productSubTypeVal.ACS_GROUNDVEGETATIONHEIGHT: prodDes = "植被高度值,单位:米"; break; - case 43: + case productSubTypeVal.ACS_GROUNDLEAFAREAINDEX: prodDes = "叶面积指数"; break; } diff --git a/src/views/Daichuli/Feedback/Inspection/Report/index.vue b/src/views/Daichuli/Feedback/Inspection/Report/index.vue index 74b79a1..f38ba15 100644 --- a/src/views/Daichuli/Feedback/Inspection/Report/index.vue +++ b/src/views/Daichuli/Feedback/Inspection/Report/index.vue @@ -6,7 +6,7 @@ ref="reportQT" :realRes="realRes" :pdSubType="pdSubType" - v-if="pdSubType === 6 || pdSubType === 12" + v-if="pdSubType === 39 || pdSubType === 47" > - - - + + + {{ pdSubType == 45 ? scope.row.measureLong : scope.row.lng }} + + + + + {{ pdSubType == 45 ? scope.row.measureLat : scope.row.lng }} + + - + @@ -147,7 +154,7 @@ align="center" > - {{ scope.row.createTime }} + {{ scope.row.collectDate }} @@ -252,11 +259,22 @@ export default { cu.flyToLayerRect(gp[0], gp[1], gp[2], gp[3]); const sd = this.sampleData; - for (let i in sd) { - cu.addPoint(sd[i].lng, sd[i].lat, 10); + + if (this.pdSubType === productSubTypeVal.ACS_ORTHOPHOTO) { + for (let i in sd) { + cu.addPoint(sd[i].measureLong, sd[i].measureLat, 10); + } + } else { + for (let i in sd) { + const alt = JSON.parse(sd[i].paramStr).alt; + cu.addPoint(sd[i].lng, sd[i].lat, alt !== "null" ? alt : 10); + } } - if (this.pdSubType === 39 || this.pdSubType === 47) { + if ( + this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER || + this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY + ) { this.base64Data = this.$refs.reportQT.myCharts.getDataURL(); } else { this.base64Data = this.$refs.reportRT.myCharts.getDataURL(); @@ -291,7 +309,6 @@ export default { init() { const self = this; const rpm = (self.reportMsg = this.queryParams); - console.log("sendMsg", rpm); self.realRes = rpm.reportResult; self.pdSubType = rpm.pdSubType; const rsl = (self.sampleData = rpm.sampleList); @@ -299,12 +316,16 @@ export default { if (rpm.pdSubType === productSubTypeVal.ACS_ORTHOPHOTO) { let otgVal = []; for (let i in rsl) { - if (rsl[i].sameLon !== null) { - otgVal.push({ name: "mPoint", x: rsl[i].lon, y: rsl[i].lat }); + if (rsl[i].sameNameLong !== null) { + otgVal.push({ + name: "mPoint", + x: rsl[i].measureLong, + y: rsl[i].measureLat, + }); otgVal.push({ name: "sPoint", - x: rsl[i].sameLon, - y: rsl[i].sameLat, + x: rsl[i].sameNameLong, + y: rsl[i].sameNameLat, }); } } @@ -392,12 +413,12 @@ export default { categoryType: productTypeSplMap(self.pdSubType), product: productTypeMap(self.pdSubType), orderID: asmo.orderCode, - reportMaker: 'DXN', + reportMaker: "DXN", orderCreateTime: asmo.createDate, orderStartTime: crTime.startTime, orderEndTime: crTime.endTime, reportCreateTime: asmo.createDate, - inspectorName: 'DXN', + inspectorName: "DXN", productFileName: asmp.fileName, resolution: asmm.resRatio + "", productCreateTime: asmp.collectDate, diff --git a/src/views/Daichuli/Feedback/index.vue b/src/views/Daichuli/Feedback/index.vue index 9b94ed6..51d683d 100644 --- a/src/views/Daichuli/Feedback/index.vue +++ b/src/views/Daichuli/Feedback/index.vue @@ -10,19 +10,44 @@ 订单信息 - - + + - + - + - + 查看 @@ -34,18 +59,37 @@ 元数据查看 - + - + - + - + - + @@ -53,57 +97,100 @@ - + - + - + - + - + - + - 待检验产品预览下载 + 待检验产品预览下载 - + - + - {{ + {{ orderMsg.productSubClassId == 39 ? "地表覆盖类型表" : "植被物候类型表" }} - + - - + + 处理 - 无法处理 + 无法处理 取消 @@ -112,35 +199,65 @@ 反馈信息 - + - + - + - - 上传图片 + + 上传图片 - + @@ -155,7 +272,7 @@ import { orderFeedback, updateOrderStage, getSamplesList, - getUserInfo + getUserInfo, } from "@/api/lang/pendingOrder"; import { productSubTypeVal } from "@/lib/contract.js"; @@ -268,20 +385,20 @@ export default { }; }, methods: { - async initOrderMsg() { - const token = this.$route.query.token; - const userMsg = await getUserInfo(token) + initOrderMsg() { const self = this; - // userid: "ZZX-yg000087" - // username: "yhhuser@163.com" + const token = this.$route.query.token; + // const userMsg = await getUserInfo(token); + // // userid: "ZZX-yg000087" + // // username: "yhhuser@163.com" const orderId = (self.orderId = this.$route.query.orderId); - if (res.code === 200) { - self.userId = userMsg.data.userid; - } + // if (res.code === 200) { + // self.userId = userMsg.data.userid; + // } + self.userId = this.$route.query.userId; getOrderMsg(orderId).then((res) => { if (res.code === 200) { self.orderMsg = res.data; - console.log("11111111", res.data); // const psId = res.data.productSubClassId; this.getSqlData(); @@ -313,7 +430,7 @@ export default { pm.productSpaceResolution > 0.01 ? pm.productSpaceResolution + "米" : (pm.productSpaceResolution * 111194.926).toFixed(2) + - "米", + "米", coordinateSys: pm.coordinateSystem, minLat: minLat, maxLat: maxLat, @@ -393,7 +510,7 @@ export default { this.$refs["feedbackForm"].validate((valid) => { if (valid) { const fb = new FormData(); - fb.append("orderId", this.orderMsg.id); + fb.append("orderId", this.orderId); fb.append("userId", this.userId); fb.append("feedbackResult", this.unDeal.udMsg); fb.append("feedbackReason", this.unDeal.udReason); @@ -407,20 +524,16 @@ export default { }); this.imgLocalUrl = null; this.dialogFormVisible = false; - updateOrderMsg({ - id: this.orderMsg.id, - auditId: this.userId, - auditName: localStorage.userName, - }); - disOrderStatus(this.orderMsg.id); - const up = new FormData(); - up.append("orderId", this.orderMsg.id); - up.append("orderStatus", 3); - up.append("userId", this.orderMsg.user_id); - updateOrderStage(up).then((res) => { - if (res.code === 200) - this.$router.push({ name: "待处理的检验订单" }); - }); + updateOrderStage( + qs.stringify( + { + orderId: this.orderId, + orderStatus: 3, + userId: this.userId, + }, + { indices: false } + ) + ); } }); } else { @@ -450,7 +563,8 @@ export default { } } else { for (let i in sp) { - cu.addPoint(sp[i].lng, sp[i].lat, JSON.parse(sp[i].paramStr).alt); + const alt = JSON.parse(sp[i].paramStr).alt; + cu.addPoint(sp[i].lng, sp[i].lat, alt !== "null" ? alt : 10); } } } @@ -660,7 +774,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; }