修改地表覆盖类型获取方式
parent
90d19321dc
commit
2ee6989acb
|
@ -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,
|
||||
});
|
||||
}
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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]: ""
|
||||
|
|
Loading…
Reference in New Issue