|
@@ -59,7 +59,15 @@ export default class PointService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ updateBasePointIds() {
|
|
|
+ let points = dataService.vectorData.points;
|
|
|
+ Settings.basePointIds = [];
|
|
|
+ for (let key in points) {
|
|
|
+ if (points[key].category == VectorCategory.Point.BasePoint) {
|
|
|
+ Settings.basePointIds.push(points[key].vectorId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
deleteBasePoint(basePointId) {
|
|
|
let points = dataService.getPoints();
|
|
|
let needDeletePointIds = [];
|
|
@@ -85,6 +93,7 @@ export default class PointService {
|
|
|
if (Settings.selectBasePointId == basePointId) {
|
|
|
Settings.selectBasePointId = null;
|
|
|
}
|
|
|
+ this.updateBasePointIds()
|
|
|
}
|
|
|
|
|
|
deleteTestPoint(testPointId) {
|
|
@@ -122,6 +131,8 @@ export default class PointService {
|
|
|
}
|
|
|
dataService.deletePoint(testPointId);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
const pointService = new PointService();
|