Commit 1add08874332fac8a5fcb94a29a74a03ebe2664f
1 parent
b208fda8
优化禁言、日志、用户模块条件输入框的数据回填显示
Showing
5 changed files
with
12 additions
and
7 deletions
src/main/java/com/cnlive/shenhe/controller/NotSpeakController.java
| ... | ... | @@ -85,6 +85,8 @@ public class NotSpeakController extends BaseController { |
| 85 | 85 | } |
| 86 | 86 | model.addAttribute("pageSize", notSpeakDTO.getPageSize()); |
| 87 | 87 | model.addAttribute("notspeakPage", shyNotspeakPage); |
| 88 | + model.addAttribute("User_id", notSpeakDTO.getUser_id()); | |
| 89 | + model.addAttribute("User_name", notSpeakDTO.getUser_name()); | |
| 88 | 90 | return "page/notspeak.html"; |
| 89 | 91 | } |
| 90 | 92 | ... | ... |
src/main/java/com/cnlive/shenhe/controller/UsersController.java
| ... | ... | @@ -158,6 +158,9 @@ public class UsersController extends BaseController { |
| 158 | 158 | model.addAttribute("usersPage", usersPage); |
| 159 | 159 | model.addAttribute("pageSize", usersDTO.getPageSize()); |
| 160 | 160 | model.addAttribute("notice", notice); |
| 161 | + model.addAttribute("Sp_id", usersDTO.getSp_id()); | |
| 162 | + model.addAttribute("Username", usersDTO.getUsername()); | |
| 163 | + model.addAttribute("Mobile", usersDTO.getMobile()); | |
| 161 | 164 | return "page/users.html"; |
| 162 | 165 | } |
| 163 | 166 | ... | ... |
src/main/resources/templates/page/log.html
| ... | ... | @@ -36,7 +36,7 @@ |
| 36 | 36 | </div> |
| 37 | 37 | </div> |
| 38 | 38 | <div class="columns columns-right btn-group pull-right"> |
| 39 | - <button class="btn btn-default" type="button" name="refresh" title="搜索" id="site_query">搜索</button> | |
| 39 | + <button class="btn btn-default" type="button" name="refresh" title="搜索" id="site_query">刷新</button> | |
| 40 | 40 | <ul class="dropdown-menu" role="menu"> |
| 41 | 41 | <li><label><input type="checkbox" data-field="sp_id" value="0" |
| 42 | 42 | checked="checked"> 视频ID</label></li> |
| ... | ... | @@ -55,7 +55,7 @@ |
| 55 | 55 | </div> |
| 56 | 56 | <div class="pull-right search"> |
| 57 | 57 | <form id="searchForm"> |
| 58 | - <input class="form-control" type="text" placeholder="搜索" id="keyword" name="keyword" th:value="${param.keyword}"> | |
| 58 | + <input class="form-control" type="text" placeholder="刷新" id="keyword" name="keyword" th:value="${param.keyword}"> | |
| 59 | 59 | </form> |
| 60 | 60 | </div> |
| 61 | 61 | </div> | ... | ... |
src/main/resources/templates/page/notspeak.html
| ... | ... | @@ -128,13 +128,13 @@ |
| 128 | 128 | <label for="user_id" class="control-label cb-toolbar">用户id:</label> |
| 129 | 129 | <div class="col-sm-8" style="padding: 0;"> |
| 130 | 130 | <input class="form-control" name="user_id" type="text" |
| 131 | - id="user_id"> | |
| 131 | + id="user_id" th:value="${User_id}"> | |
| 132 | 132 | </div> |
| 133 | 133 | </div> |
| 134 | 134 | <div class="col-md-5" style="padding: 0"> |
| 135 | 135 | <label for="user_name" class="control-label cb-toolbar">用户昵称:</label> |
| 136 | 136 | <div class="col-sm-8" style="padding: 0;"> |
| 137 | - <input class="form-control" name="user_name" type="text" id="user_name"> | |
| 137 | + <input class="form-control" name="user_name" th:value="${User_name}" type="text" id="user_name"> | |
| 138 | 138 | </div> |
| 139 | 139 | </div> |
| 140 | 140 | <!-- <div class="col-md-3" style="padding: 0"> --> | ... | ... |
src/main/resources/templates/page/users.html
| ... | ... | @@ -34,7 +34,7 @@ |
| 34 | 34 | <div class="col-md-5" style="padding: 0;width: 20%;"> |
| 35 | 35 | <label for="sp_id" class="control-label cb-toolbar" style="font-size:15px;top:8px;font-weight:100;">spId:</label> |
| 36 | 36 | <div class="col-sm-9" style="padding: 0;"> |
| 37 | - <input class="form-control" type="text" value="" id="sp_id"> | |
| 37 | + <input class="form-control" th:value="${Sp_id}" type="text" value="" id="sp_id"> | |
| 38 | 38 | </div> |
| 39 | 39 | </div> |
| 40 | 40 | <div class="col-md-6" style="padding: 0;width: 25%;" > |
| ... | ... | @@ -46,13 +46,13 @@ |
| 46 | 46 | <div class="col-md-6" style="padding: 0;width: 20%;" > |
| 47 | 47 | <label for="username" class="control-label cb-toolbar" style="font-size:15px;top:8px;font-weight:100;">用户名:</label> |
| 48 | 48 | <div class="col-sm-8" style="padding: 0;"> |
| 49 | - <input class="form-control" type="text" value="" id="username"> | |
| 49 | + <input class="form-control" type="text" th:value="${Username}" value="" id="username"> | |
| 50 | 50 | </div> |
| 51 | 51 | </div> |
| 52 | 52 | <div class="col-md-6" style="padding: 0;width: 20%;" > |
| 53 | 53 | <label for="mobile" class="control-label cb-toolbar" style="font-size:15px;top:8px;font-weight:100;">手机号:</label> |
| 54 | 54 | <div class="col-sm-7" style="padding: 0;"> |
| 55 | - <input class="form-control" type="text" value="" id="mobile"> | |
| 55 | + <input class="form-control" type="text" th:value="${Mobile}" value="" id="mobile"> | |
| 56 | 56 | </div> |
| 57 | 57 | </div> |
| 58 | 58 | <div class="col-md-6" style="padding: 0;width: 15%;"> | ... | ... |