|
|
|
@ -64,9 +64,12 @@ export class PlanComponent implements OnInit {
|
|
|
|
|
this.beforeOneSatus = StatusManager.getStatus<LoginSatus>(LoginSatus); |
|
|
|
|
this.beforeOneSatus.onSelectInsSuccess(find) |
|
|
|
|
} else { //如果没有找到对应的单位key,则调用新建单位
|
|
|
|
|
let name = 'ceshi'; |
|
|
|
|
console.log("没找到单位,新建" + key); |
|
|
|
|
loginStatus.createInsitution(key, name); |
|
|
|
|
let isAdd = confirm('没有单位name,是否进行初始化?') |
|
|
|
|
if (isAdd) { |
|
|
|
|
let name = 'ceshi'; |
|
|
|
|
console.log("没找到单位,新建" + key); |
|
|
|
|
loginStatus.createInsitution(key, name); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
let find = data.find(item => { return item.key === ModeManager.institutionDemoKey }) |
|
|
|
|