|
|
@@ -117,6 +117,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ id:'',
|
|
|
searchName: "",
|
|
|
form: {},
|
|
|
queryForm: {},
|
|
|
@@ -142,10 +143,13 @@
|
|
|
}
|
|
|
},
|
|
|
goToPatient(item) {
|
|
|
- this.queryForm.cur_doctor_id = item.id
|
|
|
- this.getData()
|
|
|
- this.selected = 2
|
|
|
- this.curDoctor = item
|
|
|
+ if(item.id == this.id){
|
|
|
+ this.queryForm.cur_doctor_id = item.id
|
|
|
+ this.getData()
|
|
|
+ this.selected = 2
|
|
|
+ this.curDoctor = item
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
goToCase(item) {
|
|
|
this.queryForm.patient_id = item.id
|
|
|
@@ -246,6 +250,18 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ console.log(this.$route)
|
|
|
+ let authinfo=localStorage.getItem('authinfo')
|
|
|
+ if(authinfo) this.id=JSON.parse(authinfo).id
|
|
|
+ if(this.$route.params.id){
|
|
|
+ this.selected=3
|
|
|
+ this.curDoctor.id=this.id
|
|
|
+ this.queryForm.cur_doctor_id=this.id
|
|
|
+ this.queryForm.patient_id=this.$route.params.id
|
|
|
+ this.curPatient.id=this.$route.params.id
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
this.getData()
|
|
|
},
|
|
|
mounted() {
|