Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
粉色的八爪鱼
xxl-job
提交
d4b3045f
X
xxl-job
项目概览
粉色的八爪鱼
/
xxl-job
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
xxl-job
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d4b3045f
编写于
7月 20, 2016
作者:
X
xueli.xue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新RM
上级
c949a30c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
24 deletion
+27
-24
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
...rc/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
+18
-10
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
+9
-14
未找到文件。
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
浏览文件 @
d4b3045f
...
...
@@ -6,7 +6,13 @@
<
@
netCommon.commonStyle
/>
<!-- DataTables -->
<link
rel=
"stylesheet"
href=
"${request.contextPath}/static/adminlte/plugins/datatables/dataTables.bootstrap.css"
>
<
#--
select2
<
link
rel=
"stylesheet"
href=
"${request.contextPath}/static/adminlte/plugins/select2/select2.min.css"
>
<script
src=
"${request.contextPath}/static/adminlte/plugins/select2/select2.min.js"
></script>
//$(".select2").select2();
-->
</head>
<body
class=
"hold-transition skin-blue sidebar-mini <#if cookieMap?exists && "
off
"
==
cookieMap
["
adminlte_settings
"].
value
>
sidebar-collapse
</
#
if>
">
<div
class=
"wrapper"
>
...
...
@@ -146,6 +152,7 @@
</select>
</div>
</div>
<hr>
<div
class=
"form-group"
>
<div
class=
"col-sm-offset-3 col-sm-6"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
保存
</button>
...
...
@@ -193,9 +200,7 @@ public class DemoJobHandler extends IJobHandler {
<div
class=
"form-group"
>
<label
for=
"firstname"
class=
"col-sm-2 control-label"
>
分组
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
>
<input
type=
"text"
class=
"form-control"
name=
"jobGroupTitle"
maxlength=
"50"
readonly
>
<input
type=
"hidden"
name=
"jobGroup"
>
<input
type=
"hidden"
name=
"jobName"
>
<input
type=
"text"
class=
"form-control jobGroupTitle"
maxlength=
"50"
readonly
>
</div>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
名称
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
><input
type=
"text"
class=
"form-control"
name=
"jobDesc"
placeholder=
"请输入“描述”"
maxlength=
"50"
></div>
...
...
@@ -222,18 +227,21 @@ public class DemoJobHandler extends IJobHandler {
<div
class=
"form-group"
>
<label
for=
"firstname"
class=
"col-sm-2 control-label"
>
任务模式
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-4"
>
<input
type=
"text"
class=
"form-control"
name=
"glueSwitchTitle"
readonly
>
</div>
<label
for=
"lastname"
class=
"col-sm-2 control-label"
>
JobKey
</label>
<div
class=
"col-sm-4"
>
<input
type=
"text"
class=
"form-control"
name=
"jobKey"
placeholder=
"请输入“jobHandler”"
readonly
>
<input
type=
"text"
class=
"form-control glueSwitchTitle"
readonly
>
</div>
</div>
<hr>
<div
class=
"form-group"
>
<div
class=
"col-sm-offset-3 col-sm-
6
"
>
<div
class=
"col-sm-offset-3 col-sm-
3
"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
取消
</button>
<input
type=
"hidden"
name=
"jobGroup"
>
<input
type=
"hidden"
name=
"jobName"
>
</div>
<label
for=
"firstname"
class=
"col-sm-2 control-label"
>
JobKey
</label>
<div
class=
"col-sm-4"
>
<input
type=
"text"
class=
"form-control jobKey"
readonly
>
</div>
</div>
</form>
</div>
...
...
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
浏览文件 @
d4b3045f
...
...
@@ -302,22 +302,17 @@ $(function() {
$
(
"
#updateModal .form input[name='alarmEmail']
"
).
val
(
$
(
this
).
parent
(
'
p
'
).
attr
(
"
alarmEmail
"
));
$
(
"
#updateModal .form input[name='alarmThreshold']
"
).
val
(
$
(
this
).
parent
(
'
p
'
).
attr
(
"
alarmThreshold
"
));
// job
group selected
// job
GroupTitle
var
jobGroupTitle
=
$
(
"
#addModal .form select[name='jobGroup']
"
).
find
(
"
option[value='
"
+
$
(
this
).
parent
(
'
p
'
).
attr
(
"
jobGroup
"
)
+
"
']
"
).
text
();
$
(
"
#updateModal .form input[name='jobGroupTitle']
"
).
val
(
jobGroupTitle
);
$
(
"
#updateModal .form .jobGroupTitle
"
).
val
(
jobGroupTitle
);
// jobKey
var
jobKey
=
$
(
this
).
parent
(
'
p
'
).
attr
(
"
jobGroup
"
)
+
"
_
"
+
$
(
this
).
parent
(
'
p
'
).
attr
(
"
jobName
"
);
$
(
"
#updateModal .form .jobKey
"
).
val
(
jobKey
);
// glueSwitchTitle
$
(
"
#updateModal .form .glueSwitchTitle
"
).
val
(
(
$
(
this
).
parent
(
'
p
'
).
attr
(
"
glueSwitch
"
)
==
0
)?
"
BEAN模式
"
:
"
GLUE模式
"
);
// glueSwitch and jobKey
var
glueSwitchTitle
;
var
jobKey
;
if
(
$
(
this
).
parent
(
'
p
'
).
attr
(
"
glueSwitch
"
)
==
0
)
{
glueSwitchTitle
=
"
BEAN模式
"
;
jobKey
=
$
(
this
).
parent
(
'
p
'
).
attr
(
"
jobGroup
"
)
+
"
_
"
+
$
(
this
).
parent
(
'
p
'
).
attr
(
"
jobName
"
);
}
else
{
glueSwitchTitle
=
"
GLUE模式
"
;
jobKey
=
"
无
"
;
}
$
(
"
#updateModal .form input[name='glueSwitchTitle']
"
).
val
(
glueSwitchTitle
);
$
(
"
#updateModal .form input[name='jobKey']
"
).
val
(
jobKey
);
// show
$
(
'
#updateModal
'
).
modal
({
backdrop
:
false
,
keyboard
:
false
}).
modal
(
'
show
'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录