Commit 2ecbbf34 authored by xxx's avatar xxx

完善删除采区时的操作

parent fbfeaac9
......@@ -418,11 +418,6 @@
this.toJavaCoordinates = [];
let that = this;
var graphicLayer3 = new mars3d.layer.GraphicLayer();
graphicLayer3.on(mars3d.EventType.click, function (event) {
var mpt = mars3d.LatLngPoint.fromCartesian(event.cartesian);
that.toJavaCoordinates.push(mpt.toString().split(','));
//console.log(that.toJavaCoordinates);
});
map.addLayer(graphicLayer3);
initLayerManager(graphicLayer3);
graphicLayer3.startDraw({
......@@ -442,6 +437,10 @@
pixelOffset: new Cesium.Cartesian2(10, -25), //偏移量
},
},
success: function (graphic){
var mpt = mars3d.LatLngPoint.fromCartesian(graphic._position_draw);
that.toJavaCoordinates.push(mpt.toString().split(','));
}
});
},
bindLayerPopup(graphicLayer,item) {
......
......@@ -452,6 +452,7 @@ export default {
}
}
})
//删除对应控制点
HttpReq.truckDispatching.apiCpointQuery({name:delname}).then((res2) => {
if(res2.code == 200){
if(res2.data.content[0].id){
......@@ -459,6 +460,8 @@ export default {
}
}
})
//采点表里面的采点
HttpReq.truckDispatching.RegionalCaiDianDel([itemdel1.id]).then((res) => {})
})
}
}
......
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