seimin vor 1 Monat
Ursprung
Commit
25b351e29e

+ 2 - 2
src/app/views/main/main.component.html

@@ -47,9 +47,9 @@
47 47
             <div class="dropdown-content ct" [hidden]="!showDropdown1" (mouseenter)="showDropdown1 = true" (mouseleave)="showDropdown1 = false">
48 48
               <div class="dropdownItem" *ngIf="pharmacyRole" (click)="toPharmacy()">药房端</div>
49 49
               <div class="dropdownItem" *ngIf="pharmacyRole" (click)="toPharmacy2()">药房端2</div>
50
-              <div class="dropdownItem" *ngIf="largeScreenRole" (click)="toBigScreen('largeScreen')">大屏端</div>
50
+              <div class="dropdownItem" *ngIf="largeScreenRole" (click)="queryRangeClick('largeScreen')">综合大屏</div>
51 51
               <div class="dropdownItem" *ngIf="largeScreenRole2" (click)="toBigScreen('largeScreen2')">运送陪检大屏</div>
52
-              <div class="dropdownItem" *ngIf="largeScreenRole3" (click)="queryRangeClick()">运维大屏</div>
52
+              <div class="dropdownItem" *ngIf="largeScreenRole3" (click)="queryRangeClick('largeScreen3')">运维大屏</div>
53 53
               <div class="dropdownItem" *ngIf="specimenViewRole" (click)="toBigScreen('specimenView')">业务视图</div>
54 54
               <div class="dropdownItem" *ngIf="specimenViewRole2" (click)="toSpecimenView2()">标本视图</div>
55 55
               <div class="dropdownItem" *ngIf="specimenRoomView" (click)="toSpecimenRoomView()">标本间端</div>

+ 47 - 47
src/app/views/main/main.component.less

@@ -178,7 +178,7 @@ nz-sider {
178 178
 
179 179
   .title {
180 180
     color: @primary-color;
181
-    font-size: 16px;
181
+    font-size: 15px;
182 182
   }
183 183
 }
184 184
 
@@ -837,7 +837,7 @@ nz-header.ant-layout-header {
837 837
       }
838 838
     }
839 839
   }
840
-	
840
+
841 841
 	.required{
842 842
 	  position: relative;
843 843
 	  padding-left: 12px;
@@ -853,7 +853,7 @@ nz-header.ant-layout-header {
853 853
 	    transform: translateY(-50%);
854 854
 	  }
855 855
 	}
856
-	
856
+
857 857
 	/* 未分派 */
858 858
 	.weifenpai .list {
859 859
 	  // height: 100px;
@@ -862,7 +862,7 @@ nz-header.ant-layout-header {
862 862
 	  // overflow: hidden;
863 863
 	  display: flex;
864 864
 	}
865
-	
865
+
866 866
 	// 转出院记录
867 867
 	.patientLog .list {
868 868
 	  height: auto !important;
@@ -871,7 +871,7 @@ nz-header.ant-layout-header {
871 871
 	    text-align: center !important;
872 872
 	  }
873 873
 	}
874
-	
874
+
875 875
 	/* 左边 */
876 876
 	.left_cots {
877 877
 	  // height: 100px;
@@ -882,7 +882,7 @@ nz-header.ant-layout-header {
882 882
 	  cursor: pointer;
883 883
 	  position: relative;
884 884
 	}
885
-	
885
+
886 886
 	/* 急标 */
887 887
 	.left_cots .ji {
888 888
 	  position: absolute;
@@ -890,14 +890,14 @@ nz-header.ant-layout-header {
890 890
 	  top: -3px;
891 891
 	  width: 30px;
892 892
 	}
893
-	
893
+
894 894
 	/* 右边 */
895 895
 	.right_bots {
896 896
 	  width: 20%;
897 897
 	  border-left: 1px #e1e5e8 solid;
898 898
 	  padding: 8px 0;
899 899
 	}
900
-	
900
+
901 901
 	/* 上按钮 */
902 902
 	.right_bots .top_bot {
903 903
 	  width: 70%;
@@ -909,7 +909,7 @@ nz-header.ant-layout-header {
909 909
 	  height: 27px;
910 910
 	  margin-bottom: 8px;
911 911
 	}
912
-	
912
+
913 913
 	.slider {
914 914
 	  position: absolute;
915 915
 	  // top: 98px;
@@ -917,11 +917,11 @@ nz-header.ant-layout-header {
917 917
 	  right: 0;
918 918
 	  width: 100%;
919 919
 	  height: 2px;
920
-	
920
+
921 921
 	  &.sgreen {
922 922
 	    background: rgb(86, 186, 182);
923 923
 	  }
924
-	
924
+
925 925
 	  &.syellow {
926 926
 	    background: rgb(245, 166, 35);
927 927
 	  }
@@ -929,7 +929,7 @@ nz-header.ant-layout-header {
929 929
 	    background: #d81e06;
930 930
 	  }
931 931
 	}
932
-	
932
+
933 933
 	/* 中按钮 */
934 934
 	.right_bots .mid_bot {
935 935
 	  width: 70%;
@@ -940,7 +940,7 @@ nz-header.ant-layout-header {
940 940
 	  cursor: pointer;
941 941
 	  height: 27px;
942 942
 	}
943
-	
943
+
944 944
 	/* 下按钮 */
945 945
 	.right_bots .btm_bot {
946 946
 	  width: 70%;
@@ -951,7 +951,7 @@ nz-header.ant-layout-header {
951 951
 	  cursor: pointer;
952 952
 	  height: 27px;
953 953
 	}
954
-	
954
+
955 955
 	/* 工单 */
956 956
 	.weifenpai .left_cots .gongdan {
957 957
 	  height: 24px;
@@ -959,7 +959,7 @@ nz-header.ant-layout-header {
959 959
 	  line-height: 24px;
960 960
 	  text-align: center;
961 961
 	}
962
-	
962
+
963 963
 	.weifenpai .left_cots .gongdan .left {
964 964
 	  float: left;
965 965
 	  color: #333;
@@ -971,25 +971,25 @@ nz-header.ant-layout-header {
971 971
 	  text-overflow: ellipsis !important;
972 972
 	  white-space: nowrap !important;
973 973
 	}
974
-	
974
+
975 975
 	.weifenpai .left_cots .gongdan .right {
976 976
 	  float: right;
977 977
 	  color: #666666;
978
-	
978
+
979 979
 	  &.colorRed {
980 980
 	    color: red;
981 981
 	  }
982 982
 	}
983
-	
983
+
984 984
 	.weifenpai .left_cots .gongdan .right span:nth-child(1) {
985 985
 	  float: right;
986 986
 	  font-size: 12px;
987
-	
987
+
988 988
 	  &.colorRed {
989 989
 	    color: red;
990 990
 	  }
991 991
 	}
992
-	
992
+
993 993
 	.weifenpai .left_cots .gongdan .right span:nth-child(2) {
994 994
 	  float: right;
995 995
 	  border-radius: 50%;
@@ -999,7 +999,7 @@ nz-header.ant-layout-header {
999 999
 	  margin-top: 7px;
1000 1000
 	  margin-right: 8px;
1001 1001
 	}
1002
-	
1002
+
1003 1003
 	/* 地点 */
1004 1004
 	.weifenpai .didian {
1005 1005
 	  height: 24px;
@@ -1007,7 +1007,7 @@ nz-header.ant-layout-header {
1007 1007
 	  margin: 4px 0;
1008 1008
 	  display: flex;
1009 1009
 	}
1010
-	
1010
+
1011 1011
 	.weifenpai .didian .left {
1012 1012
 	  float: left;
1013 1013
 	  color: #666666;
@@ -1023,7 +1023,7 @@ nz-header.ant-layout-header {
1023 1023
 	    word-break: break-all;
1024 1024
 	  }
1025 1025
 	}
1026
-	
1026
+
1027 1027
 	.weifenpai .didian .right {
1028 1028
 	  float: right;
1029 1029
 	  flex: 1;
@@ -1032,47 +1032,47 @@ nz-header.ant-layout-header {
1032 1032
 	  text-overflow: ellipsis;//文本超出省略号替代
1033 1033
 	  text-align: right;
1034 1034
 	}
1035
-	
1035
+
1036 1036
 	.weifenpai .didian .right i {
1037 1037
 	  font-size: 12px;
1038 1038
 	  color: @primary-color;
1039 1039
 	}
1040
-	
1040
+
1041 1041
 	.weifenpai .didian .right span {
1042 1042
 	  font-size: 12px;
1043 1043
 	}
1044
-	
1044
+
1045 1045
 	/* 时间 */
1046 1046
 	.weifenpai .shijian {
1047 1047
 	  height: 24px;
1048 1048
 	  line-height: 24px;
1049 1049
 	  margin: 4px 0;
1050 1050
 	}
1051
-	
1051
+
1052 1052
 	.weifenpai .shijian .left {
1053 1053
 	  float: left;
1054 1054
 	}
1055
-	
1055
+
1056 1056
 	.weifenpai .shijian .right {
1057 1057
 	  float: right;
1058 1058
 	  font-size: 12px;
1059 1059
 	  color: #999999;
1060 1060
 	}
1061
-	
1061
+
1062 1062
 	.weifenpai .shijian .left i {
1063 1063
 	  color: @primary-color;
1064 1064
 	  font-size: 14px;
1065
-	
1065
+
1066 1066
 	  &.colorRed {
1067 1067
 	    color: red;
1068 1068
 	  }
1069 1069
 	}
1070
-	
1070
+
1071 1071
 	.weifenpai .shijian .left span {
1072 1072
 	  font-size: 12px;
1073 1073
 	  color: #666666;
1074 1074
 	}
1075
-	
1075
+
1076 1076
 	/* 待到达 */
1077 1077
 	.daidaoda .list {
1078 1078
 	  // height: 100px;
@@ -1081,7 +1081,7 @@ nz-header.ant-layout-header {
1081 1081
 	  position: relative;
1082 1082
 	  display: flex;
1083 1083
 	}
1084
-	
1084
+
1085 1085
 	/* 左边 */
1086 1086
 	.daidaoda .left_cots {
1087 1087
 	  // height: 100px;
@@ -1092,7 +1092,7 @@ nz-header.ant-layout-header {
1092 1092
 	  cursor: pointer;
1093 1093
 	  position: relative;
1094 1094
 	}
1095
-	
1095
+
1096 1096
 	/* 急标 */
1097 1097
 	.daidaoda .left_cots .ji {
1098 1098
 	  position: absolute;
@@ -1100,7 +1100,7 @@ nz-header.ant-layout-header {
1100 1100
 	  top: -3px;
1101 1101
 	  width: 30px;
1102 1102
 	}
1103
-	
1103
+
1104 1104
 	/* 急标 */
1105 1105
 	.daidaoda .list .ji {
1106 1106
 	  position: absolute;
@@ -1108,7 +1108,7 @@ nz-header.ant-layout-header {
1108 1108
 	  top: -3px;
1109 1109
 	  width: 30px;
1110 1110
 	}
1111
-	
1111
+
1112 1112
 	/* 工单 */
1113 1113
 	.daidaoda .gongdan {
1114 1114
 	  height: 24px;
@@ -1116,22 +1116,22 @@ nz-header.ant-layout-header {
1116 1116
 	  line-height: 24px;
1117 1117
 	  text-align: center;
1118 1118
 	}
1119
-	
1119
+
1120 1120
 	.daidaoda .gongdan .left {
1121 1121
 	  float: left;
1122 1122
 	  color: #333;
1123 1123
 	  font-size: 14px;
1124 1124
 	}
1125
-	
1125
+
1126 1126
 	.daidaoda .gongdan .right {
1127 1127
 	  float: right;
1128 1128
 	  color: #666666;
1129
-	
1129
+
1130 1130
 	  &.colorRed {
1131 1131
 	    color: red;
1132 1132
 	  }
1133 1133
 	}
1134
-	
1134
+
1135 1135
 	.cots_body .loading {
1136 1136
 	  width: 100%;
1137 1137
 	  height: 100%;
@@ -1143,7 +1143,7 @@ nz-header.ant-layout-header {
1143 1143
 	  // justify-content: center;
1144 1144
 	  // align-items: center;
1145 1145
 	}
1146
-	
1146
+
1147 1147
 	/* 暂无数据 */
1148 1148
 	.cots_body .no_data {
1149 1149
 	  width: 100%;
@@ -1160,12 +1160,12 @@ nz-header.ant-layout-header {
1160 1160
 	  justify-content: center;
1161 1161
 	  align-items: center;
1162 1162
 	}
1163
-	
1163
+
1164 1164
 	.toLastTime {
1165 1165
 	  margin-left: auto;
1166 1166
 	  color: #999999;
1167 1167
 	  font-size: 12px;
1168
-	
1168
+
1169 1169
 	  &.colorRed {
1170 1170
 	    color: red;
1171 1171
 	  }
@@ -1176,7 +1176,7 @@ nz-header.ant-layout-header {
1176 1176
 	    cursor: pointer;
1177 1177
 	  }
1178 1178
 	}
1179
-	
1179
+
1180 1180
 	.toLastTime .time {
1181 1181
 	  font-size: 12px;
1182 1182
 	  color: @primary-color;
@@ -1187,13 +1187,13 @@ nz-header.ant-layout-header {
1187 1187
 	  right: 10px;
1188 1188
 	  color: #999999;
1189 1189
 	  font-size: 12px;
1190
-	
1190
+
1191 1191
 	  &.colorRed {
1192 1192
 	    color: red;
1193 1193
 	  }
1194 1194
 	}
1195
-	
1195
+
1196 1196
 	.toLastTime1 .time {
1197 1197
 	  font-size: 12px;
1198 1198
 	  color: @primary-color;
1199
-	}
1199
+	}

+ 13 - 12
src/app/views/main/main.component.ts

@@ -45,7 +45,7 @@ export class MainComponent implements OnInit, OnDestroy {
45 45
   deskRole: boolean = false; //调度台权限
46 46
   nurseRole: boolean = false; //护士端权限
47 47
   pharmacyRole: boolean = false; //药房端权限
48
-  largeScreenRole: boolean = false; //大屏权限
48
+  largeScreenRole: boolean = false; //综合大屏权限
49 49
   largeScreenRole2: boolean = false; //运送陪检大屏权限
50 50
   largeScreenRole3: boolean = false; //运维大屏权限
51 51
   specimenViewRole: boolean = false; //业务视图权限
@@ -80,7 +80,7 @@ export class MainComponent implements OnInit, OnDestroy {
80 80
 		private http: HttpClient,
81 81
 		// private eventSubscription: Subscription
82 82
   ) {}
83
-	
83
+
84 84
 	eventData:any
85 85
   ngOnInit() {
86 86
 		this.getEvent();
@@ -96,7 +96,7 @@ export class MainComponent implements OnInit, OnDestroy {
96 96
     this.initMenu();
97 97
     this.getWebsocket();
98 98
   }
99
-	
99
+
100 100
 	getEvent(){
101 101
 		// 全局监听
102 102
 		let that = this;
@@ -108,14 +108,14 @@ export class MainComponent implements OnInit, OnDestroy {
108 108
 			}
109 109
 		});
110 110
 	}
111
-	
111
+
112 112
   // 离开管理端
113 113
   ngOnDestroy() {
114 114
     //取消路由监听
115 115
     this.routerEventsListener.unsubscribe();
116 116
     // 断掉连接
117 117
     this.webs.closeWs(true);
118
-		
118
+
119 119
 		// if (this.eventSubscription) {
120 120
 			// this.eventSubscription.unsubscribe();
121 121
 		// }
@@ -330,7 +330,7 @@ export class MainComponent implements OnInit, OnDestroy {
330 330
       }
331 331
       if (e.link == "largeScreen") {
332 332
         this.largeScreenRole = true;
333
-        console.log("大屏权限");
333
+        console.log("综合大屏权限");
334 334
       }
335 335
       if (e.link == "largeScreen2") {
336 336
         this.largeScreenRole2 = true;
@@ -775,7 +775,7 @@ export class MainComponent implements OnInit, OnDestroy {
775 775
 	      this.applyDept = null;
776 776
 	      this.countRemarkIndex = -1;
777 777
 	      this.incidentModel.department = isInit ? this.incidentModel.department : null;
778
-				
778
+
779 779
 	      //正常初始化
780 780
 	      this.getAutoWorkTypes(false, isInit);
781 781
 				this.newOrderShowOpen = true
@@ -1822,7 +1822,7 @@ export class MainComponent implements OnInit, OnDestroy {
1822 1822
 								id: this.userInfo.user.id,
1823 1823
 							})
1824 1824
 							this.incidentModel.requester = this.userInfo.user.id;
1825
-							this.incidentModel.description = 
1825
+							this.incidentModel.description =
1826 1826
 							'告警id:' + this.eventData.data.alarmId + ';' +
1827 1827
 							'告警来源:' + this.eventData.data.alarmSource + ';' +
1828 1828
 							'\n' +
@@ -1835,7 +1835,7 @@ export class MainComponent implements OnInit, OnDestroy {
1835 1835
 							'\n' +
1836 1836
 							'告警描述:' + this.eventData.data.alarmDescription + ';' +
1837 1837
 							'\n' +
1838
-							'告警内容:' + this.eventData.data.alarmContent 
1838
+							'告警内容:' + this.eventData.data.alarmContent
1839 1839
 						}
1840 1840
 	          this.applicationDeptList = data.list;
1841 1841
 	          let ids = this.applicationDeptList.map(v => v.id);
@@ -4083,7 +4083,7 @@ export class MainComponent implements OnInit, OnDestroy {
4083 4083
   }
4084 4084
   submitFormHand(id) {
4085 4085
     if (this.screenType === "largeScreen") {
4086
-      window.open(http.bigScreenHost + "/#/" + id);
4086
+      window.open(`${http.bigScreenHost}/#/${this.queryType}?hosId=${this.hospital ? this.hospital.id : ''}&dutyId=${this.duty ? this.duty.id : ''}`);
4087 4087
     } else if (this.screenType === "largeScreen2") {
4088 4088
       window.open(http.bigScreenHost2 + "/#/" + id);
4089 4089
     } else if (this.screenType === "largeScreen3") {
@@ -4346,7 +4346,8 @@ export class MainComponent implements OnInit, OnDestroy {
4346 4346
 
4347 4347
 	// 查询范围
4348 4348
   queryRangeFlag = false;
4349
-  queryRangeClick(){
4349
+  queryRangeClick(type){
4350
+    this.screenType = type;
4350 4351
     this.queryRangeFlag = true;
4351 4352
   }
4352 4353
   submitQueryRange({queryType, hospital, duty, parent}) {
@@ -4360,7 +4361,7 @@ export class MainComponent implements OnInit, OnDestroy {
4360 4361
 		this.parent = parent;
4361 4362
     this.queryRangeFlag = false;
4362 4363
 
4363
-    this.toBigScreen('largeScreen3');
4364
+    this.toBigScreen(this.screenType);
4364 4365
   }
4365 4366
   cancelQueryRange() {
4366 4367
     this.queryRangeFlag = false;