Browse Source

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

seimin 3 years ago
parent
commit
1a201557b6

+ 1 - 1
proxy.conf.json

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

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

@@ -1,6 +1,6 @@
1 1
 <div class="fuwutai">
2 2
 
3
-  <div class="top">
3
+  <div class="top" id="top" *ngIf="hurseInfoHiding==1">
4 4
     <!-- 头部Tab -->
5 5
     <div class="tabBox">
6 6
       <div class="tab" #tabs>
@@ -67,7 +67,7 @@
67 67
     </div>
68 68
   </div>
69 69
   <!-- 状态工单 -->
70
-  <div class="lists_box" [ngStyle]="{'height':listHeight+'px'}">
70
+  <div class="lists_box">
71 71
     <!-- 未分派 -->
72 72
     <div class="lists">
73 73
       <div class="head">
@@ -700,6 +700,19 @@
700 700
         <div class="conditions">
701 701
           <div nz-row>
702 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 717
             </div>
705 718
             <div nz-col nzSpan="18">

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

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

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

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