|
@@ -346,7 +346,7 @@ export default {
|
346
|
346
|
getNormData().then(response=>{
|
347
|
347
|
if(response.data.state == 1){
|
348
|
348
|
var normdata = response.data.data.normdata
|
349
|
|
- // console.log("normdata",normdata)
|
|
349
|
+ console.log("normdata",normdata)
|
350
|
350
|
this.normData = normdata
|
351
|
351
|
var a=[];
|
352
|
352
|
for(let i=0;i<normdata.length;i++){
|
|
@@ -495,15 +495,44 @@ export default {
|
495
|
495
|
var patients = response.data.data.patients
|
496
|
496
|
console.log("patients",patients)
|
497
|
497
|
this.tablePatients = patients
|
|
498
|
+
|
|
499
|
+ // let dataInfothree = {}
|
|
500
|
+ // patients.forEach((item, index) => {
|
|
501
|
+ // let { inspect_date } = item
|
|
502
|
+ // if (!dataInfothree[inspect_date]) {
|
|
503
|
+ // dataInfothree[inspect_date] = {
|
|
504
|
+ // inspect_date,
|
|
505
|
+ // name: item.name,
|
|
506
|
+ // child: [],
|
|
507
|
+ // patient_id: item.patient_id,
|
|
508
|
+ // }
|
|
509
|
+ // }
|
|
510
|
+ // })
|
|
511
|
+ // let patientlist = Object.values(dataInfothree)
|
|
512
|
+ // console.log("patientlist",patientlist)
|
|
513
|
+
|
|
514
|
+
|
498
|
515
|
var total = response.data.data.total
|
499
|
516
|
this.total = total
|
500
|
517
|
var control = response.data.data.control
|
|
518
|
+ console.log("control",control)
|
501
|
519
|
var infectiousControl = response.data.data.infectiousControl
|
502
|
|
-
|
|
520
|
+ // console.log("infectiouscontrol",infectiousControl)
|
503
|
521
|
infectiousControl.map(item=>{
|
504
|
522
|
control.push(item)
|
505
|
523
|
})
|
506
|
|
-
|
|
524
|
+ console.log("infectiouscontrol",infectiousControl)
|
|
525
|
+
|
|
526
|
+ // var newPatinteArr = []
|
|
527
|
+ // patientlist.map(item=>{
|
|
528
|
+ // for(let i=0;i<control.length;i++){
|
|
529
|
+ // if(item.inspect_date == control[i].inspect_date && item.patient_id == control[i].patient_id){
|
|
530
|
+ // item.child.push(control[i])
|
|
531
|
+ // }
|
|
532
|
+ // }
|
|
533
|
+ // })
|
|
534
|
+ // console.log("patientlist",patientlist)
|
|
535
|
+
|
507
|
536
|
var newArr = []
|
508
|
537
|
// 分页
|
509
|
538
|
for (let i = 0; i < control.length; i++) {
|
|
@@ -513,7 +542,7 @@ export default {
|
513
|
542
|
}
|
514
|
543
|
}
|
515
|
544
|
}
|
516
|
|
-
|
|
545
|
+
|
517
|
546
|
let dataInfo = {}
|
518
|
547
|
newArr.forEach((item, index) => {
|
519
|
548
|
let { inspect_date } = item
|
|
@@ -554,7 +583,7 @@ export default {
|
554
|
583
|
}
|
555
|
584
|
}
|
556
|
585
|
}
|
557
|
|
-
|
|
586
|
+ console.log("arrthree",arrthree)
|
558
|
587
|
var arrfour = this.arrayDate(arrthree, newarrtwo)
|
559
|
588
|
arrfour.map(item => {
|
560
|
589
|
item.item_name = ''
|
|
@@ -600,7 +629,7 @@ export default {
|
600
|
629
|
}
|
601
|
630
|
this.tableData.push({ name: key, data: dd[key]})
|
602
|
631
|
}
|
603
|
|
-
|
|
632
|
+
|
604
|
633
|
listtwo.map(item=>{
|
605
|
634
|
this.tableData.map(it=>{
|
606
|
635
|
if(item.inspect_date == parseInt(it.name)){
|