seimin 3 роки тому
батько
коміт
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 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 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 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 32
     </div>
11 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 53
     </div>
17 54
   </div>
18 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 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 83
       </div>
25 84
       <div class="form">
26 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 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 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 113
                 </ng-container>
36 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 117
                 </nz-option>
39 118
               </nz-select>
40 119
             </nz-form-control>
41 120
           </nz-form-item>
42 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 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 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 156
                 </ng-container>
53 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 160
                 </nz-option>
56 161
               </nz-select>
57 162
             </nz-form-control>
@@ -60,13 +165,29 @@
60 165
       </div>
61 166
     </div>
62 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 180
     </div>
66 181
   </div>
67 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 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 37
   searchDeptSubject = new Subject();
38 38
   deptDisplay; //护士端是否显示可以别名,1是显示科室名称,2是显示科室别名
39
+  deptDisplayLoading: boolean = false;
39 40
   ngOnInit() {
41
+    this.deptDisplayLoading = true;
40 42
     this.tool.getDeptDisplay().subscribe((result) => {
43
+      this.deptDisplayLoading = false;
41 44
       if (result.status == 200) {
42 45
         this.deptDisplay = result.list[0].valueconfig;
43 46
       }

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

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

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

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

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

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

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

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