|
|
@ -38,6 +38,7 @@ export class LoginSatus extends StatusBase { |
|
|
|
console.error("创建单位key为null"); |
|
|
|
console.error("创建单位key为null"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log("创建单位"); |
|
|
|
let insData = new InstitutionData(); |
|
|
|
let insData = new InstitutionData(); |
|
|
|
insData.normalData = new NormalData(key, name); |
|
|
|
insData.normalData = new NormalData(key, name); |
|
|
|
|
|
|
|
|
|
|
@ -222,6 +223,7 @@ export class LoginSatus extends StatusBase { |
|
|
|
|
|
|
|
|
|
|
|
//保存新单位信息至服务器
|
|
|
|
//保存新单位信息至服务器
|
|
|
|
saveNewIns(status: LoginSatus, insData: InstitutionData, key: string, onSuccess?: (insDataSimple: InsitutionDataSimple) => void) { |
|
|
|
saveNewIns(status: LoginSatus, insData: InstitutionData, key: string, onSuccess?: (insDataSimple: InsitutionDataSimple) => void) { |
|
|
|
|
|
|
|
console.log("准备保存新单位"); |
|
|
|
ServeManager.instance.saveInstitutionData(insData, key, (key, result) => { |
|
|
|
ServeManager.instance.saveInstitutionData(insData, key, (key, result) => { |
|
|
|
console.log("在服务器新建单位" + key); |
|
|
|
console.log("在服务器新建单位" + key); |
|
|
|
let insDataSimple = new InsitutionDataSimple(); |
|
|
|
let insDataSimple = new InsitutionDataSimple(); |
|
|
|