继电器右键调整

This commit is contained in:
joylink_zhaoerwei 2023-10-08 17:20:41 +08:00
parent f646bc0840
commit 6075ba474f

View File

@ -132,6 +132,8 @@ export class RelayOperationPlugin extends GraphicInteractionPlugin<Relay> {
this.app.updateSelected(relay);
const simulationId = useLineStore().simulationId || '';
const mapId = useLineStore().mapId as number;
setOpen.disabled = !relay.states.xh;
setClose.disabled = relay.states.xh;
const changeRelayState = async (td: boolean) => {
setRelayState({
id: relay.datas.id,