Przeglądaj źródła

展示形式中增加护工信息隐藏

seimin 3 lat temu
rodzic
commit
1a201557b6

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1
 {
1
 {
2
   "/service": {
2
   "/service": {
3
-    "target": "http://192.168.3.108",
3
+    "target": "http://192.168.3.96",
4
     "logLevel": "debug",
4
     "logLevel": "debug",
5
     "changeOrigin": true,
5
     "changeOrigin": true,
6
     "pathRewrite": {
6
     "pathRewrite": {

+ 15 - 2
src/app/views/fuwutai/fuwutai.component.html

@@ -1,6 +1,6 @@
1
 <div class="fuwutai">
1
 <div class="fuwutai">
2
 
2
 
3
-  <div class="top">
3
+  <div class="top" id="top" *ngIf="hurseInfoHiding==1">
4
     <!-- 头部Tab -->
4
     <!-- 头部Tab -->
5
     <div class="tabBox">
5
     <div class="tabBox">
6
       <div class="tab" #tabs>
6
       <div class="tab" #tabs>
@@ -67,7 +67,7 @@
67
     </div>
67
     </div>
68
   </div>
68
   </div>
69
   <!-- 状态工单 -->
69
   <!-- 状态工单 -->
70
-  <div class="lists_box" [ngStyle]="{'height':listHeight+'px'}">
70
+  <div class="lists_box">
71
     <!-- 未分派 -->
71
     <!-- 未分派 -->
72
     <div class="lists">
72
     <div class="lists">
73
       <div class="head">
73
       <div class="head">
@@ -700,6 +700,19 @@
700
         <div class="conditions">
700
         <div class="conditions">
701
           <div nz-row>
701
           <div nz-row>
702
             <div nz-col nzSpan="6">
702
             <div nz-col nzSpan="6">
703
+              护工信息隐藏:
704
+            </div>
705
+            <div nz-col nzSpan="18">
706
+              <div nz-row>
707
+                <nz-radio-group [(ngModel)]="hurseInfoHiding">
708
+                  <label nz-radio nzValue="1">是</label>
709
+                  <label nz-radio nzValue="0">否</label>
710
+                </nz-radio-group>
711
+              </div>
712
+            </div>
713
+          </div>
714
+          <div nz-row>
715
+            <div nz-col nzSpan="6">
703
               护工信息:
716
               护工信息:
704
             </div>
717
             </div>
705
             <div nz-col nzSpan="18">
718
             <div nz-col nzSpan="18">

+ 7 - 2
src/app/views/fuwutai/fuwutai.component.less

@@ -2,16 +2,20 @@
2
 
2
 
3
 :host {
3
 :host {
4
   width: 100%;
4
   width: 100%;
5
-  height: unset;
6
   background: #f9fafb;
5
   background: #f9fafb;
7
-  padding: 17px 16px;
6
+  padding: 16px;
7
+  display: flex;
8
+  flex-direction: column;
8
 }
9
 }
9
 ::ng-deep .ant-form-item-label {
10
 ::ng-deep .ant-form-item-label {
10
   line-height: 24px !important;
11
   line-height: 24px !important;
11
 }
12
 }
12
 
13
 
13
 .fuwutai {
14
 .fuwutai {
15
+  display: flex;
16
+  flex-direction: column;
14
   width: 100%;
17
   width: 100%;
18
+  height: 100%;
15
   position: relative;
19
   position: relative;
16
   background: #f9fafb;
20
   background: #f9fafb;
17
   .transport-1_round_solid,
21
   .transport-1_round_solid,
@@ -281,6 +285,7 @@
281
   /* 工单总数 */
285
   /* 工单总数 */
282
   .lists_box {
286
   .lists_box {
283
     width: 100%;
287
     width: 100%;
288
+    height: 100%;
284
     margin-top: 24px;
289
     margin-top: 24px;
285
     padding-bottom: 20px;
290
     padding-bottom: 20px;
286
     min-height: 539px;
291
     min-height: 539px;

+ 5 - 18
src/app/views/fuwutai/fuwutai.component.ts

@@ -553,6 +553,7 @@ export class FuwutaiComponent implements OnInit {
553
   workerMessage: any = []; //顶部全部工单
553
   workerMessage: any = []; //顶部全部工单
554
   // 展示形式
554
   // 展示形式
555
   patientCareCol: number = 6; //顶部工单列数(4列-8人,7列-14人,6列-单排 )
555
   patientCareCol: number = 6; //顶部工单列数(4列-8人,7列-14人,6列-单排 )
556
+  hurseInfoHiding; //护工信息隐藏
556
   txtLabelCol: number = 1; //文本标签列数
557
   txtLabelCol: number = 1; //文本标签列数
557
   workerInfoTime: number = 30; //支助人员刷新时间
558
   workerInfoTime: number = 30; //支助人员刷新时间
558
   orderInfoTime: number = 30; //工单刷新时间
559
   orderInfoTime: number = 30; //工单刷新时间
@@ -991,16 +992,12 @@ export class FuwutaiComponent implements OnInit {
991
       });
992
       });
992
   }
993
   }
993
 
994
 
994
-  topListHeight = 185; //顶部表格height
995
-  listHeight; //表格height
996
   // 页面resize
995
   // 页面resize
997
   windowResize() {
996
   windowResize() {
998
     let fixedMenu = document.getElementById("fixedMenu");
997
     let fixedMenu = document.getElementById("fixedMenu");
999
     if (!fixedMenu) return;
998
     if (!fixedMenu) return;
1000
-    let top = document.querySelector(".top");
999
+    let top = document.querySelector("#top");
1001
     window.addEventListener("resize", () => {
1000
     window.addEventListener("resize", () => {
1002
-      this.topListHeight = top.clientHeight;
1003
-      this.listHeight = document.body.clientHeight - this.topListHeight - 44;
1004
       let wh = window.innerHeight;
1001
       let wh = window.innerHeight;
1005
       let _y = parseFloat(fixedMenu.style.top);
1002
       let _y = parseFloat(fixedMenu.style.top);
1006
       if (!_y) return;
1003
       if (!_y) return;
@@ -1019,26 +1016,16 @@ export class FuwutaiComponent implements OnInit {
1019
     that.maxNum = Math.ceil(that.workerMessage.length / that.patientCareCol);
1016
     that.maxNum = Math.ceil(that.workerMessage.length / that.patientCareCol);
1020
     that.showRowNum = that.patientCareCol == 6 ? 4 : 2;
1017
     that.showRowNum = that.patientCareCol == 6 ? 4 : 2;
1021
     console.log(that.maxNum, that.showRowNum);
1018
     console.log(that.maxNum, that.showRowNum);
1022
-    // if(that.maxNum<=that.showRowNum){
1023
-    //   that.cotHeight=undefined;
1024
-    // }else{
1025
     that.cotHeight = 140;
1019
     that.cotHeight = 140;
1026
-    // }
1027
-    that.topListHeight = 185;
1028
-    that.listHeight = document.body.clientHeight - that.topListHeight - 44;
1029
   }
1020
   }
1030
 
1021
 
1031
   // 展开顶部列表
1022
   // 展开顶部列表
1032
   unfold() {
1023
   unfold() {
1033
     if (this.showRowNum < this.maxNum && this.patientCareCol != 6) {
1024
     if (this.showRowNum < this.maxNum && this.patientCareCol != 6) {
1034
       this.cotHeight += 70;
1025
       this.cotHeight += 70;
1035
-      this.topListHeight += 70;
1036
-      this.listHeight = document.body.clientHeight - this.topListHeight - 44;
1037
       this.showRowNum++;
1026
       this.showRowNum++;
1038
     } else if (this.showRowNum < this.maxNum && this.patientCareCol == 6) {
1027
     } else if (this.showRowNum < this.maxNum && this.patientCareCol == 6) {
1039
       this.cotHeight += 35;
1028
       this.cotHeight += 35;
1040
-      this.topListHeight += 35;
1041
-      this.listHeight = document.body.clientHeight - this.topListHeight - 44;
1042
       this.showRowNum++;
1029
       this.showRowNum++;
1043
     } else {
1030
     } else {
1044
       return;
1031
       return;
@@ -1049,8 +1036,6 @@ export class FuwutaiComponent implements OnInit {
1049
   retract() {
1036
   retract() {
1050
     this.showRowNum = this.patientCareCol == 6 ? 4 : 2;
1037
     this.showRowNum = this.patientCareCol == 6 ? 4 : 2;
1051
     this.cotHeight = 140;
1038
     this.cotHeight = 140;
1052
-    this.topListHeight = 185;
1053
-    this.listHeight = document.body.clientHeight - this.topListHeight - 44;
1054
   }
1039
   }
1055
 
1040
 
1056
   // 查看工单详情
1041
   // 查看工单详情
@@ -2347,7 +2332,7 @@ export class FuwutaiComponent implements OnInit {
2347
     let postData = {
2332
     let postData = {
2348
       controlView: { userId: that.user.user.id, hosId: this.checkedHos },
2333
       controlView: { userId: that.user.user.id, hosId: this.checkedHos },
2349
       idx: 0,
2334
       idx: 0,
2350
-      sum: 1000,
2335
+      sum: 1,
2351
     };
2336
     };
2352
     that.mainService
2337
     that.mainService
2353
       .coopTypeConfig("fetchDataList", "controlView", postData)
2338
       .coopTypeConfig("fetchDataList", "controlView", postData)
@@ -2365,6 +2350,7 @@ export class FuwutaiComponent implements OnInit {
2365
             that.patientCareCol = 4;
2350
             that.patientCareCol = 4;
2366
             break;
2351
             break;
2367
         }
2352
         }
2353
+        this.hurseInfoHiding = data.list[0].hurseInfoHiding ? "1" : "0";
2368
         that.txtLabelCol = data.list[0].labelNum;
2354
         that.txtLabelCol = data.list[0].labelNum;
2369
         that.orderRefreshTime = that.orderInfoTime = data.list[0].orderInfoTime;
2355
         that.orderRefreshTime = that.orderInfoTime = data.list[0].orderInfoTime;
2370
         that.workerRefreshTime = that.workerInfoTime =
2356
         that.workerRefreshTime = that.workerInfoTime =
@@ -2399,6 +2385,7 @@ export class FuwutaiComponent implements OnInit {
2399
         workerInfoTime: that.workerInfoTime,
2385
         workerInfoTime: that.workerInfoTime,
2400
         orderInfoTime: that.orderInfoTime,
2386
         orderInfoTime: that.orderInfoTime,
2401
         unsendOrderVoice: that.audioNotDispatched,
2387
         unsendOrderVoice: that.audioNotDispatched,
2388
+        hurseInfoHiding: that.hurseInfoHiding === "1",
2402
       },
2389
       },
2403
     };
2390
     };
2404
     if (that.controlView["id"]) {
2391
     if (that.controlView["id"]) {