diff --git a/src/drawApp/iscsApp.ts b/src/drawApp/iscsApp.ts index 94bc930..c699491 100644 --- a/src/drawApp/iscsApp.ts +++ b/src/drawApp/iscsApp.ts @@ -239,14 +239,17 @@ export function saveDrawDatas(app: IDrawApp) { switch (drawStore.selectSubmenuAndStation.submenu) { case '火灾报警平面图': for (let i = 0; i < storage.fasPlatformAlarmStorages.length; i++) { - const asPlatformAlarm = storage.fasPlatformAlarmStorages[i]; + let fasPlatformAlarm = storage.fasPlatformAlarmStorages[i]; if ( - asPlatformAlarm.stationName == + fasPlatformAlarm.stationName == drawStore.selectSubmenuAndStation.station ) { + fasPlatformAlarm = new iscsGraphicData.FASPlatformAlarmStorage({ + stationName: drawStore.selectSubmenuAndStation.station, + }); const fasStorage = saveCommonDrawDatas( app, - asPlatformAlarm + fasPlatformAlarm ) as iscsGraphicData.FASPlatformAlarmStorage; storage.fasPlatformAlarmStorages[i] = fasStorage; break; @@ -255,11 +258,15 @@ export function saveDrawDatas(app: IDrawApp) { break; case '监控布局图': for (let i = 0; i < storage.cctvOfStationControlStorages.length; i++) { - const cctvOfStationControl = storage.cctvOfStationControlStorages[i]; + let cctvOfStationControl = storage.cctvOfStationControlStorages[i]; if ( cctvOfStationControl.stationName == drawStore.selectSubmenuAndStation.station ) { + cctvOfStationControl = + new iscsGraphicData.CCTVOfStationControlStorage({ + stationName: drawStore.selectSubmenuAndStation.station, + }); const cctvStorage = saveCommonDrawDatas( app, cctvOfStationControl diff --git a/src/layouts/IscsDrawLayout.vue b/src/layouts/IscsDrawLayout.vue index 0d22442..bcea97a 100644 --- a/src/layouts/IscsDrawLayout.vue +++ b/src/layouts/IscsDrawLayout.vue @@ -510,18 +510,18 @@ const stationOption = [ { label: '会展中心', value: '会展中心' }, { label: '火车站', value: '火车站' }, { label: '丈八一路', value: '丈八一路' }, - { label: '会展中心', value: '会展中心' }, - { label: '火车站', value: '火车站' }, - { label: '丈八一路', value: '丈八一路' }, - { label: '会展中心', value: '会展中心' }, - { label: '火车站', value: '火车站' }, - { label: '丈八一路', value: '丈八一路' }, - { label: '会展中心', value: '会展中心' }, - { label: '火车站', value: '火车站' }, - { label: '丈八一路', value: '丈八一路' }, - { label: '会展中心', value: '会展中心' }, - { label: '火车站', value: '火车站' }, - { label: '丈八一路', value: '丈八一路' }, + { label: '会展中心1', value: '会展中心1' }, + { label: '火车站1', value: '火车站1' }, + { label: '丈八一路1', value: '丈八一路1' }, + { label: '会展中心2', value: '会展中心2' }, + { label: '火车站2', value: '火车站2' }, + { label: '丈八一路2', value: '丈八一路2' }, + { label: '会展中心3', value: '会展中心3' }, + { label: '火车站3', value: '火车站3' }, + { label: '丈八一路3', value: '丈八一路3' }, + { label: '会展中心4', value: '会展中心4' }, + { label: '火车站4', value: '火车站4' }, + { label: '丈八一路4', value: '丈八一路4' }, ]; function selectedStation(name: string) { selectStationName.value = name;