|
@@ -306,19 +306,23 @@ export default {
|
|
|
sourceId: 0,
|
|
|
pageSize: 10
|
|
|
};
|
|
|
+ // 暂存map中刚刚保存的数据
|
|
|
this.$Post(this.urlsCollection.selectByUser, paramData).then(userRes => {
|
|
|
if (userRes.code === 200) {
|
|
|
// console.log(userRes, "获取我的标记疑点数据");
|
|
|
-
|
|
|
if (userRes.content.length > 0) {
|
|
|
this.$store.state.myLabelPointsArr = [];
|
|
|
this.$store.state.myLabelPointsArr = userRes.content.map(v => {
|
|
|
+ if (JSON.stringify(geometry) === v.geojson) {
|
|
|
+ sessionStorage.setItem("myLabelPointsId", v.id);
|
|
|
+ }
|
|
|
return {
|
|
|
id: v.id,
|
|
|
geojson: v.geojson,
|
|
|
type: v.type
|
|
|
};
|
|
|
});
|
|
|
+ // 判断刚刚暂存的数据,并调用小眼睛的方法
|
|
|
}
|
|
|
}
|
|
|
// 更新时调用一次搜索接口
|