|
@@ -348,6 +348,8 @@ export default {
|
348
|
348
|
return new Date(time).getTime() / 1000
|
349
|
349
|
},
|
350
|
350
|
handleClick(patientid, inspectdate) {
|
|
351
|
+ console.log("patient_id",patientid)
|
|
352
|
+ console.log("inspectdate",inspectdate)
|
351
|
353
|
// var id = 0
|
352
|
354
|
// var dialysis_no = 0
|
353
|
355
|
// for(let i=0;i<this.tablePatients.length;i++){
|
|
@@ -389,15 +391,15 @@ export default {
|
389
|
391
|
patientid: this.patient_id,
|
390
|
392
|
startime: this.listQuery.start_time,
|
391
|
393
|
endtime: this.listQuery.end_time
|
392
|
|
-
|
393
|
394
|
}
|
|
395
|
+ console.log("param",params)
|
394
|
396
|
this.isLoadingTwo = true
|
395
|
397
|
getPatientContorlAnalysis(params).then(response => {
|
396
|
398
|
if (response.data.state == 1) {
|
397
|
399
|
this.isLoadingTwo = false
|
398
|
400
|
|
399
|
401
|
var control = response.data.data.patientcontorDetail
|
400
|
|
- // console.log("control",control)
|
|
402
|
+ console.log("control",control)
|
401
|
403
|
let dataInfo = {}
|
402
|
404
|
control.forEach((item, index) => {
|
403
|
405
|
let { inspect_date } = item
|
|
@@ -475,7 +477,9 @@ export default {
|
475
|
477
|
dataInfotwo[inspect_date] = {
|
476
|
478
|
inspect_date,
|
477
|
479
|
name: item.name,
|
478
|
|
- dialysis_no: item.dialysis_no
|
|
480
|
+ dialysis_no: item.dialysis_no,
|
|
481
|
+ patient_id:item.patient_id,
|
|
482
|
+ inspect_date:item.inspect_date,
|
479
|
483
|
}
|
480
|
484
|
}
|
481
|
485
|
})
|
|
@@ -486,6 +490,8 @@ export default {
|
486
|
490
|
if (item.inspect_date == parseInt(it.name)) {
|
487
|
491
|
it.name = item.name
|
488
|
492
|
it.dialysis_no = item.dialysis_no
|
|
493
|
+ it.patient_id = item.patient_id
|
|
494
|
+ it.inspect_date = item.inspect_date
|
489
|
495
|
}
|
490
|
496
|
})
|
491
|
497
|
})
|
|
@@ -510,7 +516,7 @@ export default {
|
510
|
516
|
// }
|
511
|
517
|
// }
|
512
|
518
|
// }
|
513
|
|
-
|
|
519
|
+
|
514
|
520
|
} else {
|
515
|
521
|
this.isLoadingTwo = false
|
516
|
522
|
|
|
@@ -523,7 +529,7 @@ export default {
|
523
|
529
|
if (response.data.state == 1) {
|
524
|
530
|
this.isLoadingTwo = false
|
525
|
531
|
var patients = response.data.data.patients
|
526
|
|
- console.log('patients', patients)
|
|
532
|
+
|
527
|
533
|
this.tablePatients = patients
|
528
|
534
|
|
529
|
535
|
// let dataInfothree = {}
|
|
@@ -544,13 +550,13 @@ export default {
|
544
|
550
|
var total = response.data.data.total
|
545
|
551
|
this.total = total
|
546
|
552
|
var control = response.data.data.control
|
547
|
|
- console.log('control', control)
|
|
553
|
+
|
548
|
554
|
var infectiousControl = response.data.data.infectiousControl
|
549
|
|
- // console.log("infectiouscontrol",infectiousControl)
|
|
555
|
+
|
550
|
556
|
infectiousControl.map(item => {
|
551
|
557
|
control.push(item)
|
552
|
558
|
})
|
553
|
|
- console.log('infectiouscontrol', infectiousControl)
|
|
559
|
+
|
554
|
560
|
|
555
|
561
|
// var newPatinteArr = []
|
556
|
562
|
// patientlist.map(item=>{
|