seimin 3 years ago
parent
commit
a594d4e6b1

+ 154 - 33
src/app/share/hs-prompt-modal/hs-prompt-modal.component.html

@@ -1,57 +1,162 @@
1
-<div class="modal display_flex justify-content_flex-center align-items_center" *ngIf="show">
1
+<div
2
+  class="modal display_flex justify-content_flex-center align-items_center"
3
+  *ngIf="show"
4
+>
2
   <div class="modalBody" *ngIf="changeShow">
5
   <div class="modalBody" *ngIf="changeShow">
3
-    <div class="title">当前科室<i *ngIf="closeTimeFlag<=0||closeTimeFlag>0&&closeTime===0"
4
-        class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
6
+    <div class="title">
7
+      当前科室<i
8
+        *ngIf="closeTimeFlag <= 0 || (closeTimeFlag > 0 && closeTime === 0)"
9
+        class="icon_transport transport-guanbi"
10
+        (click)="hideModal()"
11
+      ></i>
12
+    </div>
5
     <div class="content">
13
     <div class="content">
6
-      <div class="defeat"><span *ngIf="deptDisplay">{{deptDisplay==2?currentDept.deptalias:currentDept.dept}}</span>
14
+      <div class="defeat">
15
+        <span *ngIf="!deptDisplayLoading">{{
16
+          deptDisplay == 2 ? currentDept.deptalias : currentDept.dept
17
+        }}</span>
18
+        <img
19
+          *ngIf="deptDisplayLoading"
20
+          src="../../../assets/images/loading.gif"
21
+          alt=""
22
+        />
23
+      </div>
24
+      <div
25
+        class="countDown"
26
+        *ngIf="closeTimeFlag < 0 || (closeTimeFlag > 0 && closeTime > 0)"
27
+      >
28
+        <span *ngIf="closeTimeFlag < 0">关闭</span>倒计时<em
29
+          >{{ closeTime }}s</em
30
+        >
7
       </div>
31
       </div>
8
-      <div class="countDown" *ngIf="closeTimeFlag<0||closeTimeFlag>0&&closeTime>0"><span
9
-          *ngIf="closeTimeFlag<0">关闭</span>倒计时<em>{{closeTime}}s</em></div>
10
     </div>
32
     </div>
11
     <div class="display_flex justify-content_flex-center">
33
     <div class="display_flex justify-content_flex-center">
12
-      <button *ngIf="closeTimeFlag<=0||closeTimeFlag>0&&closeTime===0" class="btn know" nz-button nzType="primary"
13
-        (click)="hideModal()">知道了</button>
14
-      <button *ngIf="closeTimeFlag<=0||closeTimeFlag>0&&closeTime===0" class="btn know" nz-button nzType="primary"
15
-        nzGhost (click)="changeModal()">切换科室</button>
34
+      <button
35
+        *ngIf="closeTimeFlag <= 0 || (closeTimeFlag > 0 && closeTime === 0)"
36
+        class="btn know"
37
+        nz-button
38
+        nzType="primary"
39
+        (click)="hideModal()"
40
+      >
41
+        知道了
42
+      </button>
43
+      <button
44
+        *ngIf="closeTimeFlag <= 0 || (closeTimeFlag > 0 && closeTime === 0)"
45
+        class="btn know"
46
+        nz-button
47
+        nzType="primary"
48
+        nzGhost
49
+        (click)="changeModal()"
50
+      >
51
+        切换科室
52
+      </button>
16
     </div>
53
     </div>
17
   </div>
54
   </div>
18
   <div class="modalBody modalBody-search" *ngIf="!changeShow">
55
   <div class="modalBody modalBody-search" *ngIf="!changeShow">
19
-    <div class="title">搜索当前科室<i class="icon_transport transport-guanbi" (click)="hideModal()"></i></div>
56
+    <div class="title">
57
+      搜索当前科室<i
58
+        class="icon_transport transport-guanbi"
59
+        (click)="hideModal()"
60
+      ></i>
61
+    </div>
20
     <div class="content content-search">
62
     <div class="content content-search">
21
-      <div class="defeat-search display_flex justify-content_flex-center flex-direction_column">
22
-        <span>当前院区:<em>{{currentHospital.hosName}}</em></span>
23
-        <span>当前科室:<em *ngIf="deptDisplay">{{deptDisplay==2?currentDept.deptalias:currentDept.dept}}</em></span>
63
+      <div
64
+        class="
65
+          defeat-search
66
+          display_flex
67
+          justify-content_flex-center
68
+          flex-direction_column
69
+        "
70
+      >
71
+        <span
72
+          >当前院区:<em>{{ currentHospital.hosName }}</em></span
73
+        >
74
+        <span
75
+          >当前科室:<em *ngIf="!deptDisplayLoading">{{
76
+            deptDisplay == 2 ? currentDept.deptalias : currentDept.dept
77
+          }}</em
78
+          ><img
79
+            *ngIf="deptDisplayLoading"
80
+            src="../../../assets/images/loading.gif"
81
+            alt=""
82
+        /></span>
24
       </div>
83
       </div>
25
       <div class="form">
84
       <div class="form">
26
         <form nz-form [formGroup]="validateForm">
85
         <form nz-form [formGroup]="validateForm">
27
-          <nz-form-item style="margin-bottom: 0;">
28
-            <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="hospital">搜索院区
86
+          <nz-form-item style="margin-bottom: 0">
87
+            <nz-form-label
88
+              class="label"
89
+              [nzSm]="24"
90
+              [nzXs]="24"
91
+              nzRequired
92
+              nzFor="hospital"
93
+              >搜索院区
29
             </nz-form-label>
94
             </nz-form-label>
30
-            <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择院区!">
31
-              <nz-select formControlName="hospital" [nzDropdownMatchSelectWidth]="false"
32
-                (ngModelChange)="searchHospital($event)" nzPlaceHolder="请选择院区">
95
+            <nz-form-control
96
+              class="control"
97
+              [nzSm]="24"
98
+              [nzXs]="24"
99
+              nzErrorTip="请选择院区!"
100
+            >
101
+              <nz-select
102
+                formControlName="hospital"
103
+                [nzDropdownMatchSelectWidth]="false"
104
+                (ngModelChange)="searchHospital($event)"
105
+                nzPlaceHolder="请选择院区"
106
+              >
33
                 <ng-container *ngFor="let option of hospitals">
107
                 <ng-container *ngFor="let option of hospitals">
34
-                  <nz-option *ngIf="!isLoading" [nzLabel]="option.hosName" [nzValue]="option.id"></nz-option>
108
+                  <nz-option
109
+                    *ngIf="!isLoading"
110
+                    [nzLabel]="option.hosName"
111
+                    [nzValue]="option.id"
112
+                  ></nz-option>
35
                 </ng-container>
113
                 </ng-container>
36
                 <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
114
                 <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
37
-                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
115
+                  <i nz-icon nzType="loading" class="loading-icon"></i>
116
+                  搜索中...
38
                 </nz-option>
117
                 </nz-option>
39
               </nz-select>
118
               </nz-select>
40
             </nz-form-control>
119
             </nz-form-control>
41
           </nz-form-item>
120
           </nz-form-item>
42
           <nz-form-item>
121
           <nz-form-item>
43
-            <nz-form-label class="label" [nzSm]="24" [nzXs]="24" nzRequired nzFor="dutyDeptFc">搜索当值科室<span
44
-                class="red ml8">(可通过拼音首字母检索科室)</span>
122
+            <nz-form-label
123
+              class="label"
124
+              [nzSm]="24"
125
+              [nzXs]="24"
126
+              nzRequired
127
+              nzFor="dutyDeptFc"
128
+              >搜索当值科室<span class="red ml8"
129
+                >(可通过拼音首字母检索科室)</span
130
+              >
45
             </nz-form-label>
131
             </nz-form-label>
46
-            <nz-form-control class="control" [nzSm]="24" [nzXs]="24" nzErrorTip="请选择当值科室!">
47
-              <nz-select formControlName="dutyDeptFc" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch
48
-                (nzOnSearch)="searchDept(validateForm.controls.hospital.value,$event)" nzPlaceHolder="请选择当值科室">
132
+            <nz-form-control
133
+              class="control"
134
+              [nzSm]="24"
135
+              [nzXs]="24"
136
+              nzErrorTip="请选择当值科室!"
137
+            >
138
+              <nz-select
139
+                formControlName="dutyDeptFc"
140
+                [nzDropdownMatchSelectWidth]="false"
141
+                nzServerSearch
142
+                nzShowSearch
143
+                (nzOnSearch)="
144
+                  searchDept(validateForm.controls.hospital.value, $event)
145
+                "
146
+                nzPlaceHolder="请选择当值科室"
147
+              >
49
                 <ng-container *ngFor="let option of dutyDepts">
148
                 <ng-container *ngFor="let option of dutyDepts">
50
-                  <nz-option *ngIf="!isLoading" [nzLabel]="deptDisplay==2?option.deptalias:option.dept"
51
-                    [nzValue]="option.id"></nz-option>
149
+                  <nz-option
150
+                    *ngIf="!isLoading"
151
+                    [nzLabel]="
152
+                      deptDisplay == 2 ? option.deptalias : option.dept
153
+                    "
154
+                    [nzValue]="option.id"
155
+                  ></nz-option>
52
                 </ng-container>
156
                 </ng-container>
53
                 <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
157
                 <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
54
-                  <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
158
+                  <i nz-icon nzType="loading" class="loading-icon"></i>
159
+                  搜索中...
55
                 </nz-option>
160
                 </nz-option>
56
               </nz-select>
161
               </nz-select>
57
             </nz-form-control>
162
             </nz-form-control>
@@ -60,13 +165,29 @@
60
       </div>
165
       </div>
61
     </div>
166
     </div>
62
     <div class="display_flex justify-content_flex-center">
167
     <div class="display_flex justify-content_flex-center">
63
-      <button class="btn know" nz-button nzType="primary" (click)="ok()">确定</button>
64
-      <button class="btn know" nz-button nzType="primary" nzGhost (click)="hideModal()">取消</button>
168
+      <button class="btn know" nz-button nzType="primary" (click)="ok()">
169
+        确定
170
+      </button>
171
+      <button
172
+        class="btn know"
173
+        nz-button
174
+        nzType="primary"
175
+        nzGhost
176
+        (click)="hideModal()"
177
+      >
178
+        取消
179
+      </button>
65
     </div>
180
     </div>
66
   </div>
181
   </div>
67
 </div>
182
 </div>
68
 <!-- 操作成功/失败提示框 -->
183
 <!-- 操作成功/失败提示框 -->
69
-<app-prompt-modal *ngIf="promptModalShow" [content]="promptContent" [success]="ifSuccess" [show]="promptModalShow"
70
-  [info]="promptInfo" [isReLoad]="true"></app-prompt-modal>
184
+<app-prompt-modal
185
+  *ngIf="promptModalShow"
186
+  [content]="promptContent"
187
+  [success]="ifSuccess"
188
+  [show]="promptModalShow"
189
+  [info]="promptInfo"
190
+  [isReLoad]="true"
191
+></app-prompt-modal>
71
 <!-- 遮罩 -->
192
 <!-- 遮罩 -->
72
 <app-mask *ngIf="maskFlag"></app-mask>
193
 <app-mask *ngIf="maskFlag"></app-mask>

+ 3 - 0
src/app/share/hs-prompt-modal/hs-prompt-modal.component.ts

@@ -36,8 +36,11 @@ export class HsPromptModalComponent implements OnInit {
36
   ) {}
36
   ) {}
37
   searchDeptSubject = new Subject();
37
   searchDeptSubject = new Subject();
38
   deptDisplay; //护士端是否显示可以别名,1是显示科室名称,2是显示科室别名
38
   deptDisplay; //护士端是否显示可以别名,1是显示科室名称,2是显示科室别名
39
+  deptDisplayLoading: boolean = false;
39
   ngOnInit() {
40
   ngOnInit() {
41
+    this.deptDisplayLoading = true;
40
     this.tool.getDeptDisplay().subscribe((result) => {
42
     this.tool.getDeptDisplay().subscribe((result) => {
43
+      this.deptDisplayLoading = false;
41
       if (result.status == 200) {
44
       if (result.status == 200) {
42
         this.deptDisplay = result.list[0].valueconfig;
45
         this.deptDisplay = result.list[0].valueconfig;
43
       }
46
       }

+ 1 - 1
src/app/views/hushijiandan/hushijiandan.component.html

@@ -2,7 +2,7 @@
2
   <nz-layout class="app-layout display_flex flex_auto">
2
   <nz-layout class="app-layout display_flex flex_auto">
3
     <nz-sider
3
     <nz-sider
4
       class="menu-sidebar slider"
4
       class="menu-sidebar slider"
5
-      nzWidth="220px"
5
+      nzWidth="224px"
6
       nzBreakpoint="xs"
6
       nzBreakpoint="xs"
7
       [nzTrigger]="null"
7
       [nzTrigger]="null"
8
     >
8
     >

+ 11 - 18
src/app/views/hushijiandan/hushijiandan.component.less

@@ -459,7 +459,7 @@
459
       .sidebar-logo {
459
       .sidebar-logo {
460
         height: 88px;
460
         height: 88px;
461
         overflow: hidden;
461
         overflow: hidden;
462
-        line-height: 64px;
462
+        line-height: 88px;
463
         background: #001529;
463
         background: #001529;
464
         transition: all 0.3s;
464
         transition: all 0.3s;
465
         border-bottom: 1px solid #fff;
465
         border-bottom: 1px solid #fff;
@@ -480,7 +480,7 @@
480
       }
480
       }
481
 
481
 
482
       .mainInfo {
482
       .mainInfo {
483
-        width: 220px;
483
+        width: 100%;
484
         height: 100%;
484
         height: 100%;
485
         color: #fff;
485
         color: #fff;
486
         position: absolute;
486
         position: absolute;
@@ -498,7 +498,6 @@
498
 
498
 
499
         .checkBanner {
499
         .checkBanner {
500
           width: 100%;
500
           width: 100%;
501
-          height: 34px;
502
           z-index: 1;
501
           z-index: 1;
503
 
502
 
504
           .checkItem {
503
           .checkItem {
@@ -506,7 +505,7 @@
506
             text-align: center;
505
             text-align: center;
507
             color: #fff;
506
             color: #fff;
508
             background: #284450;
507
             background: #284450;
509
-            line-height: 34px;
508
+            line-height: 32px;
510
             border: none;
509
             border: none;
511
 
510
 
512
             &.checked {
511
             &.checked {
@@ -553,7 +552,7 @@
553
           }
552
           }
554
 
553
 
555
           .item {
554
           .item {
556
-            padding: 8px 6px;
555
+            padding: 8px;
557
             border-bottom: 1px solid #fff;
556
             border-bottom: 1px solid #fff;
558
 
557
 
559
             .itemTit {
558
             .itemTit {
@@ -577,7 +576,7 @@
577
             }
576
             }
578
 
577
 
579
             .checkInfo {
578
             .checkInfo {
580
-              padding: 5px 0;
579
+              padding: 8px 0;
581
               .transport-zhongdianguanzhu {
580
               .transport-zhongdianguanzhu {
582
                 cursor: pointer;
581
                 cursor: pointer;
583
               }
582
               }
@@ -600,7 +599,6 @@
600
               line-height: 28px;
599
               line-height: 28px;
601
               text-align: center;
600
               text-align: center;
602
               border-radius: 4px;
601
               border-radius: 4px;
603
-              margin-top: 3px;
604
               cursor: default;
602
               cursor: default;
605
               border: none;
603
               border: none;
606
             }
604
             }
@@ -812,6 +810,7 @@
812
 
810
 
813
         .cont {
811
         .cont {
814
           .top {
812
           .top {
813
+            box-sizing: content-box;
815
             position: relative;
814
             position: relative;
816
             z-index: 9;
815
             z-index: 9;
817
 
816
 
@@ -822,7 +821,7 @@
822
               div {
821
               div {
823
                 .h33 {
822
                 .h33 {
824
                   height: 33px;
823
                   height: 33px;
825
-                  line-height: 31px;
824
+                  line-height: 32px;
826
                 }
825
                 }
827
 
826
 
828
                 .h53 {
827
                 .h53 {
@@ -839,7 +838,7 @@
839
                 .quick {
838
                 .quick {
840
                   width: 100%;
839
                   width: 100%;
841
                   height: 100%;
840
                   height: 100%;
842
-                  padding: 5px;
841
+                  padding: 8px;
843
                   display: flex;
842
                   display: flex;
844
                   flex-direction: column;
843
                   flex-direction: column;
845
                   justify-content: center;
844
                   justify-content: center;
@@ -927,7 +926,7 @@
927
               overflow: hidden;
926
               overflow: hidden;
928
               .cur {
927
               .cur {
929
                 height: 100%;
928
                 height: 100%;
930
-                border-radius: 10px;
929
+                border-radius: 4px;
931
                 position: relative;
930
                 position: relative;
932
                 background-size: 400% 100%;
931
                 background-size: 400% 100%;
933
                 color: #333;
932
                 color: #333;
@@ -982,21 +981,15 @@
982
           }
981
           }
983
 
982
 
984
           .searchBox {
983
           .searchBox {
985
-            height: 60px;
984
+            height: 56px;
986
             padding: 0 8px;
985
             padding: 0 8px;
987
             position: relative;
986
             position: relative;
988
             z-index: 9;
987
             z-index: 9;
989
 
988
 
990
-            // & > div:nth-child(1) {
991
-            //   input {
992
-            //     // min-width: 253px;
993
-            //   }
994
-            // }
995
-
996
             .btns {
989
             .btns {
997
               button {
990
               button {
998
                 width: 80px;
991
                 width: 80px;
999
-                height: 40px;
992
+                height: 32px;
1000
 
993
 
1001
                 &:nth-child(1) {
994
                 &:nth-child(1) {
1002
                   color: @primary-color;
995
                   color: @primary-color;

+ 12 - 2
src/app/views/login/login.component.less

@@ -12,15 +12,22 @@
12
   align-items: center;
12
   align-items: center;
13
 
13
 
14
   .loginBox {
14
   .loginBox {
15
+    position: relative;
15
     flex: 1;
16
     flex: 1;
16
 
17
 
17
     .title {
18
     .title {
18
-      text-align: center;
19
+      display: flex;
20
+      justify-content: center;
21
+      align-items: center;
19
       margin-bottom: 24px;
22
       margin-bottom: 24px;
20
       font-size: 28px;
23
       font-size: 28px;
21
       color: @primary-color;
24
       color: @primary-color;
25
+      position: absolute;
26
+      width: 100%;
27
+      bottom: 100%;
22
 
28
 
23
       img {
29
       img {
30
+        width: 60px;
24
         height: 48px;
31
         height: 48px;
25
         margin-right: 8px;
32
         margin-right: 8px;
26
       }
33
       }
@@ -56,7 +63,7 @@
56
           .loginBtn {
63
           .loginBtn {
57
             button {
64
             button {
58
               width: 100%;
65
               width: 100%;
59
-              height: 52px;
66
+              height: 48px;
60
               background-color: #8e9d9e;
67
               background-color: #8e9d9e;
61
               border-radius: 26px;
68
               border-radius: 26px;
62
               border: 1px solid #8e9d9e;
69
               border: 1px solid #8e9d9e;
@@ -75,6 +82,9 @@
75
     }
82
     }
76
 
83
 
77
     .bottom {
84
     .bottom {
85
+      position: absolute;
86
+      width: 100%;
87
+      top: 100%;
78
       font-size: 12px;
88
       font-size: 12px;
79
       color: @primary-color;
89
       color: @primary-color;
80
       text-align: center;
90
       text-align: center;

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

@@ -18,7 +18,7 @@ nz-sider {
18
 }
18
 }
19
 
19
 
20
 .menu-sidebar {
20
 .menu-sidebar {
21
-  flex: 0 0 220px;
21
+  flex: 0 0 224px;
22
   position: relative;
22
   position: relative;
23
   z-index: 8;
23
   z-index: 8;
24
   min-height: 100vh;
24
   min-height: 100vh;