From e4fe1cd3344df579e91d2d60767ad796a823e9ec Mon Sep 17 00:00:00 2001 From: dev02 Date: Thu, 3 Aug 2023 14:30:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E6=9C=9F=E9=81=B8?= =?UTF-8?q?=E6=93=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/_historyData.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Frontend/_historyData.html b/Frontend/_historyData.html index 2f876b8..4ee51cc 100644 --- a/Frontend/_historyData.html +++ b/Frontend/_historyData.html @@ -326,9 +326,9 @@ $('#his_startdate').val(date); if (type == "today") - getData(formatDate(now, "date", true), formatDate(tmr, "date", true)); + getData(formatDate(now, "date", true), formatDate(now, "date", true)); else if (type == "ytd") - getData(formatDate(ytd, "date", true), formatDate(now, "date", true)); + getData(formatDate(ytd, "date", true), formatDate(ytd, "date", true)); else { $(`[onclick="setDateType('today', this)"]`).removeClass('btn-secondary'); $(`[onclick="setDateType('today', this)"]`).addClass('btn-info'); @@ -367,8 +367,8 @@ let start = new Date($('#his_startdate').val()); let end = new Date($('#his_enddate input').val()); - if (pageAct.dateType == "today" || pageAct.dateType == "day" || pageAct.dateType == "ytd") - end = start; + if (pageAct.dateType == "today" || pageAct.dateType == "day" || pageAct.dateType == "ytd") + end = start; else if (pageAct.dateType == "month") { start = new Date($('#getmonth').val()); end = new Date(start.valueOf()).setMonth(start.getMonth() + 1);