日志Console

master
xueli.xue 8 years ago
parent 6aab96d014
commit f8b8a1918c
  1. 15
      xxl-job-admin/src/main/webapp/WEB-INF/template/joblog/joblog.detail.ftl
  2. 3
      xxl-job-admin/src/main/webapp/static/js/joblog.detail.1.js

@ -44,13 +44,18 @@
</header> </header>
<div class="content-wrapper" > <div class="content-wrapper" >
<pre style="font-size:12px;position: absolute; height:100%;width:100%;" id="logConsolePre" > <section class="content">
<div id="logConsole"></div> <pre style="font-size:12px;position:relative;" >
<li class="fa fa-refresh fa-spin" style="font-size: 20px;float: left;" id="logConsoleRunning" ></li> <div id="logConsole"></div>
<div><hr><hr></div> <li class="fa fa-refresh fa-spin" style="font-size: 20px;float: left;" id="logConsoleRunning" ></li>
</pre> <div><hr><hr></div>
</pre>
</section>
</div> </div>
<!-- footer -->
<@netCommon.commonFooter />
</div> </div>
<@netCommon.commonScript /> <@netCommon.commonScript />

@ -58,8 +58,7 @@ $(function() {
pullFailCount = 0; pullFailCount = 0;
// scroll to bottom // scroll to bottom
//scrollTo(0, document.body.scrollHeight); scrollTo(0, document.body.scrollHeight); // $('#logConsolePre').scrollTop( document.body.scrollHeight + 300 );
$('#logConsolePre').scrollTop( document.body.scrollHeight + 300 );
} else { } else {
console.log('pullLog fail:'+data.msg); console.log('pullLog fail:'+data.msg);

Loading…
Cancel
Save