Commit 0ed749308ed3bdc5d88a5df8c495c67ce3351b33
Merge branch 'dev'
Showing
25 changed files
with
215 additions
and
181 deletions
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/ChannelController.java
| ... | ... | @@ -129,6 +129,10 @@ public class ChannelController extends BaseController { |
| 129 | 129 | model.addAttribute("state1", state1); |
| 130 | 130 | model.addAttribute("pageSize", channelDTO.getPageSize()); |
| 131 | 131 | model.addAttribute("channelPage", channelPage); |
| 132 | + model.addAttribute("Channel_id", channelDTO.getChannel_id()); | |
| 133 | + model.addAttribute("Channel_name", channelDTO.getChannel_name()); | |
| 134 | + model.addAttribute("Start_date", channelDTO.getStart_date()); | |
| 135 | + model.addAttribute("End_date", channelDTO.getEnd_date()); | |
| 132 | 136 | return "page/channel.html"; |
| 133 | 137 | } |
| 134 | 138 | ... | ... |
src/main/java/com/cnlive/shenhe/controller/CommentsController.java
| ... | ... | @@ -143,6 +143,12 @@ public class CommentsController extends BaseController { |
| 143 | 143 | model.addAttribute("state1", state1); |
| 144 | 144 | model.addAttribute("pageSize", commentsDTO.getPageSize()); |
| 145 | 145 | model.addAttribute("commentPage", commentPage); |
| 146 | + model.addAttribute("Type", commentsDTO.getType()); | |
| 147 | + model.addAttribute("Activity_id", commentsDTO.getActivity_id()); | |
| 148 | + model.addAttribute("Comment_user_id", commentsDTO.getComment_user_id()); | |
| 149 | + model.addAttribute("Content", commentsDTO.getContent()); | |
| 150 | + model.addAttribute("Start_date", commentsDTO.getStart_date()); | |
| 151 | + model.addAttribute("End_date", commentsDTO.getEnd_date()); | |
| 146 | 152 | return "page/comment.html"; |
| 147 | 153 | } |
| 148 | 154 | ... | ... |
src/main/java/com/cnlive/shenhe/controller/ContentController.java
| ... | ... | @@ -109,6 +109,14 @@ public class ContentController extends BaseController { |
| 109 | 109 | } |
| 110 | 110 | model.addAttribute("contentPage", contentPage); |
| 111 | 111 | model.addAttribute("pageSize", contentDTO.getPageSize()); |
| 112 | + model.addAttribute("ContentTag", contentDTO.getContent_tag()); | |
| 113 | + model.addAttribute("Title", contentDTO.getTitle()); | |
| 114 | + model.addAttribute("Author", contentDTO.getAuthor()); | |
| 115 | + model.addAttribute("Source", contentDTO.getSource()); | |
| 116 | + model.addAttribute("Start_date", contentDTO.getStart_date()); | |
| 117 | + model.addAttribute("End_date", contentDTO.getEnd_date()); | |
| 118 | + model.addAttribute("Sp_desc", contentDTO.getSp_desc()); | |
| 119 | + model.addAttribute("ContentId", contentDTO.getContentId()); | |
| 112 | 120 | return "page/content.html"; |
| 113 | 121 | } |
| 114 | 122 | ... | ... |
src/main/java/com/cnlive/shenhe/controller/LiveApplyController.java
| ... | ... | @@ -147,9 +147,6 @@ public class LiveApplyController extends BaseController { |
| 147 | 147 | for (ShyLiveapply liveApply : list) { |
| 148 | 148 | if (!liveApply.getShenhe_state().equals(CommonConst.AUDIT_INTT)) { |
| 149 | 149 | String updater = CommonUtils.isEmpty(liveApply.getUpdater()) || "null".equals(liveApply.getUpdater()) ? "白名单" : liveApply.getUpdater(); |
| 150 | - | |
| 151 | - | |
| 152 | - | |
| 153 | 150 | String auditorId = liveApply.getAuditor(); |
| 154 | 151 | if (CommonUtils.isNotEmpty(auditorId)) { |
| 155 | 152 | ShyUsers user = new ShyUsers(); |
| ... | ... | @@ -172,6 +169,11 @@ public class LiveApplyController extends BaseController { |
| 172 | 169 | } |
| 173 | 170 | model.addAttribute("liveApplyPage", liveApplyPage); |
| 174 | 171 | model.addAttribute("pageSize", liveApplyDTO.getPageSize()); |
| 172 | + model.addAttribute("Theme", liveApplyDTO.getTheme()); | |
| 173 | + model.addAttribute("Organization", liveApplyDTO.getOrganization()); | |
| 174 | + model.addAttribute("Sp_desc", liveApplyDTO.getSp_desc()); | |
| 175 | + model.addAttribute("Start_date", liveApplyDTO.getStart_date()); | |
| 176 | + model.addAttribute("End_date", liveApplyDTO.getEnd_date()); | |
| 175 | 177 | return "page/liveApply.html"; |
| 176 | 178 | } |
| 177 | 179 | ... | ... |
src/main/java/com/cnlive/shenhe/controller/LiveController.java
| ... | ... | @@ -177,6 +177,13 @@ public class LiveController extends BaseController { |
| 177 | 177 | } |
| 178 | 178 | model.addAttribute("livePage", livePage); |
| 179 | 179 | model.addAttribute("pageSize", liveDTO.getPageSize()); |
| 180 | + model.addAttribute("ActivityStatus", liveDTO.getActivity_status()); | |
| 181 | + model.addAttribute("Activity_name",liveDTO.getActivity_name()); | |
| 182 | + model.addAttribute("Activity_id",liveDTO.getActivity_id()); | |
| 183 | + model.addAttribute("Sp_desc", liveDTO.getSp_desc()); | |
| 184 | + model.addAttribute("Start_date", liveDTO.getStart_date()); | |
| 185 | + model.addAttribute("End_date", liveDTO.getEnd_date()); | |
| 186 | + model.addAttribute("ContentId", liveDTO.getContentId()); | |
| 180 | 187 | return "page/live.html"; |
| 181 | 188 | } |
| 182 | 189 | ... | ... |
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/TopicController.java
| ... | ... | @@ -111,6 +111,11 @@ public class TopicController extends BaseController { |
| 111 | 111 | } |
| 112 | 112 | model.addAttribute("topicPage", topicPage); |
| 113 | 113 | model.addAttribute("pageSize", topicDTO.getPageSize()); |
| 114 | + model.addAttribute("Topic_id", topicDTO.getTopic_id()); | |
| 115 | + model.addAttribute("Topic_name", topicDTO.getTopic_name()); | |
| 116 | + model.addAttribute("Sp_desc", topicDTO.getSp_desc()); | |
| 117 | + model.addAttribute("Start_date", topicDTO.getStart_date()); | |
| 118 | + model.addAttribute("End_date", topicDTO.getEnd_date()); | |
| 114 | 119 | return "page/topic.html"; |
| 115 | 120 | } |
| 116 | 121 | ... | ... |
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/java/com/cnlive/shenhe/controller/VideosController.java
| ... | ... | @@ -233,6 +233,14 @@ 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()); | |
| 241 | + model.addAttribute("ContentId", videosDTO.getContentId()); | |
| 242 | + model.addAttribute("Video_user_id", videosDTO.getVideo_user_id()); | |
| 243 | + model.addAttribute("Shen_auditor_id", videosDTO.getShen_auditor_id()); | |
| 236 | 244 | return "page/video.html"; |
| 237 | 245 | } |
| 238 | 246 | ... | ... |
src/main/java/com/cnlive/shenhe/serviceImpl/LiveApplyServiceImpl.java
| ... | ... | @@ -121,8 +121,8 @@ public class LiveApplyServiceImpl { |
| 121 | 121 | criteria.andLike("theme", "%" + liveApplyDTO.getTheme() + "%"); |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - if (CommonUtils.isNotNull(liveApplyDTO.getBusiness_model())) { | |
| 125 | - criteria.andLike("organization", "%" + liveApplyDTO.getBusiness_model() + "%"); | |
| 124 | + if (CommonUtils.isNotEmpty(liveApplyDTO.getOrganization())) { | |
| 125 | + criteria.andLike("organization", "%" + liveApplyDTO.getOrganization() + "%"); | |
| 126 | 126 | } |
| 127 | 127 | if (CommonUtils.isNotNull(liveApplyDTO.getSpid())) { |
| 128 | 128 | criteria.andEqualTo("sp_id", liveApplyDTO.getSpid()); | ... | ... |
src/main/resources/templates/common/frame.html
| ... | ... | @@ -74,7 +74,7 @@ line-height: 2em; margin: 0 auto;font-size: 2em" |
| 74 | 74 | <ul class="sidebar-menu"> |
| 75 | 75 | <li class="header">菜单导航</li> |
| 76 | 76 | <li class="treeview active"> |
| 77 | - <a href="#" id="s"> | |
| 77 | + <a href="#"> | |
| 78 | 78 | <span class="menu-item-top">审核云</span> |
| 79 | 79 | </a> |
| 80 | 80 | <ul class="treeview-menu"> |
| ... | ... | @@ -89,7 +89,7 @@ line-height: 2em; margin: 0 auto;font-size: 2em" |
| 89 | 89 | </ul> |
| 90 | 90 | </li> |
| 91 | 91 | <li class="treeview" th:if="${session.sessionUser.spid==0 || session.sessionUser.spid==60}"> |
| 92 | - <a href="#" id="x"> | |
| 92 | + <a href="#"> | |
| 93 | 93 | <span class="menu-item-top">系统管理</span> |
| 94 | 94 | </a> |
| 95 | 95 | <ul class="treeview-menu"> | ... | ... |
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}"> --> |
| ... | ... | @@ -338,18 +338,17 @@ |
| 338 | 338 | </section> |
| 339 | 339 | </div> |
| 340 | 340 | <script th:inline="javascript"> |
| 341 | + // 获取路径参数 | |
| 341 | 342 | function GetQueryString(name) { |
| 342 | 343 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| 343 | 344 | var r = window.location.search.substr(1).match(reg); |
| 344 | 345 | if (r != null) return unescape(r[2]); |
| 345 | 346 | return null; |
| 346 | 347 | } |
| 347 | - | |
| 348 | + // 状态==2是展开状态 触发展开 | |
| 348 | 349 | $(function () { |
| 349 | - if (GetQueryString("up_d") == "2") { | |
| 350 | + if (GetQueryString("expand_list_state") == "2") { | |
| 350 | 351 | $("#query").click(); |
| 351 | - } else { | |
| 352 | - | |
| 353 | 352 | } |
| 354 | 353 | //按钮颜色设置 |
| 355 | 354 | var state = [[${param.state}]] ? [[${param.state}]][0] : null; |
| ... | ... | @@ -448,8 +447,8 @@ |
| 448 | 447 | //全部 |
| 449 | 448 | function quanbu() { |
| 450 | 449 | updateValue(); |
| 451 | - var up_d = $("#forms").attr("up_d"); | |
| 452 | - window.location.href = "/audio/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&up_d=" + up_d; | |
| 450 | + var expand_list_state = $("#forms").attr("expand_list_state"); | |
| 451 | + window.location.href = "/audio/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&expand_list_state=" + expand_list_state; | |
| 453 | 452 | } |
| 454 | 453 | |
| 455 | 454 | //全部待领 |
| ... | ... | @@ -636,12 +635,12 @@ |
| 636 | 635 | $(id_name).slideUp(350); |
| 637 | 636 | $('#a_up').show(); |
| 638 | 637 | $('#a_down').hide(); |
| 639 | - $("#forms").attr("up_d", "1"); | |
| 638 | + $("#forms").attr("expand_list_state", "1"); | |
| 640 | 639 | } else { |
| 641 | 640 | $(id_name).slideDown(350); |
| 642 | 641 | $('#a_up').hide(); |
| 643 | 642 | $('#a_down').show(); |
| 644 | - $("#forms").attr("up_d", "2"); | |
| 643 | + $("#forms").attr("expand_list_state", "2"); | |
| 645 | 644 | } |
| 646 | 645 | } |
| 647 | 646 | ... | ... |
src/main/resources/templates/page/channel.html
| ... | ... | @@ -92,15 +92,14 @@ |
| 92 | 92 | <label for="channel_id" class="control-label cb-toolbar">频道id:</label> |
| 93 | 93 | <div class="col-sm-8" style="padding: 0;"> |
| 94 | 94 | <input class="form-control" name="channel_id" type="text" |
| 95 | - id="channel_id"> | |
| 95 | + id="channel_id" th:value="${Channel_id}"> | |
| 96 | 96 | </div> |
| 97 | 97 | </div> |
| 98 | 98 | <div class="col-md-4" style="padding: 0"> |
| 99 | 99 | <label for="channel_name" class="control-label cb-toolbar">频道名称:</label> |
| 100 | 100 | <div class="col-sm-8" style="padding: 0;"> |
| 101 | 101 | <input class="form-control" name="channel_name" type="text" |
| 102 | - id="channel_name" | |
| 103 | - > | |
| 102 | + id="channel_name" th:value="${Channel_name}"> | |
| 104 | 103 | </div> |
| 105 | 104 | </div> |
| 106 | 105 | <div class="col-md-3" style="padding: 0"> |
| ... | ... | @@ -123,7 +122,7 @@ |
| 123 | 122 | <label for="start_date" class="control-label cb-toolbar">时间:</label> |
| 124 | 123 | <div class="input-group col-md-9 date"> |
| 125 | 124 | <input class="form-control date" name="start_date" type="text" |
| 126 | - id="start_date"> | |
| 125 | + id="start_date" th:value="${Start_date}"> | |
| 127 | 126 | <span class="input-group-addon"> |
| 128 | 127 | <span class="glyphicon glyphicon-calendar"></span> |
| 129 | 128 | </span> |
| ... | ... | @@ -133,7 +132,7 @@ |
| 133 | 132 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 134 | 133 | <div class="input-group col-md-9 date"> |
| 135 | 134 | <input class="form-control date" name="end_date" type="text" |
| 136 | - id="end_date"> | |
| 135 | + id="end_date" th:value="${End_date}"> | |
| 137 | 136 | <span class="input-group-addon"> |
| 138 | 137 | <span class="glyphicon glyphicon-calendar"></span> |
| 139 | 138 | </span> |
| ... | ... | @@ -400,18 +399,17 @@ |
| 400 | 399 | </div> |
| 401 | 400 | <!-- /.modal --> |
| 402 | 401 | <script th:inline="javascript"> |
| 402 | + // 获取路径参数 | |
| 403 | 403 | function GetQueryString(name) { |
| 404 | 404 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| 405 | 405 | var r = window.location.search.substr(1).match(reg); |
| 406 | 406 | if (r != null) return unescape(r[2]); |
| 407 | 407 | return null; |
| 408 | 408 | } |
| 409 | - | |
| 409 | + // 状态==2是展开状态 触发展开 | |
| 410 | 410 | $(function () { |
| 411 | - if (GetQueryString("up_d") == "2") { | |
| 411 | + if (GetQueryString("expand_list_state") == "2") { | |
| 412 | 412 | $("#query").click(); |
| 413 | - } else { | |
| 414 | - | |
| 415 | 413 | } |
| 416 | 414 | //按钮颜色设置 |
| 417 | 415 | var state = [[${param.shenhe_status}]] ? [[${param.shenhe_status}]][0] : null; |
| ... | ... | @@ -488,8 +486,8 @@ |
| 488 | 486 | start_date = $("#start_date").val(); |
| 489 | 487 | end_date = $("#end_date").val(); |
| 490 | 488 | count = $("#pageSize").val(); |
| 491 | - var up_d = $("#forms").attr("up_d"); | |
| 492 | - window.location.href = "/channel/page?channel_id=" + channel_id + "&start_date=" + start_date + "&end_date=" + end_date + "&channel_name=" + channel_name + "&pageSize=" + count + "&shenhe_status=" + shenhe_status + "&receive=" + receive + "&up_d=" + up_d; | |
| 489 | + var expand_list_state = $("#forms").attr("expand_list_state"); | |
| 490 | + window.location.href = "/channel/page?channel_id=" + channel_id + "&start_date=" + start_date + "&end_date=" + end_date + "&channel_name=" + channel_name + "&pageSize=" + count + "&shenhe_status=" + shenhe_status + "&receive=" + receive + "&expand_list_state=" + expand_list_state; | |
| 493 | 491 | } |
| 494 | 492 | |
| 495 | 493 | //全部 |
| ... | ... | @@ -560,12 +558,12 @@ |
| 560 | 558 | $(id_name).slideUp(350); |
| 561 | 559 | $('#a_up').show(); |
| 562 | 560 | $('#a_down').hide(); |
| 563 | - $("#forms").attr("up_d", "1"); | |
| 561 | + $("#forms").attr("expand_list_state", "1"); | |
| 564 | 562 | } else { |
| 565 | 563 | $(id_name).slideDown(350); |
| 566 | 564 | $('#a_up').hide(); |
| 567 | 565 | $('#a_down').show(); |
| 568 | - $("#forms").attr("up_d", "2"); | |
| 566 | + $("#forms").attr("expand_list_state", "2"); | |
| 569 | 567 | } |
| 570 | 568 | } |
| 571 | 569 | ... | ... |
src/main/resources/templates/page/comment.html
| ... | ... | @@ -94,25 +94,24 @@ |
| 94 | 94 | <div class="col-md-3" style="padding: 0"> |
| 95 | 95 | <label for="activity_id" class="control-label cb-toolbar">活动id:</label> |
| 96 | 96 | <div class="col-sm-8" style="padding: 0;"> |
| 97 | - <input class="form-control" name="activity_id" type="text" | |
| 97 | + <input class="form-control" name="activity_id" type="text" th:value="${Activity_id}" | |
| 98 | 98 | id="activity_id"> |
| 99 | 99 | </div> |
| 100 | 100 | </div> |
| 101 | 101 | <div class="col-md-2" style="padding: 0"> |
| 102 | 102 | <label for="comment_user_id" class="control-label cb-toolbar">sid:</label> |
| 103 | 103 | <div class="col-sm-8" style="padding: 0;"> |
| 104 | - <input class="form-control" name="comment_user_id" type="text" | |
| 104 | + <input class="form-control" name="comment_user_id" type="text" th:value="${Comment_user_id}" | |
| 105 | 105 | id="comment_user_id"> |
| 106 | 106 | </div> |
| 107 | 107 | </div> |
| 108 | - | |
| 109 | - <div class="col-md-5" style="padding: 0"> | |
| 108 | + <div class="col-md-3" style="padding: 0"> | |
| 110 | 109 | <label for="content" class="control-label cb-toolbar">内容:</label> |
| 111 | 110 | <div class="col-sm-9" style="padding: 0;"> |
| 112 | - <input class="form-control" name="content" type="text" id="content"> | |
| 111 | + <input class="form-control" name="content" th:value="${Content}" type="text" id="content"> | |
| 113 | 112 | </div> |
| 114 | 113 | </div> |
| 115 | - <div class="col-md-2" style="padding: 0"> | |
| 114 | + <div class="col-md-3" style="padding: 0"> | |
| 116 | 115 | <label for="state" class="control-label cb-toolbar">状态:</label> |
| 117 | 116 | <div class="col-sm-8" style="padding: 0;"> |
| 118 | 117 | <select class="form-control col-sm-2" id="state" name="state"> |
| ... | ... | @@ -124,36 +123,35 @@ |
| 124 | 123 | </div> |
| 125 | 124 | </div> |
| 126 | 125 | </div> |
| 127 | - | |
| 128 | 126 | <div class="btn-group margin-bottom col-md-6 pull-right" style="padding: 0"> |
| 129 | 127 | <div class="col-md-3" style="padding: 0"> |
| 130 | 128 | <label for="state" class="control-label cb-toolbar">类型:</label> |
| 131 | 129 | <div class="col-sm-8" style="padding: 0;"> |
| 132 | 130 | <select class="form-control col-sm-2" id="topic" name="topic"> |
| 133 | 131 | <option value="">全部</option> |
| 134 | - <option value="0">话题</option> | |
| 135 | - <option value="1">其他</option> | |
| 132 | + <option value="0" th:selected="${Type eq '0'}">话题</option> | |
| 133 | + <option value="1" th:selected="${Type eq '1'}">其他</option> | |
| 136 | 134 | </select> |
| 137 | 135 | </div> |
| 138 | 136 | </div> |
| 139 | - <div class="col-md-5" style="padding: 0;"> | |
| 137 | + <div class="col-md-4" style="padding: 0;"> | |
| 140 | 138 | <label for="start_date" class="control-label cb-toolbar">时间:</label> |
| 141 | 139 | <div class="input-group col-md-9 date"> |
| 142 | 140 | <input class="form-control date" name="start_date" type="text" |
| 143 | - id="start_date"> | |
| 141 | + id="start_date" th:value="${Start_date}"> | |
| 144 | 142 | <span class="input-group-addon"> |
| 145 | 143 | <span class="glyphicon glyphicon-calendar"></span> |
| 146 | - </span> | |
| 144 | + </span> | |
| 147 | 145 | </div> |
| 148 | 146 | </div> |
| 149 | 147 | <div class="col-md-4" style="padding: 0;"> |
| 150 | 148 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 151 | 149 | <div class="input-group col-md-9 date"> |
| 152 | 150 | <input class="form-control date" name="end_date" type="text" |
| 153 | - id="end_date"> | |
| 151 | + id="end_date" th:value="${End_date}"> | |
| 154 | 152 | <span class="input-group-addon"> |
| 155 | 153 | <span class="glyphicon glyphicon-calendar"></span> |
| 156 | - </span> | |
| 154 | + </span> | |
| 157 | 155 | </div> |
| 158 | 156 | </div> |
| 159 | 157 | </div> |
| ... | ... | @@ -527,6 +525,7 @@ |
| 527 | 525 | </div> |
| 528 | 526 | <!-- /.modal --> |
| 529 | 527 | <script th:inline="javascript"> |
| 528 | + // 获取路径参数 | |
| 530 | 529 | function GetQueryString(name) { |
| 531 | 530 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| 532 | 531 | var r = window.location.search.substr(1).match(reg); |
| ... | ... | @@ -534,12 +533,10 @@ |
| 534 | 533 | return null; |
| 535 | 534 | } |
| 536 | 535 | |
| 537 | - | |
| 536 | + // 状态==2是展开状态 触发展开 | |
| 538 | 537 | $(function () { |
| 539 | - if (GetQueryString("up_d") == "2") { | |
| 538 | + if (GetQueryString("expand_list_state") == "2") { | |
| 540 | 539 | $("#query").click(); |
| 541 | - } else { | |
| 542 | - | |
| 543 | 540 | } |
| 544 | 541 | //按钮颜色设置 |
| 545 | 542 | var state = [[${param.state}]] ? [[${param.state}]][0] : null; |
| ... | ... | @@ -622,8 +619,8 @@ |
| 622 | 619 | count = $("#pageSize").val(); |
| 623 | 620 | type = $("#topic").val(); |
| 624 | 621 | comment_user_id = $("#comment_user_id").val(); |
| 625 | - var up_d = $("#forms").attr("up_d"); | |
| 626 | - window.location.href = "/comments/page?activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&content=" + content + "&pageSize=" + count + "&state=" + state + "&receive=" + receive + "&type=" + type + "&comment_user_id=" + comment_user_id + "&up_d=" + up_d; | |
| 622 | + var expand_list_state = $("#forms").attr("expand_list_state"); | |
| 623 | + window.location.href = "/comments/page?activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&content=" + content + "&pageSize=" + count + "&state=" + state + "&receive=" + receive + "&type=" + type + "&comment_user_id=" + comment_user_id + "&expand_list_state=" + expand_list_state; | |
| 627 | 624 | } |
| 628 | 625 | |
| 629 | 626 | //全部 |
| ... | ... | @@ -736,12 +733,12 @@ |
| 736 | 733 | $(id_name).slideUp(350); |
| 737 | 734 | $('#a_up').show(); |
| 738 | 735 | $('#a_down').hide(); |
| 739 | - $("#forms").attr("up_d", "1"); | |
| 736 | + $("#forms").attr("expand_list_state", "1"); | |
| 740 | 737 | } else { |
| 741 | 738 | $(id_name).slideDown(350); |
| 742 | 739 | $('#a_up').hide(); |
| 743 | 740 | $('#a_down').show(); |
| 744 | - $("#forms").attr("up_d", "2"); | |
| 741 | + $("#forms").attr("expand_list_state", "2"); | |
| 745 | 742 | } |
| 746 | 743 | } |
| 747 | 744 | ... | ... |
src/main/resources/templates/page/commentDetail.html
| ... | ... | @@ -185,7 +185,7 @@ |
| 185 | 185 | <script th:inline="javascript"> |
| 186 | 186 | |
| 187 | 187 | $(function () { |
| 188 | - var url = "/content/page"; | |
| 188 | + var url = "/comments/page"; | |
| 189 | 189 | $('ul.treeview-menu>li').removeClass("active"); |
| 190 | 190 | $('.sidebar-menu>li').removeClass("active"); |
| 191 | 191 | $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //二级链接高亮 | ... | ... |
src/main/resources/templates/page/content.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="${Title}" value="" id="video_titleID"> | |
| 85 | 85 | </div> |
| 86 | 86 | </div> |
| 87 | 87 | </div> |
| ... | ... | @@ -89,9 +89,9 @@ |
| 89 | 89 | <div class="btn-group margin-bottom col-md-6" |
| 90 | 90 | style="padding: 0;width: 23%;float: left;"> |
| 91 | 91 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 92 | - <label for="source" class="control-label cb-toolbar">来源(昵称):</label> | |
| 92 | + <label for="source" class="control-label cb-toolbar">来源昵称:</label> | |
| 93 | 93 | <div class="col-sm-9" style="padding: 0;"> |
| 94 | - <input class="form-control" type="text" value="" id="source"> | |
| 94 | + <input class="form-control" type="text" th:value="${Source}" value="" id="source"> | |
| 95 | 95 | </div> |
| 96 | 96 | </div> |
| 97 | 97 | </div> |
| ... | ... | @@ -99,9 +99,9 @@ |
| 99 | 99 | <div class="btn-group margin-bottom col-md-6" |
| 100 | 100 | style="padding: 0;width: 23%;float: left;"> |
| 101 | 101 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 102 | - <label for="author" class="control-label cb-toolbar">作者(sid):</label> | |
| 102 | + <label for="author" class="control-label cb-toolbar">作者sid:</label> | |
| 103 | 103 | <div class="col-sm-9" style="padding: 0;"> |
| 104 | - <input class="form-control" type="text" value="" id="author"> | |
| 104 | + <input class="form-control" type="text" th:value="${Author}" value="" id="author"> | |
| 105 | 105 | </div> |
| 106 | 106 | </div> |
| 107 | 107 | </div> |
| ... | ... | @@ -113,10 +113,10 @@ |
| 113 | 113 | <div class="col-sm-8" style="padding: 0;"> |
| 114 | 114 | <select class="form-control" id="content_tag" name="content_tag"> |
| 115 | 115 | <option value="">全部</option> |
| 116 | - <option value="content">图文发布</option> | |
| 117 | - <option value="moment">朋友圈</option> | |
| 118 | - <option value="cms_photoalbum">家庭相册</option> | |
| 119 | - <option value="edu_works">作业作品</option> | |
| 116 | + <option value="content" th:selected="${ContentTag eq 'content'}">图文发布</option> | |
| 117 | + <option value="moment" th:selected="${ContentTag eq 'moment'}">朋友圈</option> | |
| 118 | + <option value="cms_photoalbum" th:selected="${ContentTag eq 'cms_photoalbum'}">家庭相册</option> | |
| 119 | + <option value="edu_works" th:selected="${ContentTag eq 'edu_works'}">作业作品</option> | |
| 120 | 120 | </select> |
| 121 | 121 | <!-- <input class="form-control" name="content_tag" type="text" id="content_tag"> --> |
| 122 | 122 | </div> |
| ... | ... | @@ -130,7 +130,7 @@ |
| 130 | 130 | <label for="start_date" class="control-label cb-toolbar">时间:</label> |
| 131 | 131 | <div class="input-group col-md-9 date"> |
| 132 | 132 | <input class="form-control date" name="start_date" type="text" |
| 133 | - id="start_date"> | |
| 133 | + id="start_date" th:value="${Start_date}"> | |
| 134 | 134 | <span class="input-group-addon"> |
| 135 | 135 | <span class="glyphicon glyphicon-calendar"></span> |
| 136 | 136 | </span> |
| ... | ... | @@ -140,7 +140,7 @@ |
| 140 | 140 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 141 | 141 | <div class="input-group col-md-9 date"> |
| 142 | 142 | <input class="form-control date" name="end_date" type="text" |
| 143 | - id="end_date"> | |
| 143 | + id="end_date" th:value="${End_date}"> | |
| 144 | 144 | <span class="input-group-addon"> |
| 145 | 145 | <span class="glyphicon glyphicon-calendar"></span> |
| 146 | 146 | </span> |
| ... | ... | @@ -151,23 +151,23 @@ |
| 151 | 151 | th:if="${session.sessionUser.spid==0}"> |
| 152 | 152 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> |
| 153 | 153 | <div class="col-sm-7" style="padding: 0;"> |
| 154 | - <input class="form-control" type="text" value="" id="sp_desc"> | |
| 154 | + <input class="form-control" type="text" th:value="${Sp_desc}" value="" id="sp_desc"> | |
| 155 | 155 | </div> |
| 156 | 156 | </div> |
| 157 | 157 | |
| 158 | - <div class="col-md-6" style="padding: 0;width: 15%;" | |
| 159 | - th:if="${session.sessionUser.spid==0}"> | |
| 160 | - <label for="count" class="control-label cb-toolbar">每页条数:</label> | |
| 161 | - <div class="col-sm-5" style="padding: 0;"> | |
| 162 | - <input class="form-control" type="text" value="" id="count"> | |
| 163 | - </div> | |
| 164 | - </div> | |
| 158 | +<!-- <div class="col-md-6" style="padding: 0;width: 15%;"--> | |
| 159 | +<!-- th:if="${session.sessionUser.spid==0}">--> | |
| 160 | +<!-- <label for="count" class="control-label cb-toolbar">每页条数:</label>--> | |
| 161 | +<!-- <div class="col-sm-5" style="padding: 0;">--> | |
| 162 | +<!-- <input class="form-control" type="text" value="" id="count">--> | |
| 163 | +<!-- </div>--> | |
| 164 | +<!-- </div>--> | |
| 165 | 165 | |
| 166 | 166 | <div class="col-md-6" style="padding: 0;width: 20%;" |
| 167 | 167 | th:if="${session.sessionUser.spid==0}"> |
| 168 | 168 | <label for="contentId" class="control-label cb-toolbar">图文发布id:</label> |
| 169 | - <div class="col-sm-5" style="padding: 0;"> | |
| 170 | - <input class="form-control" type="text" value="" id="contentId"> | |
| 169 | + <div class="col-sm-6" style="padding: 0;"> | |
| 170 | + <input class="form-control" type="text" th:value="${ContentId}" value="" id="contentId"> | |
| 171 | 171 | </div> |
| 172 | 172 | </div> |
| 173 | 173 | </div> |
| ... | ... | @@ -377,7 +377,7 @@ |
| 377 | 377 | </section> |
| 378 | 378 | </div> |
| 379 | 379 | <script th:inline="javascript"> |
| 380 | - | |
| 380 | + // 获取路径参数 | |
| 381 | 381 | function GetQueryString(name) { |
| 382 | 382 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| 383 | 383 | var r = window.location.search.substr(1).match(reg); |
| ... | ... | @@ -385,12 +385,10 @@ |
| 385 | 385 | return null; |
| 386 | 386 | } |
| 387 | 387 | |
| 388 | - | |
| 388 | + // 状态==2是展开状态 触发展开 | |
| 389 | 389 | $(function () { |
| 390 | - if (GetQueryString("up_d") == "2") { | |
| 390 | + if (GetQueryString("expand_list_state") == "2") { | |
| 391 | 391 | $("#query").click(); |
| 392 | - } else { | |
| 393 | - | |
| 394 | 392 | } |
| 395 | 393 | //按钮颜色设置 |
| 396 | 394 | var receive_status = [[${param.receive_status}]] ? [[${param.receive_status}]][0] : null; |
| ... | ... | @@ -490,8 +488,8 @@ |
| 490 | 488 | //全部 |
| 491 | 489 | function quanbu() { |
| 492 | 490 | updateValue(); |
| 493 | - var up_d = $("#forms").attr("up_d"); | |
| 494 | - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&up_d=" + up_d; | |
| 491 | + var expand_list_state = $("#forms").attr("expand_list_state"); | |
| 492 | + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state; | |
| 495 | 493 | } |
| 496 | 494 | |
| 497 | 495 | //全部待领 |
| ... | ... | @@ -682,12 +680,12 @@ |
| 682 | 680 | $(id_name).slideUp(350); |
| 683 | 681 | $('#a_up').show(); |
| 684 | 682 | $('#a_down').hide(); |
| 685 | - $("#forms").attr("up_d", "1"); | |
| 683 | + $("#forms").attr("expand_list_state", "1"); | |
| 686 | 684 | } else { |
| 687 | 685 | $(id_name).slideDown(350); |
| 688 | 686 | $('#a_up').hide(); |
| 689 | 687 | $('#a_down').show(); |
| 690 | - $("#forms").attr("up_d", "2"); | |
| 688 | + $("#forms").attr("expand_list_state", "2"); | |
| 691 | 689 | } |
| 692 | 690 | } |
| 693 | 691 | ... | ... |
src/main/resources/templates/page/contentDetail.html
| ... | ... | @@ -144,14 +144,14 @@ |
| 144 | 144 | |
| 145 | 145 | <div class="form-group"> |
| 146 | 146 | <label for="comment_user_ip" |
| 147 | - class="control-label col-sm-2">来源(昵称):</label> | |
| 147 | + class="control-label col-sm-2">来源昵称:</label> | |
| 148 | 148 | <div class="col-sm-10"> |
| 149 | 149 | <h5 th:text="${content.source}">114.242.177.100</h5> |
| 150 | 150 | </div> |
| 151 | 151 | </div> |
| 152 | 152 | |
| 153 | 153 | <div class="form-group"> |
| 154 | - <label for="app_id" class="control-label col-sm-2">作者(sid):</label> | |
| 154 | + <label for="app_id" class="control-label col-sm-2">作者sid:</label> | |
| 155 | 155 | <div class="col-sm-10"> |
| 156 | 156 | <h5 th:text="${content.author}">769_jetj7bq525</h5> |
| 157 | 157 | </div> | ... | ... |
src/main/resources/templates/page/live.html
| ... | ... | @@ -86,14 +86,14 @@ |
| 86 | 86 | <label for="activity_name" class="control-label cb-toolbar">直播名称:</label> |
| 87 | 87 | <div class="col-sm-7" style="padding: 0;"> |
| 88 | 88 | <input class="form-control col-sm-2" name="activity_name" |
| 89 | - type="text" id="activity_name"> | |
| 89 | + type="text" id="activity_name" th:value="${Activity_name}"> | |
| 90 | 90 | </div> |
| 91 | 91 | </div> |
| 92 | 92 | <div class="col-md-3" style="padding: 0"> |
| 93 | 93 | <label for="activity_id" class="control-label cb-toolbar">直播id:</label> |
| 94 | 94 | <div class="col-sm-7" style="padding: 0;"> |
| 95 | 95 | <input class="form-control" name="activity_id" type="text" |
| 96 | - id="activity_id"> | |
| 96 | + id="activity_id" th:value="${Activity_id}"> | |
| 97 | 97 | </div> |
| 98 | 98 | </div> |
| 99 | 99 | |
| ... | ... | @@ -101,7 +101,7 @@ |
| 101 | 101 | <label for="contentId" class="control-label cb-toolbar">内容id:</label> |
| 102 | 102 | <div class="col-sm-7" style="padding: 0;"> |
| 103 | 103 | <input class="form-control" name="contentId" type="text" |
| 104 | - id="contentId"> | |
| 104 | + id="contentId" th:value="${ContentId}"> | |
| 105 | 105 | </div> |
| 106 | 106 | </div> |
| 107 | 107 | |
| ... | ... | @@ -119,21 +119,21 @@ |
| 119 | 119 | th:if="${session.sessionUser.spid==0}"> |
| 120 | 120 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> |
| 121 | 121 | <div class="col-sm-8" style="padding: 0;"> |
| 122 | - <input class="form-control" type="text" value="" id="sp_desc"> | |
| 122 | + <input class="form-control" type="text" th:value="${Sp_desc}" value="" id="sp_desc"> | |
| 123 | 123 | </div> |
| 124 | 124 | </div> |
| 125 | 125 | <div class="col-md-3" style="padding: 0"> |
| 126 | 126 | <label for="activity_status" |
| 127 | 127 | class="control-label cb-toolbar">直播状态:</label> |
| 128 | - <div class="col-sm-6" style="padding: 0;"> | |
| 128 | + <div class="col-sm-7" style="padding: 0;"> | |
| 129 | 129 | <select class="form-control col-sm-2" id="activity_status" |
| 130 | 130 | name="activity_status"> |
| 131 | 131 | <option value="">全部</option> |
| 132 | - <option value="3">等待直播</option> | |
| 133 | - <option value="1">正在直播</option> | |
| 134 | - <option value="2">直播结束</option> | |
| 135 | - <option value="0">直播撤销</option> | |
| 136 | - <option value="4">直播下线</option> | |
| 132 | + <option value="3" th:selected="${ActivityStatus==3}">等待直播</option> | |
| 133 | + <option value="1" th:selected="${ActivityStatus==1}">正在直播</option> | |
| 134 | + <option value="2" th:selected="${ActivityStatus==2}">直播结束</option> | |
| 135 | + <option value="0" th:selected="${ActivityStatus==0}">直播撤销</option> | |
| 136 | + <option value="4" th:selected="${ActivityStatus==4}">直播下线</option> | |
| 137 | 137 | </select> |
| 138 | 138 | </div> |
| 139 | 139 | </div> |
| ... | ... | @@ -147,7 +147,7 @@ |
| 147 | 147 | <label for="start_date" class="control-label cb-toolbar">时间:</label> |
| 148 | 148 | <div class='input-group col-md-9 date'> |
| 149 | 149 | <input class="form-control date" name="start_date" |
| 150 | - type="text" id="start_date"> <span | |
| 150 | + type="text" id="start_date" th:value="${Start_date}"> <span | |
| 151 | 151 | class="input-group-addon"> <span |
| 152 | 152 | class="glyphicon glyphicon-calendar"></span> |
| 153 | 153 | </span> |
| ... | ... | @@ -157,7 +157,7 @@ |
| 157 | 157 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 158 | 158 | <div class='input-group col-md-9 date'> |
| 159 | 159 | <input class="form-control date" name="end_date" |
| 160 | - type="text" id="end_date"> <span class="input-group-addon"> | |
| 160 | + type="text" id="end_date" th:value="${End_date}"> <span class="input-group-addon"> | |
| 161 | 161 | <span class="glyphicon glyphicon-calendar"></span> |
| 162 | 162 | </span> |
| 163 | 163 | </div> |
| ... | ... | @@ -458,7 +458,7 @@ |
| 458 | 458 | |
| 459 | 459 | |
| 460 | 460 | <script th:inline="javascript"> |
| 461 | - | |
| 461 | + // 获取路径参数 | |
| 462 | 462 | function GetQueryString(name) { |
| 463 | 463 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| 464 | 464 | var r = window.location.search.substr(1).match(reg); |
| ... | ... | @@ -489,8 +489,8 @@ |
| 489 | 489 | sp_desc = $("#sp_desc").val(); |
| 490 | 490 | contentId = $("#contentId").val(); |
| 491 | 491 | } |
| 492 | - var up_d = $("#forms").attr("up_d"); | |
| 493 | - window.location.href = "/live/page?activity_status=" + activity_status + "&activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&activity_name=" + activity_name + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&shenhe_state=" + shenhe_state + "&contentId=" + contentId + "&up_d=" + up_d; | |
| 492 | + var expand_list_state = $("#forms").attr("expand_list_state"); | |
| 493 | + window.location.href = "/live/page?activity_status=" + activity_status + "&activity_id=" + activity_id + "&start_date=" + start_date + "&end_date=" + end_date + "&activity_name=" + activity_name + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&shenhe_state=" + shenhe_state + "&contentId=" + contentId + "&expand_list_state=" + expand_list_state; | |
| 494 | 494 | } |
| 495 | 495 | |
| 496 | 496 | //全部 |
| ... | ... | @@ -709,21 +709,19 @@ |
| 709 | 709 | $(id_name).slideUp(350); |
| 710 | 710 | $('#a_up').show(); |
| 711 | 711 | $('#a_down').hide(); |
| 712 | - $("#forms").attr("up_d", "1"); | |
| 712 | + $("#forms").attr("expand_list_state", "1"); | |
| 713 | 713 | } else { |
| 714 | 714 | $(id_name).slideDown(350); |
| 715 | 715 | $('#a_up').hide(); |
| 716 | 716 | $('#a_down').show(); |
| 717 | - $("#forms").attr("up_d", "2"); | |
| 717 | + $("#forms").attr("expand_list_state", "2"); | |
| 718 | 718 | } |
| 719 | 719 | } |
| 720 | 720 | |
| 721 | - | |
| 721 | + // 状态==2是展开状态 触发展开 | |
| 722 | 722 | $(function () { |
| 723 | - if (GetQueryString("up_d") == "2") { | |
| 723 | + if (GetQueryString("expand_list_state") == "2") { | |
| 724 | 724 | $("#query").click(); |
| 725 | - } else { | |
| 726 | - | |
| 727 | 725 | } |
| 728 | 726 | //按钮颜色设置 |
| 729 | 727 | var shenhe_state = [[${param.shenhe_state}]] ? [[${param.shenhe_state}]][0] : null; | ... | ... |
src/main/resources/templates/page/liveApply.html
| ... | ... | @@ -80,7 +80,7 @@ |
| 80 | 80 | <div class="col-md-6" style="padding: 0;width: 100%;"> |
| 81 | 81 | <label for="liveApply_theme" class="control-label cb-toolbar">直播主题:</label> |
| 82 | 82 | <div class="col-sm-7" style="padding: 0;"> |
| 83 | - <input class="form-control" type="text" value="" id="liveApply_theme"> | |
| 83 | + <input class="form-control" type="text" th:value="${Theme}" value="" id="liveApply_theme"> | |
| 84 | 84 | </div> |
| 85 | 85 | </div> |
| 86 | 86 | </div> |
| ... | ... | @@ -114,10 +114,10 @@ |
| 114 | 114 | <div class="btn-group margin-bottom col-md-6" |
| 115 | 115 | style="padding-left: 0px;width: 15%;float: left;"> |
| 116 | 116 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 117 | - <label for="business_model" class="control-label cb-toolbar">发起单位:</label> | |
| 117 | + <label for="organization" class="control-label cb-toolbar">发起单位:</label> | |
| 118 | 118 | <div class="col-sm-7" style="padding: 0;"> |
| 119 | - <input class="form-control" type="text" value="" id="business_model" | |
| 120 | - name="business_model"> | |
| 119 | + <input class="form-control" type="text" th:value="${Organization}" value="" id="organization" | |
| 120 | + name="organization"> | |
| 121 | 121 | </div> |
| 122 | 122 | </div> |
| 123 | 123 | </div> |
| ... | ... | @@ -127,7 +127,7 @@ |
| 127 | 127 | th:if="${session.sessionUser.spid==0}"> |
| 128 | 128 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> |
| 129 | 129 | <div class="col-sm-7" style="padding: 0;"> |
| 130 | - <input class="form-control" type="text" value="" id="sp_desc"> | |
| 130 | + <input class="form-control" type="text" th:value="${Sp_desc}" value="" id="sp_desc"> | |
| 131 | 131 | </div> |
| 132 | 132 | </div> |
| 133 | 133 | </div> |
| ... | ... | @@ -137,7 +137,7 @@ |
| 137 | 137 | <label for="start_date" class="control-label cb-toolbar">预计时间:</label> |
| 138 | 138 | <div class="input-group col-md-8 date"> |
| 139 | 139 | <input class="form-control date" name="start_date" type="text" |
| 140 | - id="start_date"> | |
| 140 | + id="start_date" th:value="${Start_date}"> | |
| 141 | 141 | <span class="input-group-addon"> |
| 142 | 142 | <span class="glyphicon glyphicon-calendar"></span> |
| 143 | 143 | </span> |
| ... | ... | @@ -150,7 +150,7 @@ |
| 150 | 150 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 151 | 151 | <div class="input-group col-md-8 date"> |
| 152 | 152 | <input class="form-control date" name="end_date" type="text" |
| 153 | - id="end_date"> | |
| 153 | + id="end_date" th:value="${End_date}"> | |
| 154 | 154 | <span class="input-group-addon"> |
| 155 | 155 | <span class="glyphicon glyphicon-calendar"></span> |
| 156 | 156 | </span> |
| ... | ... | @@ -400,18 +400,17 @@ |
| 400 | 400 | </section> |
| 401 | 401 | </div> |
| 402 | 402 | <script th:inline="javascript"> |
| 403 | + // 获取路径参数 | |
| 403 | 404 | function GetQueryString(name) { |
| 404 | 405 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| 405 | 406 | var r = window.location.search.substr(1).match(reg); |
| 406 | 407 | if (r != null) return unescape(r[2]); |
| 407 | 408 | return null; |
| 408 | 409 | } |
| 409 | - | |
| 410 | + // 状态==2是展开状态 触发展开 | |
| 410 | 411 | $(function () { |
| 411 | - if (GetQueryString("up_d") == "2") { | |
| 412 | + if (GetQueryString("expand_list_state") == "2") { | |
| 412 | 413 | $("#query").click(); |
| 413 | - } else { | |
| 414 | - | |
| 415 | 414 | } |
| 416 | 415 | //按钮颜色设置 |
| 417 | 416 | var state = [[${param.shenhe_state}]] ? [[${param.shenhe_state}]][0] : null; |
| ... | ... | @@ -486,7 +485,7 @@ |
| 486 | 485 | var start_date = ""; |
| 487 | 486 | var end_date = ""; |
| 488 | 487 | var sp_desc = ""; |
| 489 | - var business_model = ""; | |
| 488 | + var organization = ""; | |
| 490 | 489 | var shenhe_state = ""; |
| 491 | 490 | var count = ""; |
| 492 | 491 | |
| ... | ... | @@ -495,7 +494,7 @@ |
| 495 | 494 | start_date = $("#start_date").val(); |
| 496 | 495 | end_date = $("#end_date").val(); |
| 497 | 496 | shenhe_state = $("#shenhe_state").val(); |
| 498 | - business_model = $("#business_model").val(); | |
| 497 | + organization = $("#organization").val(); | |
| 499 | 498 | count = $("#pageSize").val(); |
| 500 | 499 | var spId = [[${session.sessionUser.spid}]]; |
| 501 | 500 | if (spId == 0) { |
| ... | ... | @@ -508,8 +507,8 @@ |
| 508 | 507 | function quanbu() { |
| 509 | 508 | updateValue(); |
| 510 | 509 | var receive = ""; |
| 511 | - var up_d = $("#forms").attr("up_d"); | |
| 512 | - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&up_d=" + up_d; | |
| 510 | + var expand_list_state = $("#forms").attr("expand_list_state"); | |
| 511 | + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&expand_list_state=" + expand_list_state; | |
| 513 | 512 | } |
| 514 | 513 | |
| 515 | 514 | //全部待领 |
| ... | ... | @@ -517,27 +516,27 @@ |
| 517 | 516 | updateValue(); |
| 518 | 517 | if ($.trim(shenhe_state) == '') shenhe_state = 0; |
| 519 | 518 | var receive = 0; |
| 520 | - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count; | |
| 519 | + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count; | |
| 521 | 520 | }); |
| 522 | 521 | //我的待审核 |
| 523 | 522 | $('#Mydaishen').click(function () { |
| 524 | 523 | updateValue(); |
| 525 | 524 | var receive = 1; |
| 526 | 525 | if ($.trim(shenhe_state) == '') shenhe_state = 0; |
| 527 | - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count; | |
| 526 | + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count; | |
| 528 | 527 | }); |
| 529 | 528 | //我的已审核 |
| 530 | 529 | $('#yishen').click(function () { |
| 531 | 530 | updateValue(); |
| 532 | 531 | var receive = 1; |
| 533 | 532 | if ($.trim(shenhe_state) == '') shenhe_state = 3;//审核状态,3代表通过和拒绝都查询 |
| 534 | - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count; | |
| 533 | + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count; | |
| 535 | 534 | }); |
| 536 | 535 | |
| 537 | 536 | |
| 538 | 537 | //查询 |
| 539 | 538 | $('#videos_query').click(function () { |
| 540 | - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count; | |
| 539 | + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count; | |
| 541 | 540 | }); |
| 542 | 541 | /*全选的操作*/ |
| 543 | 542 | $('#select_all').click(function () { |
| ... | ... | @@ -726,12 +725,12 @@ |
| 726 | 725 | $(id_name).slideUp(350); |
| 727 | 726 | $('#a_up').show(); |
| 728 | 727 | $('#a_down').hide(); |
| 729 | - $("#forms").attr("up_d", "1"); | |
| 728 | + $("#forms").attr("expand_list_state", "1"); | |
| 730 | 729 | } else { |
| 731 | 730 | $(id_name).slideDown(350); |
| 732 | 731 | $('#a_up').hide(); |
| 733 | 732 | $('#a_down').show(); |
| 734 | - $("#forms").attr("up_d", "2"); | |
| 733 | + $("#forms").attr("expand_list_state", "2"); | |
| 735 | 734 | } |
| 736 | 735 | } |
| 737 | 736 | ... | ... |
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"> --> |
| ... | ... | @@ -444,19 +444,17 @@ |
| 444 | 444 | </div> |
| 445 | 445 | <!-- /.modal --> |
| 446 | 446 | <script th:inline="javascript"> |
| 447 | - | |
| 447 | + // 获取路径参数 | |
| 448 | 448 | function GetQueryString(name) { |
| 449 | 449 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| 450 | 450 | var r = window.location.search.substr(1).match(reg); |
| 451 | 451 | if (r != null) return unescape(r[2]); |
| 452 | 452 | return null; |
| 453 | 453 | } |
| 454 | - | |
| 454 | + // 状态==2是展开状态 触发展开 | |
| 455 | 455 | $(function () { |
| 456 | - if (GetQueryString("up_d") == "2") { | |
| 456 | + if (GetQueryString("expand_list_state") == "2") { | |
| 457 | 457 | $("#query").click(); |
| 458 | - } else { | |
| 459 | - | |
| 460 | 458 | } |
| 461 | 459 | //按钮颜色设置 |
| 462 | 460 | var state = [[${param.state}]] ? [[${param.state}]][0] : null; |
| ... | ... | @@ -484,8 +482,8 @@ |
| 484 | 482 | user_id = $("#user_id").val(); |
| 485 | 483 | user_name = $("#user_name").val(); |
| 486 | 484 | count = $("#pageSize").val(); |
| 487 | - var up_d = $("#forms").attr("up_d"); | |
| 488 | - window.location.href = "/notSpeak/page?user_id=" + user_id + "&user_name=" + user_name + "&state=" + state + "&pageSize=" + count + "&up_d=" + up_d; | |
| 485 | + var expand_list_state = $("#forms").attr("expand_list_state"); | |
| 486 | + window.location.href = "/notSpeak/page?user_id=" + user_id + "&user_name=" + user_name + "&state=" + state + "&pageSize=" + count + "&expand_list_state=" + expand_list_state; | |
| 489 | 487 | } |
| 490 | 488 | |
| 491 | 489 | //全部 |
| ... | ... | @@ -660,12 +658,12 @@ |
| 660 | 658 | $(id_name).slideUp(350); |
| 661 | 659 | $('#a_up').show(); |
| 662 | 660 | $('#a_down').hide(); |
| 663 | - $("#forms").attr("up_d", "1"); | |
| 661 | + $("#forms").attr("expand_list_state", "1"); | |
| 664 | 662 | } else { |
| 665 | 663 | $(id_name).slideDown(350); |
| 666 | 664 | $('#a_up').hide(); |
| 667 | 665 | $('#a_down').show(); |
| 668 | - $("#forms").attr("up_d", "2"); | |
| 666 | + $("#forms").attr("expand_list_state", "2"); | |
| 669 | 667 | } |
| 670 | 668 | } |
| 671 | 669 | </script> | ... | ... |
src/main/resources/templates/page/topic.html
| ... | ... | @@ -89,7 +89,7 @@ |
| 89 | 89 | <div class="col-md-6" style="padding: 0;width: 100%;"> |
| 90 | 90 | <label for="topicId" class="control-label cb-toolbar">话题id:</label> |
| 91 | 91 | <div class="col-sm-7" style="padding: 0;"> |
| 92 | - <input class="form-control" type="text" value="" id="topicId" | |
| 92 | + <input class="form-control" type="text" th:value="${Topic_id}" value="" id="topicId" | |
| 93 | 93 | name="topicId"> |
| 94 | 94 | </div> |
| 95 | 95 | </div> |
| ... | ... | @@ -114,7 +114,7 @@ |
| 114 | 114 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 115 | 115 | <label for="topic_name" class="control-label cb-toolbar">话题标题:</label> |
| 116 | 116 | <div class="col-sm-7" style="padding: 0;"> |
| 117 | - <input class="form-control" type="text" value="" id="topic_name" | |
| 117 | + <input class="form-control" type="text" th:value="${Topic_name}" value="" id="topic_name" | |
| 118 | 118 | name="topic_name"> |
| 119 | 119 | </div> |
| 120 | 120 | </div> |
| ... | ... | @@ -125,7 +125,7 @@ |
| 125 | 125 | th:if="${session.sessionUser.spid==0}"> |
| 126 | 126 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> |
| 127 | 127 | <div class="col-sm-7" style="padding: 0;"> |
| 128 | - <input class="form-control" type="text" value="" id="sp_desc"> | |
| 128 | + <input class="form-control" type="text" th:value="${Sp_desc}" value="" id="sp_desc"> | |
| 129 | 129 | </div> |
| 130 | 130 | </div> |
| 131 | 131 | </div> |
| ... | ... | @@ -135,7 +135,7 @@ |
| 135 | 135 | <label for="start_date" class="control-label cb-toolbar">预计时间:</label> |
| 136 | 136 | <div class="input-group col-md-8 date"> |
| 137 | 137 | <input class="form-control date" name="start_date" type="text" |
| 138 | - id="start_date"> | |
| 138 | + id="start_date" th:value="${Start_date}"> | |
| 139 | 139 | <span class="input-group-addon"> |
| 140 | 140 | <span class="glyphicon glyphicon-calendar"></span> |
| 141 | 141 | </span> |
| ... | ... | @@ -148,7 +148,7 @@ |
| 148 | 148 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 149 | 149 | <div class="input-group col-md-8 date"> |
| 150 | 150 | <input class="form-control date" name="end_date" type="text" |
| 151 | - id="end_date"> | |
| 151 | + id="end_date" th:value="${End_date}"> | |
| 152 | 152 | <span class="input-group-addon"> |
| 153 | 153 | <span class="glyphicon glyphicon-calendar"></span> |
| 154 | 154 | </span> |
| ... | ... | @@ -418,6 +418,7 @@ |
| 418 | 418 | </div> |
| 419 | 419 | <!-- /.modal --> |
| 420 | 420 | <script th:inline="javascript"> |
| 421 | + // 获取路径参数 | |
| 421 | 422 | function GetQueryString(name) { |
| 422 | 423 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| 423 | 424 | var r = window.location.search.substr(1).match(reg); |
| ... | ... | @@ -426,10 +427,8 @@ |
| 426 | 427 | } |
| 427 | 428 | |
| 428 | 429 | $(function () { |
| 429 | - if (GetQueryString("up_d") == "2") { | |
| 430 | + if (GetQueryString("expand_list_state") == "2") { | |
| 430 | 431 | $("#query").click(); |
| 431 | - } else { | |
| 432 | - | |
| 433 | 432 | } |
| 434 | 433 | //按钮颜色设置 |
| 435 | 434 | var state = [[${param.shenhe_status}]] ? [[${param.shenhe_status}]][0] : null; |
| ... | ... | @@ -508,8 +507,8 @@ |
| 508 | 507 | end_date = $("#end_date").val(); |
| 509 | 508 | count = $("#pageSize").val(); |
| 510 | 509 | sp_desc = $("#sp_desc").val(); |
| 511 | - var up_d = $("#forms").attr("up_d"); | |
| 512 | - window.location.href = "/topic/page?topic_id=" + topic_id + "&start_date=" + start_date + "&end_date=" + end_date + "&topic_name=" + topic_name + "&pageSize=" + count + "&shenhe_status=" + shenhe_status + "&receive=" + receive + "&sp_desc=" + sp_desc + "&up_d=" + up_d; | |
| 510 | + var expand_list_state = $("#forms").attr("expand_list_state"); | |
| 511 | + window.location.href = "/topic/page?topic_id=" + topic_id + "&start_date=" + start_date + "&end_date=" + end_date + "&topic_name=" + topic_name + "&pageSize=" + count + "&shenhe_status=" + shenhe_status + "&receive=" + receive + "&sp_desc=" + sp_desc + "&expand_list_state=" + expand_list_state; | |
| 513 | 512 | } |
| 514 | 513 | |
| 515 | 514 | //全部 |
| ... | ... | @@ -584,12 +583,12 @@ |
| 584 | 583 | $(id_name).slideUp(350); |
| 585 | 584 | $('#a_up').show(); |
| 586 | 585 | $('#a_down').hide(); |
| 587 | - $("#forms").attr("up_d", "1"); | |
| 586 | + $("#forms").attr("expand_list_state", "1"); | |
| 588 | 587 | } else { |
| 589 | 588 | $(id_name).slideDown(350); |
| 590 | 589 | $('#a_up').hide(); |
| 591 | 590 | $('#a_down').show(); |
| 592 | - $("#forms").attr("up_d", "2"); | |
| 591 | + $("#forms").attr("expand_list_state", "2"); | |
| 593 | 592 | } |
| 594 | 593 | } |
| 595 | 594 | ... | ... |
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%;"> | ... | ... |
src/main/resources/templates/page/video.html
| ... | ... | @@ -75,14 +75,13 @@ |
| 75 | 75 | <span id="a_up">展开▼</span><span id="a_down" style="display: none;">收起▲</span> |
| 76 | 76 | </button> |
| 77 | 77 | </div> |
| 78 | - <div class="form-horizontal form-group-sm" id="forms" style="display: none;float: left;" | |
| 79 | - up_d="1"> | |
| 78 | + <div class="form-horizontal form-group-sm" id="forms" style="display: none;float: left;"> | |
| 80 | 79 | <div class="btn-group margin-bottom col-md-6" |
| 81 | 80 | style="padding: 0;width: 15%;float: left;"> |
| 82 | 81 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 83 | 82 | <label for="video_titleID" class="control-label cb-toolbar">标题:</label> |
| 84 | 83 | <div class="col-sm-9" style="padding: 0;"> |
| 85 | - <input class="form-control" type="text" value="" id="video_titleID"> | |
| 84 | + <input class="form-control" type="text" th:value="${VideoTitle}" value="" id="video_titleID"> | |
| 86 | 85 | </div> |
| 87 | 86 | </div> |
| 88 | 87 | </div> |
| ... | ... | @@ -106,11 +105,11 @@ |
| 106 | 105 | |
| 107 | 106 | <div class="btn-group margin-bottom col-md-6 pull-right" |
| 108 | 107 | style="position: relative;width: 75%;float: left !important;"> |
| 109 | - <div class="col-md-18" style="width: 100%;padding: 0;"> | |
| 108 | + <div class="col-md-10" style="width: 100%;padding: 0;"> | |
| 110 | 109 | <div class="col-md-10" style="padding: 0;width: 25%;"> |
| 111 | 110 | <label for="start_date" class="control-label cb-toolbar">时间:</label> |
| 112 | 111 | <div class="input-group col-md-9 date"> |
| 113 | - <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}" | |
| 114 | 113 | id="start_date"> |
| 115 | 114 | <span class="input-group-addon"> |
| 116 | 115 | <span class="glyphicon glyphicon-calendar"></span> |
| ... | ... | @@ -120,7 +119,7 @@ |
| 120 | 119 | <div class="col-md-10" style="padding: 0;width: 25%;"> |
| 121 | 120 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 122 | 121 | <div class="input-group col-md-9 date"> |
| 123 | - <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}" | |
| 124 | 123 | id="end_date"> |
| 125 | 124 | <span class="input-group-addon"> |
| 126 | 125 | <span class="glyphicon glyphicon-calendar"></span> |
| ... | ... | @@ -132,14 +131,14 @@ |
| 132 | 131 | th:if="${session.sessionUser.spid==0}"> |
| 133 | 132 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> |
| 134 | 133 | <div class="col-sm-9" style="padding: 0;"> |
| 135 | - <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"> | |
| 136 | 135 | </div> |
| 137 | 136 | </div> |
| 138 | 137 | |
| 139 | 138 | |
| 140 | - <div class="col-md-6" style="padding: 0;width: 25%;"> | |
| 139 | + <div class="col-md-5" style="padding: 0;width: 25%;"> | |
| 141 | 140 | <label for="state" class="control-label cb-toolbar">分类:</label> |
| 142 | - <div class="col-sm-10" style="padding: 0;"> | |
| 141 | + <div class="col-sm-8" style="padding: 0;"> | |
| 143 | 142 | <select class="form-control" id="source" name="source"> |
| 144 | 143 | <option value="">全部</option> |
| 145 | 144 | <option th:each="activitys : ${activityList}" |
| ... | ... | @@ -155,9 +154,9 @@ |
| 155 | 154 | |
| 156 | 155 | <div class="col-md-6" style="padding: 0;width: 18%;" |
| 157 | 156 | th:if="${session.sessionUser.spid==0}"> |
| 158 | - <label for="video_id" class="control-label cb-toolbar">video_id</label> | |
| 157 | + <label for="video_id" class="control-label cb-toolbar">videoId</label> | |
| 159 | 158 | <div class="col-sm-9" style="padding: 0;"> |
| 160 | - <input class="form-control" type="text" value="" id="video_id"> | |
| 159 | + <input class="form-control" type="text" th:value="${VideoId}" value="" id="video_id"> | |
| 161 | 160 | </div> |
| 162 | 161 | </div> |
| 163 | 162 | |
| ... | ... | @@ -165,7 +164,7 @@ |
| 165 | 164 | th:if="${session.sessionUser.spid==0}"> |
| 166 | 165 | <label for="video_user_id" class="control-label cb-toolbar">sid</label> |
| 167 | 166 | <div class="col-sm-9" style="padding: 0;"> |
| 168 | - <input class="form-control" type="text" value="" id="video_user_id"> | |
| 167 | + <input class="form-control" type="text" th:value="${Video_user_id}" value="" id="video_user_id"> | |
| 169 | 168 | </div> |
| 170 | 169 | </div> |
| 171 | 170 | |
| ... | ... | @@ -173,7 +172,7 @@ |
| 173 | 172 | th:if="${session.sessionUser.spid==0}"> |
| 174 | 173 | <label for="contentId" class="control-label cb-toolbar">内容id:</label> |
| 175 | 174 | <div class="col-sm-9" style="padding: 0;"> |
| 176 | - <input class="form-control" type="text" value="" id="contentId"> | |
| 175 | + <input class="form-control" type="text" th:value="${ContentId}" value="" id="contentId"> | |
| 177 | 176 | </div> |
| 178 | 177 | </div> |
| 179 | 178 | |
| ... | ... | @@ -182,7 +181,7 @@ |
| 182 | 181 | th:if="${session.sessionUser.spid==0}"> |
| 183 | 182 | <label for="sp_Id" class="control-label cb-toolbar">sp_Id</label> |
| 184 | 183 | <div class="col-sm-9" style="padding: 0;"> |
| 185 | - <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"> | |
| 186 | 185 | </div> |
| 187 | 186 | </div> |
| 188 | 187 | |
| ... | ... | @@ -190,7 +189,7 @@ |
| 190 | 189 | th:if="${session.sessionUser.spid==0}"> |
| 191 | 190 | <label for="shen_auditor_id" class="control-label cb-toolbar">审核员</label> |
| 192 | 191 | <div class="col-sm-9" style="padding: 0;"> |
| 193 | - <input class="form-control" type="text" value="" id="shen_auditor_id"> | |
| 192 | + <input class="form-control" type="text" th:value="${Shen_auditor_id}" value="" id="shen_auditor_id"> | |
| 194 | 193 | </div> |
| 195 | 194 | </div> |
| 196 | 195 | </div> |
| ... | ... | @@ -384,6 +383,7 @@ |
| 384 | 383 | </section> |
| 385 | 384 | </div> |
| 386 | 385 | <script th:inline="javascript"> |
| 386 | + // 获取路径参数 | |
| 387 | 387 | function GetQueryString(name) { |
| 388 | 388 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| 389 | 389 | var r = window.location.search.substr(1).match(reg); |
| ... | ... | @@ -391,12 +391,10 @@ |
| 391 | 391 | return null; |
| 392 | 392 | } |
| 393 | 393 | |
| 394 | + // 状态==2是展开状态 触发展开 | |
| 394 | 395 | $(function () { |
| 395 | - //alert(GetQueryString("up_d")); | |
| 396 | - if (GetQueryString("up_d") == "2") { | |
| 396 | + if (GetQueryString("expand_list_state") == "2") { | |
| 397 | 397 | $("#query").click(); |
| 398 | - } else { | |
| 399 | - | |
| 400 | 398 | } |
| 401 | 399 | //按钮颜色设置 |
| 402 | 400 | var state = [[${param.state}]] ? [[${param.state}]][0] : null; |
| ... | ... | @@ -504,8 +502,8 @@ |
| 504 | 502 | //全部 |
| 505 | 503 | function quanbu() { |
| 506 | 504 | updateValue(); |
| 507 | - var up_d = $("#forms").attr("up_d"); | |
| 508 | - window.location.href = "/videos/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&source=" + source + "&video_user_id=" + video_user_id + "&shen_auditor_id=" + shen_auditor_id + "&contentId=" + contentId + "&video_id=" + video_id + "&up_d=" + up_d; | |
| 505 | + var expand_list_state = $("#forms").attr("expand_list_state"); | |
| 506 | + window.location.href = "/videos/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&source=" + source + "&video_user_id=" + video_user_id + "&shen_auditor_id=" + shen_auditor_id + "&contentId=" + contentId + "&video_id=" + video_id + "&expand_list_state=" + expand_list_state; | |
| 509 | 507 | |
| 510 | 508 | } |
| 511 | 509 | |
| ... | ... | @@ -693,12 +691,12 @@ |
| 693 | 691 | $(id_name).slideUp(350); |
| 694 | 692 | $('#a_up').show(); |
| 695 | 693 | $('#a_down').hide(); |
| 696 | - $("#forms").attr("up_d", "1"); | |
| 694 | + $("#forms").attr("expand_list_state", "1"); | |
| 697 | 695 | } else { |
| 698 | 696 | $(id_name).slideDown(350); |
| 699 | 697 | $('#a_up').hide(); |
| 700 | 698 | $('#a_down').show(); |
| 701 | - $("#forms").attr("up_d", "2"); | |
| 699 | + $("#forms").attr("expand_list_state", "2"); | |
| 702 | 700 | } |
| 703 | 701 | } |
| 704 | 702 | ... | ... |