|
@@ -234,7 +234,7 @@ export default class History {
|
|
|
for (let i = 0; i < itemForRoadPoints.length; ++i) {
|
|
|
const item = itemForRoadPoints[i];
|
|
|
if (item.handle == HistoryEvents.AddRoadPoint) {
|
|
|
- dataService.deleteRoadPoint(item.roadPoint.id);
|
|
|
+ dataService.deleteRoadPoint1(item.roadPoint.id);
|
|
|
} else if (item.handle == HistoryEvents.DeleteRoadPoint) {
|
|
|
let newRoadPoint = roadPointService.create(
|
|
|
item.roadPoint.position,
|
|
@@ -279,7 +279,7 @@ export default class History {
|
|
|
if (item.handle == HistoryEvents.AddRoad) {
|
|
|
dataService.deleteRoad(item.road.id);
|
|
|
} else if (item.handle == HistoryEvents.DeleteRoad) {
|
|
|
- let newRoad = roadService.create(
|
|
|
+ let newRoad = roadService.createOnlyRoad(
|
|
|
item.road.startId,
|
|
|
item.road.endId,
|
|
|
item.road.id
|
|
@@ -297,10 +297,9 @@ export default class History {
|
|
|
for (let i = 0; i < itemForCrossPoints.length; ++i) {
|
|
|
const item = itemForCrossPoints[i];
|
|
|
if (item.handle == HistoryEvents.AddCrossPoint) {
|
|
|
- dataService.deleteCrossPoint(item.crossPoint.id);
|
|
|
+ dataService.deleteCrossPoint1(item.crossPoint.id);
|
|
|
} else if (item.handle == HistoryEvents.DeleteCrossPoint) {
|
|
|
- crossPointService.create;
|
|
|
- let newCrossPoint = roadService.create(
|
|
|
+ let newCrossPoint = crossPointService.create(
|
|
|
item.crossPoint.position,
|
|
|
item.crossPoint.id
|
|
|
);
|
|
@@ -310,7 +309,7 @@ export default class History {
|
|
|
);
|
|
|
} else if (item.handle == HistoryEvents.ModifyCrossPoint) {
|
|
|
const preCrossPoint = item.preCrossPoint;
|
|
|
- let currentCrossPoint = dataService.getCrossPoint2(
|
|
|
+ let currentCrossPoint = dataService.getCrossPoint3(
|
|
|
item.curCrossPoint.id
|
|
|
);
|
|
|
historyUtil.assignCrossPointFromCrossPoint(
|
|
@@ -448,7 +447,7 @@ export default class History {
|
|
|
);
|
|
|
historyUtil.assignRoadPointFromRoadPoint(vRoadPoint, item.roadPoint);
|
|
|
} else if (item.handle == HistoryEvents.DeleteRoadPoint) {
|
|
|
- dataService.deleteRoadPoint(item.roadPoint.id);
|
|
|
+ dataService.deleteRoadPoint1(item.roadPoint.id);
|
|
|
} else if (item.handle == HistoryEvents.ModifyRoadPoint) {
|
|
|
const currentRoadPoint = item.curRoadPoint;
|
|
|
let preRoadPoint = dataService.getRoadPoint(item.curRoadPoint.id);
|
|
@@ -485,7 +484,7 @@ export default class History {
|
|
|
for (let i = 0; i < itemForRoads.length; ++i) {
|
|
|
const item = itemForRoads[i];
|
|
|
if (item.handle == HistoryEvents.AddRoad) {
|
|
|
- let vRoad = roadService.create(
|
|
|
+ let vRoad = roadService.createOnlyRoad(
|
|
|
item.road.startId,
|
|
|
item.road.endId,
|
|
|
item.road.id
|
|
@@ -514,10 +513,10 @@ export default class History {
|
|
|
item.crossPoint
|
|
|
);
|
|
|
} else if (item.handle == HistoryEvents.DeleteCrossPoint) {
|
|
|
- dataService.deleteCrossPoint(item.crossPoint.id);
|
|
|
+ dataService.deleteCrossPoint1(item.crossPoint.id);
|
|
|
} else if (item.handle == HistoryEvents.ModifyCrossPoint) {
|
|
|
const currentCrossPoint = item.curCrossPoint;
|
|
|
- let preCrossPoint = dataService.getCrossPoint2(item.curCrossPoint.id);
|
|
|
+ let preCrossPoint = dataService.getCrossPoint3(item.curCrossPoint.id);
|
|
|
historyUtil.assignCrossPointFromCrossPoint(
|
|
|
preCrossPoint,
|
|
|
currentCrossPoint
|