绘制bug修复

This commit is contained in:
joylink_zhaoerwei 2024-10-10 10:05:48 +08:00
parent 662d7260ca
commit 0d66c5c89f
2 changed files with 23 additions and 16 deletions

View File

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

View File

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