浏览代码

Merge branch 'master' of http://git.dashitech.com/seimin/zy-pc

maotao 2 月之前
父节点
当前提交
c3e41ae69a

+ 7 - 6
src/app/components/bind-extension-number/bind-extension-number.component.ts

@@ -44,7 +44,7 @@ export class BindExtensionNumberComponent implements OnInit {
44 44
   scopeTabs:any[] = [];
45 45
   activeScopeTab:any;
46 46
 	menuList:any;
47
-	
47
+
48 48
   ngOnInit() {
49 49
     // console.log('itsmData', this.itsmData);
50 50
     // console.log('hsmsData', this.hsmsData);
@@ -56,7 +56,7 @@ export class BindExtensionNumberComponent implements OnInit {
56 56
     this.getHjzxCornetList();
57 57
     this.getCallCenterConfig();
58 58
   }
59
-	
59
+
60 60
 	init(){
61 61
 		if(this.menuList && this.menuList.childrens){
62 62
 			for(let i of this.menuList.childrens){
@@ -75,7 +75,7 @@ export class BindExtensionNumberComponent implements OnInit {
75 75
 			this.scopeTabs[0].checked = true
76 76
 		}
77 77
 	}
78
-	
78
+
79 79
   // 获取院区列表
80 80
   getHospitalList() {
81 81
     // 工单范围
@@ -85,9 +85,10 @@ export class BindExtensionNumberComponent implements OnInit {
85 85
       // 开通运维
86 86
       if(this.itsmData.allDuty === 1){
87 87
         // 不限制部门
88
-        let hospitals = this.user.infoPermission.hospitals || [];
89
-        let dutyList = this.user.infoPermission.dutyList || [];
90
-        this.hospitalList = hospitals.concat(dutyList);
88
+        this.hospitalList = this.user.infoPermission.hospitals || [];
89
+        // let hospitals = this.user.infoPermission.hospitals || [];
90
+        // let dutyList = this.user.infoPermission.dutyList || [];
91
+        // this.hospitalList = hospitals.concat(dutyList);
91 92
       }else{
92 93
         // 限制部门
93 94
         if(this.hsmsData.hsmsSwitch){

+ 2 - 2
src/app/views/inspection-plan/inspection-plan.component.ts

@@ -360,10 +360,10 @@ export class InspectionPlanComponent implements OnInit {
360 360
     this.validateForm.controls.signType.setValue(data.signType ? data.signType.value : null);
361 361
     this.validateForm.controls.execDay.setValue(data.execDay);
362 362
 
363
-    if(data.formId){
363
+    if(data.formId && data.inspectionFormDTO){
364 364
       let obj = this.formIds.find(v => v.id == data.formId);
365 365
       if(!obj){
366
-        this.formIds.unshift(obj);
366
+        this.formIds.unshift(data.inspectionFormDTO);
367 367
       }
368 368
       this.validateForm.controls.formId.setValue(data.formId);
369 369