From c33b9c8a238fd04a69f7f73a4caf50f963d991f6 Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Mon, 25 Jul 2016 20:25:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB"=E6=89=A7=E8=A1=8C"=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=E4=BB=BB=E5=8A=A1=E6=89=A7=E8=A1=8C,=E4=B8=8D?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E5=88=B7=E6=96=B0=E4=BB=BB=E5=8A=A1=E5=88=97?= =?UTF-8?q?=E8=A1=A8,=E5=8F=96=E6=B6=88=E4=B9=8B;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/webapp/static/js/jobinfo.index.1.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js b/xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js index ccbff0a9..aaa0dd01 100644 --- a/xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js +++ b/xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js @@ -161,16 +161,21 @@ $(function() { $("#job_list").on('click', '.job_operate',function() { var typeName; var url; + var needFresh = false; + var type = $(this).attr("type"); if ("job_pause" == type) { typeName = "暂停"; url = base_url + "/jobinfo/pause"; + needFresh = true; } else if ("job_resume" == type) { typeName = "恢复"; url = base_url + "/jobinfo/resume"; + needFresh = true; } else if ("job_del" == type) { typeName = "删除"; url = base_url + "/jobinfo/remove"; + needFresh = true; } else if ("job_trigger" == type) { typeName = "执行"; url = base_url + "/jobinfo/trigger"; @@ -193,8 +198,10 @@ $(function() { success : function(data){ if (data.code == 200) { ComAlert.show(1, typeName + "成功", function(){ - //window.location.reload(); - jobTable.fnDraw(); + if (needFresh) { + //window.location.reload(); + jobTable.fnDraw(); + } }); } else { ComAlert.show(1, typeName + "失败");