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); }, //获取公告和视频