From 14462bcb37055c3280273303a9781648c25f98a5 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Mon, 26 Aug 2024 14:52:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=BF=83=E7=90=86?= =?UTF-8?q?=E5=91=A8=E6=8A=A5=E6=B1=87=E6=80=BB=E5=BF=83=E7=90=86=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=88=87=E6=8D=A2=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/health/psychological/reportDetails/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/health/psychological/reportDetails/index.vue b/src/views/health/psychological/reportDetails/index.vue index e79d2a2..52a9fb0 100644 --- a/src/views/health/psychological/reportDetails/index.vue +++ b/src/views/health/psychological/reportDetails/index.vue @@ -906,12 +906,16 @@ export default { /* this.initEchart(); */ if(this.params.current) { this.current = Number(this.params.current); + this.currentDays = this.calcDaysByTabClick( + Number(this.params.current) + ); } else { this.current = Number(this.$store.getters.tabClick) || 0; + this.currentDays = this.calcDaysByTabClick( + Number(this.$store.getters.tabClick) + ); } - this.currentDays = this.calcDaysByTabClick( - Number(this.$store.getters.tabClick) - ); + this.psyCurrent = this.calcPsyTabindex(EmotionModel[this.params.name].type); window.document.title = "心理监测"; /* window.addEventListener("resize", this.onResize, false); */