From bbc5685be06b994769bc5cfbf589ed81a63886fc Mon Sep 17 00:00:00 2001 From: wx <645899409@qq.com> Date: Thu, 25 Dec 2025 16:07:50 +0800 Subject: [PATCH] =?UTF-8?q?update=201.=E4=BF=AE=E6=94=B9=E6=96=B0=E7=96=86?= =?UTF-8?q?=E5=8F=8D=E9=A6=88=E9=97=AE=E9=A2=98=EF=BC=8812.24=EF=BC=89=202?= =?UTF-8?q?.=E4=BF=AE=E6=94=B9=E5=81=A5=E5=BA=B7=E5=92=A8=E8=AF=A2?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E4=B8=8D=E5=AE=9A=E6=97=B6=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HealthConsultationIndex.vue | 30 +++- .../components/healthContentBottomItem1.vue | 16 ++- .../components/healthContentBottomItem2.vue | 16 ++- .../components/healthContentBottomItem3.vue | 16 ++- .../components/healthContentBottomItem4.vue | 16 ++- .../components/healthContentMiddle.vue | 16 ++- .../components/healthContentTop.vue | 16 ++- src/views/indexSun.vue | 4 +- src/views/indexSun/centerMap.vue | 2 +- src/views/indexSun/emerModal.vue | 2 +- src/views/indexSun/heartModal.vue | 13 +- src/views/indexSun/indexSun.ts | 18 +-- src/views/indexSun/oneRightNew.vue | 22 +-- src/views/indexSun/threeLeftNew.vue | 134 ++++++++++++++++-- .../indexSun/threeLeftNewItem/item-d.vue | 21 +-- .../indexSun/threeLeftNewItem/pieCharts.ts | 3 +- .../threeLeftNewItem/threeLeftNewItem.vue | 10 +- 17 files changed, 276 insertions(+), 79 deletions(-) diff --git a/src/views/healthConsultation/HealthConsultationIndex.vue b/src/views/healthConsultation/HealthConsultationIndex.vue index 6ac89d3..1caee86 100644 --- a/src/views/healthConsultation/HealthConsultationIndex.vue +++ b/src/views/healthConsultation/HealthConsultationIndex.vue @@ -13,16 +13,16 @@
- +
- +
- - - - + + + +
@@ -60,6 +60,8 @@ const rightDate = ref(''); const initDate = ref(startTime); const timer = ref(null); + const interval = ref(); + const bKey = ref(0); const pageRef = ref(); const getTime = () => { @@ -79,6 +81,18 @@ updateRightDate(); }, 1000); }; + // 定时器,定时刷新接口 + const startInterval = () => { + if (interval.value) { + clearInterval(interval.value); + } + interval.value = setInterval( + () => { + bKey.value++; + }, + 5 * 60 * 1000 + ); + }; const updateRightDate = () => { rightDate.value = '累计运行时间:' + (dayjs().diff(dayjs(initDate.value), 'days') + 1) + ' 天'; @@ -88,6 +102,7 @@ getTime(); updateRightDate(); startTimer(); // 启动定时器 + startInterval(); // 启动定时器 document.title = '健康咨询平台'; }); @@ -103,6 +118,9 @@ if (timer.value) { clearInterval(timer.value); } + if (interval.value) { + clearInterval(interval.value); + } }); // 健康监测工具报警 diff --git a/src/views/healthConsultation/components/healthContentBottomItem1.vue b/src/views/healthConsultation/components/healthContentBottomItem1.vue index cc30fc1..66338f5 100644 --- a/src/views/healthConsultation/components/healthContentBottomItem1.vue +++ b/src/views/healthConsultation/components/healthContentBottomItem1.vue @@ -6,7 +6,7 @@