From 7a1168239d06000f732fa38d598825b68120f036 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 6 Aug 2025 08:59:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E8=8A=AF=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E5=B7=A5=E6=AE=B5=E5=9B=BE=E6=A0=87=E5=9D=90=E6=A0=87=E8=BD=B4?= =?UTF-8?q?=E5=8F=98=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bigScreen/index_gx.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/views/bigScreen/index_gx.vue b/src/views/bigScreen/index_gx.vue index 99e25301..976b567f 100644 --- a/src/views/bigScreen/index_gx.vue +++ b/src/views/bigScreen/index_gx.vue @@ -609,16 +609,23 @@ export default { that.addListener(); }) that.setIntervals = setInterval(function () { + let nowDate = new Date(); + that.currentYear = nowDate.getFullYear(); + that.currentMonth = nowDate.getMonth() + 1; + that.currentDay = nowDate.getDate(); + let dayArr = []; + for(let i=6;i>-1;i--){ + let date = new Date(nowDate.getTime()-i*24*60*60*1000); + let day = date.getDate(); + dayArr.push(day); + } + that.dayArr = dayArr; that.getCountnotok(); that.getMaterials(); that.getMgroup(); that.getTaskNumber(); that.getArticles(); that.getpurinrate(); - let nowDate = new Date(); - that.currentYear = nowDate.getFullYear(); - that.currentMonth = nowDate.getMonth() + 1; - that.currentDay = nowDate.getDate(); }, 300000); }, //获取公告和视频