Browse Source

绑定分区选择院区BUG

seimin 2 months ago
parent
commit
ea423fa8d4

+ 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){