|
@@ -46,8 +46,8 @@ export class MainComponent implements OnInit {
|
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; //标本间权限
|
|
@@ -80,6 +80,7 @@ export class MainComponent implements OnInit {
|
80
|
80
|
private http: HttpClient,
|
81
|
81
|
) {}
|
82
|
82
|
ngOnInit() {
|
|
83
|
+ this.initHospitalAndDuty(this.tool.getCurrentHospital());
|
83
|
84
|
this.highlightMenuByUrl();
|
84
|
85
|
this.routerEventsListener = this.router.events
|
85
|
86
|
.pipe(filter((event) => event instanceof NavigationEnd))
|
|
@@ -313,11 +314,11 @@ export class MainComponent implements OnInit {
|
313
|
314
|
}
|
314
|
315
|
if (e.link == "largeScreen2") {
|
315
|
316
|
this.largeScreenRole2 = true;
|
316
|
|
- console.log("大屏端2权限");
|
|
317
|
+ console.log("运送陪检大屏权限");
|
317
|
318
|
}
|
318
|
319
|
if (e.link == "largeScreen3") {
|
319
|
320
|
this.largeScreenRole3 = true;
|
320
|
|
- console.log("大屏端3权限");
|
|
321
|
+ console.log("运维大屏权限");
|
321
|
322
|
}
|
322
|
323
|
if (e.link == "specimenView") {
|
323
|
324
|
this.specimenViewRole = true;
|
|
@@ -4019,7 +4020,7 @@ export class MainComponent implements OnInit {
|
4019
|
4020
|
} else if (this.screenType === "largeScreen2") {
|
4020
|
4021
|
window.open(http.bigScreenHost2 + "/#/" + id);
|
4021
|
4022
|
} else if (this.screenType === "largeScreen3") {
|
4022
|
|
- window.open(http.bigScreenHost3 + "/#/" + id);
|
|
4023
|
+ window.open(`${http.bigScreenHost3}/#/${this.queryType}/${this.hospital ? this.hospital.id : ''}/${this.duty ? this.duty.id : ''}`);
|
4023
|
4024
|
} else if (this.screenType === "specimenView") {
|
4024
|
4025
|
window.open(http.specimenViewHost + "/#/" + id);
|
4025
|
4026
|
}
|
|
@@ -4072,7 +4073,7 @@ export class MainComponent implements OnInit {
|
4072
|
4073
|
showDropdown:boolean = false;
|
4073
|
4074
|
showDropdown1:boolean = false;
|
4074
|
4075
|
showFastDropdown:boolean = false;
|
4075
|
|
-
|
|
4076
|
+
|
4076
|
4077
|
// 选择院区
|
4077
|
4078
|
selectHospital(){
|
4078
|
4079
|
this.hosFlag1 = true
|
|
@@ -4274,5 +4275,71 @@ export class MainComponent implements OnInit {
|
4274
|
4275
|
if (!flag) {
|
4275
|
4276
|
this.hosFlag1 = false;
|
4276
|
4277
|
}
|
|
4278
|
+ }
|
|
4279
|
+
|
|
4280
|
+ // 查询范围
|
|
4281
|
+ queryRangeFlag = false;
|
|
4282
|
+ queryRangeClick(){
|
|
4283
|
+ this.queryRangeFlag = true;
|
|
4284
|
+ }
|
|
4285
|
+ submitQueryRange({queryType, hospital, duty, parent}) {
|
|
4286
|
+ console.log('queryType:', queryType)
|
|
4287
|
+ console.log('hospital:', hospital)
|
|
4288
|
+ console.log('duty:', duty)
|
|
4289
|
+ console.log('parent:', parent)
|
|
4290
|
+ this.queryType = queryType;
|
|
4291
|
+ this.hospital = hospital;
|
|
4292
|
+ this.duty = duty;
|
|
4293
|
+ this.parent = parent;
|
|
4294
|
+ this.queryRangeFlag = false;
|
|
4295
|
+
|
|
4296
|
+ this.toBigScreen('largeScreen3');
|
|
4297
|
+ }
|
|
4298
|
+ cancelQueryRange() {
|
|
4299
|
+ this.queryRangeFlag = false;
|
|
4300
|
+ }
|
|
4301
|
+
|
|
4302
|
+ // 全院查询-1|院区查询-2|责任部门查询-3|部门垂直查询-4
|
|
4303
|
+ hospital;
|
|
4304
|
+ duty;
|
|
4305
|
+ queryType;//查询范围
|
|
4306
|
+ parent:any = 0;
|
|
4307
|
+ // 初始化院区、部门显示
|
|
4308
|
+ initHospitalAndDuty(hospitalOrDuty){
|
|
4309
|
+ let type = 'hospital';//默认是院区
|
|
4310
|
+ if(hospitalOrDuty.type){
|
|
4311
|
+ // 当前是责任部门
|
|
4312
|
+ type = 'duty';
|
|
4313
|
+ }
|
|
4314
|
+
|
|
4315
|
+ if(type === 'duty'){
|
|
4316
|
+ // 当前的所属责任部门
|
|
4317
|
+ this.hospital = hospitalOrDuty.parent;
|
|
4318
|
+ this.duty = hospitalOrDuty;
|
|
4319
|
+ }else{
|
|
4320
|
+ // 当前的所属院区
|
|
4321
|
+ this.hospital = hospitalOrDuty;
|
|
4322
|
+ this.duty = undefined;
|
|
4323
|
+ }
|
|
4324
|
+
|
|
4325
|
+ // 查询范围单选框
|
|
4326
|
+ if(this.hospital){
|
|
4327
|
+ if(this.duty){
|
|
4328
|
+ if(this.duty.parentDeptId){
|
|
4329
|
+ this.queryType = 3;
|
|
4330
|
+ }else{
|
|
4331
|
+ this.queryType = 4;
|
|
4332
|
+ }
|
|
4333
|
+ }else{
|
|
4334
|
+ this.queryType = 2;
|
|
4335
|
+ }
|
|
4336
|
+ }else{
|
|
4337
|
+ this.queryType = 1;
|
|
4338
|
+ }
|
|
4339
|
+
|
|
4340
|
+ console.log('this.hospital:', this.hospital)
|
|
4341
|
+ console.log('this.duty:', this.duty)
|
|
4342
|
+ console.log('this.queryType:', this.queryType)
|
|
4343
|
+ console.log('this.parent:', this.parent)
|
4277
|
4344
|
}
|
4278
|
4345
|
}
|