mirror of https://github.com/midoks/mdserver-web
parent
3824b394ad
commit
c3b3e3b01c
@ -0,0 +1,11 @@ |
||||
.screen-all { |
||||
padding: 5px; |
||||
} |
||||
|
||||
.s-right .panel-default{ |
||||
margin-bottom: 10px; |
||||
} |
||||
|
||||
.s-left .panel-default{ |
||||
margin-bottom: 10px; |
||||
} |
@ -0,0 +1,11 @@ |
||||
|
||||
/* menu start */ |
||||
.menu .current .menu_dynamic-tracking:hover { |
||||
background-image: url("/plugins/file?name=dynamic-tracking&f=ico.png"); |
||||
} |
||||
|
||||
.menu .menu_plugin_dynamic-tracking { |
||||
background-image: url("/plugins/file?name=dynamic-tracking&f=ico.png"); |
||||
} |
||||
|
||||
/* menu end */ |
@ -0,0 +1,50 @@ |
||||
<style> |
||||
.weblog{ |
||||
font-size: 12px; |
||||
display:inline-block; |
||||
line-height:30px; |
||||
} |
||||
.weblog em{ |
||||
font-style:normal; |
||||
color:#666; |
||||
margin: 0 30px; |
||||
} |
||||
.weblog span{ |
||||
margin-right:5px; |
||||
} |
||||
.weblog a{ |
||||
color:#20a53a; |
||||
} |
||||
.firewall-port-box{ |
||||
margin-bottom:15px; |
||||
} |
||||
</style> |
||||
|
||||
<div class="main-content"> |
||||
<div class="container-fluid" style="padding-bottom: 50px;"> |
||||
<div class="pos-box bgw mtb15"> |
||||
<div class="position f14 c9 pull-left"> |
||||
<a class="plr10 c4" href="/">首页</a>/<span class="plr10 c4">动态追踪</span> |
||||
</div> |
||||
|
||||
<div class="search pull-right"> |
||||
<form target="hid" onsubmit='getLogs(1,$("#SearchValue").prop("value"))'> |
||||
<input type="text" id="SearchValue" class="ser-text pull-left" placeholder="进程ID" /> |
||||
<button type="button" class="ser-sub pull-left" onclick='getLogs(1,$("#SearchValue").prop("value"))'>采样</button> |
||||
</form> |
||||
<iframe name='hid' id="hid" style="display:none"></iframe> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
<div class="white-black-ip bgw mtb15"> |
||||
<div class="black-ip"> |
||||
<div class="def-log"> |
||||
··· |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
<!-- //// --> |
||||
</div> |
||||
</div> |
@ -0,0 +1,54 @@ |
||||
function redisPost(method, version, args,callback){ |
||||
var loadT = layer.msg('正在获取...', { icon: 16, time: 0, shade: 0.3 }); |
||||
|
||||
var req_data = {}; |
||||
req_data['name'] = 'dynamic-tracking'; |
||||
req_data['func'] = method; |
||||
req_data['version'] = version; |
||||
|
||||
if (typeof(args) == 'string'){ |
||||
req_data['args'] = JSON.stringify(toArrayObject(args)); |
||||
} else { |
||||
req_data['args'] = JSON.stringify(args); |
||||
} |
||||
|
||||
$.post('/plugins/run', req_data, function(data) { |
||||
layer.close(loadT); |
||||
if (!data.status){ |
||||
//错误展示10S
|
||||
layer.msg(data.msg,{icon:0,time:2000,shade: [10, '#000']}); |
||||
return; |
||||
} |
||||
|
||||
if(typeof(callback) == 'function'){ |
||||
callback(data); |
||||
} |
||||
},'json');
|
||||
} |
||||
|
||||
function redisPostCallbak(method, version, args,callback){ |
||||
var loadT = layer.msg('正在获取...', { icon: 16, time: 0, shade: 0.3 }); |
||||
|
||||
var req_data = {}; |
||||
req_data['name'] = 'dynamic-tracking'; |
||||
req_data['func'] = method; |
||||
args['version'] = version; |
||||
|
||||
if (typeof(args) == 'string'){ |
||||
req_data['args'] = JSON.stringify(toArrayObject(args)); |
||||
} else { |
||||
req_data['args'] = JSON.stringify(args); |
||||
} |
||||
|
||||
$.post('/plugins/callback', req_data, function(data) { |
||||
layer.close(loadT); |
||||
if (!data.status){ |
||||
layer.msg(data.msg,{icon:0,time:2000,shade: [0.3, '#000']}); |
||||
return; |
||||
} |
||||
|
||||
if(typeof(callback) == 'function'){ |
||||
callback(data); |
||||
} |
||||
},'json');
|
||||
} |
Loading…
Reference in new issue