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
d4b3045f
authored
Jul 20, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新RM
parent
c949a30c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
23 deletions
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/jobinfo.index.ftl
View file @
d4b3045f
...
...
@@ -7,6 +7,12 @@
<!-- 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,17 +227,20 @@ 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>
...
...
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
View file @
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'
);
...
...
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