修改日期選擇

This commit is contained in:
dev02 2023-08-03 14:30:28 +08:00
parent b17952ed2c
commit e4fe1cd334

View File

@ -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');