账号问题修改

This commit is contained in:
KeYuan 2017-09-18 01:39:21 +08:00
parent a9e4921628
commit 0a5a0373ac
2 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ public class UserAdminAction extends CrudActionSupport<User, String> {
@Override
public String save() throws Exception {
HttpServletRequest request= Struts2Utils.getRequest();
entity.setStatus(1);
userManager.adminSave(entity,null);
return RELOAD;
}

View File

@ -122,7 +122,7 @@ $(document).ready(function(){
<%--<td align="left">${en.email }</td>--%>
<td align="left"><fmt:formatDate value="${en.createTime }" pattern="yyyy年MM月dd日 HH:mm"/></td>
<td align="left"><fmt:formatDate value="${en.createTime }" pattern="yyyy年MM月dd日 HH:mm"/></td>
<td align="left">${en.status ne 0 ? '可用':'可用' }</td>
<td align="left">${en.status eq 0 ? '可用':'可用' }</td>
<td align="center">
<a class="btn btn-default" href="${ctx }/sy/user/nosm/user-admin!input.action?id=${en.id}" title="编辑"data-toggle="tooltip" data-placement="top" ><i class="fa fa-pencil-square-o"></i></a>
<a class="btn btn-default disUser_a" href="${ctx }/sy/user/nosm/user-admin!delete.action?id=${en.id}" title="禁用"data-toggle="tooltip" data-placement="top" ><i class="fa fa-trash-o" aria-hidden="true"></i></a>