|
@@ -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"]) {
|