feat: 页首开始/结束日期输入框写入默认值(近30天)
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user