|
@@ -414,9 +414,9 @@
|
414
|
414
|
handleChange(val){
|
415
|
415
|
this.query.patient_id = val.id
|
416
|
416
|
this.query.page = 1
|
417
|
|
- this.GetDialysisWeightTableData(this.query)
|
418
|
|
- this.GetDialysisWeightChartData(this.query)
|
419
|
417
|
this.patient_name = val.name
|
|
418
|
+ this.GetDialysisWeightTableData(this.query)
|
|
419
|
+ // this.GetDialysisWeightChartData(this.query)
|
420
|
420
|
},
|
421
|
421
|
handleSizeChange(limit) {
|
422
|
422
|
this.query.limit = limit;
|
|
@@ -509,14 +509,17 @@
|
509
|
509
|
})
|
510
|
510
|
},
|
511
|
511
|
GetDialysisWeightChartData(params) {
|
512
|
|
- this.bar.xAxis.data = []
|
513
|
|
- this.bar.series[0].data = []
|
514
|
|
- this.percent = []
|
515
|
512
|
|
|
513
|
+ // this.bar.xAxis.data = []
|
|
514
|
+ // this.bar.series[0].data = []
|
|
515
|
+ // this.percent = []
|
516
|
516
|
GetDialysisWeightChartData(params)
|
517
|
517
|
.then(rs => {
|
518
|
518
|
var resp = rs.data
|
519
|
519
|
if (resp.state == 1) {
|
|
520
|
+ this.bar.xAxis.data = []
|
|
521
|
+ this.bar.series[0].data = []
|
|
522
|
+ this.percent = []
|
520
|
523
|
for (let i = 0; i < resp.data.data.length; i++) {
|
521
|
524
|
this.bar.xAxis.data.push(resp.data.data[i].name)
|
522
|
525
|
this.bar.series[0].data.push(resp.data.data[i].total)
|
|
@@ -534,7 +537,7 @@
|
534
|
537
|
this.query.patient_id = val.id
|
535
|
538
|
this.query.page = 1
|
536
|
539
|
// this.GetDialysisWeightChartData(this.query)
|
537
|
|
- this.GetDialysisWeightTableData(this.query)
|
|
540
|
+ // this.GetDialysisWeightTableData(this.query)
|
538
|
541
|
for (let i = 0;i < this.patientsData.length; i++){
|
539
|
542
|
if (this.patientsData[i].id == val.id){
|
540
|
543
|
this.patient_name = this.patientsData[i].name
|