|
@@ -98,6 +98,7 @@
|
|
<th>企业名称</th>
|
|
<th>企业名称</th>
|
|
<th>企业地区</th>
|
|
<th>企业地区</th>
|
|
<th>最近使用版本</th>
|
|
<th>最近使用版本</th>
|
|
|
|
+ <th>在线时长(<%= filter.loginMsg === undefined ? '所有' : filter.loginMsg %>)</th>
|
|
<th width="180">注册时间 / 最近登录</th>
|
|
<th width="180">注册时间 / 最近登录</th>
|
|
<% if (manager.superAdmin == 1) { %>
|
|
<% if (manager.superAdmin == 1) { %>
|
|
<th>操作</th>
|
|
<th>操作</th>
|
|
@@ -113,6 +114,7 @@
|
|
<td><%= user.company %></td>
|
|
<td><%= user.company %></td>
|
|
<td><%= model.province[user.province] %></td>
|
|
<td><%= model.province[user.province] %></td>
|
|
<td><%= compilationMap[user.latest_used]?compilationMap[user.latest_used].name:""%></td>
|
|
<td><%= compilationMap[user.latest_used]?compilationMap[user.latest_used].name:""%></td>
|
|
|
|
+ <td><a onclick="getOnlineInfo('<%= user._doc.filter%>')" href="#time-detail" data-toggle="modal" data-target="#time-detail"><%= user._doc.online_times %></a></td>
|
|
<td><%= moment(user.create_time).format('YYYY-MM-DD HH:mm:ss') %><br><%= user.latest_login?moment(user.latest_login).format('YYYY-MM-DD HH:mm:ss'):"" %></td>
|
|
<td><%= moment(user.create_time).format('YYYY-MM-DD HH:mm:ss') %><br><%= user.latest_login?moment(user.latest_login).format('YYYY-MM-DD HH:mm:ss'):"" %></td>
|
|
<% if (manager.superAdmin == 1) { %>
|
|
<% if (manager.superAdmin == 1) { %>
|
|
<td><a onclick='deleteUser("<%= user._id.toString()%>")' data-toggle="modal" data-target="#delUser" class="btn btn-link btn-sm" style="padding: 0px">删除</a></td>
|
|
<td><a onclick='deleteUser("<%= user._id.toString()%>")' data-toggle="modal" data-target="#delUser" class="btn btn-link btn-sm" style="padding: 0px">删除</a></td>
|
|
@@ -196,6 +198,30 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+<!-- 弹窗在线时长-->
|
|
|
|
+<div class="modal fade" id="time-detail" tabindex="-1" role="dialog">
|
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
|
+ <div class="modal-content">
|
|
|
|
+ <div class="modal-header">
|
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
+ <h4 class="modal-title" >在线时长详情</h4>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-body">
|
|
|
|
+ <table class="table table-bordered" id = 'time-detail-table'>
|
|
|
|
+ <tr><th>日期/时间</th><th>在线时长</th></tr>
|
|
|
|
+ <!--<tr><th>日期/时间</th><th>在线时长</th></tr>
|
|
|
|
+ <tr><td>04-10</td><td>2小时10分钟</td></tr>
|
|
|
|
+ <tr><td>04-09</td><td>1小时7分钟</td></tr>
|
|
|
|
+ <tr><td>04-08</td><td>2小时35分钟</td></tr>-->
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="modal-footer">
|
|
|
|
+ <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</div>
|
|
|
|
+
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
let compilationList = JSON.parse('<%- compilationString %>');
|
|
let compilationList = JSON.parse('<%- compilationString %>');
|
|
let adminName = '<%- adminName %>';
|
|
let adminName = '<%- adminName %>';
|