切换场景状态面板重置,继电器操作取消禁用
This commit is contained in:
parent
79f3b05f39
commit
571b460780
@ -137,8 +137,6 @@ 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 (operation: request.Relay.Operation) => {
|
||||
setRelayState({
|
||||
simulationId,
|
||||
|
@ -342,6 +342,7 @@ function destroySimAndBack() {
|
||||
|
||||
function switchScene(val: MapInfo) {
|
||||
if (val.id == lineStore.mapId) return;
|
||||
lineStore.selectedGraphics = null;
|
||||
lineStore.setMapId(val.id);
|
||||
sceneName = getSceneNameFn(val);
|
||||
lineStore.setSceneName(sceneName);
|
||||
|
Loading…
Reference in New Issue
Block a user