interface_wev8.js
1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
*部署单个接口
*fromPage 标志来自哪个页面
*/
function doDeploy(id,fromPage){
if(fromPage){}else{fromPage=1;}
if(confirm("此操作需要重启服务,请确认")){
jQuery("#ids").val(id);
jQuery("#interface").attr("action","/weaver/weaver.admincenter.servlet.InterfaceServlet?src=deploy&fromPage="+fromPage);
jQuery("#interface").submit();
}
}
/**
*批量部署接口
*fromPage 标志来自哪个页面
*/
function doMultiDeploy(fromPage){
if(fromPage){}else{fromPage=1;}
var checks = jQuery("input[name='chkInTableTag']:checked");
var ids = "";
checks.each(function(){
if(ids==""){
ids = jQuery(this).attr("checkboxid");
}else{
ids += "," + jQuery(this).attr("checkboxid");
}
});
if(ids==""){
alert("请选择要部署的记录!");
return;
}
if(confirm("此操作需要重启服务,请确认")){
jQuery("#ids").val(ids);
jQuery("#interface").attr("action","/weaver/weaver.admincenter.servlet.InterfaceServlet?src=deploy&fromPage="+fromPage);
jQuery("#interface").submit();
}
}