|
@@ -172,11 +172,6 @@ export default {
|
172
|
172
|
this.$router.push("/mypatients/" + patient_id);
|
173
|
173
|
}
|
174
|
174
|
},
|
175
|
|
- beforeRouteUpdate(to, from, next) {
|
176
|
|
- console.log(1111111111111111111111111111)
|
177
|
|
- console.log(to,from); //345,123
|
178
|
|
- next();
|
179
|
|
- },
|
180
|
175
|
watch: {
|
181
|
176
|
clientHeight(val) {
|
182
|
177
|
// 为了避免频繁触发resize函数导致页面卡顿,使用定时器
|
|
@@ -192,9 +187,22 @@ export default {
|
192
|
187
|
that.mediaMatches();
|
193
|
188
|
}, 400);
|
194
|
189
|
}
|
195
|
|
- }
|
|
190
|
+ },
|
196
|
191
|
},
|
197
|
|
-
|
|
192
|
+ beforeRouteUpdate(to, from){
|
|
193
|
+ console.log(to.active2)
|
|
194
|
+ if(to.query.active1 == "2" && to.active2 == undefined){
|
|
195
|
+ this.index = parseInt(to.query.active1)
|
|
196
|
+ var patient_id = to.query.patient_id;
|
|
197
|
+ var date = to.query.date;
|
|
198
|
+ var patient_name = to.query.patient_name;
|
|
199
|
+ this.patient_id = patient_id;
|
|
200
|
+ this.date = date;
|
|
201
|
+ this.patient_name = patient_name;
|
|
202
|
+ this.GetPatientInfoWithDiseases(this.patient_id);
|
|
203
|
+ }
|
|
204
|
+ console.log(from)
|
|
205
|
+ }
|
198
|
206
|
};
|
199
|
207
|
</script>
|
200
|
208
|
|