ibp&psl调整
This commit is contained in:
parent
ee0c8001f8
commit
9660338669
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user