소스 검색

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
   scopeTabs:any[] = [];
44
   scopeTabs:any[] = [];
45
   activeScopeTab:any;
45
   activeScopeTab:any;
46
 	menuList:any;
46
 	menuList:any;
47
-	
47
+
48
   ngOnInit() {
48
   ngOnInit() {
49
     // console.log('itsmData', this.itsmData);
49
     // console.log('itsmData', this.itsmData);
50
     // console.log('hsmsData', this.hsmsData);
50
     // console.log('hsmsData', this.hsmsData);
@@ -56,7 +56,7 @@ export class BindExtensionNumberComponent implements OnInit {
56
     this.getHjzxCornetList();
56
     this.getHjzxCornetList();
57
     this.getCallCenterConfig();
57
     this.getCallCenterConfig();
58
   }
58
   }
59
-	
59
+
60
 	init(){
60
 	init(){
61
 		if(this.menuList && this.menuList.childrens){
61
 		if(this.menuList && this.menuList.childrens){
62
 			for(let i of this.menuList.childrens){
62
 			for(let i of this.menuList.childrens){
@@ -75,7 +75,7 @@ export class BindExtensionNumberComponent implements OnInit {
75
 			this.scopeTabs[0].checked = true
75
 			this.scopeTabs[0].checked = true
76
 		}
76
 		}
77
 	}
77
 	}
78
-	
78
+
79
   // 获取院区列表
79
   // 获取院区列表
80
   getHospitalList() {
80
   getHospitalList() {
81
     // 工单范围
81
     // 工单范围
@@ -85,9 +85,10 @@ export class BindExtensionNumberComponent implements OnInit {
85
       // 开通运维
85
       // 开通运维
86
       if(this.itsmData.allDuty === 1){
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
       }else{
92
       }else{
92
         // 限制部门
93
         // 限制部门
93
         if(this.hsmsData.hsmsSwitch){
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
     this.validateForm.controls.signType.setValue(data.signType ? data.signType.value : null);
360
     this.validateForm.controls.signType.setValue(data.signType ? data.signType.value : null);
361
     this.validateForm.controls.execDay.setValue(data.execDay);
361
     this.validateForm.controls.execDay.setValue(data.execDay);
362
 
362
 
363
-    if(data.formId){
363
+    if(data.formId && data.inspectionFormDTO){
364
       let obj = this.formIds.find(v => v.id == data.formId);
364
       let obj = this.formIds.find(v => v.id == data.formId);
365
       if(!obj){
365
       if(!obj){
366
-        this.formIds.unshift(obj);
366
+        this.formIds.unshift(data.inspectionFormDTO);
367
       }
367
       }
368
       this.validateForm.controls.formId.setValue(data.formId);
368
       this.validateForm.controls.formId.setValue(data.formId);
369
 
369