Skip to content

Commit

Permalink
日志Console
Browse files Browse the repository at this point in the history
  • Loading branch information
xueli.xue committed Mar 27, 2017
1 parent 6aab96d commit f8b8a19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,18 @@
</header>

<div class="content-wrapper" >
<pre style="font-size:12px;position: absolute; height:100%;width:100%;" id="logConsolePre" >
<div id="logConsole"></div>
<li class="fa fa-refresh fa-spin" style="font-size: 20px;float: left;" id="logConsoleRunning" ></li>
<div><hr><hr></div>
</pre>
<section class="content">
<pre style="font-size:12px;position:relative;" >
<div id="logConsole"></div>
<li class="fa fa-refresh fa-spin" style="font-size: 20px;float: left;" id="logConsoleRunning" ></li>
<div><hr><hr></div>
</pre>
</section>
</div>

<!-- footer -->
<@netCommon.commonFooter />

</div>

<@netCommon.commonScript />
Expand Down
3 changes: 1 addition & 2 deletions xxl-job-admin/src/main/webapp/static/js/joblog.detail.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ $(function() {
pullFailCount = 0;

// scroll to bottom
//scrollTo(0, document.body.scrollHeight);
$('#logConsolePre').scrollTop( document.body.scrollHeight + 300 );
scrollTo(0, document.body.scrollHeight); // $('#logConsolePre').scrollTop( document.body.scrollHeight + 300 );

} else {
console.log('pullLog fail:'+data.msg);
Expand Down

0 comments on commit f8b8a19

Please sign in to comment.