|
@@ -460,7 +460,6 @@ export default {
|
|
|
this.layer.draw()
|
|
this.layer.draw()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- // 绘制柜内所有点
|
|
|
|
|
// 绘制柜内所有点
|
|
// 绘制柜内所有点
|
|
|
renderGrid() {
|
|
renderGrid() {
|
|
|
this.selectedStates = []
|
|
this.selectedStates = []
|
|
@@ -563,7 +562,8 @@ export default {
|
|
|
|
|
|
|
|
group.on('dragend', () => {
|
|
group.on('dragend', () => {
|
|
|
const groupPos = group.getAbsolutePosition()
|
|
const groupPos = group.getAbsolutePosition()
|
|
|
- console.log(groupPos,'我在那里')
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 计算在哪个区域
|
|
|
const isInRightBox =
|
|
const isInRightBox =
|
|
|
groupPos.x >= rightBoxBounds.x &&
|
|
groupPos.x >= rightBoxBounds.x &&
|
|
|
groupPos.x <= rightBoxBounds.x + rightBoxBounds.width &&
|
|
groupPos.x <= rightBoxBounds.x + rightBoxBounds.width &&
|
|
@@ -575,24 +575,12 @@ export default {
|
|
|
groupPos.x <= cabinetBounds.x + cabinetBounds.width &&
|
|
groupPos.x <= cabinetBounds.x + cabinetBounds.width &&
|
|
|
groupPos.y >= cabinetBounds.y &&
|
|
groupPos.y >= cabinetBounds.y &&
|
|
|
groupPos.y <= cabinetBounds.y + cabinetBounds.height
|
|
groupPos.y <= cabinetBounds.y + cabinetBounds.height
|
|
|
- let pointData = positions.find(p => p.entityName === labelText)
|
|
|
|
|
- let fromRight = false
|
|
|
|
|
-
|
|
|
|
|
- // 如果拖动的点是从右侧来的
|
|
|
|
|
- if (!pointData) {
|
|
|
|
|
- const rightIndex = this.rightPoints.findIndex(p => p.entityName === labelText)
|
|
|
|
|
- if (rightIndex !== -1) {
|
|
|
|
|
- pointData = this.rightPoints.splice(rightIndex, 1)[0]
|
|
|
|
|
- fromRight = true
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (!pointData) return
|
|
|
|
|
|
|
|
|
|
const newRow = Math.max(0, Math.min(Math.round(groupPos.x / 50), Math.floor(1200 / 50) - 1))
|
|
const newRow = Math.max(0, Math.min(Math.round(groupPos.x / 50), Math.floor(1200 / 50) - 1))
|
|
|
const newCol = Math.max(0, Math.min(Math.round(groupPos.y / 50), Math.floor(860 / 50) - 1))
|
|
const newCol = Math.max(0, Math.min(Math.round(groupPos.y / 50), Math.floor(860 / 50) - 1))
|
|
|
|
|
|
|
|
const updatedPointData = {
|
|
const updatedPointData = {
|
|
|
- ...pointData,
|
|
|
|
|
|
|
+ ...pos,
|
|
|
row: newRow,
|
|
row: newRow,
|
|
|
col: newCol,
|
|
col: newCol,
|
|
|
x: newRow,
|
|
x: newRow,
|
|
@@ -602,69 +590,31 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ================== 拖拽逻辑 ==================
|
|
// ================== 拖拽逻辑 ==================
|
|
|
- if (pos.from === 'cabinet') {
|
|
|
|
|
- if (isInCabinet) {
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- } else if (isInRightBox) {
|
|
|
|
|
- this.unbindingPoints.push(updatedPointData)
|
|
|
|
|
- if (!this.unbindPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.unbindPointIds.push(updatedPointData.entityId) // 记录解绑ID
|
|
|
|
|
- }
|
|
|
|
|
- this.bindingPointIds = this.bindingPointIds.filter(id => id !== updatedPointData.entityId)
|
|
|
|
|
- pos.from = 'right'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- pos.from = 'outside'
|
|
|
|
|
- }
|
|
|
|
|
- } else if (pos.from === 'left') {
|
|
|
|
|
- if (isInCabinet) {
|
|
|
|
|
- this.bindingPoints.push(updatedPointData)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPointData.entityId) // 记录绑定ID
|
|
|
|
|
- }
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- pos.from = 'cabinet'
|
|
|
|
|
- } else if (isInRightBox) {
|
|
|
|
|
- this.unbindingPoints.push(updatedPointData)
|
|
|
|
|
- if (!this.unbindPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.unbindPointIds.push(updatedPointData.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- pos.from = 'right'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.bindingPoints.push(updatedPointData)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPointData.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- pos.from = 'outside'
|
|
|
|
|
|
|
+ if (pos.from === 'cabinet' && isInRightBox) {
|
|
|
|
|
+ // 左 → 右 = 解绑
|
|
|
|
|
+ this.unbindingPoints.push(updatedPointData)
|
|
|
|
|
+ if (!this.unbindPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
+ this.unbindPointIds.push(updatedPointData.entityId)
|
|
|
}
|
|
}
|
|
|
- } else if (pos.from === 'right') {
|
|
|
|
|
- if (isInCabinet) {
|
|
|
|
|
- this.bindingPoints.push(updatedPointData)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPointData.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- pos.from = 'cabinet'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- pos.from = 'outside'
|
|
|
|
|
- }
|
|
|
|
|
- } else if (pos.from === 'outside') {
|
|
|
|
|
- if (isInCabinet) {
|
|
|
|
|
- this.bindingPoints.push(updatedPointData)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPointData.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- pos.from = 'cabinet'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
|
|
+ this.bindingPointIds = this.bindingPointIds.filter(id => id !== updatedPointData.entityId)
|
|
|
|
|
+ pos.from = 'right'
|
|
|
|
|
+ } else if (pos.from === 'right' && isInCabinet) {
|
|
|
|
|
+ // 右 → 左 = 绑定
|
|
|
|
|
+ this.bindingPoints.push(updatedPointData)
|
|
|
|
|
+ if (!this.bindingPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
+ this.bindingPointIds.push(updatedPointData.entityId)
|
|
|
}
|
|
}
|
|
|
|
|
+ this.movePoints.push(updatedPointData)
|
|
|
|
|
+ pos.from = 'cabinet'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 其他情况 = 更新位置
|
|
|
|
|
+ this.movePoints.push(updatedPointData)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.layer.draw()
|
|
this.layer.draw()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -795,79 +745,48 @@ export default {
|
|
|
entityName: point.pointName
|
|
entityName: point.pointName
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // ================== 拖拽逻辑 ==================
|
|
|
|
|
- if (point.from === 'left') {
|
|
|
|
|
- if (isInCabinet) {
|
|
|
|
|
- this.bindingPoints.push(updatedPoint)
|
|
|
|
|
- this.movePoints.push(updatedPoint)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPoint.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPoint.entityId) // 记录绑定ID
|
|
|
|
|
- }
|
|
|
|
|
- valueArray.push(updatedPoint)
|
|
|
|
|
- point.from = 'cabinet'
|
|
|
|
|
- } else if (isInRightBox) {
|
|
|
|
|
- this.unbindingPoints.push(updatedPoint)
|
|
|
|
|
- if (!this.unbindPointIds.includes(updatedPoint.entityId)) {
|
|
|
|
|
- this.unbindPointIds.push(updatedPoint.entityId) // 记录解绑ID
|
|
|
|
|
- }
|
|
|
|
|
- point.from = 'right'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.bindingPoints.push(updatedPoint)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPoint.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPoint.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- point.from = 'outside'
|
|
|
|
|
|
|
+ // ============== 拖拽逻辑精简版 ==============
|
|
|
|
|
+ if (point.from === 'cabinet' && isInRightBox) {
|
|
|
|
|
+ // 从柜子 → 右侧 = 解绑
|
|
|
|
|
+ this.unbindingPoints.push(updatedPoint)
|
|
|
|
|
+ if (!this.unbindPointIds.includes(updatedPoint.entityId)) {
|
|
|
|
|
+ this.unbindPointIds.push(updatedPoint.entityId)
|
|
|
}
|
|
}
|
|
|
- } else if (point.from === 'cabinet') {
|
|
|
|
|
- if (isInCabinet) {
|
|
|
|
|
- this.movePoints.push(updatedPoint)
|
|
|
|
|
- } else if (isInRightBox) {
|
|
|
|
|
- this.unbindingPoints.push(updatedPoint)
|
|
|
|
|
- if (!this.unbindPointIds.includes(updatedPoint.entityId)) {
|
|
|
|
|
- this.unbindPointIds.push(updatedPoint.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- this.bindingPointIds = this.bindingPointIds.filter(id => id !== updatedPoint.entityId)
|
|
|
|
|
- valueArray = valueArray.filter(item => item.pointId !== point.pointId)
|
|
|
|
|
- point.from = 'right'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.movePoints.push(updatedPoint)
|
|
|
|
|
- }
|
|
|
|
|
- } else if (point.from === 'right') {
|
|
|
|
|
- if (isInCabinet) {
|
|
|
|
|
- this.bindingPoints.push(updatedPoint)
|
|
|
|
|
- this.movePoints.push(updatedPoint)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPoint.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPoint.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- valueArray.push(updatedPoint)
|
|
|
|
|
- point.from = 'cabinet'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.movePoints.push(updatedPoint)
|
|
|
|
|
- point.from = 'outside'
|
|
|
|
|
- }
|
|
|
|
|
- } else if (point.from === 'outside') {
|
|
|
|
|
- if (isInCabinet) {
|
|
|
|
|
- this.bindingPoints.push(updatedPoint)
|
|
|
|
|
- this.movePoints.push(updatedPoint)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPoint.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPoint.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- valueArray.push(updatedPoint)
|
|
|
|
|
- point.from = 'cabinet'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.movePoints.push(updatedPoint)
|
|
|
|
|
|
|
+ this.bindingPointIds = this.bindingPointIds.filter(id => id !== updatedPoint.entityId)
|
|
|
|
|
+ valueArray = valueArray.filter(item => item.pointId !== point.pointId)
|
|
|
|
|
+ point.from = 'right'
|
|
|
|
|
+ } else if (point.from === 'right' && isInCabinet) {
|
|
|
|
|
+ // 从右侧 → 柜子 = 绑定
|
|
|
|
|
+ this.bindingPoints.push(updatedPoint)
|
|
|
|
|
+ if (!this.bindingPointIds.includes(updatedPoint.entityId)) {
|
|
|
|
|
+ this.bindingPointIds.push(updatedPoint.entityId)
|
|
|
}
|
|
}
|
|
|
|
|
+ this.movePoints = this.updateOrPush(this.movePoints, updatedPoint)
|
|
|
|
|
+ valueArray.push(updatedPoint)
|
|
|
|
|
+ point.from = 'cabinet'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 其他情况 = 只是更新位置
|
|
|
|
|
+ this.movePoints = this.updateOrPush(this.movePoints, updatedPoint)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.value = JSON.stringify(valueArray, null, 4)
|
|
this.value = JSON.stringify(valueArray, null, 4)
|
|
|
this.layer.draw()
|
|
this.layer.draw()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+
|
|
|
this.layer.draw()
|
|
this.layer.draw()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 更新点位
|
|
|
|
|
+ updateOrPush(arr, point) {
|
|
|
|
|
+ const idx = arr.findIndex(p => p.entityId === point.entityId)
|
|
|
|
|
+ if (idx !== -1) {
|
|
|
|
|
+ arr.splice(idx, 1, point) // 更新已有
|
|
|
|
|
+ } else {
|
|
|
|
|
+ arr.push(point) // 新增
|
|
|
|
|
+ }
|
|
|
|
|
+ return arr
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
// 从 json 删除对应的点
|
|
// 从 json 删除对应的点
|
|
|
removePointFromJson(point) {
|
|
removePointFromJson(point) {
|
|
@@ -952,7 +871,7 @@ export default {
|
|
|
const cabinetBounds = { x: 330, y: 10, width: 500, height: 790 }
|
|
const cabinetBounds = { x: 330, y: 10, width: 500, height: 790 }
|
|
|
|
|
|
|
|
this.rightPoints.forEach((point) => {
|
|
this.rightPoints.forEach((point) => {
|
|
|
- point.from = 'right' // 标记来源
|
|
|
|
|
|
|
+ point.from = 'right' // 初始来源是右侧
|
|
|
|
|
|
|
|
const group = new Konva.Group({
|
|
const group = new Konva.Group({
|
|
|
x: currentX,
|
|
x: currentX,
|
|
@@ -1006,34 +925,20 @@ export default {
|
|
|
|
|
|
|
|
const row = Math.floor(snappedY / gridY)
|
|
const row = Math.floor(snappedY / gridY)
|
|
|
const col = Math.floor(snappedX / gridX)
|
|
const col = Math.floor(snappedX / gridX)
|
|
|
- const y = Math.floor(snappedY / gridY)
|
|
|
|
|
- const x = Math.floor(snappedX / gridX)
|
|
|
|
|
|
|
+
|
|
|
const updatedPointData = {
|
|
const updatedPointData = {
|
|
|
|
|
+ ...point,
|
|
|
row,
|
|
row,
|
|
|
col,
|
|
col,
|
|
|
- x,
|
|
|
|
|
- y,
|
|
|
|
|
- pointId: point.pointId,
|
|
|
|
|
- entityId: point.entityId,
|
|
|
|
|
- entityName: point.entityName,
|
|
|
|
|
- pointName: point.pointName,
|
|
|
|
|
- remark: point.remark,
|
|
|
|
|
- prePointId: point.prePointId,
|
|
|
|
|
- pointType: point.pointType,
|
|
|
|
|
- pointTypeName: point.pointTypeName,
|
|
|
|
|
- powerType: point.powerType,
|
|
|
|
|
- powerTypeName: point.powerTypeName,
|
|
|
|
|
- state: point.status,
|
|
|
|
|
- pointIcon: point.pointIcon,
|
|
|
|
|
- pointPicture: point.pointPicture,
|
|
|
|
|
- mapImg: null,
|
|
|
|
|
|
|
+ x: col,
|
|
|
|
|
+ y: row,
|
|
|
mapId: this.mapId,
|
|
mapId: this.mapId,
|
|
|
mapType: this.mapType
|
|
mapType: this.mapType
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
let valueArray = []
|
|
let valueArray = []
|
|
|
try {
|
|
try {
|
|
|
- valueArray = JSON.parse(this.value)
|
|
|
|
|
|
|
+ valueArray = JSON.parse(this.value) || []
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
console.error('Failed to parse value:', e)
|
|
console.error('Failed to parse value:', e)
|
|
|
}
|
|
}
|
|
@@ -1043,67 +948,36 @@ export default {
|
|
|
snappedX <= rightBoxBounds.x + rightBoxBounds.width &&
|
|
snappedX <= rightBoxBounds.x + rightBoxBounds.width &&
|
|
|
snappedY >= rightBoxBounds.y &&
|
|
snappedY >= rightBoxBounds.y &&
|
|
|
snappedY <= rightBoxBounds.y + rightBoxBounds.height
|
|
snappedY <= rightBoxBounds.y + rightBoxBounds.height
|
|
|
|
|
+
|
|
|
const inCabinet =
|
|
const inCabinet =
|
|
|
snappedX >= cabinetBounds.x &&
|
|
snappedX >= cabinetBounds.x &&
|
|
|
snappedX <= cabinetBounds.x + cabinetBounds.width &&
|
|
snappedX <= cabinetBounds.x + cabinetBounds.width &&
|
|
|
snappedY >= cabinetBounds.y &&
|
|
snappedY >= cabinetBounds.y &&
|
|
|
snappedY <= cabinetBounds.y + cabinetBounds.height
|
|
snappedY <= cabinetBounds.y + cabinetBounds.height
|
|
|
|
|
|
|
|
- this.bindingPoints = this.bindingPoints || []
|
|
|
|
|
- this.unbindingPoints = this.unbindingPoints || []
|
|
|
|
|
- this.movePoints = this.movePoints || []
|
|
|
|
|
- this.bindingPointIds = this.bindingPointIds || []
|
|
|
|
|
- this.unbindPointIds = this.unbindPointIds || []
|
|
|
|
|
-
|
|
|
|
|
- if (point.from === 'cabinet') {
|
|
|
|
|
- if (inCabinet) {
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- } else if (inRightBox) {
|
|
|
|
|
- this.unbindingPoints.push(updatedPointData)
|
|
|
|
|
- if (!this.unbindPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.unbindPointIds.push(updatedPointData.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- this.bindingPointIds = this.bindingPointIds.filter(id => id !== updatedPointData.entityId)
|
|
|
|
|
- valueArray = valueArray.filter((item) => item.pointId !== point.pointId)
|
|
|
|
|
- point.from = 'right'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- }
|
|
|
|
|
- } else if (point.from === 'left') {
|
|
|
|
|
- if (inCabinet) {
|
|
|
|
|
- this.bindingPoints.push(updatedPointData)
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPointData.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- valueArray.push(updatedPointData)
|
|
|
|
|
- point.from = 'cabinet'
|
|
|
|
|
- } else if (inRightBox) {
|
|
|
|
|
- this.unbindingPoints.push(updatedPointData)
|
|
|
|
|
- if (!this.unbindPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.unbindPointIds.push(updatedPointData.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- point.from = 'right'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.bindingPoints.push(updatedPointData)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPointData.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- point.from = 'outside'
|
|
|
|
|
|
|
+ // ================== 拖拽逻辑 ==================
|
|
|
|
|
+ if (inCabinet) {
|
|
|
|
|
+ // 右侧 → 左侧(绑定)
|
|
|
|
|
+ this.bindingPoints.push(updatedPointData)
|
|
|
|
|
+ this.movePoints.push(updatedPointData)
|
|
|
|
|
+ if (!this.bindingPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
+ this.bindingPointIds.push(updatedPointData.entityId)
|
|
|
}
|
|
}
|
|
|
- } else if (point.from === 'right') {
|
|
|
|
|
- if (inCabinet) {
|
|
|
|
|
- this.bindingPoints.push(updatedPointData)
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- if (!this.bindingPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
- this.bindingPointIds.push(updatedPointData.entityId)
|
|
|
|
|
- }
|
|
|
|
|
- valueArray.push(updatedPointData)
|
|
|
|
|
- point.from = 'cabinet'
|
|
|
|
|
- } else {
|
|
|
|
|
- this.movePoints.push(updatedPointData)
|
|
|
|
|
- point.from = 'outside'
|
|
|
|
|
|
|
+ valueArray.push(updatedPointData)
|
|
|
|
|
+ point.from = 'cabinet'
|
|
|
|
|
+ } else if (inRightBox) {
|
|
|
|
|
+ // 左侧 → 右侧(解绑)
|
|
|
|
|
+ this.unbindingPoints.push(updatedPointData)
|
|
|
|
|
+ if (!this.unbindPointIds.includes(updatedPointData.entityId)) {
|
|
|
|
|
+ this.unbindPointIds.push(updatedPointData.entityId)
|
|
|
}
|
|
}
|
|
|
|
|
+ this.bindingPointIds = this.bindingPointIds.filter(id => id !== updatedPointData.entityId)
|
|
|
|
|
+ valueArray = valueArray.filter((item) => item.pointId !== point.pointId)
|
|
|
|
|
+ point.from = 'right'
|
|
|
|
|
+ } else {
|
|
|
|
|
+ // 其他情况(纯位置更新)
|
|
|
|
|
+ this.movePoints.push(updatedPointData)
|
|
|
|
|
+ point.from = 'outside'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.value = JSON.stringify(valueArray, null, 4)
|
|
this.value = JSON.stringify(valueArray, null, 4)
|