|
|
@ -839,7 +839,7 @@ function listOrder(skey,type,obj){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取关联列表
|
|
|
|
//获取关联列表
|
|
|
|
function getBtpanelList(){ |
|
|
|
function getPanelList(){ |
|
|
|
var con =''; |
|
|
|
var con =''; |
|
|
|
$.post("/config/get_panel_list",function(rdata){ |
|
|
|
$.post("/config/get_panel_list",function(rdata){ |
|
|
|
for(var i=0; i<rdata.length; i++){ |
|
|
|
for(var i=0; i<rdata.length; i++){ |
|
|
@ -889,7 +889,7 @@ function getBtpanelList(){ |
|
|
|
}); |
|
|
|
}); |
|
|
|
},'json'); |
|
|
|
},'json'); |
|
|
|
} |
|
|
|
} |
|
|
|
getBtpanelList(); |
|
|
|
getPanelList(); |
|
|
|
|
|
|
|
|
|
|
|
//添加面板快捷登录
|
|
|
|
//添加面板快捷登录
|
|
|
|
function bindPanel(a,type,ip,btid,url,user,pw){ |
|
|
|
function bindPanel(a,type,ip,btid,url,user,pw){ |
|
|
@ -920,14 +920,14 @@ function bindPanel(a,type,ip,btid,url,user,pw){ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if(type=="c"){ |
|
|
|
if(type=="c"){ |
|
|
|
gurl = "/config?action=SetPanelInfo"; |
|
|
|
gurl = "/config/set_panel_info"; |
|
|
|
data = data+"&id="+btid; |
|
|
|
data = data+"&id="+btid; |
|
|
|
} |
|
|
|
} |
|
|
|
$.post(gurl, data, function(b) { |
|
|
|
$.post(gurl, data, function(b) { |
|
|
|
if(b.status) { |
|
|
|
if(b.status) { |
|
|
|
layer.closeAll(); |
|
|
|
layer.closeAll(); |
|
|
|
layer.msg(b.msg, {icon: 1}); |
|
|
|
layer.msg(b.msg, {icon: 1}); |
|
|
|
getBtpanelList(); |
|
|
|
getPanelList(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
layer.msg(b.msg, {icon: 2}) |
|
|
|
layer.msg(b.msg, {icon: 2}) |
|
|
|
} |
|
|
|
} |
|
|
@ -978,7 +978,7 @@ function bindPaneldel(id){ |
|
|
|
$.post("/config/del_panel_info","id="+id,function(rdata){ |
|
|
|
$.post("/config/del_panel_info","id="+id,function(rdata){ |
|
|
|
layer.closeAll(); |
|
|
|
layer.closeAll(); |
|
|
|
layer.msg(rdata.msg,{icon:rdata.status?1:2}); |
|
|
|
layer.msg(rdata.msg,{icon:rdata.status?1:2}); |
|
|
|
getBtpanelList(); |
|
|
|
getPanelList(); |
|
|
|
},'json'); |
|
|
|
},'json'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|