diff --git a/src/components/360View/index.vue b/src/components/360View/index.vue
index ac51e37..1b5b768 100644
--- a/src/components/360View/index.vue
+++ b/src/components/360View/index.vue
@@ -34,19 +34,19 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -312,6 +312,13 @@ export default {
} else {
return this.onlyRead
}
+ },
+ routePatientId() {
+ let pid = ''
+ if (this.$route.query.patientId) {
+ pid = this.$route.query.patientId.replace(/^0+/, '')
+ }
+ return pid
}
},
watch: {
@@ -442,7 +449,7 @@ export default {
'/patient/view/getPatientData',
{
params: {
- patientId: this.patientId || this.$route.query.patientId
+ patientId: this.patientId || this.routePatientId
}
}
)
@@ -458,7 +465,7 @@ export default {
'/patient/view/getTimeAxisData',
{
params: {
- patientId: this.patientId || this.$route.query.patientId
+ patientId: this.patientId || this.routePatientId
}
}
)
@@ -481,7 +488,7 @@ export default {
params: {
date: this.date,
groupName: this.timeAxisType,
- patientId: this.patientId || this.$route.query.patientId
+ patientId: this.patientId || this.routePatientId
}
})
if (res.code === 0) {