调度报表优化,支持时间区间筛选;

pull/4/head
xuxueli 7 years ago
parent 01f5ed2206
commit 6675cb37eb

@ -6,7 +6,7 @@
$(function () { $(function () {
// 过滤时间 // 过滤时间
var _startDate = moment().subtract(1, 'months'); var _startDate = moment().subtract(1, 'months'); // 默认,最近一月
var _endDate = moment(); var _endDate = moment();
$('#filterTime').daterangepicker({ $('#filterTime').daterangepicker({
autoApply:false, autoApply:false,
@ -23,7 +23,7 @@ $(function () {
'': [moment().startOf('month'), moment().endOf('month')], '': [moment().startOf('month'), moment().endOf('month')],
'': [moment().subtract(1, 'months').startOf('month'), moment().subtract(1, 'months').endOf('month')], '': [moment().subtract(1, 'months').startOf('month'), moment().subtract(1, 'months').endOf('month')],
'1': [moment().subtract(1, 'weeks'), moment()], '1': [moment().subtract(1, 'weeks'), moment()],
'1': [moment().subtract(1, 'months'), moment()] '1': [_startDate, _endDate]
}, },
locale : { locale : {
format: 'YYYY-MM-DD HH:mm:ss', format: 'YYYY-MM-DD HH:mm:ss',

Loading…
Cancel
Save