Skip to content

Commit f8b8a19

Browse files
author
xueli.xue
committed
日志Console
1 parent 6aab96d commit f8b8a19

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

xxl-job-admin/src/main/webapp/WEB-INF/template/joblog/joblog.detail.ftl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,18 @@
4444
</header>
4545

4646
<div class="content-wrapper" >
47-
<pre style="font-size:12px;position: absolute; height:100%;width:100%;" id="logConsolePre" >
48-
<div id="logConsole"></div>
49-
<li class="fa fa-refresh fa-spin" style="font-size: 20px;float: left;" id="logConsoleRunning" ></li>
50-
<div><hr><hr></div>
51-
</pre>
47+
<section class="content">
48+
<pre style="font-size:12px;position:relative;" >
49+
<div id="logConsole"></div>
50+
<li class="fa fa-refresh fa-spin" style="font-size: 20px;float: left;" id="logConsoleRunning" ></li>
51+
<div><hr><hr></div>
52+
</pre>
53+
</section>
5254
</div>
5355

56+
<!-- footer -->
57+
<@netCommon.commonFooter />
58+
5459
</div>
5560

5661
<@netCommon.commonScript />

xxl-job-admin/src/main/webapp/static/js/joblog.detail.1.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ $(function() {
5858
pullFailCount = 0;
5959

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

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

0 commit comments

Comments
 (0)