From 6ea1b9f23f102ae8e17d21fc27cfe4b9dae34603 Mon Sep 17 00:00:00 2001 From: liwei Date: Fri, 12 Nov 2021 11:17:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/DataP/index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/DataP/index.vue b/src/views/DataP/index.vue index daa7a1c..4d45cb8 100644 --- a/src/views/DataP/index.vue +++ b/src/views/DataP/index.vue @@ -117,6 +117,14 @@ export default { this.title=this.titleData[this.getQueryVariable('type')]?this.titleData[this.getQueryVariable('type')].title:'' }, methods: { + // setTimeData + setTimeData(){ + this.time=moment().format('YYYY-MM-DD'); + this.getData(); + setTimeout(()=>{ + this.setTimeData(); + },360000) + }, // 根据状态获取色值 colorValue(status){ return this.orderColors[status];