Commit 1add08874332fac8a5fcb94a29a74a03ebe2664f

Authored by 王言钊
1 parent b208fda8

优化禁言、日志、用户模块条件输入框的数据回填显示

src/main/java/com/cnlive/shenhe/controller/NotSpeakController.java
@@ -85,6 +85,8 @@ public class NotSpeakController extends BaseController { @@ -85,6 +85,8 @@ public class NotSpeakController extends BaseController {
85 } 85 }
86 model.addAttribute("pageSize", notSpeakDTO.getPageSize()); 86 model.addAttribute("pageSize", notSpeakDTO.getPageSize());
87 model.addAttribute("notspeakPage", shyNotspeakPage); 87 model.addAttribute("notspeakPage", shyNotspeakPage);
  88 + model.addAttribute("User_id", notSpeakDTO.getUser_id());
  89 + model.addAttribute("User_name", notSpeakDTO.getUser_name());
88 return "page/notspeak.html"; 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,6 +158,9 @@ public class UsersController extends BaseController {
158 model.addAttribute("usersPage", usersPage); 158 model.addAttribute("usersPage", usersPage);
159 model.addAttribute("pageSize", usersDTO.getPageSize()); 159 model.addAttribute("pageSize", usersDTO.getPageSize());
160 model.addAttribute("notice", notice); 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 return "page/users.html"; 164 return "page/users.html";
162 } 165 }
163 166
src/main/resources/templates/page/log.html
@@ -36,7 +36,7 @@ @@ -36,7 +36,7 @@
36 </div> 36 </div>
37 </div> 37 </div>
38 <div class="columns columns-right btn-group pull-right"> 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 <ul class="dropdown-menu" role="menu"> 40 <ul class="dropdown-menu" role="menu">
41 <li><label><input type="checkbox" data-field="sp_id" value="0" 41 <li><label><input type="checkbox" data-field="sp_id" value="0"
42 checked="checked"> 视频ID</label></li> 42 checked="checked"> 视频ID</label></li>
@@ -55,7 +55,7 @@ @@ -55,7 +55,7 @@
55 </div> 55 </div>
56 <div class="pull-right search"> 56 <div class="pull-right search">
57 <form id="searchForm"> 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 </form> 59 </form>
60 </div> 60 </div>
61 </div> 61 </div>
src/main/resources/templates/page/notspeak.html
@@ -128,13 +128,13 @@ @@ -128,13 +128,13 @@
128 <label for="user_id" class="control-label cb-toolbar">用户id:</label> 128 <label for="user_id" class="control-label cb-toolbar">用户id:</label>
129 <div class="col-sm-8" style="padding: 0;"> 129 <div class="col-sm-8" style="padding: 0;">
130 <input class="form-control" name="user_id" type="text" 130 <input class="form-control" name="user_id" type="text"
131 - id="user_id"> 131 + id="user_id" th:value="${User_id}">
132 </div> 132 </div>
133 </div> 133 </div>
134 <div class="col-md-5" style="padding: 0"> 134 <div class="col-md-5" style="padding: 0">
135 <label for="user_name" class="control-label cb-toolbar">用户昵称:</label> 135 <label for="user_name" class="control-label cb-toolbar">用户昵称:</label>
136 <div class="col-sm-8" style="padding: 0;"> 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 </div> 138 </div>
139 </div> 139 </div>
140 <!-- <div class="col-md-3" style="padding: 0"> --> 140 <!-- <div class="col-md-3" style="padding: 0"> -->
src/main/resources/templates/page/users.html
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 <div class="col-md-5" style="padding: 0;width: 20%;"> 34 <div class="col-md-5" style="padding: 0;width: 20%;">
35 <label for="sp_id" class="control-label cb-toolbar" style="font-size:15px;top:8px;font-weight:100;">spId:</label> 35 <label for="sp_id" class="control-label cb-toolbar" style="font-size:15px;top:8px;font-weight:100;">spId:</label>
36 <div class="col-sm-9" style="padding: 0;"> 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 </div> 38 </div>
39 </div> 39 </div>
40 <div class="col-md-6" style="padding: 0;width: 25%;" > 40 <div class="col-md-6" style="padding: 0;width: 25%;" >
@@ -46,13 +46,13 @@ @@ -46,13 +46,13 @@
46 <div class="col-md-6" style="padding: 0;width: 20%;" > 46 <div class="col-md-6" style="padding: 0;width: 20%;" >
47 <label for="username" class="control-label cb-toolbar" style="font-size:15px;top:8px;font-weight:100;">用户名:</label> 47 <label for="username" class="control-label cb-toolbar" style="font-size:15px;top:8px;font-weight:100;">用户名:</label>
48 <div class="col-sm-8" style="padding: 0;"> 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 </div> 50 </div>
51 </div> 51 </div>
52 <div class="col-md-6" style="padding: 0;width: 20%;" > 52 <div class="col-md-6" style="padding: 0;width: 20%;" >
53 <label for="mobile" class="control-label cb-toolbar" style="font-size:15px;top:8px;font-weight:100;">手机号:</label> 53 <label for="mobile" class="control-label cb-toolbar" style="font-size:15px;top:8px;font-weight:100;">手机号:</label>
54 <div class="col-sm-7" style="padding: 0;"> 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 </div> 56 </div>
57 </div> 57 </div>
58 <div class="col-md-6" style="padding: 0;width: 15%;"> 58 <div class="col-md-6" style="padding: 0;width: 15%;">