Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
X
XXL-JOB
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
靳帅
XXL-JOB
Commits
0d1925fc
提交
0d1925fc
authored
7月 06, 2019
作者:
xuxueli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
任务日志列表交互优化,操作按钮合并为分割按钮;
上级
9a421fc6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
38 行增加
和
27 行删除
+38
-27
XXL-JOB官方文档.md
doc/XXL-JOB官方文档.md
+1
-0
jobinfo.index.1.js
...job-admin/src/main/resources/static/js/jobinfo.index.1.js
+37
-27
没有找到文件。
doc/XXL-JOB官方文档.md
浏览文件 @
0d1925fc
...
@@ -1501,6 +1501,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
...
@@ -1501,6 +1501,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段
-
14、调度组件销毁流程优化,先停止调度线程,然后等待时间轮内存量任务处理完成,最终销毁时间轮线程;
-
14、调度组件销毁流程优化,先停止调度线程,然后等待时间轮内存量任务处理完成,最终销毁时间轮线程;
-
15、执行器回调线程优化,回调地址为空时销毁问题修复;
-
15、执行器回调线程优化,回调地址为空时销毁问题修复;
-
16、任务日志主键调整为long,防止海量日志情况下数据溢出;
-
16、任务日志主键调整为long,防止海量日志情况下数据溢出;
-
17、任务日志列表交互优化,操作按钮合并为分割按钮;
### 6.26 版本 v2.1.1 Release Notes[规划中]
### 6.26 版本 v2.1.1 Release Notes[规划中]
...
...
xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js
浏览文件 @
0d1925fc
...
@@ -33,7 +33,6 @@ $(function() {
...
@@ -33,7 +33,6 @@ $(function() {
{
{
"data"
:
'jobGroup'
,
"data"
:
'jobGroup'
,
"visible"
:
false
,
"visible"
:
false
,
"width"
:
'20%'
,
"render"
:
function
(
data
,
type
,
row
)
{
"render"
:
function
(
data
,
type
,
row
)
{
var
groupMenu
=
$
(
"#jobGroup"
).
find
(
"option"
);
var
groupMenu
=
$
(
"#jobGroup"
).
find
(
"option"
);
for
(
var
index
in
$
(
"#jobGroup"
).
find
(
"option"
))
{
for
(
var
index
in
$
(
"#jobGroup"
).
find
(
"option"
))
{
...
@@ -100,37 +99,48 @@ $(function() {
...
@@ -100,37 +99,48 @@ $(function() {
},
},
{
{
"data"
:
I18n
.
system_opt
,
"data"
:
I18n
.
system_opt
,
"width"
:
'1
5
%'
,
"width"
:
'1
0
%'
,
"render"
:
function
(
data
,
type
,
row
)
{
"render"
:
function
(
data
,
type
,
row
)
{
return
function
(){
return
function
(){
// status
var
start_stop
=
""
;
// status
var
start_stop_div
=
""
;
if
(
1
==
row
.
triggerStatus
)
{
if
(
1
==
row
.
triggerStatus
)
{
start_stop
=
'<button class="btn btn-primary btn-xs job_operate" _type="job_pause" type="button">'
+
I18n
.
jobinfo_opt_stop
+
'</button>
'
;
start_stop
_div
=
'<li><a href="javascript:void(0);" class="job_operate" _type="job_pause" >'
+
I18n
.
jobinfo_opt_stop
+
'</a></li>
\
n
'
;
}
else
{
}
else
{
start_stop
=
'<button class="btn btn-primary btn-xs job_operate" _type="job_resume" type="button">'
+
I18n
.
jobinfo_opt_start
+
'</button>
'
;
start_stop
_div
=
'<li><a href="javascript:void(0);" class="job_operate" _type="job_resume" >'
+
I18n
.
jobinfo_opt_start
+
'</a></li>
\
n
'
;
}
}
// log url
// log url
var
logUrl
=
base_url
+
'/joblog?jobId='
+
row
.
id
;
var
logHref
=
base_url
+
'/joblog?jobId='
+
row
.
id
;
// log url
// log url
var
codeBtn
=
""
;
var
codeBtn
=
""
;
if
(
'BEAN'
!=
row
.
glueType
)
{
if
(
'BEAN'
!=
row
.
glueType
)
{
var
codeUrl
=
base_url
+
'/jobcode?jobId='
+
row
.
id
;
var
codeUrl
=
base_url
+
'/jobcode?jobId='
+
row
.
id
;
codeBtn
=
'<a href="'
+
codeUrl
+
'" target="_blank" > <button class="btn btn-warning btn-xs" type="button" >GLUE</button> </a> '
codeBtn
=
'<li><a href="'
+
codeUrl
+
'" target="_blank" >GLUE IDE</a></li>
\
n'
;
}
}
// html
// data
tableData
[
'key'
+
row
.
id
]
=
row
;
tableData
[
'key'
+
row
.
id
]
=
row
;
var
html
=
'<p id="'
+
row
.
id
+
'" >'
+
'<button class="btn btn-primary btn-xs job_trigger" type="button">'
+
I18n
.
jobinfo_opt_run
+
'</button> '
+
// opt
start_stop
+
var
html
=
'<div class="btn-group">
\
n'
+
'<a href="'
+
logUrl
+
'"> <button class="btn btn-primary btn-xs" type="job_del" type="button" >'
+
I18n
.
jobinfo_opt_log
+
'</button> </a> <br> '
+
' <button type="button" class="btn btn-primary btn-sm">'
+
I18n
.
system_opt
+
'</button>
\
n'
+
'<button class="btn btn-warning btn-xs update" type="button">'
+
I18n
.
system_opt_edit
+
'</button> '
+
' <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
\
n'
+
codeBtn
+
' <span class="caret"></span>
\
n'
+
'<button class="btn btn-danger btn-xs job_operate" _type="job_del" type="button">'
+
I18n
.
system_opt_del
+
'</button> '
+
' <span class="sr-only">Toggle Dropdown</span>
\
n'
+
'</p>'
;
' </button>
\
n'
+
' <ul class="dropdown-menu" role="menu" _id="'
+
row
.
id
+
'" >
\
n'
+
' <li><a href="javascript:void(0);" class="job_trigger" >'
+
I18n
.
jobinfo_opt_run
+
'</a></li>
\
n'
+
start_stop_div
+
' <li><a href="'
+
logHref
+
'">'
+
I18n
.
jobinfo_opt_log
+
'</a></li>
\
n'
+
' <li class="divider"></li>
\
n'
+
' <li><a href="javascript:void(0);" class="update" >'
+
I18n
.
system_opt_edit
+
'</a></li>
\
n'
+
codeBtn
+
' <li><a href="javascript:void(0);" class="job_operate" _type="job_del" >'
+
I18n
.
system_opt_del
+
'</a></li>
\
n'
+
' </ul>
\
n'
+
' </div>'
;
return
html
;
return
html
;
};
};
...
@@ -201,7 +211,7 @@ $(function() {
...
@@ -201,7 +211,7 @@ $(function() {
return
;
return
;
}
}
var
id
=
$
(
this
).
parent
(
'p'
).
attr
(
"
id"
);
var
id
=
$
(
this
).
parent
s
(
'ul'
).
attr
(
"_
id"
);
layer
.
confirm
(
I18n
.
system_ok
+
typeName
+
'?'
,
{
layer
.
confirm
(
I18n
.
system_ok
+
typeName
+
'?'
,
{
icon
:
3
,
icon
:
3
,
...
@@ -234,7 +244,7 @@ $(function() {
...
@@ -234,7 +244,7 @@ $(function() {
// job trigger
// job trigger
$
(
"#job_list"
).
on
(
'click'
,
'.job_trigger'
,
function
()
{
$
(
"#job_list"
).
on
(
'click'
,
'.job_trigger'
,
function
()
{
var
id
=
$
(
this
).
parent
(
'p'
).
attr
(
"
id"
);
var
id
=
$
(
this
).
parent
s
(
'ul'
).
attr
(
"_
id"
);
var
row
=
tableData
[
'key'
+
id
];
var
row
=
tableData
[
'key'
+
id
];
$
(
"#jobTriggerModal .form input[name='id']"
).
val
(
row
.
id
);
$
(
"#jobTriggerModal .form input[name='id']"
).
val
(
row
.
id
);
...
@@ -404,7 +414,7 @@ $(function() {
...
@@ -404,7 +414,7 @@ $(function() {
// update
// update
$
(
"#job_list"
).
on
(
'click'
,
'.update'
,
function
()
{
$
(
"#job_list"
).
on
(
'click'
,
'.update'
,
function
()
{
var
id
=
$
(
this
).
parent
(
'p'
).
attr
(
"
id"
);
var
id
=
$
(
this
).
parent
s
(
'ul'
).
attr
(
"_
id"
);
var
row
=
tableData
[
'key'
+
id
];
var
row
=
tableData
[
'key'
+
id
];
// base data
// base data
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论