feat(elevator): 将电梯楼层属性名从currentFloor统一改为elevatorFloor以匹配后端数据字段
This commit is contained in:
parent
e8eb344d76
commit
bac228bb9d
@ -20,7 +20,7 @@ const editor = inject(props.token)!;
|
|||||||
// 订阅点位集合变化(含设备状态/连接状态),用于触发详情面板的响应式刷新
|
// 订阅点位集合变化(含设备状态/连接状态),用于触发详情面板的响应式刷新
|
||||||
const pointsTick = computed<string>(() =>
|
const pointsTick = computed<string>(() =>
|
||||||
editor.value.points.value
|
editor.value.points.value
|
||||||
.map((v: any) => `${v.id}:${v?.point?.isConnected ?? ''}:${v?.point?.elevatorDirection ?? ''}:${v?.point?.elevatorFrontDoorStatus ?? ''}:${v?.point?.currentFloor ?? ''}`)
|
.map((v: any) => `${v.id}:${v?.point?.isConnected ?? ''}:${v?.point?.elevatorDirection ?? ''}:${v?.point?.elevatorFrontDoorStatus ?? ''}:${v?.point?.elevatorFloor ?? ''}`)
|
||||||
.join('|'),
|
.join('|'),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ const elevatorCurrentFloor = computed(() => {
|
|||||||
void pointsTick.value;
|
void pointsTick.value;
|
||||||
|
|
||||||
const pen = editor.value.getPenById(props.current);
|
const pen = editor.value.getPenById(props.current);
|
||||||
return pen?.point?.currentFloor;
|
return pen?.point?.elevatorFloor;
|
||||||
});
|
});
|
||||||
|
|
||||||
// 获取电梯状态文本(基于后端字段)
|
// 获取电梯状态文本(基于后端字段)
|
||||||
|
|||||||
@ -291,4 +291,4 @@ export const useElevatorStore = defineStore('elevator', () => {
|
|||||||
handleElevatorWebSocketData,
|
handleElevatorWebSocketData,
|
||||||
refreshMapping
|
refreshMapping
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user