切换场景状态面板重置,继电器操作取消禁用

This commit is contained in:
joylink_zhaoerwei 2024-01-18 09:29:40 +08:00
parent 79f3b05f39
commit 571b460780
2 changed files with 1 additions and 2 deletions

View File

@ -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,

View File

@ -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);