|
@@ -23,54 +23,31 @@
|
|
|
<% } %>
|
|
|
</form>
|
|
|
<!-- 访问日志 -->
|
|
|
- <% if(ctx.session.sessionUser.loginStatus === loginWay.normalPsw) { %>
|
|
|
- <div class="col-12 mt-5">
|
|
|
- <h4>访问日志</h4>
|
|
|
- <table class="table table-hover">
|
|
|
- <thead>
|
|
|
+ <div class="col-12 mt-5">
|
|
|
+ <h4>访问日志</h4>
|
|
|
+ <table class="table table-hover">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th></th>
|
|
|
+ <th>系统</th>
|
|
|
+ <th>浏览器</th>
|
|
|
+ <th>登录时间</th>
|
|
|
+ <th>登录地址</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <% loginLogging.forEach((item, idx) => { %>
|
|
|
<tr>
|
|
|
- <th></th>
|
|
|
- <th>系统</th>
|
|
|
- <th>浏览器</th>
|
|
|
- <th>登录时间</th>
|
|
|
- <th>登录地址</th>
|
|
|
+ <td><%- idx + 1 %></td>
|
|
|
+ <td><%- item.os %></td>
|
|
|
+ <td><%- item.browser %></td>
|
|
|
+ <td><%- ctx.helper.formatFullDate(item.create_time) %></td>
|
|
|
+ <td><%- item.address %></td>
|
|
|
</tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- <% loginLogging.forEach((item, idx) => { %>
|
|
|
- <tr>
|
|
|
- <td><%- idx + 1 %></td>
|
|
|
- <td><%- item.os %></td>
|
|
|
- <td><%- item.browser %></td>
|
|
|
- <td><%- ctx.helper.formatFullDate(item.create_time) %></td>
|
|
|
- <td><%- item.address %></td>
|
|
|
- </tr>
|
|
|
- <% }) %>
|
|
|
- <!-- <tr>
|
|
|
- <td>1</td>
|
|
|
- <td>Windows NT 10.0 64-bit</td>
|
|
|
- <td>Chrome 55.0.2883.87 m (64-bit)</td>
|
|
|
- <td>2017-01-12 09:09</td>
|
|
|
- <td>广东省珠海市 电信(116.19.86.133)</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2</td>
|
|
|
- <td>Windows NT 10.0 64-bit</td>
|
|
|
- <td>Chrome 55.0.2883.87 m (64-bit)</td>
|
|
|
- <td>2017-01-12 09:09</td>
|
|
|
- <td>广东省珠海市 电信(116.19.86.133)</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>3</td>
|
|
|
- <td>Windows NT 10.0 64-bit</td>
|
|
|
- <td>Chrome 55.0.2883.87 m (64-bit)</td>
|
|
|
- <td>2017-01-12 09:09</td>
|
|
|
- <td>广东省珠海市 电信(116.19.86.133)</td>
|
|
|
- </tr> -->
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- <% } %>
|
|
|
+ <% }) %>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|