|
@@ -46,8 +46,8 @@ export class MainComponent implements OnInit, OnDestroy {
|
46
|
46
|
nurseRole: boolean = false; //护士端权限
|
47
|
47
|
pharmacyRole: boolean = false; //药房端权限
|
48
|
48
|
largeScreenRole: boolean = false; //大屏端权限
|
49
|
|
- largeScreenRole2: boolean = false; //大屏端2权限
|
50
|
|
- largeScreenRole3: boolean = false; //大屏端3权限
|
|
49
|
+ largeScreenRole2: boolean = false; //运送陪检大屏权限
|
|
50
|
+ largeScreenRole3: boolean = false; //运维大屏权限
|
51
|
51
|
specimenViewRole: boolean = false; //业务视图权限
|
52
|
52
|
specimenViewRole2: boolean = false; //标本视图权限
|
53
|
53
|
specimenRoomView: boolean = false; //标本间权限
|
|
@@ -84,6 +84,7 @@ export class MainComponent implements OnInit, OnDestroy {
|
84
|
84
|
eventData:any
|
85
|
85
|
ngOnInit() {
|
86
|
86
|
this.getEvent();
|
|
87
|
+ this.initHospitalAndDuty(this.tool.getCurrentHospital());
|
87
|
88
|
this.highlightMenuByUrl();
|
88
|
89
|
this.routerEventsListener = this.router.events
|
89
|
90
|
.pipe(filter((event) => event instanceof NavigationEnd))
|
|
@@ -333,11 +334,11 @@ export class MainComponent implements OnInit, OnDestroy {
|
333
|
334
|
}
|
334
|
335
|
if (e.link == "largeScreen2") {
|
335
|
336
|
this.largeScreenRole2 = true;
|
336
|
|
- console.log("大屏端2权限");
|
|
337
|
+ console.log("运送陪检大屏权限");
|
337
|
338
|
}
|
338
|
339
|
if (e.link == "largeScreen3") {
|
339
|
340
|
this.largeScreenRole3 = true;
|
340
|
|
- console.log("大屏端3权限");
|
|
341
|
+ console.log("运维大屏权限");
|
341
|
342
|
}
|
342
|
343
|
if (e.link == "specimenView") {
|
343
|
344
|
this.specimenViewRole = true;
|
|
@@ -4086,7 +4087,7 @@ export class MainComponent implements OnInit, OnDestroy {
|
4086
|
4087
|
} else if (this.screenType === "largeScreen2") {
|
4087
|
4088
|
window.open(http.bigScreenHost2 + "/#/" + id);
|
4088
|
4089
|
} else if (this.screenType === "largeScreen3") {
|
4089
|
|
- window.open(http.bigScreenHost3 + "/#/" + id);
|
|
4090
|
+ window.open(`${http.bigScreenHost3}/#/${this.queryType}?hosId=${this.hospital ? this.hospital.id : ''}&dutyId=${this.duty ? this.duty.id : ''}`);
|
4090
|
4091
|
} else if (this.screenType === "specimenView") {
|
4091
|
4092
|
window.open(http.specimenViewHost + "/#/" + id);
|
4092
|
4093
|
}
|
|
@@ -4139,7 +4140,7 @@ export class MainComponent implements OnInit, OnDestroy {
|
4139
|
4140
|
showDropdown:boolean = false;
|
4140
|
4141
|
showDropdown1:boolean = false;
|
4141
|
4142
|
showFastDropdown:boolean = false;
|
4142
|
|
-
|
|
4143
|
+
|
4143
|
4144
|
// 选择院区
|
4144
|
4145
|
selectHospital(){
|
4145
|
4146
|
this.hosFlag1 = true
|
|
@@ -4341,5 +4342,71 @@ export class MainComponent implements OnInit, OnDestroy {
|
4341
|
4342
|
if (!flag) {
|
4342
|
4343
|
this.hosFlag1 = false;
|
4343
|
4344
|
}
|
|
4345
|
+ }
|
|
4346
|
+
|
|
4347
|
+ // 查询范围
|
|
4348
|
+ queryRangeFlag = false;
|
|
4349
|
+ queryRangeClick(){
|
|
4350
|
+ this.queryRangeFlag = true;
|
|
4351
|
+ }
|
|
4352
|
+ submitQueryRange({queryType, hospital, duty, parent}) {
|
|
4353
|
+ console.log('queryType:', queryType)
|
|
4354
|
+ console.log('hospital:', hospital)
|
|
4355
|
+ console.log('duty:', duty)
|
|
4356
|
+ console.log('parent:', parent)
|
|
4357
|
+ this.queryType = queryType;
|
|
4358
|
+ this.hospital = hospital;
|
|
4359
|
+ this.duty = duty;
|
|
4360
|
+ this.parent = parent;
|
|
4361
|
+ this.queryRangeFlag = false;
|
|
4362
|
+
|
|
4363
|
+ this.toBigScreen('largeScreen3');
|
|
4364
|
+ }
|
|
4365
|
+ cancelQueryRange() {
|
|
4366
|
+ this.queryRangeFlag = false;
|
|
4367
|
+ }
|
|
4368
|
+
|
|
4369
|
+ // 全院查询-1|院区查询-2|责任部门查询-3|部门垂直查询-4
|
|
4370
|
+ hospital;
|
|
4371
|
+ duty;
|
|
4372
|
+ queryType;//查询范围
|
|
4373
|
+ parent:any = 0;
|
|
4374
|
+ // 初始化院区、部门显示
|
|
4375
|
+ initHospitalAndDuty(hospitalOrDuty){
|
|
4376
|
+ let type = 'hospital';//默认是院区
|
|
4377
|
+ if(hospitalOrDuty.type){
|
|
4378
|
+ // 当前是责任部门
|
|
4379
|
+ type = 'duty';
|
|
4380
|
+ }
|
|
4381
|
+
|
|
4382
|
+ if(type === 'duty'){
|
|
4383
|
+ // 当前的所属责任部门
|
|
4384
|
+ this.hospital = hospitalOrDuty.parent;
|
|
4385
|
+ this.duty = hospitalOrDuty;
|
|
4386
|
+ }else{
|
|
4387
|
+ // 当前的所属院区
|
|
4388
|
+ this.hospital = hospitalOrDuty;
|
|
4389
|
+ this.duty = undefined;
|
|
4390
|
+ }
|
|
4391
|
+
|
|
4392
|
+ // 查询范围单选框
|
|
4393
|
+ if(this.hospital){
|
|
4394
|
+ if(this.duty){
|
|
4395
|
+ if(this.duty.parentDeptId){
|
|
4396
|
+ this.queryType = 3;
|
|
4397
|
+ }else{
|
|
4398
|
+ this.queryType = 4;
|
|
4399
|
+ }
|
|
4400
|
+ }else{
|
|
4401
|
+ this.queryType = 2;
|
|
4402
|
+ }
|
|
4403
|
+ }else{
|
|
4404
|
+ this.queryType = 1;
|
|
4405
|
+ }
|
|
4406
|
+
|
|
4407
|
+ console.log('this.hospital:', this.hospital)
|
|
4408
|
+ console.log('this.duty:', this.duty)
|
|
4409
|
+ console.log('this.queryType:', this.queryType)
|
|
4410
|
+ console.log('this.parent:', this.parent)
|
4344
|
4411
|
}
|
4345
|
4412
|
}
|