|
@@ -12,9 +12,10 @@
|
|
<div class="btn-group">
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
|
|
<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
|
|
aria-haspopup="true" aria-expanded="false">
|
|
aria-haspopup="true" aria-expanded="false">
|
|
- 最近使用费用定额: <span class="caret"></span>
|
|
|
|
|
|
+ 最近使用费用定额:<lable><%= compilationMap[filter.latestUsed] === undefined ? '所有' : compilationMap[filter.latestUsed].name %></lable> <span class="caret"></span>
|
|
</button>
|
|
</button>
|
|
<ul class="dropdown-menu selector">
|
|
<ul class="dropdown-menu selector">
|
|
|
|
+ <li><a data-value="">所有</a></li>
|
|
<% for(let compilation of compilationList){ %>
|
|
<% for(let compilation of compilationList){ %>
|
|
<li><a data-value="<%= compilation._id.toString()%>"><%= compilation.name %></a></li>
|
|
<li><a data-value="<%= compilation._id.toString()%>"><%= compilation.name %></a></li>
|
|
<% } %>
|
|
<% } %>
|
|
@@ -25,9 +26,10 @@
|
|
<div class="btn-group">
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
|
|
<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
|
|
aria-haspopup="true" aria-expanded="false">
|
|
aria-haspopup="true" aria-expanded="false">
|
|
- 已升级费用定额: <span class="caret"></span>
|
|
|
|
|
|
+ 已升级费用定额:<lable><%= compilationMap[filter.upGrade] === undefined ? '所有' : compilationMap[filter.upGrade].name %></lable> <span class="caret"></span>
|
|
</button>
|
|
</button>
|
|
<ul class="dropdown-menu selector">
|
|
<ul class="dropdown-menu selector">
|
|
|
|
+ <li><a data-value="">所有</a></li>
|
|
<% for(let compilation of compilationList){ %>
|
|
<% for(let compilation of compilationList){ %>
|
|
<li><a data-value="<%= compilation._id.toString()%>"><%= compilation.name %></a></li>
|
|
<li><a data-value="<%= compilation._id.toString()%>"><%= compilation.name %></a></li>
|
|
<% } %>
|
|
<% } %>
|
|
@@ -38,7 +40,7 @@
|
|
<div class="btn-group">
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
|
|
<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
|
|
aria-haspopup="true" aria-expanded="false">
|
|
aria-haspopup="true" aria-expanded="false">
|
|
- 最新注册:<%= filter.regtimeMsg === undefined ? '所有' : filter.regtimeMsg %><span class="caret"></span>
|
|
|
|
|
|
+ 最新注册:<lable><%= filter.regtimeMsg === undefined ? '所有' : filter.regtimeMsg %></lable><span class="caret"></span>
|
|
</button>
|
|
</button>
|
|
<ul class="dropdown-menu selector">
|
|
<ul class="dropdown-menu selector">
|
|
<li><a data-value="0">所有</a></li>
|
|
<li><a data-value="0">所有</a></li>
|
|
@@ -53,7 +55,7 @@
|
|
<div class="btn-group">
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
|
|
<button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
|
|
aria-haspopup="true" aria-expanded="false">
|
|
aria-haspopup="true" aria-expanded="false">
|
|
- 最新注册:<%= filter.regtimeMsg === undefined ? '所有' : filter.regtimeMsg %><span class="caret"></span>
|
|
|
|
|
|
+ 最近登录:<lable><%= filter.loginMsg === undefined ? '所有' : filter.loginMsg %></lable><span class="caret"></span>
|
|
</button>
|
|
</button>
|
|
<ul class="dropdown-menu selector">
|
|
<ul class="dropdown-menu selector">
|
|
<li><a data-value="0">所有</a></li>
|
|
<li><a data-value="0">所有</a></li>
|
|
@@ -105,11 +107,11 @@
|
|
data-content="企业类型:<%= model.companyType[user.company_type] %>,企业规模:<%= model.companyScale[user.company_scale] %>"><%= user.company %></a>
|
|
data-content="企业类型:<%= model.companyType[user.company_type] %>,企业规模:<%= model.companyScale[user.company_scale] %>"><%= user.company %></a>
|
|
</td>
|
|
</td>
|
|
<td><%= model.province[user.province] %></td>
|
|
<td><%= model.province[user.province] %></td>
|
|
- <td>重庆01版</td>
|
|
|
|
- <td>登录时间</td>
|
|
|
|
|
|
+ <td><%= compilationMap[user.latest_used]?compilationMap[user.latest_used].name:""%></td>
|
|
|
|
+ <td><%= 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') %></td>
|
|
<td><%= moment(user.create_time).format('YYYY-MM-DD HH:mm:ss') %></td>
|
|
- <td><a>详细</a></td>
|
|
|
|
- <td>升级</td>
|
|
|
|
|
|
+ <td><a role="button" data-toggle="modal" data-target="#view" onclick='getUserInfo("<%= user._id.toString()%>")'>详细</a></td>
|
|
|
|
+ <td><a href="#update" data-toggle="modal" data-target="#update" onclick='getUserUpgradeInfo("<%= user._id.toString()%>")'>升级</a></td>
|
|
</tr>
|
|
</tr>
|
|
<% }) %>
|
|
<% }) %>
|
|
</tbody>
|
|
</tbody>
|
|
@@ -132,13 +134,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="modal-body">
|
|
<table class="table table-bordered">
|
|
<table class="table table-bordered">
|
|
- <tbody>
|
|
|
|
- <tr><th>注册时间</th><td>2017-03-03 14:29:03</td><th>最近登录</th><td>2017-03-04 14:29:03</td></tr>
|
|
|
|
- <tr><th>手机</th><td>12345678909</td><th>邮箱</th><td></td></tr>
|
|
|
|
- <tr><th>姓名</th><td colspan="3">张三</td></tr>
|
|
|
|
- <tr><th>企业名称</th><td colspan="3">珠海纵横创新软件有限公司</td></tr>
|
|
|
|
- <tr><th>企业地区</th><td>珠海</td><th>企业类型</th><td>设计</td></tr>
|
|
|
|
- <tr><th>企业规模</th><td colspan="3">20-50</td></tr>
|
|
|
|
|
|
+ <tbody id="userInfoTable">
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@@ -149,5 +145,29 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+<!-- 用户升级弹窗-->
|
|
|
|
+<div class="modal fade" id="update" 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">
|
|
|
|
+ <tbody id="upgrade_table">
|
|
|
|
+ </tbody>
|
|
|
|
+ </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">
|
|
|
|
+ let compilationList = JSON.parse('<%- compilationString %>');
|
|
|
|
+ let adminName = '<%- adminName %>';
|
|
|
|
+</script>
|
|
<script type="text/javascript" src="/web/users/js/user.js"></script>
|
|
<script type="text/javascript" src="/web/users/js/user.js"></script>
|