Skip to content

Commit

Permalink
admin用户管理页面增加查看单个用户提交的功能
Browse files Browse the repository at this point in the history
  • Loading branch information
virusdefender committed May 30, 2016
1 parent 383935c commit 634b572
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/src/js/app/admin/user/userList.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ require(["jquery", "avalon", "csrfToken", "bsAlert", "pager", "validator"],
success: function (data) {
if (!data.code) {
bsAlert("编辑成功!");
getPage(1);
getPage(avalon.vmodels.userPager.currentPage);
vm.password = "";
vm.isEditing = false;
} else {
Expand Down
3 changes: 2 additions & 1 deletion template/src/admin/user/user_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1>用户管理</h1>
<th>真实姓名</th>
<th>电子邮箱</th>
<th>用户类型</th>
<th>修改</th>
<th>管理</th>
</tr>
<tr ms-repeat="userList">
<td>{{ el.id }}</td>
Expand All @@ -30,6 +30,7 @@ <h1>用户管理</h1>
<td>{{ userType[el.admin_type]}}</td>
<td>
<button class="btn-sm btn-info" ms-click="editUser(el)">编辑</button>
<a class="btn btn-primary" ms-attr-href="'/submissions/?user_id='+el.id" target="_blank">提交</a>
</td>
</tr>
</table>
Expand Down

0 comments on commit 634b572

Please sign in to comment.