Browse Source

优化导出数据

dev
刘向辉 3 years ago
parent
commit
bc9e69afcf
  1. 2
      src/app/babylon/controller/mode-manager.ts
  2. 5
      src/app/babylon/model/data/institution/building/export-data.ts

2
src/app/babylon/controller/mode-manager.ts

@ -28,7 +28,7 @@ export class ModeManager {
/** /**
* *
*/ */
public static isDebug = true; public static isDebug = false;

5
src/app/babylon/model/data/institution/building/export-data.ts

@ -36,7 +36,10 @@ export class ExportData {
} }
let type = facilityByTypes[i].facilityType; let type = facilityByTypes[i].facilityType;
if (TsTool.stringContain(type, "XF_")) { if (TsTool.stringContain(type, "XF_")) {
this..push(new ExportData_XFSB(facilityByTypes[i])); if (facilityByTypes[i].facilities.length > 0) {
this..push(new ExportData_XFSB(facilityByTypes[i]));
}
} }
for (let j = 0; j < facilities.length; j++) { for (let j = 0; j < facilities.length; j++) {

Loading…
Cancel
Save