修改地表覆盖类型获取方式
parent
90d19321dc
commit
2ee6989acb
|
@ -192,7 +192,7 @@ export function downloadPdf(url) {
|
||||||
*/
|
*/
|
||||||
export async function getUserInfo(token) {
|
export async function getUserInfo(token) {
|
||||||
return request({
|
return request({
|
||||||
url: YUNGUAN_SERVER_URL+"/app/logincheck?token=" + token,
|
url: YUNGUAN_SERVER_URL + "/app/logincheck?token=" + token,
|
||||||
method: "get",
|
method: "get",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -216,4 +216,12 @@ export function resetCheck(data) {
|
||||||
method: "post",
|
method: "post",
|
||||||
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>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="用户类型实际值">
|
<el-table-column label="像素类型实际值">
|
||||||
<template slot-scope="scope">{{ scope.row.coverId }}</template>
|
<template slot-scope="scope">{{ scope.row.imageValue }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="空基代码实际值">
|
<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-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -263,7 +263,8 @@ export default {
|
||||||
self.productSubType = pdType;
|
self.productSubType = pdType;
|
||||||
|
|
||||||
// self.featureMapData = om.landCoverTypeVOList;
|
// 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.formInline = am.metaMsg;
|
||||||
self.orderData = am.orderData;
|
self.orderData = am.orderData;
|
||||||
|
|
|
@ -157,6 +157,7 @@ import {
|
||||||
updateOrderStage,
|
updateOrderStage,
|
||||||
getSamplesList,
|
getSamplesList,
|
||||||
getUserInfo,
|
getUserInfo,
|
||||||
|
getFeatureMap,
|
||||||
} from "@/api/lang/pendingOrder";
|
} from "@/api/lang/pendingOrder";
|
||||||
import { productSubTypeVal } from "@/lib/contract.js";
|
import { productSubTypeVal } from "@/lib/contract.js";
|
||||||
|
|
||||||
|
@ -333,9 +334,22 @@ export default {
|
||||||
cu.flyToLayerRect(minLon, minLat, maxLon, maxLat);
|
cu.flyToLayerRect(minLon, minLat, maxLon, maxLat);
|
||||||
const proSubId = om.productSubClassId;
|
const proSubId = om.productSubClassId;
|
||||||
// 加载地物关联信息
|
// 加载地物关联信息
|
||||||
if (proSubId === 39 || proSubId === 47) {
|
if (proSubId === 39) {
|
||||||
self.groudClassShow = true;
|
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,
|
productMsg: this.productMsg,
|
||||||
orderData: this.orderData,
|
orderData: this.orderData,
|
||||||
metaMsg: this.formInline,
|
metaMsg: this.formInline,
|
||||||
|
groudClassData: this.groudClassData
|
||||||
};
|
};
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
this.configration.path.orderUnprocessed,
|
this.configration.path.orderUnprocessed,
|
||||||
|
|
|
@ -36,8 +36,7 @@ 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.181:28092/microwave",
|
// target: "http://192.168.8.181:18092/microwave",
|
||||||
// target: "http://192.168.1.104:18092/microwave",
|
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
["^" + process.env.VUE_APP_REALITY_API]: ""
|
["^" + process.env.VUE_APP_REALITY_API]: ""
|
||||||
|
@ -45,7 +44,7 @@ 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.8.181:28093/file",
|
// target: "http://192.168.8.181: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