浏览代码

任务类型获取院区方式修改

seimin 3 年之前
父节点
当前提交
c7476abd9a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/app/views/task-type-management/task-type-management.component.ts

+ 2 - 2
src/app/views/task-type-management/task-type-management.component.ts

@@ -1,5 +1,5 @@
1
 import { Component, OnInit, ViewChild } from "@angular/core";
1
 import { Component, OnInit, ViewChild } from "@angular/core";
2
-import { ActivatedRoute, Router } from "@angular/router";
2
+import { ActivatedRoute } from "@angular/router";
3
 import { MainService } from "../../services/main.service";
3
 import { MainService } from "../../services/main.service";
4
 import { OverlayScrollbarsComponent } from "overlayscrollbars-ngx";
4
 import { OverlayScrollbarsComponent } from "overlayscrollbars-ngx";
5
 import { FormBuilder, FormGroup } from "@angular/forms";
5
 import { FormBuilder, FormGroup } from "@angular/forms";
@@ -387,6 +387,7 @@ export class TaskTypeManagementComponent implements OnInit {
387
   // 获取所有院区
387
   // 获取所有院区
388
   getAllHospital() {
388
   getAllHospital() {
389
     this.hosId = this.tool.getCurrentHospital().id;
389
     this.hosId = this.tool.getCurrentHospital().id;
390
+    this.hosName = this.tool.getCurrentHospital().hosName;
390
     this.onSearch("");
391
     this.onSearch("");
391
   }
392
   }
392
   // 获取所有关联类型
393
   // 获取所有关联类型
@@ -600,7 +601,6 @@ export class TaskTypeManagementComponent implements OnInit {
600
     };
601
     };
601
     this.taskData.taskType["id"] = data.id;
602
     this.taskData.taskType["id"] = data.id;
602
     this.taskName = data.taskName;
603
     this.taskName = data.taskName;
603
-    this.hosName = data.hosId.hosName;
604
     this.association.id = data.associationType.id + "";
604
     this.association.id = data.associationType.id + "";
605
     this.association.value = data.associationType.value;
605
     this.association.value = data.associationType.value;
606
     if (data.deptIds) {
606
     if (data.deptIds) {