From 0bfc5ab22e688fed273c887818d93f02d7d7793a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E7=9A=87?= <236220500@qq.com> Date: Mon, 6 Dec 2021 16:06:53 +0800 Subject: [PATCH] =?UTF-8?q?dashboard=E6=97=A5=E6=9C=9FT-1=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=8A=8A=E6=9D=A1=E4=BB=B6=E5=B8=A6=E5=88=B0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/widget/DeWidget/DeDate.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue index 14ac352..ead9bc2 100644 --- a/frontend/src/components/widget/DeWidget/DeDate.vue +++ b/frontend/src/components/widget/DeWidget/DeDate.vue @@ -46,6 +46,7 @@ export default { start.setTime(start.getTime() - 3600 * 1000 * 24 * 1); this.options.value = start; console.log("date", this.options, start); + this.setCondition() } else if (this.options.attrs.type === "daterange") { const end = new Date(); end.setTime(end.getTime() - 3600 * 1000 * 24 * 1); @@ -53,6 +54,7 @@ export default { start.setTime(start.getTime() - 3600 * 1000 * 24 * 8); this.options.value = [start, end]; console.log("daterange", this.options); + this.setCondition() } else { this.options.value = null; }