// 初始化日期组件
initdatePicker();
/**
* 日期组件初始化.
*
* @returns
*/
function initdatePicker(){
$('#fm_monitor_begTime').datetimepicker({
autoclose: true,
format: 'yyyy-mm-dd hh:ii:ss'
});
$('#fm_monitor_endTime').datetimepicker({
autoclose: true,
format: 'yyyy-mm-dd hh:ii:ss'
});
var curDate = new Date();
$('#fm_monitor_endTime').val(curDate.format("yyyy-MM-dd hh:mm:ss"));
var curTs = curDate.getTime();
curDate.setTime(curTs - 183*24*3600*1000);
$('#fm_monitor_begTime').val(curDate.format("yyyy-MM-dd hh:mm:ss"));
}
var begTime = $("#fm_monitor_begTime").val();
if(begTime == null || begTime == undefined) {
begTime = "";
}
var endTime = $("#fm_monitor_endTime").val();
if(endTime == null || endTime == undefined) {
endTime = "";
}