ibp&psl调整

This commit is contained in:
fan 2023-12-13 10:10:26 +08:00
parent ee0c8001f8
commit 9660338669
2 changed files with 33 additions and 0 deletions

View File

@ -171,6 +171,27 @@ export function saveIBPDrawDatas(app: IDrawApp) {
storage.ibpLights.push(g.saveData<IbpLightData>().data);
}
});
storage.ibpButtons.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.ibpAlarms.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.ibpKeys.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.ibpArrows.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.IBPTexts.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.ibpStationTexts.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.ibpLights.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.ibpRelatedDevices = ibpRelatedDeviceList;
const base64 = fromUint8Array(storage.serialize());
return base64;

View File

@ -185,6 +185,18 @@ export function savePslDrawDatas(app: IDrawApp) {
storage.pslTexts.push((pslTextData as PslTextData).data);
}
});
storage.pslLights.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.pslButtons.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.pslKeys.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.pslTexts.forEach((item) => {
item.common.newId = +item.common.id;
});
storage.gatedRelateDeviceList = refDevicesList;
const base64 = fromUint8Array(storage.serialize());
console.log('保存数据', storage);