feat(test_data): 搜索页面增加时分秒时间筛选
- HTML: 日期范围旁加 time input (step=1s),标签改为'时间范围' - JS: 新增 getDatetime() 合并日期+时间,统一查/导出/图表/删除 - 后端: date 参数智能判断,纯日期自动补 23:59:59,带时间原样使用
This commit is contained in:
@@ -16,10 +16,12 @@
|
||||
<input type="text" id="search-serial" placeholder="输入设备编码搜索...">
|
||||
</label>
|
||||
<label>
|
||||
日期范围:
|
||||
时间范围:
|
||||
<input type="date" id="search-date-from">
|
||||
<input type="time" id="search-time-from" step="1" style="width:110px;" title="起始时间(时:分:秒)">
|
||||
至
|
||||
<input type="date" id="search-date-to">
|
||||
<input type="time" id="search-time-to" step="1" style="width:110px;" title="截止时间(时:分:秒)">
|
||||
</label>
|
||||
<button onclick="searchData(1)" class="btn-search">搜索</button>
|
||||
<button onclick="exportCSV()" class="btn-export">导出 CSV</button>
|
||||
|
||||
Reference in New Issue
Block a user