|
|
|
@ -63,7 +63,7 @@ export class DataManager {
|
|
|
|
|
*/ |
|
|
|
|
static allMarkPlanData: AllMarkPlanData; |
|
|
|
|
|
|
|
|
|
static initDebugData(institutionKey: string, onSuccess?: (key: string) => void, onError?: (key: string, error: string) => void) { |
|
|
|
|
static initDebugData(institutionID: number, onSuccess?: (key: string) => void, onError?: (key: string, error: string) => void) { |
|
|
|
|
|
|
|
|
|
//本地捏造消防设备列表信息
|
|
|
|
|
DataManager.initDebugData_facility(); |
|
|
|
@ -75,7 +75,7 @@ export class DataManager {
|
|
|
|
|
|
|
|
|
|
if (dataFromServe) { |
|
|
|
|
|
|
|
|
|
ServeManager.instance.getInstitutionData(institutionKey, (key, result) => { |
|
|
|
|
ServeManager.instance.getInstitutionData(institutionID, (key, result) => { |
|
|
|
|
if (onSuccess) { |
|
|
|
|
DataManager.institutionData = plainToClass(InstitutionData, result); |
|
|
|
|
DataManager.institutionData.normalData.name = DataManager.institutionData_simple.name; |
|
|
|
@ -352,7 +352,7 @@ export class DataManager {
|
|
|
|
|
|
|
|
|
|
static init(simpleData: InsitutionDataSimple, onSuccess?: (key: string) => void) { |
|
|
|
|
DataManager.institutionData_simple = simpleData; |
|
|
|
|
DataManager.initDebugData(simpleData.key, onSuccess); |
|
|
|
|
DataManager.initDebugData(simpleData.id, onSuccess); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|