|
@@ -133,6 +133,9 @@ export default class History {
|
|
|
} else if (item.handle == HistoryEvents.DeletePoint) {
|
|
} else if (item.handle == HistoryEvents.DeletePoint) {
|
|
|
let point = pointService.create(item.point, item.point.id);
|
|
let point = pointService.create(item.point, item.point.id);
|
|
|
point.setCategory(item.point.category);
|
|
point.setCategory(item.point.category);
|
|
|
|
|
+ point.setLinkedBasePointId(item.point.linkedBasePointId);
|
|
|
|
|
+ point.setLinkedTestPointId(item.point.linkedTestPointId);
|
|
|
|
|
+ point.setLocationMode(item.point.locationMode);
|
|
|
point.parent = JSON.parse(JSON.stringify(item.point.parent));
|
|
point.parent = JSON.parse(JSON.stringify(item.point.parent));
|
|
|
} else if (item.handle == HistoryEvents.ModifyPoint) {
|
|
} else if (item.handle == HistoryEvents.ModifyPoint) {
|
|
|
const prePoint = item.prePoint;
|
|
const prePoint = item.prePoint;
|
|
@@ -475,6 +478,9 @@ export default class History {
|
|
|
if (item.handle == HistoryEvents.AddPoint) {
|
|
if (item.handle == HistoryEvents.AddPoint) {
|
|
|
let newPoint = pointService.create(item.point, item.point.id);
|
|
let newPoint = pointService.create(item.point, item.point.id);
|
|
|
newPoint.setCategory(item.point.category);
|
|
newPoint.setCategory(item.point.category);
|
|
|
|
|
+ newPoint.setLinkedBasePointId(item.point.linkedBasePointId);
|
|
|
|
|
+ newPoint.setLinkedTestPointId(item.point.linkedTestPointId);
|
|
|
|
|
+ newPoint.setLocationMode(item.point.locationMode);
|
|
|
historyUtil.assignPointFromPoint(newPoint, item.point);
|
|
historyUtil.assignPointFromPoint(newPoint, item.point);
|
|
|
} else if (item.handle == HistoryEvents.DeletePoint) {
|
|
} else if (item.handle == HistoryEvents.DeletePoint) {
|
|
|
dataService.deletePoint(item.point.id);
|
|
dataService.deletePoint(item.point.id);
|