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
c33b9c8a
authored
Jul 25, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
点击"执行"触发任务执行,不应该刷新任务列表,取消之;
parent
57abd14b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js
View file @
c33b9c8a
...
@@ -161,16 +161,21 @@ $(function() {
...
@@ -161,16 +161,21 @@ $(function() {
$
(
"#job_list"
).
on
(
'click'
,
'.job_operate'
,
function
()
{
$
(
"#job_list"
).
on
(
'click'
,
'.job_operate'
,
function
()
{
var
typeName
;
var
typeName
;
var
url
;
var
url
;
var
needFresh
=
false
;
var
type
=
$
(
this
).
attr
(
"type"
);
var
type
=
$
(
this
).
attr
(
"type"
);
if
(
"job_pause"
==
type
)
{
if
(
"job_pause"
==
type
)
{
typeName
=
"暂停"
;
typeName
=
"暂停"
;
url
=
base_url
+
"/jobinfo/pause"
;
url
=
base_url
+
"/jobinfo/pause"
;
needFresh
=
true
;
}
else
if
(
"job_resume"
==
type
)
{
}
else
if
(
"job_resume"
==
type
)
{
typeName
=
"恢复"
;
typeName
=
"恢复"
;
url
=
base_url
+
"/jobinfo/resume"
;
url
=
base_url
+
"/jobinfo/resume"
;
needFresh
=
true
;
}
else
if
(
"job_del"
==
type
)
{
}
else
if
(
"job_del"
==
type
)
{
typeName
=
"删除"
;
typeName
=
"删除"
;
url
=
base_url
+
"/jobinfo/remove"
;
url
=
base_url
+
"/jobinfo/remove"
;
needFresh
=
true
;
}
else
if
(
"job_trigger"
==
type
)
{
}
else
if
(
"job_trigger"
==
type
)
{
typeName
=
"执行"
;
typeName
=
"执行"
;
url
=
base_url
+
"/jobinfo/trigger"
;
url
=
base_url
+
"/jobinfo/trigger"
;
...
@@ -193,8 +198,10 @@ $(function() {
...
@@ -193,8 +198,10 @@ $(function() {
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
ComAlert
.
show
(
1
,
typeName
+
"成功"
,
function
(){
ComAlert
.
show
(
1
,
typeName
+
"成功"
,
function
(){
if
(
needFresh
)
{
//window.location.reload();
//window.location.reload();
jobTable
.
fnDraw
();
jobTable
.
fnDraw
();
}
});
});
}
else
{
}
else
{
ComAlert
.
show
(
1
,
typeName
+
"失败"
);
ComAlert
.
show
(
1
,
typeName
+
"失败"
);
...
...
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