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
aeb1df7e
authored
May 08, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
弹框组件统一替换为layer;
parent
00cd63c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
76 deletions
README.md
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
xxl-job-admin/src/main/webapp/static/js/xxl.alert.1.js
README.md
View file @
aeb1df7e
...
@@ -814,6 +814,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
...
@@ -814,6 +814,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
-
4、JettyServer关闭逻辑优化,修复执行器无法正常关闭导致端口占用和频繁打印c3p0日志的问题;
-
4、JettyServer关闭逻辑优化,修复执行器无法正常关闭导致端口占用和频繁打印c3p0日志的问题;
-
5、JobHandler中开启子线程时,支持子线程输出执行日志并通过Rolling查看。
-
5、JobHandler中开启子线程时,支持子线程输出执行日志并通过Rolling查看。
-
6、任务日志清理功能;
-
6、任务日志清理功能;
-
7、弹框组件统一替换为layer;
#### TODO LIST
#### TODO LIST
-
1、任务并行触发处理规则:单机串行队列(默认)、单机并行、串行忽略、单机覆盖;
-
1、任务并行触发处理规则:单机串行队列(默认)、单机并行、串行忽略、单机覆盖;
...
...
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
View file @
aeb1df7e
...
@@ -19,7 +19,11 @@ $(function() {
...
@@ -19,7 +19,11 @@ $(function() {
$
(
"#jobId"
).
find
(
"option[value='"
+
$
(
"#jobId"
).
attr
(
"paramVal"
)
+
"']"
).
attr
(
"selected"
,
true
);
$
(
"#jobId"
).
find
(
"option[value='"
+
$
(
"#jobId"
).
attr
(
"paramVal"
)
+
"']"
).
attr
(
"selected"
,
true
);
}
}
}
else
{
}
else
{
ComAlertTec
.
show
(
data
.
msg
);
layer
.
open
({
title
:
'系统提示'
,
content
:
(
data
.
msg
||
"接口异常"
),
icon
:
'2'
});
}
}
},
},
});
});
...
@@ -188,12 +192,6 @@ $(function() {
...
@@ -188,12 +192,6 @@ $(function() {
}
}
});
});
// 任务数据
$
(
'#joblog_list'
).
on
(
'click'
,
'.logMsg'
,
function
(){
var
msg
=
$
(
this
).
find
(
'span'
).
html
();
ComAlert
.
show
(
2
,
msg
);
});
// 日志弹框提示
// 日志弹框提示
$
(
'#joblog_list'
).
on
(
'click'
,
'.logTips'
,
function
(){
$
(
'#joblog_list'
).
on
(
'click'
,
'.logTips'
,
function
(){
var
msg
=
$
(
this
).
find
(
'span'
).
html
();
var
msg
=
$
(
this
).
find
(
'span'
).
html
();
...
@@ -211,22 +209,6 @@ $(function() {
...
@@ -211,22 +209,6 @@ $(function() {
window
.
open
(
base_url
+
'/joblog/logDetailPage?id='
+
_id
);
window
.
open
(
base_url
+
'/joblog/logDetailPage?id='
+
_id
);
return
;
return
;
/*
$.ajax({
type : 'POST',
url : base_url + '/joblog/logDetail',
data : {"id":_id},
dataType : "json",
success : function(data){
if (data.code == 200) {
ComAlertTec.show('<pre style="color: white;background-color: black;width2:'+ $(window).width()*2/3 +'px;" >'+ data.content +'</pre>');
} else {
ComAlertTec.show(data.msg);
}
},
});
*/
});
});
/**
/**
...
@@ -234,22 +216,36 @@ $(function() {
...
@@ -234,22 +216,36 @@ $(function() {
*/
*/
$
(
'#joblog_list'
).
on
(
'click'
,
'.logKill'
,
function
(){
$
(
'#joblog_list'
).
on
(
'click'
,
'.logKill'
,
function
(){
var
_id
=
$
(
this
).
attr
(
'_id'
);
var
_id
=
$
(
this
).
attr
(
'_id'
);
ComConfirm
.
show
(
"确认主动终止任务?"
,
function
(){
$
.
ajax
({
layer
.
confirm
(
'确认主动终止任务?'
,
{
icon
:
3
,
title
:
'系统提示'
},
function
(
index
){
type
:
'POST'
,
layer
.
close
(
index
);
url
:
base_url
+
'/joblog/logKill'
,
data
:
{
"id"
:
_id
},
$
.
ajax
({
dataType
:
"json"
,
type
:
'POST'
,
success
:
function
(
data
){
url
:
base_url
+
'/joblog/logKill'
,
if
(
data
.
code
==
200
)
{
data
:
{
"id"
:
_id
},
ComAlert
.
show
(
1
,
'操作成功'
);
dataType
:
"json"
,
logTable
.
fnDraw
();
success
:
function
(
data
){
}
else
{
if
(
data
.
code
==
200
)
{
ComAlert
.
show
(
2
,
data
.
msg
);
layer
.
open
({
}
title
:
'系统提示'
,
},
content
:
'操作成功'
,
});
icon
:
'1'
,
});
end
:
function
(
layero
,
index
){
logTable
.
fnDraw
();
}
});
}
else
{
layer
.
open
({
title
:
'系统提示'
,
content
:
(
data
.
msg
||
"操作失败"
),
icon
:
'2'
});
}
},
});
});
});
});
/**
/**
...
@@ -298,3 +294,41 @@ $(function() {
...
@@ -298,3 +294,41 @@ $(function() {
});
});
});
});
// 提示-科技主题
var
ComAlertTec
=
{
html
:
function
(){
var
html
=
'<div class="modal fade" id="ComAlertTec" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">'
+
'<div class="modal-dialog">'
+
'<div class="modal-content-tec">'
+
'<div class="modal-body"><div class="alert" style="color:#fff;"></div></div>'
+
'<div class="modal-footer">'
+
'<div class="text-center" >'
+
'<button type="button" class="btn btn-info ok" data-dismiss="modal" >确认</button>'
+
'</div>'
+
'</div>'
+
'</div>'
+
'</div>'
+
'</div>'
;
return
html
;
},
show
:
function
(
msg
,
callback
){
// dom init
if
(
$
(
'#ComAlertTec'
).
length
==
0
){
$
(
'body'
).
append
(
ComAlertTec
.
html
());
}
// 弹框初始
$
(
'#ComAlertTec .alert'
).
html
(
msg
);
$
(
'#ComAlertTec'
).
modal
(
'show'
);
$
(
'#ComAlertTec .ok'
).
click
(
function
(){
$
(
'#ComAlertTec'
).
modal
(
'hide'
);
if
(
typeof
callback
==
'function'
)
{
callback
();
}
});
}
};
xxl-job-admin/src/main/webapp/static/js/xxl.alert.1.js
View file @
aeb1df7e
...
@@ -96,39 +96,3 @@ var ComConfirm = {
...
@@ -96,39 +96,3 @@ var ComConfirm = {
});
});
}
}
};
};
// 提示-科技主题
var
ComAlertTec
=
{
html
:
function
(){
var
html
=
'<div class="modal fade" id="ComAlertTec" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">'
+
'<div class="modal-dialog">'
+
'<div class="modal-content-tec">'
+
'<div class="modal-body"><div class="alert" style="color:#fff;"></div></div>'
+
'<div class="modal-footer">'
+
'<div class="text-center" >'
+
'<button type="button" class="btn btn-info ok" data-dismiss="modal" >确认</button>'
+
'</div>'
+
'</div>'
+
'</div>'
+
'</div>'
+
'</div>'
;
return
html
;
},
show
:
function
(
msg
,
callback
){
// dom init
if
(
$
(
'#ComAlertTec'
).
length
==
0
){
$
(
'body'
).
append
(
ComAlertTec
.
html
());
}
// 弹框初始
$
(
'#ComAlertTec .alert'
).
html
(
msg
);
$
(
'#ComAlertTec'
).
modal
(
'show'
);
$
(
'#ComAlertTec .ok'
).
click
(
function
(){
$
(
'#ComAlertTec'
).
modal
(
'hide'
);
if
(
typeof
callback
==
'function'
)
{
callback
();
}
});
}
};
\ No newline at end of file
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