|
@@ -61,6 +61,7 @@
|
61
|
61
|
<device-management :active="active"></device-management>
|
62
|
62
|
</van-tab>
|
63
|
63
|
</van-tabs>
|
|
64
|
+ <!-- 患者弹窗 -->
|
64
|
65
|
<van-popup v-model="show" position="top" :style="{ height: '100%' }">
|
65
|
66
|
<div
|
66
|
67
|
style="padding:10px;font-size:1.25rem;text-align:right"
|
|
@@ -380,6 +381,7 @@ export default {
|
380
|
381
|
}
|
381
|
382
|
})
|
382
|
383
|
},
|
|
384
|
+ // 全部病人
|
383
|
385
|
getBloodDialysisPatientTwo () {
|
384
|
386
|
getBloodDialysisPatientTwo(this.page, this.limit).then(response => {
|
385
|
387
|
var patient = response.data.data.patient
|
|
@@ -474,12 +476,14 @@ export default {
|
474
|
476
|
}
|
475
|
477
|
})
|
476
|
478
|
},
|
|
479
|
+ //
|
477
|
480
|
getMemberPatient () {
|
478
|
481
|
getMemberPatient().then(response => {
|
479
|
482
|
if (response.data.state === 1) {
|
480
|
483
|
var patient = response.data.data.patient
|
481
|
484
|
this.patient = patient
|
482
|
485
|
let cityNameList = []
|
|
486
|
+ console.log('response.data.data12112康桥',response.data.data);
|
483
|
487
|
for (let p in patient) {
|
484
|
488
|
cityNameList.push(patient[p].name)
|
485
|
489
|
}
|
|
@@ -505,6 +509,7 @@ export default {
|
505
|
509
|
}
|
506
|
510
|
})
|
507
|
511
|
},
|
|
512
|
+ // 弹窗搜索
|
508
|
513
|
onSearch (val) {
|
509
|
514
|
ToSearch(val).then(response => {
|
510
|
515
|
if (response.data.state === 1) {
|
|
@@ -536,6 +541,7 @@ export default {
|
536
|
541
|
})
|
537
|
542
|
},
|
538
|
543
|
onCancel () {},
|
|
544
|
+ // 弹窗选中患者
|
539
|
545
|
chooseCity (val) {
|
540
|
546
|
this.value = val
|
541
|
547
|
console.log('val',val);
|
|
@@ -544,7 +550,7 @@ export default {
|
544
|
550
|
var id = this.patient[i].id
|
545
|
551
|
this.show = false
|
546
|
552
|
this.$router.push(
|
547
|
|
- '/patientdetail?patientid=' + id + '&seacherActive=' + this.active
|
|
553
|
+ '/patientdetail?patientid=' + id + '&seacherActive=' + 1 + '&active='+this.active
|
548
|
554
|
)
|
549
|
555
|
this.patientName = this.value
|
550
|
556
|
this.reload()
|
|
@@ -581,6 +587,8 @@ export default {
|
581
|
587
|
this.patient_id = patientid
|
582
|
588
|
this.getPatientDetail(patientid)
|
583
|
589
|
var seacherActive = this.$route.query.seacherActive
|
|
590
|
+ console.log('seacherActive',seacherActive);
|
|
591
|
+
|
584
|
592
|
if (seacherActive == 0) {
|
585
|
593
|
this.getBloodDialysisPatientTwo()
|
586
|
594
|
}
|