From 11f31762ad797cf2acfea49b4bd19f89c62bc787 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 6 Aug 2026 09:29:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B5=E9=A6=96=E5=BC=80=E5=A7=8B/?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E6=97=A5=E6=9C=9F=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E5=86=99=E5=85=A5=E9=BB=98=E8=AE=A4=E5=80=BC(=E8=BF=9130?= =?UTF-8?q?=E5=A4=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- charts/news_reports.php | 2 +- js/newsReports.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/news_reports.php b/charts/news_reports.php index 2fa6d79..67a581b 100644 --- a/charts/news_reports.php +++ b/charts/news_reports.php @@ -226,6 +226,6 @@ 数据来源: api.doorcome.cn 日报接口 · 仅供个人研究参考 - + diff --git a/js/newsReports.js b/js/newsReports.js index b0b6faf..25bbc61 100644 --- a/js/newsReports.js +++ b/js/newsReports.js @@ -22,6 +22,10 @@ var NewsReports = { this.state.startDate = this.fmtDate(start); this.state.endDate = this.fmtDate(now); + // 默认值写入日期输入框 (开始=30天前, 结束=今天) + $('#startDate').val(this.state.startDate); + $('#endDate').val(this.state.endDate); + this.bindEvents(); this.loadReports(); },