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
900c7e3b
authored
May 22, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
交互优化
parent
f84f4a93
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
33 deletions
doc/XXL-JOB1.3.x用户手册.docx
xxl-job-admin/src/main/java/com/xxl/job/controller/JobInfoController.java
xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/index.ftl
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/index.ftl
xxl-job-admin/src/main/webapp/static/js/jobcode.index.1.js
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
doc/XXL-JOB1.3.x用户手册.docx
deleted
100644 → 0
View file @
f84f4a93
No preview for this file type
xxl-job-admin/src/main/java/com/xxl/job/controller/JobInfoController.java
View file @
900c7e3b
...
@@ -76,7 +76,8 @@ public class JobInfoController {
...
@@ -76,7 +76,8 @@ public class JobInfoController {
@ResponseBody
@ResponseBody
public
ReturnT
<
String
>
add
(
String
jobGroup
,
String
jobName
,
String
jobCron
,
String
jobDesc
,
public
ReturnT
<
String
>
add
(
String
jobGroup
,
String
jobName
,
String
jobCron
,
String
jobDesc
,
String
handler_address
,
String
handler_name
,
String
handler_params
,
String
handler_address
,
String
handler_name
,
String
handler_params
,
String
author
,
String
alarmEmail
,
int
alarmThreshold
,
int
glueSwitch
)
{
String
author
,
String
alarmEmail
,
int
alarmThreshold
,
int
glueSwitch
,
String
glueSource
,
String
glueRemark
)
{
// valid
// valid
if
(
JobGroupEnum
.
match
(
jobGroup
)
==
null
)
{
if
(
JobGroupEnum
.
match
(
jobGroup
)
==
null
)
{
...
@@ -134,8 +135,8 @@ public class JobInfoController {
...
@@ -134,8 +135,8 @@ public class JobInfoController {
jobInfo
.
setAlarmEmail
(
alarmEmail
);
jobInfo
.
setAlarmEmail
(
alarmEmail
);
jobInfo
.
setAlarmThreshold
(
alarmThreshold
);
jobInfo
.
setAlarmThreshold
(
alarmThreshold
);
jobInfo
.
setGlueSwitch
(
glueSwitch
);
jobInfo
.
setGlueSwitch
(
glueSwitch
);
jobInfo
.
setGlueSource
(
null
);
jobInfo
.
setGlueSource
(
glueSource
);
jobInfo
.
setGlueRemark
(
null
);
jobInfo
.
setGlueRemark
(
glueRemark
);
xxlJobInfoDao
.
save
(
jobInfo
);
xxlJobInfoDao
.
save
(
jobInfo
);
try
{
try
{
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/jobcode/index.ftl
View file @
900c7e3b
...
@@ -71,9 +71,6 @@
...
@@ -71,9 +71,6 @@
<div
class=
"input-group-btn"
>
<div
class=
"input-group-btn"
>
<button
type=
"button"
class=
"btn btn-primary"
id=
"save"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"save"
>
保存
</button>
</div>
</div>
<div
class=
"input-group-btn"
>
<button
type=
"button"
class=
"btn btn-default"
id=
"demoCode_btn"
>
DEMO
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -90,27 +87,6 @@
...
@@ -90,27 +87,6 @@
<!-- footer -->
<!-- footer -->
<
@
netCommon
.
commonFooter
/>
<
@
netCommon
.
commonFooter
/>
</div>
</div>
<textarea
id=
"demoCode"
style=
"display:none;"
>
package com.xxl.job.service.handler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.xxl.job.client.handler.IJobHandler;
import com.xxl.job.client.handler.IJobHandler.JobHandleStatus;
public class DemoJobHandler extends IJobHandler {
private static transient Logger logger = LoggerFactory.getLogger(DemoJobHandler.class);
@Override
public JobHandleStatus handle(String... params) throws Exception {
logger.info("XXL-JOB, Hello World.");
return JobHandleStatus.SUCCESS;
}
}
</textarea>
<
@
netCommon
.
comAlert
/>
<
@
netCommon
.
comAlert
/>
<
@
netCommon
.
commonScript
/>
<
@
netCommon
.
commonScript
/>
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/index.ftl
View file @
900c7e3b
...
@@ -154,6 +154,29 @@
...
@@ -154,6 +154,29 @@
</div>
</div>
</div>
</div>
</div>
</div>
<input
type=
"hidden"
name=
"glueRemark"
value=
"GLUE代码初始化"
>
<textarea
name=
"glueSource"
style=
"display:none;"
>
package com.xxl.job.service.handler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.xxl.job.client.handler.IJobHandler;
import com.xxl.job.client.handler.IJobHandler.JobHandleStatus;
public class DemoJobHandler extends IJobHandler {
private static transient Logger logger = LoggerFactory.getLogger(DemoJobHandler.class);
@Override
public JobHandleStatus handle(String... params) throws Exception {
logger.info("XXL-JOB, Hello World.");
return JobHandleStatus.SUCCESS;
}
}
</textarea>
</form>
</form>
</div>
</div>
</div>
</div>
...
...
xxl-job-admin/src/main/webapp/static/js/jobcode.index.1.js
View file @
900c7e3b
...
@@ -14,11 +14,6 @@ $(function() {
...
@@ -14,11 +14,6 @@ $(function() {
codeEditor
.
setValue
(
temp
);
codeEditor
.
setValue
(
temp
);
});
});
// democode
$
(
"#demoCode_btn"
).
click
(
function
()
{
codeEditor
.
setValue
(
$
(
"#demoCode"
).
val
()
);
});
// editor height
// editor height
var
height
=
Math
.
max
(
document
.
documentElement
.
clientHeight
,
document
.
body
.
offsetHeight
);
var
height
=
Math
.
max
(
document
.
documentElement
.
clientHeight
,
document
.
body
.
offsetHeight
);
$
(
".CodeMirror"
).
attr
(
'style'
,
'height:'
+
height
+
'px'
);
$
(
".CodeMirror"
).
attr
(
'style'
,
'height:'
+
height
+
'px'
);
...
...
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js
View file @
900c7e3b
...
@@ -113,7 +113,7 @@ $(function() {
...
@@ -113,7 +113,7 @@ $(function() {
}
}
if
(
row
.
triggerStatus
==
'SUCCESS'
){
if
(
row
.
triggerStatus
==
'SUCCESS'
){
var
temp
=
'<a href="javascript:;" class="logDetail" _id="'
+
row
.
id
+
'">
查看
日志</a>'
;
var
temp
=
'<a href="javascript:;" class="logDetail" _id="'
+
row
.
id
+
'">
执行
日志</a>'
;
if
(
!
row
.
handleStatus
){
if
(
!
row
.
handleStatus
){
temp
+=
'<br><a href="javascript:;" class="logKill" _id="'
+
row
.
id
+
'">终止任务</a>'
;
temp
+=
'<br><a href="javascript:;" class="logKill" _id="'
+
row
.
id
+
'">终止任务</a>'
;
}
}
...
...
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