样本适配,报告修改
parent
d19ce951aa
commit
9ba6acdfbb
|
@ -163,19 +163,13 @@ export function checkReality(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出pdf模板
|
// 导出pdf模板
|
||||||
export function exportWord(data, pdfName, localTiffPath, httpTiffPath, productType,polarizationMethod) {
|
export function exportWord(data, pdfName, productType) {
|
||||||
return fileRequest({
|
return fileRequest({
|
||||||
url:
|
url:
|
||||||
"importPDF/importWordAndPDF?reportName=" +
|
"importPDF/importWordAndPDF?reportName=" +
|
||||||
pdfName +
|
pdfName +
|
||||||
"&localTiffPath=" +
|
|
||||||
localTiffPath +
|
|
||||||
"&httpTiffPath=" +
|
|
||||||
httpTiffPath +
|
|
||||||
"&productType=" +
|
"&productType=" +
|
||||||
productType +
|
productType,
|
||||||
"&polarizationMethod=" +
|
|
||||||
polarizationMethod,
|
|
||||||
method: "post",
|
method: "post",
|
||||||
// headers:{'Content-Type':'multipart/form-data'},
|
// headers:{'Content-Type':'multipart/form-data'},
|
||||||
data
|
data
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
<div class="sscPre">
|
<div class="sscPre">
|
||||||
<div :class="checkRealityWait ? 'sceneShowContent onBorder' : 'sceneShowContent'" id="sceneShowContent">
|
<div :class="checkRealityWait ? 'sceneShowContent onBorder' : 'sceneShowContent'" id="sceneShowContent">
|
||||||
<div v-show="checkRealityWait" class="topContent">
|
<div v-show="checkRealityWait" class="topContent">
|
||||||
<span class="mapTitle">待检验产品图</span>
|
<span class="mapTitle">待检验正射校正产品图</span>
|
||||||
</div>
|
</div>
|
||||||
<div :id="checkRealityWait ? 'mapContent' : 'cesiumContent'">
|
<div :id="checkRealityWait ? 'mapContent' : 'cesiumContent'">
|
||||||
<canvas v-show="checkRealityWait" id="grid"></canvas>
|
<canvas v-show="checkRealityWait" id="grid"></canvas>
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div :class="checkRealityWait ? 'sceneShowContent onBorder' : 'sceneShowContent'" id="sceneShowContent">
|
<div :class="checkRealityWait ? 'sceneShowContent onBorder' : 'sceneShowContent'" id="sceneShowContent">
|
||||||
<div v-show="checkRealityWait" class="topContent">
|
<div v-show="checkRealityWait" class="topContent">
|
||||||
<span class="mapTitle">待检验产品图</span>
|
<span class="mapTitle">待检验{{ productSubType | productTypeMap }}图</span>
|
||||||
</div>
|
</div>
|
||||||
<div :id="checkRealityWait ? 'mapContent' : 'cesiumContent'">
|
<div :id="checkRealityWait ? 'mapContent' : 'cesiumContent'">
|
||||||
<canvas v-show="checkRealityWait" id="grid"></canvas>
|
<canvas v-show="checkRealityWait" id="grid"></canvas>
|
||||||
|
@ -201,6 +201,24 @@ export default {
|
||||||
getCoverName(paramStr) {
|
getCoverName(paramStr) {
|
||||||
return JSON.parse(paramStr).covernm;
|
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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div :class="checkRealityWait ? 'sceneShowContent onBorder' : 'sceneShowContent'" id="sceneShowContent">
|
<div :class="checkRealityWait ? 'sceneShowContent onBorder' : 'sceneShowContent'" id="sceneShowContent">
|
||||||
<div v-show="checkRealityWait" class="topContent">
|
<div v-show="checkRealityWait" class="topContent">
|
||||||
<span class="mapTitle">待检验产品图</span>
|
<span class="mapTitle">待检验{{ productSubType | productTypeMap }}图</span>
|
||||||
</div>
|
</div>
|
||||||
<div :id="checkRealityWait ? 'mapContent' : 'cesiumContent'">
|
<div :id="checkRealityWait ? 'mapContent' : 'cesiumContent'">
|
||||||
<canvas v-show="checkRealityWait" id="grid"></canvas>
|
<canvas v-show="checkRealityWait" id="grid"></canvas>
|
||||||
|
@ -89,7 +89,6 @@ import SampleSetting from "@/components/ration/sampleSetting/index.vue";
|
||||||
import WKT from "terraformer-wkt-parser";
|
import WKT from "terraformer-wkt-parser";
|
||||||
import Formator from "@/mixins/formator";
|
import Formator from "@/mixins/formator";
|
||||||
import { drawScaleTwo, drawGrid, getNowFormatDate } from "@/lib/utils";
|
import { drawScaleTwo, drawGrid, getNowFormatDate } from "@/lib/utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
SampleSetting,
|
SampleSetting,
|
||||||
|
@ -136,6 +135,24 @@ export default {
|
||||||
getSampleVal(paramStr) {
|
getSampleVal(paramStr) {
|
||||||
return JSON.parse(paramStr).featureValue.featureValue;
|
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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -2,80 +2,37 @@
|
||||||
<div class="report">
|
<div class="report">
|
||||||
<div class="rpHeader">
|
<div class="rpHeader">
|
||||||
<div class="rphLeft">
|
<div class="rphLeft">
|
||||||
<QtReport
|
<QtReport ref="reportQT" :realRes="realRes" :pdSubType="pdSubType" v-if="pdSubType === 39 || pdSubType === 47">
|
||||||
ref="reportQT"
|
|
||||||
:realRes="realRes"
|
|
||||||
:pdSubType="pdSubType"
|
|
||||||
v-if="pdSubType === 39 || pdSubType === 47"
|
|
||||||
>
|
|
||||||
</QtReport>
|
</QtReport>
|
||||||
<RtReport
|
<RtReport ref="reportRT" :realRes="realRes" :pdSubType="pdSubType" v-else></RtReport>
|
||||||
ref="reportRT"
|
|
||||||
:realRes="realRes"
|
|
||||||
:pdSubType="pdSubType"
|
|
||||||
v-else
|
|
||||||
></RtReport>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="rphRight">
|
<div class="rphRight">
|
||||||
<div class="box1">
|
<div class="box1">
|
||||||
<span class="sp1"></span><span class="sp2">产品检验报告PDF</span>
|
<span class="sp1"></span><span class="sp2">产品检验报告PDF</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="pdfContent" v-loading="pdfLoading" element-loading-text="PDF生成中..."
|
||||||
class="pdfContent"
|
element-loading-spinner="el-icon-loading">
|
||||||
v-loading="pdfLoading"
|
<iframe class="pdfPage" :src="pdfPath" frameborder="0" v-if="pdfLoading === false"></iframe>
|
||||||
element-loading-text="PDF生成中..."
|
|
||||||
element-loading-spinner="el-icon-loading"
|
|
||||||
>
|
|
||||||
<iframe
|
|
||||||
class="pdfPage"
|
|
||||||
:src="pdfPath"
|
|
||||||
frameborder="0"
|
|
||||||
v-if="pdfLoading === false"
|
|
||||||
></iframe>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rpShow">
|
<div class="rpShow">
|
||||||
<el-tabs type="card">
|
<el-tabs type="card">
|
||||||
<el-tab-pane label="查看待检验产品">
|
<el-tab-pane label="查看待检验产品">
|
||||||
<div
|
<div class="earth" id="cesiumView" @click="pickValue" style="overflow: hidden; position: relative"></div>
|
||||||
class="earth"
|
|
||||||
id="cesiumView"
|
|
||||||
@click="pickValue"
|
|
||||||
style="overflow: hidden; position: relative"
|
|
||||||
></div>
|
|
||||||
<div class="cstop">
|
<div class="cstop">
|
||||||
<el-form
|
<el-form :inline="true" :model="rpDataMsg" class="demo-form-inline" :disabled="true">
|
||||||
:inline="true"
|
|
||||||
:model="rpDataMsg"
|
|
||||||
class="demo-form-inline"
|
|
||||||
:disabled="true"
|
|
||||||
>
|
|
||||||
<el-form-item label="卫星" class="ysjMsg">
|
<el-form-item label="卫星" class="ysjMsg">
|
||||||
<el-input
|
<el-input class="ysjMsgMrg" v-model="rpDataMsg.satellite" placeholder="采样卫星"></el-input>
|
||||||
class="ysjMsgMrg"
|
|
||||||
v-model="rpDataMsg.satellite"
|
|
||||||
placeholder="采样卫星"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="载荷名称" class="ysjMsg">
|
<el-form-item label="载荷名称" class="ysjMsg">
|
||||||
<el-input
|
<el-input v-model="rpDataMsg.load" placeholder="载荷方式"></el-input>
|
||||||
v-model="rpDataMsg.load"
|
|
||||||
placeholder="载荷方式"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="空间分辨率" class="ysjMsg2">
|
<el-form-item label="空间分辨率" class="ysjMsg2">
|
||||||
<el-input
|
<el-input v-model="rpDataMsg.spatialRes" placeholder="空间分辨率"></el-input>
|
||||||
v-model="rpDataMsg.spatialRes"
|
|
||||||
placeholder="空间分辨率"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="时间" class="ysjMsg">
|
<el-form-item label="时间" class="ysjMsg">
|
||||||
<el-input
|
<el-input class="ysjMsgMrg" v-model="formatDateStr" placeholder="采样时间"></el-input>
|
||||||
class="ysjMsgMrg"
|
|
||||||
v-model="formatDateStr"
|
|
||||||
placeholder="采样时间"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="级别" prop="resource" class="ysjMsg2">
|
<el-form-item label="级别" prop="resource" class="ysjMsg2">
|
||||||
<el-radio-group v-model="rpDataMsg.level">
|
<el-radio-group v-model="rpDataMsg.level">
|
||||||
|
@ -83,51 +40,28 @@
|
||||||
<el-radio label="4"></el-radio>
|
<el-radio label="4"></el-radio>
|
||||||
<el-radio label="5"></el-radio>
|
<el-radio label="5"></el-radio>
|
||||||
<!-- <el-radio label="其他"></el-radio> -->
|
<!-- <el-radio label="其他"></el-radio> -->
|
||||||
</el-radio-group> </el-form-item
|
</el-radio-group> </el-form-item><br />
|
||||||
><br />
|
|
||||||
<el-form-item label="坐标系统" class="ysjMsg">
|
<el-form-item label="坐标系统" class="ysjMsg">
|
||||||
<el-input
|
<el-input v-model="rpDataMsg.coordinateSys" placeholder="坐标系统"></el-input>
|
||||||
v-model="rpDataMsg.coordinateSys"
|
|
||||||
placeholder="坐标系统"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="最小纬度" class="ysjMsg">
|
<el-form-item label="最小纬度" class="ysjMsg">
|
||||||
<el-input
|
<el-input v-model="rpDataMsg.minLat" placeholder="最小纬度"></el-input>
|
||||||
v-model="rpDataMsg.minLat"
|
|
||||||
placeholder="最小纬度"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="最大纬度" class="ysjMsg2">
|
<el-form-item label="最大纬度" class="ysjMsg2">
|
||||||
<el-input
|
<el-input style="margin-left: 6px" v-model="rpDataMsg.maxLat" placeholder="最大纬度"></el-input>
|
||||||
style="margin-left: 6px"
|
|
||||||
v-model="rpDataMsg.maxLat"
|
|
||||||
placeholder="最大纬度"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="最小经度" class="ysjMsg">
|
<el-form-item label="最小经度" class="ysjMsg">
|
||||||
<el-input
|
<el-input v-model="rpDataMsg.minLon" placeholder="最小经度"></el-input>
|
||||||
v-model="rpDataMsg.minLon"
|
|
||||||
placeholder="最小经度"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="最大经度" class="ysjMsg2">
|
<el-form-item label="最大经度" class="ysjMsg2">
|
||||||
<el-input
|
<el-input v-model="rpDataMsg.maxLon" placeholder="最大经度"></el-input>
|
||||||
v-model="rpDataMsg.maxLon"
|
|
||||||
placeholder="最大经度"
|
|
||||||
></el-input>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="查看样本数据">
|
<el-tab-pane label="查看样本数据">
|
||||||
<el-table
|
<el-table :header-cell-style="headerRowClass" :cell-style="tableRowClassName"
|
||||||
:header-cell-style="headerRowClass"
|
style="width: 98%; margin-left: 1%; margin-top: 15px" :data="sampleData" :stripe="true" height="520">
|
||||||
:cell-style="tableRowClassName"
|
|
||||||
style="width: 98%; margin-left: 1%; margin-top: 15px"
|
|
||||||
:data="sampleData"
|
|
||||||
:stripe="true"
|
|
||||||
height="520"
|
|
||||||
>
|
|
||||||
<el-table-column type="index" label="序号" width="80">
|
<el-table-column type="index" label="序号" width="80">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="samplesId" label="样本编号" sortable>
|
<el-table-column prop="samplesId" label="样本编号" sortable>
|
||||||
|
@ -148,23 +82,13 @@
|
||||||
{{ scope.row.dataTime | formatDate }}
|
{{ scope.row.dataTime | formatDate }}
|
||||||
</template> -->
|
</template> -->
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="collectDate" label="预处理时间" sortable align="center">
|
||||||
prop="collectDate"
|
|
||||||
label="预处理时间"
|
|
||||||
sortable
|
|
||||||
align="center"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.collectDate }}
|
{{ scope.row.collectDate }}
|
||||||
<!-- {{ scope.row.addTime | formatDate }} -->
|
<!-- {{ scope.row.addTime | formatDate }} -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="reliability" label="可信度" sortable align="center"></el-table-column>
|
||||||
prop="reliability"
|
|
||||||
label="可信度"
|
|
||||||
sortable
|
|
||||||
align="center"
|
|
||||||
></el-table-column>
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
@ -439,22 +363,16 @@ export default {
|
||||||
errorList: errorList,
|
errorList: errorList,
|
||||||
realList: realList,
|
realList: realList,
|
||||||
otgError: otgError,
|
otgError: otgError,
|
||||||
|
sampleImgFd: rpm.imgRes.sampleImgFd,
|
||||||
|
sampleImg: rpm.imgRes.sampleImg,
|
||||||
|
productImg: rpm.imgRes.productImg,
|
||||||
|
microwaveDataJson: asmp.microwaveDataJson
|
||||||
};
|
};
|
||||||
const pdfName = productTypeMap(self.pdSubType) + "报告";
|
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(
|
exportWord(
|
||||||
pdfMsg,
|
pdfMsg,
|
||||||
pdfName,
|
pdfName,
|
||||||
localTiffPath,
|
psId
|
||||||
httpTiffPath,
|
|
||||||
psId,
|
|
||||||
polarizationMethod
|
|
||||||
).then((res) => {
|
).then((res) => {
|
||||||
if (res.msg === "success") {
|
if (res.msg === "success") {
|
||||||
const ru = res.pdfUrl;
|
const ru = res.pdfUrl;
|
||||||
|
@ -710,7 +628,7 @@ export default {
|
||||||
background-color: #354595;
|
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;
|
color: #606266;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -733,7 +651,7 @@ export default {
|
||||||
color: black;
|
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;
|
color: white;
|
||||||
background-color: #409eff;
|
background-color: #409eff;
|
||||||
border-color: #409eff;
|
border-color: #409eff;
|
||||||
|
@ -745,7 +663,7 @@ export default {
|
||||||
// display: block;
|
// display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/.el-tabs--card > .el-tabs__header .el-tabs__nav {
|
/deep/.el-tabs--card>.el-tabs__header .el-tabs__nav {
|
||||||
display: block;
|
display: block;
|
||||||
left: 41.5%;
|
left: 41.5%;
|
||||||
// transform: translateX(-50%);
|
// transform: translateX(-50%);
|
||||||
|
@ -754,12 +672,12 @@ export default {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/.el-tabs--card > .el-tabs__header {
|
/deep/.el-tabs--card>.el-tabs__header {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
// border-bottom: 1px solid #E4E7ED;
|
// 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;
|
border-bottom: 1px solid #e4e7ed;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -374,7 +374,7 @@ export default {
|
||||||
}
|
}
|
||||||
// 关联的样本数据入库
|
// 关联的样本数据入库
|
||||||
const allSampleData = smpVal.allSampleData;
|
const allSampleData = smpVal.allSampleData;
|
||||||
this.addCotSamples(this.sampleList, allSampleData, orderId);
|
// this.addCotSamples(this.sampleList, allSampleData, orderId);
|
||||||
//更新真实性检验方法
|
//更新真实性检验方法
|
||||||
this.updateTruthFun(orderId, tcf);
|
this.updateTruthFun(orderId, tcf);
|
||||||
this.checkRealityWait = true;
|
this.checkRealityWait = true;
|
||||||
|
@ -394,7 +394,7 @@ export default {
|
||||||
formData.append("pixelHandleType", this.pixelFun); //像元级处理方法(正射校正产品不需要)
|
formData.append("pixelHandleType", this.pixelFun); //像元级处理方法(正射校正产品不需要)
|
||||||
formData.append("truthCheckFuns", JSON.stringify(tcf)); //真实性校验
|
formData.append("truthCheckFuns", JSON.stringify(tcf)); //真实性校验
|
||||||
formData.append("featureMapping", JSON.stringify(featureMapData));
|
formData.append("featureMapping", JSON.stringify(featureMapData));
|
||||||
formData.append("polarizationMethod", 'HH');
|
formData.append("microwaveDataJson",this.productMsg.microwaveDataJson); //特殊参数设置
|
||||||
checkReality(formData).then((res) => {
|
checkReality(formData).then((res) => {
|
||||||
// console.log("真实性校验:", res);
|
// console.log("真实性校验:", res);
|
||||||
if (res?.code === 200 && res.message === "success") {
|
if (res?.code === 200 && res.message === "success") {
|
||||||
|
@ -416,6 +416,7 @@ export default {
|
||||||
token: this.token,
|
token: this.token,
|
||||||
orderMsg: this.orderMsg,
|
orderMsg: this.orderMsg,
|
||||||
productMsg: this.productMsg,
|
productMsg: this.productMsg,
|
||||||
|
imgRes: imgRes
|
||||||
};
|
};
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
this.configration.path.inspection,
|
this.configration.path.inspection,
|
||||||
|
@ -455,25 +456,29 @@ export default {
|
||||||
}
|
}
|
||||||
const sampleExtent = [Math.min(...allLon), Math.min(...allLat), Math.max(...allLon), Math.max(...allLat)]
|
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.setViewToRect(sampleExtent[0], sampleExtent[1], sampleExtent[2], sampleExtent[3]);
|
||||||
this.getCaptrue().then(res => {
|
setTimeout(() => {
|
||||||
this.setViewToRect(gp[0], gp[1], gp[2], gp[3]);
|
this.getCaptrue('样本放大').then(res => {
|
||||||
this.getCaptrue().then(res1 => {
|
this.setViewToRect(gp[0], gp[1], gp[2], gp[3]);
|
||||||
if (this.productSubType === productSubTypeVal.ACS_ORTHOPHOTO) window.selfDefine.farViewer.entities.removeAll();
|
|
||||||
else window.selfDefine.viewer.entities.removeAll();
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.getCaptrue().then(res2 => {
|
this.getCaptrue('样本图').then(res1 => {
|
||||||
resolve({
|
if (this.productSubType === productSubTypeVal.ACS_ORTHOPHOTO) window.selfDefine.farViewer.entities.removeAll();
|
||||||
sampleImgFd: res,
|
else window.selfDefine.viewer.entities.removeAll();
|
||||||
sampleImg: res1,
|
setTimeout(() => {
|
||||||
productImg: res2
|
this.getCaptrue('产品图').then(res2 => {
|
||||||
})
|
resolve({
|
||||||
});
|
sampleImgFd: res,
|
||||||
|
sampleImg: res1,
|
||||||
|
productImg: res2
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}, 1000)
|
||||||
|
})
|
||||||
}, 1000)
|
}, 1000)
|
||||||
})
|
})
|
||||||
})
|
}, 1000)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getCaptrue() {
|
getCaptrue(picName) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const sceneDom = document.getElementById('sceneShowContent');
|
const sceneDom = document.getElementById('sceneShowContent');
|
||||||
if (sceneDom !== null) {
|
if (sceneDom !== null) {
|
||||||
|
@ -489,7 +494,7 @@ export default {
|
||||||
// const href = window.URL.createObjectURL(new Blob([blob]))
|
// const href = window.URL.createObjectURL(new Blob([blob]))
|
||||||
// const link = document.createElement('a')
|
// const link = document.createElement('a')
|
||||||
// link.href = href
|
// link.href = href
|
||||||
// link.download = '测试图片.png'
|
// link.download = picName + '.png'
|
||||||
// document.body.appendChild(link)
|
// document.body.appendChild(link)
|
||||||
// link.click()
|
// link.click()
|
||||||
// document.body.removeChild(link)
|
// document.body.removeChild(link)
|
||||||
|
@ -500,16 +505,20 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
setViewToRect(minLon, minLat, maxLon, maxLat) {
|
setViewToRect(minLon, minLat, maxLon, maxLat) {
|
||||||
minLon = Number(minLon);
|
// minLon = Number(minLon);
|
||||||
minLat = Number(minLat);
|
// minLat = Number(minLat);
|
||||||
maxLon = Number(maxLon);
|
// maxLon = Number(maxLon);
|
||||||
maxLat = Number(maxLat);
|
// maxLat = Number(maxLat);
|
||||||
const ctLon = ((minLon + maxLon) / 2).toFixed(8);
|
// const ctLon = ((minLon + maxLon) / 2).toFixed(8);
|
||||||
const ctLat = ((minLat + maxLat) / 2).toFixed(8);
|
// const ctLat = ((minLat + maxLat) / 2).toFixed(8);
|
||||||
const west = minLon * 2 - ctLon;
|
// const west = minLon * 2 - ctLon;
|
||||||
const south = minLat * 2 - ctLat;
|
// const south = minLat * 2 - ctLat;
|
||||||
const east = maxLon * 2 - ctLon;
|
// const east = maxLon * 2 - ctLon;
|
||||||
const north = maxLat * 2 - ctLat;
|
// 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);
|
const rectangle = Cesium.Rectangle.fromDegrees(west, south, east, north);
|
||||||
if (this.productSubType === productSubTypeVal.ACS_ORTHOPHOTO) {
|
if (this.productSubType === productSubTypeVal.ACS_ORTHOPHOTO) {
|
||||||
window.selfDefine.farViewer.camera.setView({
|
window.selfDefine.farViewer.camera.setView({
|
||||||
|
|
|
@ -159,8 +159,13 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changePage(orderMsg) {
|
changePage(orderMsg) {
|
||||||
// 正射:152945 土水:150208 PL_DF_DF_20220905175209_8648 地表覆盖:153029 PL_DF_DF_20220905112508_4567 叶面积:150533 PL_DF_DF_20230221173349_4569 后向散射系数:152946
|
// 正射:152945 地表覆盖:153029 后向散射系数:152946
|
||||||
this.$router.push("/orderUnprocessed?orderId=153029&token=WEB*1701681396582@7282_ZZX-yg000087_44bb4c27458645c6b4d2a30717d73e9a");
|
// 高程产品:153064 植被高度:153073 叶面积指数:153049
|
||||||
|
// 粗糙度 153057
|
||||||
|
|
||||||
|
// 适配完成产品
|
||||||
|
// 土壤盐:153079 干涉形变:153086 干涉大气 153087
|
||||||
|
this.$router.push("/orderUnprocessed?orderId=153047&token=WEB*1701824857923@4QA4_ZZX-yg000087_92ce3354ff6b48808c7bd2d9f6949046");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,7 +35,8 @@ module.exports = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[process.env.VUE_APP_REALITY_API]: {
|
[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",
|
// target: "http://192.168.1.104:18092/microwave",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
@ -43,8 +44,8 @@ module.exports = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[process.env.VUE_APP_FILE_API]: {
|
[process.env.VUE_APP_FILE_API]: {
|
||||||
target: "http://124.16.188.131:28093/file",
|
// target: "http://124.16.188.131:28093/file",
|
||||||
// target: "http://192.168.1.104:18093/file",
|
target: "http://192.168.8.121:18093/file",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
["^" + process.env.VUE_APP_FILE_API]: ""
|
["^" + process.env.VUE_APP_FILE_API]: ""
|
||||||
|
|
Loading…
Reference in New Issue