Commit 2a1a1e5b131ec6fbab5ca65f82e39a873d444ce3

Authored by 王言钊
1 parent 7f864fb3

优化点播、音频模块条件输入框的数据回填显示

src/main/java/com/cnlive/shenhe/controller/AudioController.java
... ... @@ -140,6 +140,11 @@ public class AudioController extends BaseController {
140 140 model.addAttribute("receive1", receive1);
141 141 model.addAttribute("pageSize", audioDTO.getPageSize());
142 142 model.addAttribute("audioPage", audioPage);
  143 + model.addAttribute("AudioTitle", audioDTO.getVideo_title());
  144 + model.addAttribute("Sp_desc", audioDTO.getSp_desc());
  145 + model.addAttribute("Sp_id", audioDTO.getSp_Id());
  146 + model.addAttribute("Start_date", audioDTO.getStart_date());
  147 + model.addAttribute("End_date", audioDTO.getEnd_date());
143 148 return "page/audio.html";
144 149 }
145 150  
... ...
src/main/java/com/cnlive/shenhe/controller/VideosController.java
... ... @@ -233,6 +233,11 @@ public class VideosController extends BaseController {
233 233 model.addAttribute("sp_Id", videosDTO.getSp_Id());
234 234 model.addAttribute("source", videosDTO.getSource());
235 235 model.addAttribute("activityList", activityList);
  236 + model.addAttribute("VideoTitle", videosDTO.getVideo_title());
  237 + model.addAttribute("VideoId", videosDTO.getVideo_id());
  238 + model.addAttribute("sp_desc", videosDTO.getSp_desc());
  239 + model.addAttribute("Start_date", videosDTO.getStart_date());
  240 + model.addAttribute("End_date", videosDTO.getEnd_date());
236 241 return "page/video.html";
237 242 }
238 243  
... ...
src/main/resources/templates/page/audio.html
... ... @@ -81,7 +81,7 @@
81 81 <div class="col-md-5" style="padding: 0;width: 100%;">
82 82 <label for="video_titleID" class="control-label cb-toolbar">标题:</label>
83 83 <div class="col-sm-9" style="padding: 0;">
84   - <input class="form-control" type="text" value="" id="video_titleID">
  84 + <input class="form-control" type="text" th:value="${AudioTitle}" value="" id="video_titleID">
85 85 </div>
86 86 </div>
87 87 </div>
... ... @@ -108,7 +108,7 @@
108 108 <div class="col-md-10" style="padding: 0;width: 25%;">
109 109 <label for="start_date" class="control-label cb-toolbar">时间:</label>
110 110 <div class="input-group col-md-9 date">
111   - <input class="form-control date" name="start_date" type="text"
  111 + <input class="form-control date" name="start_date" type="text" th:value="${Start_date}"
112 112 id="start_date">
113 113 <span class="input-group-addon">
114 114 <span class="glyphicon glyphicon-calendar"></span>
... ... @@ -118,7 +118,7 @@
118 118 <div class="col-md-10" style="padding: 0;width: 25%;">
119 119 <label for="start_date" class="control-label cb-toolbar">至</label>
120 120 <div class="input-group col-md-9 date">
121   - <input class="form-control date" name="end_date" type="text"
  121 + <input class="form-control date" name="end_date" type="text" th:value="${End_date}"
122 122 id="end_date">
123 123 <span class="input-group-addon">
124 124 <span class="glyphicon glyphicon-calendar"></span>
... ... @@ -130,7 +130,7 @@
130 130 th:if="${session.sessionUser.spid==0}">
131 131 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label>
132 132 <div class="col-sm-9" style="padding: 0;">
133   - <input class="form-control" type="text" value="" id="sp_desc">
  133 + <input class="form-control" type="text" th:value="${Sp_desc}" value="" id="sp_desc">
134 134 </div>
135 135 </div>
136 136  
... ... @@ -138,7 +138,7 @@
138 138 th:if="${session.sessionUser.spid==0}">
139 139 <label for="sp_Id" class="control-label cb-toolbar">sp_Id</label>
140 140 <div class="col-sm-9" style="padding: 0;">
141   - <input class="form-control" type="text" value="" id="sp_Id">
  141 + <input class="form-control" type="text" th:value="${Sp_id}" value="" id="sp_Id">
142 142 </div>
143 143 </div>
144 144 <!-- <div class="col-md-6" style="padding: 0;width: 15%;" th:if="${session.sessionUser.spid==0}"> -->
... ...
src/main/resources/templates/page/video.html
... ... @@ -81,7 +81,7 @@
81 81 <div class="col-md-5" style="padding: 0;width: 100%;">
82 82 <label for="video_titleID" class="control-label cb-toolbar">标题:</label>
83 83 <div class="col-sm-9" style="padding: 0;">
84   - <input class="form-control" type="text" value="" id="video_titleID">
  84 + <input class="form-control" type="text" th:value="${VideoTitle}" value="" id="video_titleID">
85 85 </div>
86 86 </div>
87 87 </div>
... ... @@ -109,7 +109,7 @@
109 109 <div class="col-md-10" style="padding: 0;width: 25%;">
110 110 <label for="start_date" class="control-label cb-toolbar">时间:</label>
111 111 <div class="input-group col-md-9 date">
112   - <input class="form-control date" name="start_date" type="text"
  112 + <input class="form-control date" name="start_date" type="text" th:value="${Start_date}"
113 113 id="start_date">
114 114 <span class="input-group-addon">
115 115 <span class="glyphicon glyphicon-calendar"></span>
... ... @@ -119,7 +119,7 @@
119 119 <div class="col-md-10" style="padding: 0;width: 25%;">
120 120 <label for="start_date" class="control-label cb-toolbar">至</label>
121 121 <div class="input-group col-md-9 date">
122   - <input class="form-control date" name="end_date" type="text"
  122 + <input class="form-control date" name="end_date" type="text"th:value="${End_date}"
123 123 id="end_date">
124 124 <span class="input-group-addon">
125 125 <span class="glyphicon glyphicon-calendar"></span>
... ... @@ -131,7 +131,7 @@
131 131 th:if="${session.sessionUser.spid==0}">
132 132 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label>
133 133 <div class="col-sm-9" style="padding: 0;">
134   - <input class="form-control" type="text" value="" id="sp_desc">
  134 + <input class="form-control" type="text" th:value="${sp_desc}" value="" id="sp_desc">
135 135 </div>
136 136 </div>
137 137  
... ... @@ -156,7 +156,7 @@
156 156 th:if="${session.sessionUser.spid==0}">
157 157 <label for="video_id" class="control-label cb-toolbar">video_id</label>
158 158 <div class="col-sm-9" style="padding: 0;">
159   - <input class="form-control" type="text" value="" id="video_id">
  159 + <input class="form-control" type="text" th:value="${VideoId}" value="" id="video_id">
160 160 </div>
161 161 </div>
162 162  
... ... @@ -181,7 +181,7 @@
181 181 th:if="${session.sessionUser.spid==0}">
182 182 <label for="sp_Id" class="control-label cb-toolbar">sp_Id</label>
183 183 <div class="col-sm-9" style="padding: 0;">
184   - <input class="form-control" type="text" value="" id="sp_Id">
  184 + <input class="form-control" type="text" th:value="${sp_Id}" value="" id="sp_Id">
185 185 </div>
186 186 </div>
187 187  
... ...