修改地表覆盖类型获取方式

tykong-cidian
duxiaoning 2023-12-13 09:22:46 +08:00
parent 90d19321dc
commit 2ee6989acb
5 changed files with 33 additions and 10 deletions

View File

@ -192,7 +192,7 @@ export function downloadPdf(url) {
*/
export async function getUserInfo(token) {
return request({
url: YUNGUAN_SERVER_URL+"/app/logincheck?token=" + token,
url: YUNGUAN_SERVER_URL + "/app/logincheck?token=" + token,
method: "get",
});
}
@ -217,3 +217,11 @@ export function resetCheck(data) {
data
});
}
// 获取地表覆盖类型
export function getFeatureMap(userId, orderId) {
return request({
url: "order/order/getLandCoverTypeImageSystemRelation?userId=" + userId + "&orderId=" + orderId,
method: "get",
withCredentials: true,
});
}

View File

@ -21,11 +21,11 @@
</el-select>
</template>
</el-table-column>
<el-table-column label="用户类型实际值">
<template slot-scope="scope">{{ scope.row.coverId }}</template>
<el-table-column label="像素类型实际值">
<template slot-scope="scope">{{ scope.row.imageValue }}</template>
</el-table-column>
<el-table-column label="空基代码实际值">
<template slot-scope="scope">{{ scope.row.imageValue }}</template>
<template slot-scope="scope">{{ scope.row.coverId }}</template>
</el-table-column>
</el-table>
</div>

View File

@ -263,7 +263,8 @@ export default {
self.productSubType = pdType;
// self.featureMapData = om.landCoverTypeVOList;
self.featureMapData = pdType === 39 ? om.landCoverTypeVOList : JSON.parse(am.productMsg.microwaveDataJson).vegetationPhenology;
self.featureMapData = am.groudClassData;
// self.featureMapData = pdType === 39 ? om.landCoverTypeVOList : JSON.parse(am.productMsg.microwaveDataJson).vegetationPhenology;
self.formInline = am.metaMsg;
self.orderData = am.orderData;

View File

@ -157,6 +157,7 @@ import {
updateOrderStage,
getSamplesList,
getUserInfo,
getFeatureMap,
} from "@/api/lang/pendingOrder";
import { productSubTypeVal } from "@/lib/contract.js";
@ -333,9 +334,22 @@ export default {
cu.flyToLayerRect(minLon, minLat, maxLon, maxLat);
const proSubId = om.productSubClassId;
//
if (proSubId === 39 || proSubId === 47) {
if (proSubId === 39) {
self.groudClassShow = true;
self.groudClassData = proSubId === 39 ? om.landCoverTypeVOList : JSON.parse(pm.microwaveDataJson).vegetationPhenology;
document.cookie = 'KJInspect-Token=' + self.token
getFeatureMap(self.userId, orderId, self.token).then(res => {
if (res.code == 200) {
const rd = res.dataList;
const gda = []
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 });
}
self.groudClassData = gda;
}
})
} else if (proSubId === 47) {
self.groudClassShow = true;
self.groudClassData = JSON.parse(pm.microwaveDataJson).vegetationPhenology;
}
}
});
@ -351,6 +365,7 @@ export default {
productMsg: this.productMsg,
orderData: this.orderData,
metaMsg: this.formInline,
groudClassData: this.groudClassData
};
localStorage.setItem(
this.configration.path.orderUnprocessed,

View File

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