fix:单据工单联调,订阅联调
This commit is contained in:
@@ -52,13 +52,7 @@ import { Tile as TileLayer } from "ol/layer";
|
||||
import { defaults as defaultControls } from "ol/control";
|
||||
import VectorLayer from "ol/layer/Vector";
|
||||
import { Vector as VectorSource } from "ol/source";
|
||||
import {
|
||||
Draw,
|
||||
Modify,
|
||||
Select,
|
||||
Snap,
|
||||
defaults as defaultInteractions,
|
||||
} from "ol/interaction";
|
||||
import { Draw, Modify, Select, Snap } from "ol/interaction";
|
||||
import * as styleExports from "ol/style";
|
||||
import { Polygon, LineString } from "ol/geom";
|
||||
|
||||
@@ -117,7 +111,7 @@ export default {
|
||||
default: () => [],
|
||||
},
|
||||
// 接收传过来的绘制线段数组
|
||||
editCoordinatesLine:{
|
||||
editCoordinatesLine: {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
},
|
||||
@@ -460,7 +454,7 @@ export default {
|
||||
});
|
||||
modify.on("modifyend", (e) => {
|
||||
console.log(11111111);
|
||||
|
||||
|
||||
e.features.forEach((feature) => {
|
||||
this.drawMarkers = feature.getGeometry().getCoordinates().flat();
|
||||
this.$emit("endEoordinate", this.drawMarkers);
|
||||
@@ -635,7 +629,7 @@ export default {
|
||||
* @description: 删除绘制线段功能
|
||||
* @return {*}
|
||||
*/
|
||||
deleteLinedraw(){
|
||||
deleteLinedraw() {
|
||||
const map = this.instance.get("map");
|
||||
map.removeInteraction(this.drawLine);
|
||||
this.drawLineLayer.getSource().clear();
|
||||
|
||||
Reference in New Issue
Block a user