Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c08984b5
authored
Mar 25, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
时间区域选择区间优化
parent
e4b6303a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
View file @
c08984b5
...
@@ -31,22 +31,25 @@ $(function() {
...
@@ -31,22 +31,25 @@ $(function() {
// 过滤时间
// 过滤时间
$
(
'#filterTime'
).
daterangepicker
({
$
(
'#filterTime'
).
daterangepicker
({
timePicker
:
true
,
//是否显示小时和分钟
autoApply
:
false
,
timePickerIncrement
:
10
,
//时间的增量,单位为分钟
singleDatePicker
:
false
,
timePicker12Hour
:
false
,
//是否使用12小时制来显示时间
showDropdowns
:
false
,
// 是否显示年月选择条件
format
:
'YYYY-MM-DD HH:mm:ss'
,
timePicker
:
true
,
// 是否显示小时和分钟选择条件
separator
:
' - '
,
timePickerIncrement
:
10
,
// 时间的增量,单位为分钟
timePicker24Hour
:
true
,
opens
:
'left'
,
//日期选择框的弹出位置
ranges
:
{
ranges
:
{
'最近1小时'
:
[
moment
().
subtract
(
1
,
'hours'
),
moment
()],
'最近1小时'
:
[
moment
().
subtract
(
1
,
'hours'
),
moment
()],
'今日'
:
[
moment
()
,
moment
(
)],
'今日'
:
[
moment
()
.
startOf
(
'day'
),
moment
().
endOf
(
'day'
)],
'昨日'
:
[
moment
().
subtract
(
1
,
'days'
)
,
moment
().
subtract
(
1
,
'days
'
)],
'昨日'
:
[
moment
().
subtract
(
1
,
'days'
)
.
startOf
(
'day'
),
moment
().
subtract
(
1
,
'days'
).
endOf
(
'day
'
)],
'最近7日'
:
[
moment
().
subtract
(
6
,
'days'
),
moment
()],
'最近7日'
:
[
moment
().
subtract
(
6
,
'days'
),
moment
()],
'最近30日'
:
[
moment
().
subtract
(
29
,
'days'
),
moment
()],
'最近30日'
:
[
moment
().
subtract
(
29
,
'days'
),
moment
()],
'本月'
:
[
moment
().
startOf
(
'month'
),
moment
().
endOf
(
'month'
)],
'本月'
:
[
moment
().
startOf
(
'month'
),
moment
().
endOf
(
'month'
)],
'上个月'
:
[
moment
().
subtract
(
1
,
'month'
).
startOf
(
'month'
),
moment
().
subtract
(
1
,
'month'
).
endOf
(
'month'
)]
'上个月'
:
[
moment
().
subtract
(
1
,
'month'
).
startOf
(
'month'
),
moment
().
subtract
(
1
,
'month'
).
endOf
(
'month'
)]
},
},
opens
:
'left'
,
//日期选择框的弹出位置
locale
:
{
locale
:
{
format
:
'YYYY-MM-DD HH:mm:ss'
,
separator
:
' - '
,
customRangeLabel
:
'自定义'
,
customRangeLabel
:
'自定义'
,
applyLabel
:
'确定'
,
applyLabel
:
'确定'
,
cancelLabel
:
'取消'
,
cancelLabel
:
'取消'
,
...
@@ -54,10 +57,11 @@ $(function() {
...
@@ -54,10 +57,11 @@ $(function() {
toLabel
:
'结束时间'
,
toLabel
:
'结束时间'
,
daysOfWeek
:
[
'日'
,
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
],
daysOfWeek
:
[
'日'
,
'一'
,
'二'
,
'三'
,
'四'
,
'五'
,
'六'
],
monthNames
:
[
'一月'
,
'二月'
,
'三月'
,
'四月'
,
'五月'
,
'六月'
,
'七月'
,
'八月'
,
'九月'
,
'十月'
,
'十一月'
,
'十二月'
],
monthNames
:
[
'一月'
,
'二月'
,
'三月'
,
'四月'
,
'五月'
,
'六月'
,
'七月'
,
'八月'
,
'九月'
,
'十月'
,
'十一月'
,
'十二月'
],
firstDay
:
1
firstDay
:
1
,
startDate
:
moment
().
startOf
(
'day'
),
endDate
:
moment
().
endOf
(
'day'
)
}
}
});
});
$
(
'#filterTime'
).
val
(
moment
(
new
Date
()).
format
(
"YYYY-MM-DD 00:00:00"
)
+
' - '
+
moment
(
new
Date
()).
add
(
1
,
'days'
).
format
(
"YYYY-MM-DD 00:00:00"
)
);
// YYYY-MM-DD HH:mm:ss
// init date tables
// init date tables
var
logTable
=
$
(
"#joblog_list"
).
dataTable
({
var
logTable
=
$
(
"#joblog_list"
).
dataTable
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment