修改地表覆盖映射

tykong-cidian
duxiaoning 2024-09-03 16:28:38 +08:00
parent 82d7723d86
commit 1ba2c3001c
6 changed files with 41 additions and 59 deletions

View File

@ -8,41 +8,22 @@
<div> <div>
<el-tabs v-model="activeTabs"> <el-tabs v-model="activeTabs">
<el-tab-pane label="误差矩阵" name="pixel"> <el-tab-pane label="误差矩阵" name="pixel">
<ReportTable <ReportTable :errorMatrix="errorMatrix" activeTabs="pixel"></ReportTable>
:errorMatrix="errorMatrix"
activeTabs="pixel"
></ReportTable>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="用户精度" name="userPre"> <el-tab-pane label="用户精度" name="userPre">
<ReportTable <ReportTable :errorMatrix="errorMatrix" :preResults="preResults['用户精度']" activeTabs="userPre">
:errorMatrix="errorMatrix"
:preResults="preResults['用户精度']"
activeTabs="userPre"
>
</ReportTable> </ReportTable>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="生产者精度" name="producerPre"> <el-tab-pane label="生产者精度" name="producerPre">
<ReportTable <ReportTable :errorMatrix="errorMatrix" :preResults="preResults['生产者精度']" activeTabs="producerPre">
:errorMatrix="errorMatrix"
:preResults="preResults['生产者精度']"
activeTabs="producerPre"
>
</ReportTable> </ReportTable>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="错分精度" name="errorPre"> <el-tab-pane label="错分精度" name="errorPre">
<ReportTable <ReportTable :errorMatrix="errorMatrix" :preResults="preResults['错分误差']" activeTabs="errorPre">
:errorMatrix="errorMatrix"
:preResults="preResults['错分误差']"
activeTabs="errorPre"
>
</ReportTable> </ReportTable>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="漏分精度" name="LeakagePre"> <el-tab-pane label="漏分精度" name="LeakagePre">
<ReportTable <ReportTable :errorMatrix="errorMatrix" :preResults="preResults['漏分误差']" activeTabs="LeakagePre">
:errorMatrix="errorMatrix"
:preResults="preResults['漏分误差']"
activeTabs="LeakagePre"
>
</ReportTable> </ReportTable>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -51,8 +32,7 @@
</div> </div>
<div class="groudCoverType"> <div class="groudCoverType">
<div class="box1"> <div class="box1">
<span class="sp1"></span <span class="sp1"></span><span class="sp2">{{ pdSubTypeName }}误差结果图</span>
><span class="sp2">{{ pdSubTypeName }}误差结果图</span>
</div> </div>
<div class="gctContent"> <div class="gctContent">
<div id="qtReportEchart" ref="chart"></div> <div id="qtReportEchart" ref="chart"></div>
@ -113,7 +93,7 @@ export default {
let dataArr = []; let dataArr = [];
newTableData.forEach((a, index1) => { newTableData.forEach((a, index1) => {
a.forEach((b, index2) => { a.forEach((b, index2) => {
dataArr.push([index1, index2, b.count]); dataArr.push([index2, index1, b.count]);
}); });
}); });
let echartOption = { let echartOption = {

View File

@ -54,7 +54,6 @@ export function truthFunctionsMap(truthFun) {
13: "Kappa系数", 13: "Kappa系数",
11: "产品真值", 11: "产品真值",
112: "正射误差列表", 112: "正射误差列表",
99: "有效值"
}; };
if (truthFun == null) return null; if (truthFun == null) return null;
else return truthFunMap[truthFun]; else return truthFunMap[truthFun];

View File

@ -193,25 +193,25 @@ export default {
this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER || this.pdSubType === productSubTypeVal.ACS_TYPESOFLANDCOVER ||
this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY this.pdSubType === productSubTypeVal.ACS_VEGETATIONPHENOLOGY
) { ) {
// this.$refs.reportQT.myCharts.on("finished",()=>{ this.base64Data = this.$refs.reportQT.myCharts.getDataURL({
this.base64Data = this.$refs.reportQT.myCharts.getDataURL({ type: "png",
type: "png", pixelRatio: 1.5, //
pixelRatio: 1.5, // backgroundColor: "#fff",
backgroundColor: "#fff", excludeComponents: ["toolbox", "dataZoom"],
excludeComponents: ["toolbox", "dataZoom"], });
}); setTimeout(() => {
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.exportPdf(this.reportMsg); 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() { created() {
@ -379,9 +379,9 @@ export default {
microwaveDataJson: asmp.microwaveDataJson, microwaveDataJson: asmp.microwaveDataJson,
satellite: asmm.satellite, satellite: asmm.satellite,
load: asmm.load, load: asmm.load,
pixelHandleMsg:rpm.pixelHandleMsg, pixelHandleMsg: rpm.pixelHandleMsg,
projStr:rpm.projStr, projStr: rpm.projStr,
sampleFun:rpm.sampleFun sampleFun: rpm.sampleFun
}; };
const pdfName = productTypeMap(self.pdSubType) + "报告"; const pdfName = productTypeMap(self.pdSubType) + "报告";
exportWord( exportWord(

View File

@ -283,10 +283,10 @@ export default {
const pm = (self.productMsg = am.productMsg); const pm = (self.productMsg = am.productMsg);
self.geoWorkSpace = pm.geoWorkspace; self.geoWorkSpace = pm.geoWorkspace;
self.geoLayerName = pm.geoLayerName; self.geoLayerName = pm.geoLayerName;
self.tifPath = pm.ftpPath; // self.tifPath = pm.ftpPath;
//访 //访
// let rt = pm.ftpPath.split('/'); let rt = pm.ftpPath.split('/');
// self.tifPath = 'http://10.0.31.125:18030/inspection/files/' + rt[rt.length - 1]; self.tifPath = 'http://10.0.31.125:18030/inspection/files/' + rt[rt.length - 1];
self.projection = pm.projection; self.projection = pm.projection;
self.microwaveDataJson = self.productMsg.microwaveDataJson self.microwaveDataJson = self.productMsg.microwaveDataJson
// //

View File

@ -88,8 +88,8 @@
<div class="box1"> <div class="box1">
<span class="sp1"></span><span class="sp2">{{ <span class="sp1"></span><span class="sp2">{{
orderMsg.productSubClassId == 39 orderMsg.productSubClassId == 39
? "地表覆盖类型表" ? "地表覆盖类型表"
: "植被物候类型表" : "植被物候类型表"
}}</span> }}</span>
</div> </div>
<el-table :data="groudClassData" :header-cell-style="{ background: '#E4E9F1' }" :cell-style="tableRowClassName" <el-table :data="groudClassData" :header-cell-style="{ background: '#E4E9F1' }" :cell-style="tableRowClassName"
@ -343,9 +343,12 @@ export default {
const rd = res.dataList; const rd = res.dataList;
const gda = [] const gda = []
for (let i in rd) { for (let i in rd) {
gda.push({ imageName: rd[i].name, imageValue: rd[i].imageValue, coverId: rd[i].systemCoverList[0].coverId, coverName: rd[i].systemCoverList[0].coverName }); if (rd[i].systemCoverList[0]) {
gda.push({ imageName: rd[i].name, imageValue: rd[i].imageValue, coverId: rd[i].systemCoverList[0].coverId, coverName: rd[i].systemCoverList[0].coverName });
}
} }
self.groudClassData = gda; self.groudClassData = gda;
} }
}) })
} else if (proSubId === 47) { } else if (proSubId === 47) {

View File

@ -36,8 +36,8 @@ module.exports = {
} }
}, },
[process.env.VUE_APP_REALITY_API]: { [process.env.VUE_APP_REALITY_API]: {
target: "http://192.168.88.199:18092/microwave", // target: "http://192.168.88.199:18092/microwave",
// target: "https://124.16.188.131:28092/microwave", target: "https://124.16.188.131:28092/microwave",
// target: "http://192.168.1.227:18092/microwave", // target: "http://192.168.1.227:18092/microwave",
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
@ -45,8 +45,8 @@ module.exports = {
} }
}, },
[process.env.VUE_APP_FILE_API]: { [process.env.VUE_APP_FILE_API]: {
target: "http://192.168.88.199:18093/file", // target: "http://192.168.88.199:18093/file",
// target: "https://124.16.188.131:28093/file", target: "https://124.16.188.131:28093/file",
// target: "http://192.168.1.227:18093/file", // target: "http://192.168.1.227:18093/file",
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {