文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 89f5380c by 李梓桢

带上传文件的图层标注已经对接

parent 39af8d1a
...@@ -130,17 +130,28 @@ ...@@ -130,17 +130,28 @@
/** /**
* 在整个项目中X都是经度,Y都是纬度 * 在整个项目中X都是经度,Y都是纬度
*/ */
let routeParams = this.$route.params
console.log("routeParams")
console.log(routeParams)
this.relationId = routeParams.relationId
let res = await this.getLayerList() let res = await this.getLayerList()
console.log(res) console.log(res)
this.layerData = res.layerInfo.labelList
// 避免第一次标注时数据库中没有内容的情况
if (res.layerInfo != null)
this.layerData = res.layerInfo.labelList
else
this.layerData = []
console.log(this.layerData) console.log(this.layerData)
this.landmarkData = res.landmarkList.landmarkEntityList
console.log(this.landmarkData)
if (res.layerInfo.relationId == res.landmarkList.relationId)
this.relationId = res.landmarkList.relationId
else
console.log("relationId不一致,出问题了")
if (res.landmarkList != null)
this.landmarkData = res.landmarkList.landmarkEntityList
else
this.landmarkData = []
console.log(this.landmarkData)
this.get_height(); this.get_height();
var _this = this; var _this = this;
window.onresize = function(){ window.onresize = function(){
...@@ -375,7 +386,7 @@ ...@@ -375,7 +386,7 @@
getRelationId() { getRelationId() {
//由于获取方法还没有确定,所以这里先使用桩 //由于获取方法还没有确定,所以这里先使用桩
let res = { let res = {
"relationId": 123 "relationId": this.relationId
} }
return res return res
}, },
...@@ -582,7 +593,7 @@ ...@@ -582,7 +593,7 @@
var i = 0 var i = 0
path.forEach(element => { path.forEach(element => {
let newPoint = { let newPoint = {
piontId : i, pointId : i,
X : element[0], X : element[0],
Y : element[1] Y : element[1]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment