Commit 2a1a1e5b131ec6fbab5ca65f82e39a873d444ce3
1 parent
7f864fb3
优化点播、音频模块条件输入框的数据回填显示
Showing
4 changed files
with
21 additions
and
11 deletions
src/main/java/com/cnlive/shenhe/controller/AudioController.java
| @@ -140,6 +140,11 @@ public class AudioController extends BaseController { | @@ -140,6 +140,11 @@ public class AudioController extends BaseController { | ||
| 140 | model.addAttribute("receive1", receive1); | 140 | model.addAttribute("receive1", receive1); |
| 141 | model.addAttribute("pageSize", audioDTO.getPageSize()); | 141 | model.addAttribute("pageSize", audioDTO.getPageSize()); |
| 142 | model.addAttribute("audioPage", audioPage); | 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 | return "page/audio.html"; | 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,6 +233,11 @@ public class VideosController extends BaseController { | ||
| 233 | model.addAttribute("sp_Id", videosDTO.getSp_Id()); | 233 | model.addAttribute("sp_Id", videosDTO.getSp_Id()); |
| 234 | model.addAttribute("source", videosDTO.getSource()); | 234 | model.addAttribute("source", videosDTO.getSource()); |
| 235 | model.addAttribute("activityList", activityList); | 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 | return "page/video.html"; | 241 | return "page/video.html"; |
| 237 | } | 242 | } |
| 238 | 243 |
src/main/resources/templates/page/audio.html
| @@ -81,7 +81,7 @@ | @@ -81,7 +81,7 @@ | ||
| 81 | <div class="col-md-5" style="padding: 0;width: 100%;"> | 81 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 82 | <label for="video_titleID" class="control-label cb-toolbar">标题:</label> | 82 | <label for="video_titleID" class="control-label cb-toolbar">标题:</label> |
| 83 | <div class="col-sm-9" style="padding: 0;"> | 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 | </div> | 85 | </div> |
| 86 | </div> | 86 | </div> |
| 87 | </div> | 87 | </div> |
| @@ -108,7 +108,7 @@ | @@ -108,7 +108,7 @@ | ||
| 108 | <div class="col-md-10" style="padding: 0;width: 25%;"> | 108 | <div class="col-md-10" style="padding: 0;width: 25%;"> |
| 109 | <label for="start_date" class="control-label cb-toolbar">时间:</label> | 109 | <label for="start_date" class="control-label cb-toolbar">时间:</label> |
| 110 | <div class="input-group col-md-9 date"> | 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 | id="start_date"> | 112 | id="start_date"> |
| 113 | <span class="input-group-addon"> | 113 | <span class="input-group-addon"> |
| 114 | <span class="glyphicon glyphicon-calendar"></span> | 114 | <span class="glyphicon glyphicon-calendar"></span> |
| @@ -118,7 +118,7 @@ | @@ -118,7 +118,7 @@ | ||
| 118 | <div class="col-md-10" style="padding: 0;width: 25%;"> | 118 | <div class="col-md-10" style="padding: 0;width: 25%;"> |
| 119 | <label for="start_date" class="control-label cb-toolbar">至</label> | 119 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 120 | <div class="input-group col-md-9 date"> | 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 | id="end_date"> | 122 | id="end_date"> |
| 123 | <span class="input-group-addon"> | 123 | <span class="input-group-addon"> |
| 124 | <span class="glyphicon glyphicon-calendar"></span> | 124 | <span class="glyphicon glyphicon-calendar"></span> |
| @@ -130,7 +130,7 @@ | @@ -130,7 +130,7 @@ | ||
| 130 | th:if="${session.sessionUser.spid==0}"> | 130 | th:if="${session.sessionUser.spid==0}"> |
| 131 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> | 131 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> |
| 132 | <div class="col-sm-9" style="padding: 0;"> | 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 | </div> | 134 | </div> |
| 135 | </div> | 135 | </div> |
| 136 | 136 | ||
| @@ -138,7 +138,7 @@ | @@ -138,7 +138,7 @@ | ||
| 138 | th:if="${session.sessionUser.spid==0}"> | 138 | th:if="${session.sessionUser.spid==0}"> |
| 139 | <label for="sp_Id" class="control-label cb-toolbar">sp_Id</label> | 139 | <label for="sp_Id" class="control-label cb-toolbar">sp_Id</label> |
| 140 | <div class="col-sm-9" style="padding: 0;"> | 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 | </div> | 142 | </div> |
| 143 | </div> | 143 | </div> |
| 144 | <!-- <div class="col-md-6" style="padding: 0;width: 15%;" th:if="${session.sessionUser.spid==0}"> --> | 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,7 +81,7 @@ | ||
| 81 | <div class="col-md-5" style="padding: 0;width: 100%;"> | 81 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 82 | <label for="video_titleID" class="control-label cb-toolbar">标题:</label> | 82 | <label for="video_titleID" class="control-label cb-toolbar">标题:</label> |
| 83 | <div class="col-sm-9" style="padding: 0;"> | 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 | </div> | 85 | </div> |
| 86 | </div> | 86 | </div> |
| 87 | </div> | 87 | </div> |
| @@ -109,7 +109,7 @@ | @@ -109,7 +109,7 @@ | ||
| 109 | <div class="col-md-10" style="padding: 0;width: 25%;"> | 109 | <div class="col-md-10" style="padding: 0;width: 25%;"> |
| 110 | <label for="start_date" class="control-label cb-toolbar">时间:</label> | 110 | <label for="start_date" class="control-label cb-toolbar">时间:</label> |
| 111 | <div class="input-group col-md-9 date"> | 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 | id="start_date"> | 113 | id="start_date"> |
| 114 | <span class="input-group-addon"> | 114 | <span class="input-group-addon"> |
| 115 | <span class="glyphicon glyphicon-calendar"></span> | 115 | <span class="glyphicon glyphicon-calendar"></span> |
| @@ -119,7 +119,7 @@ | @@ -119,7 +119,7 @@ | ||
| 119 | <div class="col-md-10" style="padding: 0;width: 25%;"> | 119 | <div class="col-md-10" style="padding: 0;width: 25%;"> |
| 120 | <label for="start_date" class="control-label cb-toolbar">至</label> | 120 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 121 | <div class="input-group col-md-9 date"> | 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 | id="end_date"> | 123 | id="end_date"> |
| 124 | <span class="input-group-addon"> | 124 | <span class="input-group-addon"> |
| 125 | <span class="glyphicon glyphicon-calendar"></span> | 125 | <span class="glyphicon glyphicon-calendar"></span> |
| @@ -131,7 +131,7 @@ | @@ -131,7 +131,7 @@ | ||
| 131 | th:if="${session.sessionUser.spid==0}"> | 131 | th:if="${session.sessionUser.spid==0}"> |
| 132 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> | 132 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> |
| 133 | <div class="col-sm-9" style="padding: 0;"> | 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 | </div> | 135 | </div> |
| 136 | </div> | 136 | </div> |
| 137 | 137 | ||
| @@ -156,7 +156,7 @@ | @@ -156,7 +156,7 @@ | ||
| 156 | th:if="${session.sessionUser.spid==0}"> | 156 | th:if="${session.sessionUser.spid==0}"> |
| 157 | <label for="video_id" class="control-label cb-toolbar">video_id</label> | 157 | <label for="video_id" class="control-label cb-toolbar">video_id</label> |
| 158 | <div class="col-sm-9" style="padding: 0;"> | 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 | </div> | 160 | </div> |
| 161 | </div> | 161 | </div> |
| 162 | 162 | ||
| @@ -181,7 +181,7 @@ | @@ -181,7 +181,7 @@ | ||
| 181 | th:if="${session.sessionUser.spid==0}"> | 181 | th:if="${session.sessionUser.spid==0}"> |
| 182 | <label for="sp_Id" class="control-label cb-toolbar">sp_Id</label> | 182 | <label for="sp_Id" class="control-label cb-toolbar">sp_Id</label> |
| 183 | <div class="col-sm-9" style="padding: 0;"> | 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 | </div> | 185 | </div> |
| 186 | </div> | 186 | </div> |
| 187 | 187 |