Commit 776c22743d01991de7f2d60e2aab5fa93b891b28
Merge branch 'dev'
Showing
13 changed files
with
1941 additions
and
1594 deletions
Too many changes to show.
To preserve performance only 13 of 16 files are displayed.
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="#"> | |
| 77 | + <a href="#" id="s"> | |
| 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="#"> | |
| 92 | + <a href="#" id="x"> | |
| 93 | 93 | <span class="menu-item-top">系统管理</span> |
| 94 | 94 | </a> |
| 95 | 95 | <ul class="treeview-menu"> |
| ... | ... | @@ -106,6 +106,7 @@ line-height: 2em; margin: 0 auto;font-size: 2em" |
| 106 | 106 | </section> |
| 107 | 107 | <!-- /.sidebar --> |
| 108 | 108 | </aside> |
| 109 | + | |
| 109 | 110 | <script> |
| 110 | 111 | $(document).ready(function () { |
| 111 | 112 | var url = window.location.pathname; | ... | ... |
src/main/resources/templates/page/audio.html
| ... | ... | @@ -76,7 +76,8 @@ |
| 76 | 76 | </button> |
| 77 | 77 | </div> |
| 78 | 78 | <div class="form-horizontal form-group-sm" id="forms" style="display: none;float: left;"> |
| 79 | - <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 15%;float: left;"> | |
| 79 | + <div class="btn-group margin-bottom col-md-6" | |
| 80 | + style="padding: 0;width: 15%;float: left;"> | |
| 80 | 81 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 81 | 82 | <label for="video_titleID" class="control-label cb-toolbar">标题:</label> |
| 82 | 83 | <div class="col-sm-9" style="padding: 0;"> |
| ... | ... | @@ -85,7 +86,8 @@ |
| 85 | 86 | </div> |
| 86 | 87 | </div> |
| 87 | 88 | |
| 88 | - <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 10%;float: left;"> | |
| 89 | + <div class="btn-group margin-bottom col-md-6" | |
| 90 | + style="padding: 0;width: 10%;float: left;"> | |
| 89 | 91 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 90 | 92 | <label for="state" class="control-label cb-toolbar">状态:</label> |
| 91 | 93 | <div class="col-sm-8" style="padding: 0;"> |
| ... | ... | @@ -124,14 +126,16 @@ |
| 124 | 126 | </div> |
| 125 | 127 | </div> |
| 126 | 128 | |
| 127 | - <div class="col-md-6" style="padding: 0;width: 25%;" th:if="${session.sessionUser.spid==0}"> | |
| 129 | + <div class="col-md-6" style="padding: 0;width: 25%;" | |
| 130 | + th:if="${session.sessionUser.spid==0}"> | |
| 128 | 131 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> |
| 129 | 132 | <div class="col-sm-9" style="padding: 0;"> |
| 130 | 133 | <input class="form-control" type="text" value="" id="sp_desc"> |
| 131 | 134 | </div> |
| 132 | 135 | </div> |
| 133 | 136 | |
| 134 | - <div class="col-md-6" style="padding: 0;width: 25%;" th:if="${session.sessionUser.spid==0}"> | |
| 137 | + <div class="col-md-6" style="padding: 0;width: 25%;" | |
| 138 | + th:if="${session.sessionUser.spid==0}"> | |
| 135 | 139 | <label for="sp_Id" class="control-label cb-toolbar">sp_Id</label> |
| 136 | 140 | <div class="col-sm-9" style="padding: 0;"> |
| 137 | 141 | <input class="form-control" type="text" value="" id="sp_Id"> |
| ... | ... | @@ -220,7 +224,7 @@ |
| 220 | 224 | type="checkbox" th:value="${audio.id}"></td> |
| 221 | 225 | <td style="text-align: center; width: 6%;" |
| 222 | 226 | th:text="${audio.spid_desc}"></td> |
| 223 | - <td style="text-align: center; width: 20%;" > | |
| 227 | + <td style="text-align: center; width: 20%;"> | |
| 224 | 228 | <a class="detail" th:href="@{'/audio/details/?id='+${audio.id}}"> |
| 225 | 229 | <span th:text="${audio.audioTitle}">邓建国正面PK冯小刚</span> |
| 226 | 230 | </a> |
| ... | ... | @@ -240,9 +244,9 @@ |
| 240 | 244 | <!-- <span class="btn btn-sm btn-danger" th:if="${video.state==3}">自动审核失败</span> --> |
| 241 | 245 | </td> |
| 242 | 246 | <td style="text-align: center; width: 3%;"> |
| 243 | - <span th:if="${audio.shenhe_type==1}">免审</span> | |
| 244 | - <span th:if="${audio.shenhe_type==2}">机审</span> | |
| 245 | - <span th:if="${audio.shenhe_type==3}">人工审</span> | |
| 247 | + <span th:if="${audio.shenhe_type==1}">免审</span> | |
| 248 | + <span th:if="${audio.shenhe_type==2}">机审</span> | |
| 249 | + <span th:if="${audio.shenhe_type==3}">人工审</span> | |
| 246 | 250 | </td> |
| 247 | 251 | <td style="text-align: center; width: 10%;" |
| 248 | 252 | th:text="${#dates.format(audio.uploadTime, 'yyyy-MM-dd HH:mm:ss')}"> |
| ... | ... | @@ -255,7 +259,10 @@ |
| 255 | 259 | <td style="text-align: center; width: 17%;"> |
| 256 | 260 | <a class="detail" th:href="@{'/audio/details/?id='+${audio.id}}"> |
| 257 | 261 | <!--th:if="${ (video.receive==true and session.sessionUser.userId==video.receive_user_id) or (video.state==1 or video.state==2) }"--> |
| 258 | - <button class="btn btn-info btn-sm" th:style="${state1 eq '0' && receive1 eq 'false'} ? 'display: none ' : ' '">查看</button> | |
| 262 | + <button class="btn btn-info btn-sm" | |
| 263 | + th:style="${state1 eq '0' && receive1 eq 'false'} ? 'display: none ' : ' '"> | |
| 264 | + 查看 | |
| 265 | + </button> | |
| 259 | 266 | </a> |
| 260 | 267 | <span th:if="${audio.state==0 and audio.receive==0}"> </span> |
| 261 | 268 | <a th:href="@{'javascript:applyReceive('+${audio.id}+')'}" |
| ... | ... | @@ -284,7 +291,7 @@ |
| 284 | 291 | <option value="50" th:selected="${pageSize==50}">50</option> |
| 285 | 292 | <option value="100" th:selected="${pageSize==100}">100</option> |
| 286 | 293 | </select> |
| 287 | - <span class="pagination-info" >条记录</span> | |
| 294 | + <span class="pagination-info">条记录</span> | |
| 288 | 295 | </div> |
| 289 | 296 | <div class="pull-right pagination"> |
| 290 | 297 | <ul class="pagination" th:if="${audioPage.pages>1}"> |
| ... | ... | @@ -331,7 +338,19 @@ |
| 331 | 338 | </section> |
| 332 | 339 | </div> |
| 333 | 340 | <script th:inline="javascript"> |
| 341 | + function GetQueryString(name) { | |
| 342 | + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | |
| 343 | + var r = window.location.search.substr(1).match(reg); | |
| 344 | + if (r != null) return unescape(r[2]); | |
| 345 | + return null; | |
| 346 | + } | |
| 347 | + | |
| 334 | 348 | $(function () { |
| 349 | + if (GetQueryString("up_d") == "2") { | |
| 350 | + $("#query").click(); | |
| 351 | + } else { | |
| 352 | + | |
| 353 | + } | |
| 335 | 354 | //按钮颜色设置 |
| 336 | 355 | var state = [[${param.state}]] ? [[${param.state}]][0] : null; |
| 337 | 356 | var receive = [[${param.receive}]] ? [[${param.receive}]][0] : null; |
| ... | ... | @@ -369,8 +388,8 @@ |
| 369 | 388 | } |
| 370 | 389 | |
| 371 | 390 | //选择每页数量触发函数 |
| 372 | - function selectPageSize(){ | |
| 373 | - var pageSize=$("#pageSize").val(); | |
| 391 | + function selectPageSize() { | |
| 392 | + var pageSize = $("#pageSize").val(); | |
| 374 | 393 | var param = location.search; |
| 375 | 394 | if (param.indexOf("pageSize=") != -1) { |
| 376 | 395 | var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 |
| ... | ... | @@ -378,7 +397,7 @@ |
| 378 | 397 | var h = ""; |
| 379 | 398 | for (var i = 0; i < split.length; i++) { |
| 380 | 399 | var s = split[i]; |
| 381 | - if (s.indexOf("pageSize=") < 0 &&s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 400 | + if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 382 | 401 | } |
| 383 | 402 | h = h.substring(1, h.length); |
| 384 | 403 | window.location.href = "/audio/page?" + h + "&pageSize=" + pageSize; |
| ... | ... | @@ -401,25 +420,25 @@ |
| 401 | 420 | window.location.href = "/audio/excel" + param; |
| 402 | 421 | } |
| 403 | 422 | |
| 404 | - var video_priority =""; | |
| 423 | + var video_priority = ""; | |
| 405 | 424 | var video_title = ""; |
| 406 | - var start_date =""; | |
| 425 | + var start_date = ""; | |
| 407 | 426 | var end_date = ""; |
| 408 | - var sp_desc =""; | |
| 427 | + var sp_desc = ""; | |
| 409 | 428 | var count = ""; |
| 410 | 429 | var state = ""; |
| 411 | 430 | var sp_Id = ""; |
| 412 | 431 | |
| 413 | 432 | |
| 414 | - function updateValue(){ | |
| 433 | + function updateValue() { | |
| 415 | 434 | // video_priority = $("#video_priority").val(); |
| 416 | 435 | video_title = $("#video_titleID").val(); |
| 417 | 436 | start_date = $("#start_date").val(); |
| 418 | 437 | end_date = $("#end_date").val(); |
| 419 | 438 | state = $("#state").val(); |
| 420 | 439 | sp_Id = $("#sp_Id").val(); |
| 421 | - var spId=[[${session.sessionUser.spid}]]; | |
| 422 | - if(spId==0){ | |
| 440 | + var spId = [[${session.sessionUser.spid}]]; | |
| 441 | + if (spId == 0) { | |
| 423 | 442 | sp_desc = $("#sp_desc").val(); |
| 424 | 443 | count = $("#pageSize").val(); |
| 425 | 444 | } |
| ... | ... | @@ -429,35 +448,36 @@ |
| 429 | 448 | //全部 |
| 430 | 449 | function quanbu() { |
| 431 | 450 | updateValue(); |
| 432 | - 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; | |
| 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; | |
| 433 | 453 | } |
| 434 | 454 | |
| 435 | 455 | //全部待领 |
| 436 | 456 | $('#daishen').click(function () { |
| 437 | 457 | updateValue(); |
| 438 | - if($.trim(state) == '') state=0; | |
| 458 | + if ($.trim(state) == '') state = 0; | |
| 439 | 459 | var receive = 0; |
| 440 | - window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc+"&pageSize="+count+"&sp_Id="+sp_Id; | |
| 460 | + window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&sp_Id=" + sp_Id; | |
| 441 | 461 | }); |
| 442 | 462 | //我的待审核 |
| 443 | 463 | $('#Mydaishen').click(function () { |
| 444 | 464 | updateValue(); |
| 445 | 465 | var receive = 1; |
| 446 | - if($.trim(state) == '') state=0; | |
| 447 | - window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc+"&pageSize="+count+"&sp_Id="+sp_Id; | |
| 466 | + if ($.trim(state) == '') state = 0; | |
| 467 | + window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&sp_Id=" + sp_Id; | |
| 448 | 468 | }); |
| 449 | 469 | //我的已审核 |
| 450 | 470 | $('#yishen').click(function () { |
| 451 | 471 | updateValue(); |
| 452 | 472 | var receive = 1; |
| 453 | - if($.trim(state) == '') state=3;//审核状态,3代表通过和拒绝都查询 | |
| 454 | - window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc+"&pageSize="+count+"&sp_Id="+sp_Id; | |
| 473 | + if ($.trim(state) == '') state = 3;//审核状态,3代表通过和拒绝都查询 | |
| 474 | + window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&sp_Id=" + sp_Id; | |
| 455 | 475 | }); |
| 456 | 476 | |
| 457 | 477 | |
| 458 | 478 | //查询 |
| 459 | 479 | $('#videos_query').click(function () { |
| 460 | - 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; | |
| 480 | + 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; | |
| 461 | 481 | }); |
| 462 | 482 | /*全选的操作*/ |
| 463 | 483 | $('#select_all').click(function () { |
| ... | ... | @@ -616,10 +636,12 @@ |
| 616 | 636 | $(id_name).slideUp(350); |
| 617 | 637 | $('#a_up').show(); |
| 618 | 638 | $('#a_down').hide(); |
| 639 | + $("#forms").attr("up_d", "1"); | |
| 619 | 640 | } else { |
| 620 | 641 | $(id_name).slideDown(350); |
| 621 | 642 | $('#a_up').hide(); |
| 622 | 643 | $('#a_down').show(); |
| 644 | + $("#forms").attr("up_d", "2"); | |
| 623 | 645 | } |
| 624 | 646 | } |
| 625 | 647 | ... | ... |
src/main/resources/templates/page/audioDetail.html
| ... | ... | @@ -120,16 +120,36 @@ |
| 120 | 120 | onchange="change()" multiple="" data-placeholder="选择常用审核意见,可多选" |
| 121 | 121 | name="attr_tags[]" id="attr_tags" style="width: 100%;" |
| 122 | 122 | tabindex="-1" aria-hidden="true"> |
| 123 | - <option value="其他" th:selected="${audio.attr_tags.indexOf('其他')!=-1}">其他</option> | |
| 124 | - <option value="不符" th:selected="${audio.attr_tags.indexOf('不符')!=-1}">不符</option> | |
| 125 | - <option value="规范" th:selected="${audio.attr_tags.indexOf('规范')!=-1}">规范</option> | |
| 126 | - <option value="建议" th:selected="${audio.attr_tags.indexOf('建议')!=-1}">建议</option> | |
| 127 | - <option value="错字" th:selected="${audio.attr_tags.indexOf('错字')!=-1}">错字</option> | |
| 128 | - <option value="要求" th:selected="${audio.attr_tags.indexOf('要求')!=-1}">要求</option> | |
| 129 | - <option value="图片" th:selected="${audio.attr_tags.indexOf('图片')!=-1}">图片</option> | |
| 130 | - <option value="敏感" th:selected="${audio.attr_tags.indexOf('敏感')!=-1}">敏感</option> | |
| 131 | - <option value="视频" th:selected="${audio.attr_tags.indexOf('视频')!=-1}">视频</option> | |
| 132 | - <option value="提交" th:selected="${audio.attr_tags.indexOf('提交')!=-1}">提交</option> | |
| 123 | + <option value="其他" | |
| 124 | + th:selected="${audio.attr_tags.indexOf('其他')!=-1}">其他 | |
| 125 | + </option> | |
| 126 | + <option value="不符" | |
| 127 | + th:selected="${audio.attr_tags.indexOf('不符')!=-1}">不符 | |
| 128 | + </option> | |
| 129 | + <option value="规范" | |
| 130 | + th:selected="${audio.attr_tags.indexOf('规范')!=-1}">规范 | |
| 131 | + </option> | |
| 132 | + <option value="建议" | |
| 133 | + th:selected="${audio.attr_tags.indexOf('建议')!=-1}">建议 | |
| 134 | + </option> | |
| 135 | + <option value="错字" | |
| 136 | + th:selected="${audio.attr_tags.indexOf('错字')!=-1}">错字 | |
| 137 | + </option> | |
| 138 | + <option value="要求" | |
| 139 | + th:selected="${audio.attr_tags.indexOf('要求')!=-1}">要求 | |
| 140 | + </option> | |
| 141 | + <option value="图片" | |
| 142 | + th:selected="${audio.attr_tags.indexOf('图片')!=-1}">图片 | |
| 143 | + </option> | |
| 144 | + <option value="敏感" | |
| 145 | + th:selected="${audio.attr_tags.indexOf('敏感')!=-1}">敏感 | |
| 146 | + </option> | |
| 147 | + <option value="视频" | |
| 148 | + th:selected="${audio.attr_tags.indexOf('视频')!=-1}">视频 | |
| 149 | + </option> | |
| 150 | + <option value="提交" | |
| 151 | + th:selected="${audio.attr_tags.indexOf('提交')!=-1}">提交 | |
| 152 | + </option> | |
| 133 | 153 | </select> |
| 134 | 154 | </div> |
| 135 | 155 | </div> |
| ... | ... | @@ -142,7 +162,6 @@ |
| 142 | 162 | </div> |
| 143 | 163 | |
| 144 | 164 | |
| 145 | - | |
| 146 | 165 | </div> |
| 147 | 166 | |
| 148 | 167 | <div class="form-group col-sm-7" style="padding-left:200px"> |
| ... | ... | @@ -177,7 +196,9 @@ |
| 177 | 196 | style="margin-left: -3%">封面图:</label> |
| 178 | 197 | </div> |
| 179 | 198 | <div style="height:110px; margin-left: 17%;"> |
| 180 | - <div class="col-sm-4 popover-options " th:style="${imgsStat.index==0}? 'float:left;margin-right: 43px;margin-left: -18px;':''" th:if="${imgsStat.index<2}" | |
| 199 | + <div class="col-sm-4 popover-options " | |
| 200 | + th:style="${imgsStat.index==0}? 'float:left;margin-right: 43px;margin-left: -18px;':''" | |
| 201 | + th:if="${imgsStat.index<2}" | |
| 181 | 202 | th:each="imgs :${images}"> |
| 182 | 203 | <a href="#"> |
| 183 | 204 | <img th:src="@{${imgs.value}}" height="100px" alt="封面图"> |
| ... | ... | @@ -188,7 +209,8 @@ |
| 188 | 209 | <div style="height: 110px;margin-top: 15px;"> |
| 189 | 210 | <label for="" class="control-label col-sm-4" |
| 190 | 211 | style="width: 26.3%;"></label> |
| 191 | - <div class="col-sm-4 popover-options " th:style="${imgsStat.index==2}?'float:left;margin-right: 15px;':'float:left;'" | |
| 212 | + <div class="col-sm-4 popover-options " | |
| 213 | + th:style="${imgsStat.index==2}?'float:left;margin-right: 15px;':'float:left;'" | |
| 192 | 214 | th:if="${imgsStat.index>=2&&imgsStat.index<4}" |
| 193 | 215 | th:each="imgs :${images}"> |
| 194 | 216 | <a href="#"> |
| ... | ... | @@ -200,7 +222,8 @@ |
| 200 | 222 | <div style="height: 110px;margin-top: 15px;"> |
| 201 | 223 | <label for="" class="control-label col-sm-4" |
| 202 | 224 | style="width: 26.3%;"></label> |
| 203 | - <div class="col-sm-4 popover-options" th:style="${imgsStat.index==4}?'float:left;margin-right: 15px;':'float:left;'" | |
| 225 | + <div class="col-sm-4 popover-options" | |
| 226 | + th:style="${imgsStat.index==4}?'float:left;margin-right: 15px;':'float:left;'" | |
| 204 | 227 | th:if="${imgsStat.index>=4}" |
| 205 | 228 | th:each="imgs :${images}"> |
| 206 | 229 | <a href="#"> |
| ... | ... | @@ -254,6 +277,16 @@ |
| 254 | 277 | </div> |
| 255 | 278 | </div> |
| 256 | 279 | <script th:inline="javascript"> |
| 280 | + | |
| 281 | + $(function () { | |
| 282 | + var url = "/audio/page"; | |
| 283 | + $('ul.treeview-menu>li').removeClass("active"); | |
| 284 | + $('.sidebar-menu>li').removeClass("active"); | |
| 285 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //二级链接高亮 | |
| 286 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li.treeview').addClass('active'); //一级栏目[含二级链接]高亮 | |
| 287 | + $('.sidebar-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //一级栏目[不含二级链接]高亮 | |
| 288 | + }) | |
| 289 | + | |
| 257 | 290 | //使常用审核意见回显到下方的备注中 |
| 258 | 291 | function change() { |
| 259 | 292 | // $("#msg").val($("#attr_tags").val()); |
| ... | ... | @@ -291,7 +324,7 @@ |
| 291 | 324 | alert('请输入审核备注或者常用审核意见!'); |
| 292 | 325 | return false; |
| 293 | 326 | } |
| 294 | - if (typeof(row_id) == "undefined") { | |
| 327 | + if (typeof (row_id) == "undefined") { | |
| 295 | 328 | return false; |
| 296 | 329 | } |
| 297 | 330 | //拒绝 |
| ... | ... | @@ -302,7 +335,7 @@ |
| 302 | 335 | id: id, |
| 303 | 336 | activity_id: activity_id, |
| 304 | 337 | state: state, |
| 305 | - attr_tags: attr_tags+"", | |
| 338 | + attr_tags: attr_tags + "", | |
| 306 | 339 | msg: msg, |
| 307 | 340 | callback: callback |
| 308 | 341 | }, |
| ... | ... | @@ -325,7 +358,7 @@ |
| 325 | 358 | var attr_tags = $('#attr_tags').val();//获取标签属性信息 |
| 326 | 359 | var msg = $('#msg').val(); //获取审核msg |
| 327 | 360 | var callback = [[${audio.callback}]]; |
| 328 | - if (typeof(activity_id) == "undefined") { | |
| 361 | + if (typeof (activity_id) == "undefined") { | |
| 329 | 362 | return false; |
| 330 | 363 | } |
| 331 | 364 | if (confirm("您确认通过此条点播吗?")) { |
| ... | ... | @@ -333,7 +366,7 @@ |
| 333 | 366 | id: id, |
| 334 | 367 | activity_id: activity_id, |
| 335 | 368 | state: state, |
| 336 | - attr_tags: attr_tags+"", | |
| 369 | + attr_tags: attr_tags + "", | |
| 337 | 370 | msg: msg, |
| 338 | 371 | callback: callback |
| 339 | 372 | }, | ... | ... |
src/main/resources/templates/page/channel.html
| ... | ... | @@ -52,7 +52,7 @@ |
| 52 | 52 | data-target="#modal" onclick="repulse();">拒绝 |
| 53 | 53 | </button> |
| 54 | 54 | <button type="button" class="btn btn-success btn-sm margin-r-5 action_bottom" |
| 55 | - id="morePass" onclick="morePass();">批量通过 | |
| 55 | + id="morePass" onclick="morePass();">批量通过 | |
| 56 | 56 | </button> |
| 57 | 57 | </div> |
| 58 | 58 | |
| ... | ... | @@ -66,15 +66,15 @@ |
| 66 | 66 | </button> |
| 67 | 67 | <button type="button" id="daishen" |
| 68 | 68 | class="btn btn-sm margin-r-5 action_bottom" |
| 69 | - >全部待领 | |
| 69 | + >全部待领 | |
| 70 | 70 | </button> |
| 71 | 71 | <button type="button" id="Mydaishen" |
| 72 | 72 | class="btn btn-sm margin-r-5 action_bottom hide" |
| 73 | - >我的待审 | |
| 73 | + >我的待审 | |
| 74 | 74 | </button> |
| 75 | 75 | <button type="button" id="yishen" |
| 76 | 76 | class="btn btn-sm margin-r-5 action_bottom" |
| 77 | - >我的已审 | |
| 77 | + >我的已审 | |
| 78 | 78 | </button> |
| 79 | 79 | </div> |
| 80 | 80 | <button type="button" class="btn btn-primary btn-sm margin-r-5" id="query" |
| ... | ... | @@ -92,24 +92,26 @@ |
| 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"> | |
| 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 | - <input class="form-control" name="channel_name" type="text" id="channel_name" | |
| 102 | - > | |
| 101 | + <input class="form-control" name="channel_name" type="text" | |
| 102 | + id="channel_name" | |
| 103 | + > | |
| 103 | 104 | </div> |
| 104 | 105 | </div> |
| 105 | 106 | <div class="col-md-3" style="padding: 0"> |
| 106 | 107 | <label for="shenhe_status" class="control-label cb-toolbar">审核状态:</label> |
| 107 | 108 | <div class="col-sm-6" style="padding: 0;"> |
| 108 | - <select class="form-control col-sm-2" id="shenhe_status" name="shenhe_status"> | |
| 109 | + <select class="form-control col-sm-2" id="shenhe_status" | |
| 110 | + name="shenhe_status"> | |
| 109 | 111 | <option value="">全部</option> |
| 110 | - <option value="0" >未审核</option> | |
| 111 | - <option value="1" >已通过</option> | |
| 112 | - <option value="2" >已拒绝</option> | |
| 112 | + <option value="0">未审核</option> | |
| 113 | + <option value="1">已通过</option> | |
| 114 | + <option value="2">已拒绝</option> | |
| 113 | 115 | </select> |
| 114 | 116 | </div> |
| 115 | 117 | </div> |
| ... | ... | @@ -120,7 +122,8 @@ |
| 120 | 122 | <div class="col-md-6" style="padding: 0;width: 45%;"> |
| 121 | 123 | <label for="start_date" class="control-label cb-toolbar">时间:</label> |
| 122 | 124 | <div class="input-group col-md-9 date"> |
| 123 | - <input class="form-control date" name="start_date" type="text" id="start_date" > | |
| 125 | + <input class="form-control date" name="start_date" type="text" | |
| 126 | + id="start_date"> | |
| 124 | 127 | <span class="input-group-addon"> |
| 125 | 128 | <span class="glyphicon glyphicon-calendar"></span> |
| 126 | 129 | </span> |
| ... | ... | @@ -130,7 +133,7 @@ |
| 130 | 133 | <label for="start_date" class="control-label cb-toolbar">至</label> |
| 131 | 134 | <div class="input-group col-md-9 date"> |
| 132 | 135 | <input class="form-control date" name="end_date" type="text" |
| 133 | - id="end_date" > | |
| 136 | + id="end_date"> | |
| 134 | 137 | <span class="input-group-addon"> |
| 135 | 138 | <span class="glyphicon glyphicon-calendar"></span> |
| 136 | 139 | </span> |
| ... | ... | @@ -205,12 +208,12 @@ |
| 205 | 208 | <div class="th-inner ">审核消息</div> |
| 206 | 209 | <div class="fht-cell"></div> |
| 207 | 210 | </th> |
| 208 | -<!-- <th style="text-align: center; width: 5%; " --> | |
| 209 | -<!-- data-field="state_name_short" tabindex="0"> --> | |
| 210 | -<!-- <div class="th-inner ">是否下线 --> | |
| 211 | -<!-- </div> --> | |
| 212 | -<!-- <div class="fht-cell"></div> --> | |
| 213 | -<!-- </th> --> | |
| 211 | + <!-- <th style="text-align: center; width: 5%; " --> | |
| 212 | + <!-- data-field="state_name_short" tabindex="0"> --> | |
| 213 | + <!-- <div class="th-inner ">是否下线 --> | |
| 214 | + <!-- </div> --> | |
| 215 | + <!-- <div class="fht-cell"></div> --> | |
| 216 | + <!-- </th> --> | |
| 214 | 217 | <th style="text-align: center ; width: 8%; " data-field="channel_time" |
| 215 | 218 | tabindex="0"> |
| 216 | 219 | <div class="th-inner ">频道创建时间</div> |
| ... | ... | @@ -230,10 +233,10 @@ |
| 230 | 233 | </tr> |
| 231 | 234 | </thead> |
| 232 | 235 | <tbody> |
| 233 | - <tr th:data-index="${channelStat.index}" | |
| 236 | + <tr th:data-index="${channelStat.index}" | |
| 234 | 237 | th:each="channel : ${channelPage.list}"> |
| 235 | 238 | <td class="bs-checkbox " |
| 236 | - style="text-align: center; vertical-align:middle;width: 3%;"> | |
| 239 | + style="text-align: center; vertical-align:middle;width: 3%;"> | |
| 237 | 240 | <input data-index="0" name="btSelectItem" type="checkbox" |
| 238 | 241 | th:value="${channel.id}"></td> |
| 239 | 242 | <td style="text-align: center; vertical-align:middle;width: 6%;" |
| ... | ... | @@ -247,14 +250,15 @@ |
| 247 | 250 | </td> |
| 248 | 251 | <td style="text-align: center; vertical-align:middle;width: 6%;"> |
| 249 | 252 | <div width="60px" height="60px"><img |
| 250 | - th:src="@{${channel.channel_img}}" width="60px" height="60px" | |
| 253 | + th:src="@{${channel.channel_img}}" width="60px" | |
| 254 | + height="60px" | |
| 251 | 255 | alt="频道封面图"></div> |
| 252 | 256 | </td> |
| 253 | - <td style="text-align: center; vertical-align:middle; width: 3%;"> | |
| 254 | - <span th:if="${channel.shenhe_type==1}">免审</span> | |
| 255 | - <span th:if="${channel.shenhe_type==2}">机审</span> | |
| 256 | - <span th:if="${channel.shenhe_type==3}">人工审</span> | |
| 257 | - </td> | |
| 257 | + <td style="text-align: center; vertical-align:middle; width: 3%;"> | |
| 258 | + <span th:if="${channel.shenhe_type==1}">免审</span> | |
| 259 | + <span th:if="${channel.shenhe_type==2}">机审</span> | |
| 260 | + <span th:if="${channel.shenhe_type==3}">人工审</span> | |
| 261 | + </td> | |
| 258 | 262 | <td style="text-align: center; vertical-align:middle; width: 3%;"> |
| 259 | 263 | <span class="btn btn-sm btn-warning" |
| 260 | 264 | th:if="${channel.shenhe_status==0}">待审核</span> |
| ... | ... | @@ -263,16 +267,17 @@ |
| 263 | 267 | <span class="btn btn-sm btn-danger" |
| 264 | 268 | th:if="${channel.shenhe_status==2}">已拒绝</span> |
| 265 | 269 | </td> |
| 266 | - <td style="text-align: center; vertical-align:middle; width: 4%;" th:text="${channel.updater}"> | |
| 267 | - openadmin9@cnlive.com | |
| 270 | + <td style="text-align: center; vertical-align:middle; width: 4%;" | |
| 271 | + th:text="${channel.updater}"> | |
| 272 | + openadmin9@cnlive.com | |
| 268 | 273 | </td> |
| 269 | - <td style="text-align: center; vertical-align:middle; width: 10%;" | |
| 274 | + <td style="text-align: center; vertical-align:middle; width: 10%;" | |
| 270 | 275 | th:text="${channel.shenhe_msg}">审核消息 |
| 271 | 276 | </td> |
| 272 | -<!-- <td style="text-align: center; width: 3%;"> --> | |
| 273 | -<!-- <span th:if="${channel.offline==0}">正常</span> --> | |
| 274 | -<!-- <span th:if="${channel.offline==1}">下线</span> --> | |
| 275 | -<!-- </td> --> | |
| 277 | + <!-- <td style="text-align: center; width: 3%;"> --> | |
| 278 | + <!-- <span th:if="${channel.offline==0}">正常</span> --> | |
| 279 | + <!-- <span th:if="${channel.offline==1}">下线</span> --> | |
| 280 | + <!-- </td> --> | |
| 276 | 281 | <td style="text-align: center; vertical-align:middle; width: 8%;" |
| 277 | 282 | th:text="${#dates.format(channel.created_at, 'yyyy-MM-dd HH:mm:ss')}"> |
| 278 | 283 | 2018-11-28 16:08:00 |
| ... | ... | @@ -283,11 +288,13 @@ |
| 283 | 288 | </td> |
| 284 | 289 | <td style="text-align: center; vertical-align:middle; width: 12%;"> |
| 285 | 290 | <span> </span> |
| 286 | - <a class="pass_one" th:href="@{'javascript:channel('+${channel.id}+',1)'}"> | |
| 291 | + <a class="pass_one" | |
| 292 | + th:href="@{'javascript:channel('+${channel.id}+',1)'}"> | |
| 287 | 293 | <button class="btn btn-success btn-sm">通过</button> |
| 288 | 294 | </a> |
| 289 | 295 | <span> </span> |
| 290 | - <a class="failed_one" th:href="@{'javascript:channel('+${channel.id}+',2)'}"> | |
| 296 | + <a class="failed_one" | |
| 297 | + th:href="@{'javascript:channel('+${channel.id}+',2)'}"> | |
| 291 | 298 | <button class="btn btn-danger btn-sm">拒绝</button> |
| 292 | 299 | </a> |
| 293 | 300 | </td> |
| ... | ... | @@ -304,50 +311,55 @@ |
| 304 | 311 | </div> |
| 305 | 312 | <div class="fixed-table-pagination" style="display: block;"> |
| 306 | 313 | <div class="pull-left pagination-detail"> |
| 307 | - <span class="pagination-info" th:text="'共 '+${channelPage.total}+' 条记录,每页显示'">总共 0 条记录</span> | |
| 314 | + <span class="pagination-info" | |
| 315 | + th:text="'共 '+${channelPage.total}+' 条记录,每页显示'">总共 0 条记录</span> | |
| 308 | 316 | <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()"> |
| 309 | - <option value="10" th:selected="${pageSize==10}">10</option> | |
| 310 | - <option value="20" th:selected="${pageSize==20}">20</option> | |
| 311 | - <option value="50" th:selected="${pageSize==50}">50</option> | |
| 312 | - <option value="100" th:selected="${pageSize==100}">100</option> | |
| 313 | - </select> | |
| 314 | - <span class="pagination-info" >条记录</span> | |
| 317 | + <option value="10" th:selected="${pageSize==10}">10</option> | |
| 318 | + <option value="20" th:selected="${pageSize==20}">20</option> | |
| 319 | + <option value="50" th:selected="${pageSize==50}">50</option> | |
| 320 | + <option value="100" th:selected="${pageSize==100}">100</option> | |
| 321 | + </select> | |
| 322 | + <span class="pagination-info">条记录</span> | |
| 315 | 323 | </div> |
| 316 | 324 | <div class="pull-right pagination"> |
| 317 | - <ul class="pagination" th:if="${channelPage.pages>1}"> | |
| 318 | - <li class="page-pre"><a th:href="'javascript:fanye(1);'">‹‹</a></li> | |
| 319 | - <li class="page-pre" th:if="${!channelPage.isFirstPage}"><a | |
| 320 | - th:onclick="'javascript:fanye(\''+${channelPage.pageNum-1}+'\');'">‹</a> | |
| 321 | - </li> | |
| 322 | - | |
| 323 | - <li class="page-number" th:if="${channelPage.pageNum-3>=1}"><a | |
| 324 | - th:onclick="'javascript:fanye(\''+${channelPage.pageNum-3}+'\');'" | |
| 325 | - th:text="${channelPage.pageNum-3}">2</a></li> | |
| 326 | - <li class="page-number" th:if="${channelPage.pageNum-2>=1}"><a | |
| 327 | - th:onclick="'javascript:fanye(\''+${channelPage.pageNum-2}+'\');'" | |
| 328 | - th:text="${channelPage.pageNum-2}">2</a></li> | |
| 329 | - <li class="page-number" th:if="${channelPage.pageNum-1>=1}"><a | |
| 330 | - th:onclick="'javascript:fanye(\''+${channelPage.pageNum-1}+'\');'" | |
| 331 | - th:text="${channelPage.pageNum-1}">2</a></li> | |
| 332 | - <li class="page-number active"><a href="javaScript:void(0);" | |
| 333 | - th:text="${channelPage.pageNum}">2</a></li> | |
| 334 | - <li class="page-number" th:if="${channelPage.pageNum+1<=channelPage.pages}"><a | |
| 335 | - th:onclick="'javascript:fanye(\''+${channelPage.pageNum+1}+'\');'" | |
| 336 | - th:text="${channelPage.pageNum+1}">2</a></li> | |
| 337 | - <li class="page-number" th:if="${channelPage.pageNum+2<=channelPage.pages}"><a | |
| 338 | - th:onclick="'javascript:fanye(\''+${channelPage.pageNum+2}+'\');'" | |
| 339 | - th:text="${channelPage.pageNum+2}">2</a></li> | |
| 340 | - <li class="page-number" th:if="${channelPage.pageNum+3<=channelPage.pages}"><a | |
| 341 | - th:onclick="'javascript:fanye(\''+${channelPage.pageNum+3}+'\');'" | |
| 342 | - th:text="${channelPage.pageNum+3}">2</a></li> | |
| 343 | - | |
| 344 | - <li class="page-next" th:if="${!channelPage.isLastPage}"><a | |
| 345 | - th:onclick="'javascript:fanye(\''+${channelPage.pageNum+1}+'\');'">›</a> | |
| 346 | - </li> | |
| 347 | - <li class="page-next"><a | |
| 348 | - th:onclick="'javascript:fanye(\''+${channelPage.pages}+'\');'">››</a> | |
| 349 | - </li> | |
| 350 | - </ul> | |
| 325 | + <ul class="pagination" th:if="${channelPage.pages>1}"> | |
| 326 | + <li class="page-pre"><a th:href="'javascript:fanye(1);'">‹‹</a></li> | |
| 327 | + <li class="page-pre" th:if="${!channelPage.isFirstPage}"><a | |
| 328 | + th:onclick="'javascript:fanye(\''+${channelPage.pageNum-1}+'\');'">‹</a> | |
| 329 | + </li> | |
| 330 | + | |
| 331 | + <li class="page-number" th:if="${channelPage.pageNum-3>=1}"><a | |
| 332 | + th:onclick="'javascript:fanye(\''+${channelPage.pageNum-3}+'\');'" | |
| 333 | + th:text="${channelPage.pageNum-3}">2</a></li> | |
| 334 | + <li class="page-number" th:if="${channelPage.pageNum-2>=1}"><a | |
| 335 | + th:onclick="'javascript:fanye(\''+${channelPage.pageNum-2}+'\');'" | |
| 336 | + th:text="${channelPage.pageNum-2}">2</a></li> | |
| 337 | + <li class="page-number" th:if="${channelPage.pageNum-1>=1}"><a | |
| 338 | + th:onclick="'javascript:fanye(\''+${channelPage.pageNum-1}+'\');'" | |
| 339 | + th:text="${channelPage.pageNum-1}">2</a></li> | |
| 340 | + <li class="page-number active"><a href="javaScript:void(0);" | |
| 341 | + th:text="${channelPage.pageNum}">2</a> | |
| 342 | + </li> | |
| 343 | + <li class="page-number" | |
| 344 | + th:if="${channelPage.pageNum+1<=channelPage.pages}"><a | |
| 345 | + th:onclick="'javascript:fanye(\''+${channelPage.pageNum+1}+'\');'" | |
| 346 | + th:text="${channelPage.pageNum+1}">2</a></li> | |
| 347 | + <li class="page-number" | |
| 348 | + th:if="${channelPage.pageNum+2<=channelPage.pages}"><a | |
| 349 | + th:onclick="'javascript:fanye(\''+${channelPage.pageNum+2}+'\');'" | |
| 350 | + th:text="${channelPage.pageNum+2}">2</a></li> | |
| 351 | + <li class="page-number" | |
| 352 | + th:if="${channelPage.pageNum+3<=channelPage.pages}"><a | |
| 353 | + th:onclick="'javascript:fanye(\''+${channelPage.pageNum+3}+'\');'" | |
| 354 | + th:text="${channelPage.pageNum+3}">2</a></li> | |
| 355 | + | |
| 356 | + <li class="page-next" th:if="${!channelPage.isLastPage}"><a | |
| 357 | + th:onclick="'javascript:fanye(\''+${channelPage.pageNum+1}+'\');'">›</a> | |
| 358 | + </li> | |
| 359 | + <li class="page-next"><a | |
| 360 | + th:onclick="'javascript:fanye(\''+${channelPage.pages}+'\');'">››</a> | |
| 361 | + </li> | |
| 362 | + </ul> | |
| 351 | 363 | </div> |
| 352 | 364 | </div> |
| 353 | 365 | </div> |
| ... | ... | @@ -365,7 +377,7 @@ |
| 365 | 377 | <!-- /.content-wrapper --> |
| 366 | 378 | <!-- 模态框(Modal) --> |
| 367 | 379 | <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
| 368 | - <input type="hidden" id="channel_id_hidden" name="channel_id_hidden"> | |
| 380 | + <input type="hidden" id="channel_id_hidden" name="channel_id_hidden"> | |
| 369 | 381 | <div class="modal-dialog"> |
| 370 | 382 | <div class="modal-content" style="margin-top: 30%;"> |
| 371 | 383 | <div class="modal-header"> |
| ... | ... | @@ -388,13 +400,25 @@ |
| 388 | 400 | </div> |
| 389 | 401 | <!-- /.modal --> |
| 390 | 402 | <script th:inline="javascript"> |
| 403 | + function GetQueryString(name) { | |
| 404 | + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | |
| 405 | + var r = window.location.search.substr(1).match(reg); | |
| 406 | + if (r != null) return unescape(r[2]); | |
| 407 | + return null; | |
| 408 | + } | |
| 409 | + | |
| 391 | 410 | $(function () { |
| 411 | + if (GetQueryString("up_d") == "2") { | |
| 412 | + $("#query").click(); | |
| 413 | + } else { | |
| 414 | + | |
| 415 | + } | |
| 392 | 416 | //按钮颜色设置 |
| 393 | - var state = [[${param.shenhe_status}]] ? [[${param.shenhe_status}]][0] : null; | |
| 417 | + var state = [[${param.shenhe_status}]] ? [[${param.shenhe_status}]][0] : null; | |
| 394 | 418 | var receive = [[${param.receive}]] ? [[${param.receive}]][0] : null; |
| 395 | 419 | var stateIsNull = $.trim(state) == ""; |
| 396 | 420 | var receiveIsNull = $.trim(receive) == ""; |
| 397 | - if ( receive == '0' &&state != '0') { | |
| 421 | + if (receive == '0' && state != '0') { | |
| 398 | 422 | $("#quanbu").addClass("btn-info"); |
| 399 | 423 | } else if (state == '0' && receive == '0') { |
| 400 | 424 | $("#daishen").addClass("btn-warning"); |
| ... | ... | @@ -403,39 +427,39 @@ |
| 403 | 427 | } |
| 404 | 428 | |
| 405 | 429 | }) |
| 406 | - | |
| 407 | - //选择每页数量触发函数 | |
| 408 | - function selectPageSize(){ | |
| 409 | - var pageSize=$("#pageSize").val(); | |
| 410 | - var param = location.search; | |
| 411 | - if (param.indexOf("pageSize=") != -1) { | |
| 412 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 413 | - var split = se.split("&"); | |
| 414 | - var h = ""; | |
| 415 | - for (var i = 0; i < split.length; i++) { | |
| 416 | - var s = split[i]; | |
| 417 | - if (s.indexOf("pageSize=") < 0 &&s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 418 | - } | |
| 419 | - h = h.substring(1, h.length); | |
| 420 | - window.location.href = "/channel/page?" + h + "&pageSize=" + pageSize; | |
| 421 | - } else { | |
| 422 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 423 | - var split = se.split("&"); | |
| 424 | - var h = ""; | |
| 425 | - for (var i = 0; i < split.length; i++) { | |
| 426 | - var s = split[i]; | |
| 427 | - if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 428 | - } | |
| 429 | - h = h.substring(1, h.length); | |
| 430 | - window.location.href = "/channel/page?" + h + "&pageSize=" + pageSize; | |
| 431 | - } | |
| 430 | + | |
| 431 | + //选择每页数量触发函数 | |
| 432 | + function selectPageSize() { | |
| 433 | + var pageSize = $("#pageSize").val(); | |
| 434 | + var param = location.search; | |
| 435 | + if (param.indexOf("pageSize=") != -1) { | |
| 436 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 437 | + var split = se.split("&"); | |
| 438 | + var h = ""; | |
| 439 | + for (var i = 0; i < split.length; i++) { | |
| 440 | + var s = split[i]; | |
| 441 | + if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 442 | + } | |
| 443 | + h = h.substring(1, h.length); | |
| 444 | + window.location.href = "/channel/page?" + h + "&pageSize=" + pageSize; | |
| 445 | + } else { | |
| 446 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 447 | + var split = se.split("&"); | |
| 448 | + var h = ""; | |
| 449 | + for (var i = 0; i < split.length; i++) { | |
| 450 | + var s = split[i]; | |
| 451 | + if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 452 | + } | |
| 453 | + h = h.substring(1, h.length); | |
| 454 | + window.location.href = "/channel/page?" + h + "&pageSize=" + pageSize; | |
| 455 | + } | |
| 432 | 456 | } |
| 433 | - | |
| 457 | + | |
| 434 | 458 | //翻页函数 |
| 435 | 459 | function fanye(page) { |
| 436 | 460 | var param = location.search; |
| 437 | 461 | if (param.indexOf("page=") != -1) { |
| 438 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 462 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 439 | 463 | var split = se.split("&"); |
| 440 | 464 | var h = ""; |
| 441 | 465 | for (var i = 0; i < split.length; i++) { |
| ... | ... | @@ -449,71 +473,72 @@ |
| 449 | 473 | window.location.href = "/channel/page?" + param + "&page=" + page; |
| 450 | 474 | } |
| 451 | 475 | } |
| 452 | - | |
| 453 | - var channel_id ="";//频道id | |
| 454 | - var channel_name = "";//频道名称 | |
| 455 | - var shenhe_status ="";//审核状态 | |
| 456 | - var start_date ="";//开始时间 | |
| 457 | - var end_date = "";//结束时间 | |
| 458 | - var count = "";//每页显示数量 | |
| 459 | - var receive ="";//领取状态,用来区分是否是自己审核的内容 | |
| 460 | - | |
| 461 | - function query(){ | |
| 462 | - channel_id = $("#channel_id").val(); | |
| 463 | - channel_name = $("#channel_name").val(); | |
| 464 | - start_date = $("#start_date").val(); | |
| 465 | - end_date = $("#end_date").val(); | |
| 466 | - count = $("#pageSize").val(); | |
| 467 | - 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; | |
| 468 | - } | |
| 469 | - | |
| 470 | - //全部 | |
| 471 | - function quanbu() { | |
| 472 | - receive = 0; | |
| 473 | - shenhe_status = $("#shenhe_status").val(); | |
| 474 | - query(); | |
| 475 | - } | |
| 476 | - | |
| 477 | - //全部待领 | |
| 478 | - $('#daishen').click(function () { | |
| 479 | - shenhe_status = $("#shenhe_status").val(); | |
| 480 | - if($.trim(shenhe_status) == '') shenhe_status=0; | |
| 476 | + | |
| 477 | + var channel_id = "";//频道id | |
| 478 | + var channel_name = "";//频道名称 | |
| 479 | + var shenhe_status = "";//审核状态 | |
| 480 | + var start_date = "";//开始时间 | |
| 481 | + var end_date = "";//结束时间 | |
| 482 | + var count = "";//每页显示数量 | |
| 483 | + var receive = "";//领取状态,用来区分是否是自己审核的内容 | |
| 484 | + | |
| 485 | + function query() { | |
| 486 | + channel_id = $("#channel_id").val(); | |
| 487 | + channel_name = $("#channel_name").val(); | |
| 488 | + start_date = $("#start_date").val(); | |
| 489 | + end_date = $("#end_date").val(); | |
| 490 | + 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; | |
| 493 | + } | |
| 494 | + | |
| 495 | + //全部 | |
| 496 | + function quanbu() { | |
| 497 | + receive = 0; | |
| 498 | + shenhe_status = $("#shenhe_status").val(); | |
| 499 | + query(); | |
| 500 | + } | |
| 501 | + | |
| 502 | + //全部待领 | |
| 503 | + $('#daishen').click(function () { | |
| 504 | + shenhe_status = $("#shenhe_status").val(); | |
| 505 | + if ($.trim(shenhe_status) == '') shenhe_status = 0; | |
| 481 | 506 | receive = 0; |
| 482 | - query(); | |
| 483 | - }); | |
| 484 | - //我的已审核 | |
| 485 | - $('#yishen').click(function () { | |
| 486 | - shenhe_status = $("#shenhe_status").val(); | |
| 487 | - if($.trim(shenhe_status) == '') shenhe_status=3;//审核状态,3代表通过和拒绝都查询 | |
| 488 | - receive = 1; | |
| 489 | - query(); | |
| 490 | - }); | |
| 491 | - | |
| 507 | + query(); | |
| 508 | + }); | |
| 509 | + //我的已审核 | |
| 510 | + $('#yishen').click(function () { | |
| 511 | + shenhe_status = $("#shenhe_status").val(); | |
| 512 | + if ($.trim(shenhe_status) == '') shenhe_status = 3;//审核状态,3代表通过和拒绝都查询 | |
| 513 | + receive = 1; | |
| 514 | + query(); | |
| 515 | + }); | |
| 516 | + | |
| 492 | 517 | |
| 493 | 518 | //审核操作,status=1为通过 |
| 494 | 519 | function channel(ids, status) { |
| 495 | 520 | if (status == 1) { |
| 496 | - var r = confirm("您确定通过本条内容吗?"); | |
| 521 | + var r = confirm("您确定通过本条内容吗?"); | |
| 497 | 522 | if (r == true) { |
| 498 | - $.post("/channel/pass?ids=" + ids, function (data) { | |
| 499 | - if (data.errorCode == 0) { | |
| 500 | - alert(data.errorMessage); | |
| 501 | - location.href = location.href; | |
| 502 | - } else { | |
| 503 | - alert(data.errorMessage); | |
| 504 | - } | |
| 505 | - }) | |
| 523 | + $.post("/channel/pass?ids=" + ids, function (data) { | |
| 524 | + if (data.errorCode == 0) { | |
| 525 | + alert(data.errorMessage); | |
| 526 | + location.href = location.href; | |
| 527 | + } else { | |
| 528 | + alert(data.errorMessage); | |
| 529 | + } | |
| 530 | + }) | |
| 506 | 531 | } |
| 507 | 532 | } else { |
| 508 | - var r = confirm("您确定要拒绝本条内容吗?"); | |
| 509 | - if (r == true) { | |
| 510 | - $('#channel_id_hidden').val(ids); | |
| 511 | - $('#msgModal').modal('show'); | |
| 512 | - } | |
| 533 | + var r = confirm("您确定要拒绝本条内容吗?"); | |
| 534 | + if (r == true) { | |
| 535 | + $('#channel_id_hidden').val(ids); | |
| 536 | + $('#msgModal').modal('show'); | |
| 537 | + } | |
| 513 | 538 | } |
| 514 | 539 | |
| 515 | 540 | } |
| 516 | - | |
| 541 | + | |
| 517 | 542 | //提交打回 |
| 518 | 543 | function repulseSubmit() { |
| 519 | 544 | var ids = $('#channel_id_hidden').val(); |
| ... | ... | @@ -535,17 +560,18 @@ |
| 535 | 560 | $(id_name).slideUp(350); |
| 536 | 561 | $('#a_up').show(); |
| 537 | 562 | $('#a_down').hide(); |
| 563 | + $("#forms").attr("up_d", "1"); | |
| 538 | 564 | } else { |
| 539 | 565 | $(id_name).slideDown(350); |
| 540 | 566 | $('#a_up').hide(); |
| 541 | 567 | $('#a_down').show(); |
| 568 | + $("#forms").attr("up_d", "2"); | |
| 542 | 569 | } |
| 543 | 570 | } |
| 544 | - | |
| 571 | + | |
| 545 | 572 | //===========================以下未使用=============================== |
| 546 | 573 | |
| 547 | - | |
| 548 | - | |
| 574 | + | |
| 549 | 575 | /*全选的操作*/ |
| 550 | 576 | $('#select_all').click(function () { |
| 551 | 577 | if ($("[name=btSelectItem]:checkbox:not(:checked)").length > 0) { |
| ... | ... | @@ -596,7 +622,7 @@ |
| 596 | 622 | alert("没有选中的数据!"); |
| 597 | 623 | } |
| 598 | 624 | }); |
| 599 | - | |
| 625 | + | |
| 600 | 626 | /** |
| 601 | 627 | * 认领 |
| 602 | 628 | */ |
| ... | ... | @@ -672,14 +698,14 @@ |
| 672 | 698 | }) |
| 673 | 699 | } |
| 674 | 700 | |
| 675 | - | |
| 676 | - //批量提交 | |
| 701 | + | |
| 702 | + //批量提交 | |
| 677 | 703 | function morePass() { |
| 678 | 704 | var rows = $("[name=btSelectItem]:checkbox:checked"); |
| 679 | 705 | if (rows.length > 0) { |
| 680 | 706 | var r = confirm("您确定通过选中的" + rows.length + "条内容吗?"); |
| 681 | 707 | if (r == true) { |
| 682 | - var ids = ""; | |
| 708 | + var ids = ""; | |
| 683 | 709 | rows.each(function (i, e) { |
| 684 | 710 | ids = ids + "," + e.value; |
| 685 | 711 | }) | ... | ... |
src/main/resources/templates/page/comment.html
| ... | ... | @@ -52,7 +52,7 @@ |
| 52 | 52 | data-target="#modal" onclick="repulse();">拒绝 |
| 53 | 53 | </button> |
| 54 | 54 | <button type="button" class="btn btn-success btn-sm margin-r-5 action_bottom" |
| 55 | - id="morePass" onclick="morePass();">批量通过 | |
| 55 | + id="morePass" onclick="morePass();">批量通过 | |
| 56 | 56 | </button> |
| 57 | 57 | </div> |
| 58 | 58 | |
| ... | ... | @@ -61,23 +61,23 @@ |
| 61 | 61 | <div class="btn-group margin-bottom pull-right"> |
| 62 | 62 | <div class="btn-group margin-bottom"> |
| 63 | 63 | <button type="button" class="btn btn-success btn-sm margin-r-5 filter " |
| 64 | - th:onclick="'javascript:daochu()'" value="" id="excel">导出excel | |
| 65 | - </button> | |
| 64 | + th:onclick="'javascript:daochu()'" value="" id="excel">导出excel | |
| 65 | + </button> | |
| 66 | 66 | <button type="button" id="quanbu" |
| 67 | 67 | class="btn btn-sm margin-r-5 action_bottom" |
| 68 | 68 | th:onclick="'javascript:quanbu()'">查询 |
| 69 | 69 | </button> |
| 70 | 70 | <button type="button" id="daishen" |
| 71 | 71 | class="btn btn-sm margin-r-5 action_bottom" |
| 72 | - >全部待领 | |
| 72 | + >全部待领 | |
| 73 | 73 | </button> |
| 74 | 74 | <button type="button" id="Mydaishen" |
| 75 | 75 | class="btn btn-sm margin-r-5 action_bottom" |
| 76 | - >我的待审 | |
| 76 | + >我的待审 | |
| 77 | 77 | </button> |
| 78 | 78 | <button type="button" id="yishen" |
| 79 | 79 | class="btn btn-sm margin-r-5 action_bottom" |
| 80 | - >我的已审 | |
| 80 | + >我的已审 | |
| 81 | 81 | </button> |
| 82 | 82 | </div> |
| 83 | 83 | <button type="button" class="btn btn-primary btn-sm margin-r-5" id="query" |
| ... | ... | @@ -95,14 +95,14 @@ |
| 95 | 95 | <label for="activity_id" class="control-label cb-toolbar">活动id:</label> |
| 96 | 96 | <div class="col-sm-8" style="padding: 0;"> |
| 97 | 97 | <input class="form-control" name="activity_id" type="text" |
| 98 | - id="activity_id" > | |
| 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 | 104 | <input class="form-control" name="comment_user_id" type="text" |
| 105 | - id="comment_user_id" > | |
| 105 | + id="comment_user_id"> | |
| 106 | 106 | </div> |
| 107 | 107 | </div> |
| 108 | 108 | |
| ... | ... | @@ -117,9 +117,9 @@ |
| 117 | 117 | <div class="col-sm-8" style="padding: 0;"> |
| 118 | 118 | <select class="form-control col-sm-2" id="state" name="state"> |
| 119 | 119 | <option value="">全部</option> |
| 120 | - <option value="0" >未审核</option> | |
| 121 | - <option value="1" >已通过</option> | |
| 122 | - <option value="2" >已拒绝</option> | |
| 120 | + <option value="0">未审核</option> | |
| 121 | + <option value="1">已通过</option> | |
| 122 | + <option value="2">已拒绝</option> | |
| 123 | 123 | </select> |
| 124 | 124 | </div> |
| 125 | 125 | </div> |
| ... | ... | @@ -131,31 +131,31 @@ |
| 131 | 131 | <div class="col-sm-8" style="padding: 0;"> |
| 132 | 132 | <select class="form-control col-sm-2" id="topic" name="topic"> |
| 133 | 133 | <option value="">全部</option> |
| 134 | - <option value="0" >话题</option> | |
| 135 | - <option value="1" >其他</option> | |
| 134 | + <option value="0">话题</option> | |
| 135 | + <option value="1">其他</option> | |
| 136 | 136 | </select> |
| 137 | 137 | </div> |
| 138 | 138 | </div> |
| 139 | 139 | <div class="col-md-5" style="padding: 0;"> |
| 140 | 140 | <label for="start_date" class="control-label cb-toolbar">时间:</label> |
| 141 | - <div class="input-group col-md-9 date"> | |
| 142 | - <input class="form-control date" name="start_date" type="text" | |
| 143 | - id="start_date" > | |
| 144 | - <span class="input-group-addon"> | |
| 141 | + <div class="input-group col-md-9 date"> | |
| 142 | + <input class="form-control date" name="start_date" type="text" | |
| 143 | + id="start_date"> | |
| 144 | + <span class="input-group-addon"> | |
| 145 | 145 | <span class="glyphicon glyphicon-calendar"></span> |
| 146 | 146 | </span> |
| 147 | - </div> | |
| 148 | 147 | </div> |
| 149 | - <div class="col-md-4" style="padding: 0;"> | |
| 150 | - <label for="start_date" class="control-label cb-toolbar">至</label> | |
| 151 | - <div class="input-group col-md-9 date"> | |
| 152 | - <input class="form-control date" name="end_date" type="text" | |
| 153 | - id="end_date" > | |
| 154 | - <span class="input-group-addon"> | |
| 148 | + </div> | |
| 149 | + <div class="col-md-4" style="padding: 0;"> | |
| 150 | + <label for="start_date" class="control-label cb-toolbar">至</label> | |
| 151 | + <div class="input-group col-md-9 date"> | |
| 152 | + <input class="form-control date" name="end_date" type="text" | |
| 153 | + id="end_date"> | |
| 154 | + <span class="input-group-addon"> | |
| 155 | 155 | <span class="glyphicon glyphicon-calendar"></span> |
| 156 | 156 | </span> |
| 157 | - </div> | |
| 158 | 157 | </div> |
| 158 | + </div> | |
| 159 | 159 | </div> |
| 160 | 160 | </form> |
| 161 | 161 | </div> |
| ... | ... | @@ -274,7 +274,8 @@ |
| 274 | 274 | th:href="@{'/comments/details/'+${comment.id}}">哈哈哈</a> |
| 275 | 275 | </td> |
| 276 | 276 | <td style="text-align: center; width: 15%;"> |
| 277 | - <a th:href="@{${comment.comment_original_url}}" th:text="${comment.comment_title}" target="blank"></a> | |
| 277 | + <a th:href="@{${comment.comment_original_url}}" | |
| 278 | + th:text="${comment.comment_title}" target="blank"></a> | |
| 278 | 279 | </td> |
| 279 | 280 | <td style="text-align: center; width: 6%;" th:text="${comment.updater}"> |
| 280 | 281 | 发布 |
| ... | ... | @@ -318,21 +319,21 @@ |
| 318 | 319 | </a> |
| 319 | 320 | <a th:href="@{'javascript:speakModal('+${comment.id}+',\''+${comment.comment_user_name}+'\',\''+${comment.spid_desc}+'\')'}"> |
| 320 | 321 | <button class="btn btn-danger btn-sm">禁言</button> |
| 321 | - </a> | |
| 322 | - | |
| 323 | -<!-- <span th:if="${comment.receive and session.sessionUser.userId==comment.receive_user_id}"> </span> --> | |
| 324 | -<!-- <a class="pass_one" --> | |
| 325 | -<!-- th:href="@{'javascript:comment('+${comment.id}+',1)'}" --> | |
| 326 | -<!-- th:if="${comment.receive and session.sessionUser.userId==comment.receive_user_id}"> --> | |
| 327 | -<!-- <button class="btn btn-success btn-sm">通过</button> --> | |
| 328 | -<!-- </a> --> | |
| 329 | - | |
| 330 | -<!-- <span th:if="${comment.receive and session.sessionUser.userId==comment.receive_user_id}"> </span> --> | |
| 331 | -<!-- <a class="failed_one" --> | |
| 332 | -<!-- th:href="@{'javascript:comment('+${comment.id}+',2)'}" --> | |
| 333 | -<!-- th:if="${comment.receive and session.sessionUser.userId==comment.receive_user_id}"> --> | |
| 334 | -<!-- <button class="btn btn-danger btn-sm">拒绝</button> --> | |
| 335 | -<!-- </a> --> | |
| 322 | + </a> | |
| 323 | + | |
| 324 | + <!-- <span th:if="${comment.receive and session.sessionUser.userId==comment.receive_user_id}"> </span> --> | |
| 325 | + <!-- <a class="pass_one" --> | |
| 326 | + <!-- th:href="@{'javascript:comment('+${comment.id}+',1)'}" --> | |
| 327 | + <!-- th:if="${comment.receive and session.sessionUser.userId==comment.receive_user_id}"> --> | |
| 328 | + <!-- <button class="btn btn-success btn-sm">通过</button> --> | |
| 329 | + <!-- </a> --> | |
| 330 | + | |
| 331 | + <!-- <span th:if="${comment.receive and session.sessionUser.userId==comment.receive_user_id}"> </span> --> | |
| 332 | + <!-- <a class="failed_one" --> | |
| 333 | + <!-- th:href="@{'javascript:comment('+${comment.id}+',2)'}" --> | |
| 334 | + <!-- th:if="${comment.receive and session.sessionUser.userId==comment.receive_user_id}"> --> | |
| 335 | + <!-- <button class="btn btn-danger btn-sm">拒绝</button> --> | |
| 336 | + <!-- </a> --> | |
| 336 | 337 | </td> |
| 337 | 338 | </tr> |
| 338 | 339 | |
| ... | ... | @@ -350,50 +351,55 @@ |
| 350 | 351 | </div> |
| 351 | 352 | <div class="fixed-table-pagination" style="display: block;"> |
| 352 | 353 | <div class="pull-left pagination-detail"> |
| 353 | - <span class="pagination-info" th:text="'共 '+${commentPage.total}+' 条记录,每页显示'">总共 0 条记录</span> | |
| 354 | + <span class="pagination-info" | |
| 355 | + th:text="'共 '+${commentPage.total}+' 条记录,每页显示'">总共 0 条记录</span> | |
| 354 | 356 | <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()"> |
| 355 | - <option value="10" th:selected="${pageSize==10}">10</option> | |
| 356 | - <option value="20" th:selected="${pageSize==20}">20</option> | |
| 357 | - <option value="50" th:selected="${pageSize==50}">50</option> | |
| 358 | - <option value="100" th:selected="${pageSize==100}">100</option> | |
| 359 | - </select> | |
| 360 | - <span class="pagination-info" >条记录</span> | |
| 357 | + <option value="10" th:selected="${pageSize==10}">10</option> | |
| 358 | + <option value="20" th:selected="${pageSize==20}">20</option> | |
| 359 | + <option value="50" th:selected="${pageSize==50}">50</option> | |
| 360 | + <option value="100" th:selected="${pageSize==100}">100</option> | |
| 361 | + </select> | |
| 362 | + <span class="pagination-info">条记录</span> | |
| 361 | 363 | </div> |
| 362 | 364 | <div class="pull-right pagination"> |
| 363 | - <ul class="pagination" th:if="${commentPage.pages>1}"> | |
| 364 | - <li class="page-pre"><a th:href="'javascript:fanye(1);'">‹‹</a></li> | |
| 365 | - <li class="page-pre" th:if="${!commentPage.isFirstPage}"><a | |
| 366 | - th:onclick="'javascript:fanye(\''+${commentPage.pageNum-1}+'\');'">‹</a> | |
| 367 | - </li> | |
| 368 | - | |
| 369 | - <li class="page-number" th:if="${commentPage.pageNum-3>=1}"><a | |
| 370 | - th:onclick="'javascript:fanye(\''+${commentPage.pageNum-3}+'\');'" | |
| 371 | - th:text="${commentPage.pageNum-3}">2</a></li> | |
| 372 | - <li class="page-number" th:if="${commentPage.pageNum-2>=1}"><a | |
| 373 | - th:onclick="'javascript:fanye(\''+${commentPage.pageNum-2}+'\');'" | |
| 374 | - th:text="${commentPage.pageNum-2}">2</a></li> | |
| 375 | - <li class="page-number" th:if="${commentPage.pageNum-1>=1}"><a | |
| 376 | - th:onclick="'javascript:fanye(\''+${commentPage.pageNum-1}+'\');'" | |
| 377 | - th:text="${commentPage.pageNum-1}">2</a></li> | |
| 378 | - <li class="page-number active"><a href="javaScript:void(0);" | |
| 379 | - th:text="${commentPage.pageNum}">2</a></li> | |
| 380 | - <li class="page-number" th:if="${commentPage.pageNum+1<=commentPage.pages}"><a | |
| 381 | - th:onclick="'javascript:fanye(\''+${commentPage.pageNum+1}+'\');'" | |
| 382 | - th:text="${commentPage.pageNum+1}">2</a></li> | |
| 383 | - <li class="page-number" th:if="${commentPage.pageNum+2<=commentPage.pages}"><a | |
| 384 | - th:onclick="'javascript:fanye(\''+${commentPage.pageNum+2}+'\');'" | |
| 385 | - th:text="${commentPage.pageNum+2}">2</a></li> | |
| 386 | - <li class="page-number" th:if="${commentPage.pageNum+3<=commentPage.pages}"><a | |
| 387 | - th:onclick="'javascript:fanye(\''+${commentPage.pageNum+3}+'\');'" | |
| 388 | - th:text="${commentPage.pageNum+3}">2</a></li> | |
| 389 | - | |
| 390 | - <li class="page-next" th:if="${!commentPage.isLastPage}"><a | |
| 391 | - th:onclick="'javascript:fanye(\''+${commentPage.pageNum+1}+'\');'">›</a> | |
| 392 | - </li> | |
| 393 | - <li class="page-next"><a | |
| 394 | - th:onclick="'javascript:fanye(\''+${commentPage.pages}+'\');'">››</a> | |
| 395 | - </li> | |
| 396 | - </ul> | |
| 365 | + <ul class="pagination" th:if="${commentPage.pages>1}"> | |
| 366 | + <li class="page-pre"><a th:href="'javascript:fanye(1);'">‹‹</a></li> | |
| 367 | + <li class="page-pre" th:if="${!commentPage.isFirstPage}"><a | |
| 368 | + th:onclick="'javascript:fanye(\''+${commentPage.pageNum-1}+'\');'">‹</a> | |
| 369 | + </li> | |
| 370 | + | |
| 371 | + <li class="page-number" th:if="${commentPage.pageNum-3>=1}"><a | |
| 372 | + th:onclick="'javascript:fanye(\''+${commentPage.pageNum-3}+'\');'" | |
| 373 | + th:text="${commentPage.pageNum-3}">2</a></li> | |
| 374 | + <li class="page-number" th:if="${commentPage.pageNum-2>=1}"><a | |
| 375 | + th:onclick="'javascript:fanye(\''+${commentPage.pageNum-2}+'\');'" | |
| 376 | + th:text="${commentPage.pageNum-2}">2</a></li> | |
| 377 | + <li class="page-number" th:if="${commentPage.pageNum-1>=1}"><a | |
| 378 | + th:onclick="'javascript:fanye(\''+${commentPage.pageNum-1}+'\');'" | |
| 379 | + th:text="${commentPage.pageNum-1}">2</a></li> | |
| 380 | + <li class="page-number active"><a href="javaScript:void(0);" | |
| 381 | + th:text="${commentPage.pageNum}">2</a> | |
| 382 | + </li> | |
| 383 | + <li class="page-number" | |
| 384 | + th:if="${commentPage.pageNum+1<=commentPage.pages}"><a | |
| 385 | + th:onclick="'javascript:fanye(\''+${commentPage.pageNum+1}+'\');'" | |
| 386 | + th:text="${commentPage.pageNum+1}">2</a></li> | |
| 387 | + <li class="page-number" | |
| 388 | + th:if="${commentPage.pageNum+2<=commentPage.pages}"><a | |
| 389 | + th:onclick="'javascript:fanye(\''+${commentPage.pageNum+2}+'\');'" | |
| 390 | + th:text="${commentPage.pageNum+2}">2</a></li> | |
| 391 | + <li class="page-number" | |
| 392 | + th:if="${commentPage.pageNum+3<=commentPage.pages}"><a | |
| 393 | + th:onclick="'javascript:fanye(\''+${commentPage.pageNum+3}+'\');'" | |
| 394 | + th:text="${commentPage.pageNum+3}">2</a></li> | |
| 395 | + | |
| 396 | + <li class="page-next" th:if="${!commentPage.isLastPage}"><a | |
| 397 | + th:onclick="'javascript:fanye(\''+${commentPage.pageNum+1}+'\');'">›</a> | |
| 398 | + </li> | |
| 399 | + <li class="page-next"><a | |
| 400 | + th:onclick="'javascript:fanye(\''+${commentPage.pages}+'\');'">››</a> | |
| 401 | + </li> | |
| 402 | + </ul> | |
| 397 | 403 | </div> |
| 398 | 404 | </div> |
| 399 | 405 | </div> |
| ... | ... | @@ -430,7 +436,7 @@ |
| 430 | 436 | data-target="#modal" onclick="repulse();">拒绝 |
| 431 | 437 | </button> |
| 432 | 438 | <button type="button" class="btn btn-success btn-sm margin-r-5 action_bottom" |
| 433 | - id="morePass1" onclick="morePass();">批量通过 | |
| 439 | + id="morePass1" onclick="morePass();">批量通过 | |
| 434 | 440 | </button> |
| 435 | 441 | </div> |
| 436 | 442 | </div> |
| ... | ... | @@ -470,55 +476,77 @@ |
| 470 | 476 | </div> |
| 471 | 477 | <!-- /.modal --> |
| 472 | 478 | <!-- 模态框,禁言框(Modal) --> |
| 473 | -<div class="modal fade" id="speakModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
| 474 | - <div class="modal-dialog"> | |
| 475 | - <div class="modal-content" style="margin-top: 30%;"> | |
| 476 | - <div class="modal-header"> | |
| 477 | - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 478 | - <h4 class="modal-title" id="myModalLabel">禁言选项</h4> | |
| 479 | - </div> | |
| 480 | - <div class="modal-body"> | |
| 481 | - <input type="text" name="comments_id" value="" class="hide" id="comments_id"/> | |
| 482 | - <div class="form-group"> | |
| 483 | - <label class="control-label col-sm-3" style="font-size: 15px;" >用户昵称:</label> | |
| 484 | - <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 485 | - <input class="form-control" readonly="readonly" style="width:40%;" type="text" value="" id="userName" name="userName"> | |
| 486 | - </div> | |
| 479 | + <div class="modal fade" id="speakModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" | |
| 480 | + aria-hidden="true"> | |
| 481 | + <div class="modal-dialog"> | |
| 482 | + <div class="modal-content" style="margin-top: 30%;"> | |
| 483 | + <div class="modal-header"> | |
| 484 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 485 | + <h4 class="modal-title" id="myModalLabel">禁言选项</h4> | |
| 487 | 486 | </div> |
| 488 | - <div class="form-group"> | |
| 489 | - <label class="control-label col-sm-3" style="font-size: 15px;">发言平台:</label> | |
| 490 | - <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 491 | - <input class="form-control" readonly="readonly" style="width:40%;" type="text" value="" id="sp_desc" name="sp_desc"> | |
| 487 | + <div class="modal-body"> | |
| 488 | + <input type="text" name="comments_id" value="" class="hide" id="comments_id"/> | |
| 489 | + <div class="form-group"> | |
| 490 | + <label class="control-label col-sm-3" style="font-size: 15px;">用户昵称:</label> | |
| 491 | + <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 492 | + <input class="form-control" readonly="readonly" style="width:40%;" type="text" value="" | |
| 493 | + id="userName" name="userName"> | |
| 494 | + </div> | |
| 492 | 495 | </div> |
| 493 | - </div> | |
| 494 | - <div class="form-group"> | |
| 495 | - <label class="control-label col-sm-3" style="font-size: 15px;">禁言时长:</label> | |
| 496 | - <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 497 | - <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" style="display:inline;width:10%;" type="text" value="0" id="noSpeak_days" name="noSpeak_days"> | |
| 498 | - <span> 天 </span> | |
| 499 | - <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" style="display:inline;width:10%;" type="text" value="0" id="noSpeak_hours" name="noSpeak_hours"> | |
| 500 | - <span> 时 </span> | |
| 501 | - <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" style="display:inline;width:10%;" type="text" value="0" id="noSpeak_minutes" name="noSpeak_minutes"> | |
| 502 | - <span> 分 </span> | |
| 496 | + <div class="form-group"> | |
| 497 | + <label class="control-label col-sm-3" style="font-size: 15px;">发言平台:</label> | |
| 498 | + <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 499 | + <input class="form-control" readonly="readonly" style="width:40%;" type="text" value="" | |
| 500 | + id="sp_desc" name="sp_desc"> | |
| 501 | + </div> | |
| 502 | + </div> | |
| 503 | + <div class="form-group"> | |
| 504 | + <label class="control-label col-sm-3" style="font-size: 15px;">禁言时长:</label> | |
| 505 | + <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 506 | + <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" | |
| 507 | + style="display:inline;width:10%;" type="text" value="0" id="noSpeak_days" | |
| 508 | + name="noSpeak_days"> | |
| 509 | + <span> 天 </span> | |
| 510 | + <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" | |
| 511 | + style="display:inline;width:10%;" type="text" value="0" id="noSpeak_hours" | |
| 512 | + name="noSpeak_hours"> | |
| 513 | + <span> 时 </span> | |
| 514 | + <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" | |
| 515 | + style="display:inline;width:10%;" type="text" value="0" id="noSpeak_minutes" | |
| 516 | + name="noSpeak_minutes"> | |
| 517 | + <span> 分 </span> | |
| 518 | + </div> | |
| 503 | 519 | </div> |
| 504 | 520 | </div> |
| 505 | - </div> | |
| 506 | - <div class="modal-footer"> | |
| 507 | - <button type="button" class="btn btn-primary" onclick="javascript:submitSpeak();">提交</button> | |
| 508 | - <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> | |
| 509 | - </div> | |
| 510 | - </div><!-- /.modal-content --> | |
| 511 | - </div><!-- /.modal-dialog --> | |
| 512 | -</div> | |
| 513 | -<!-- /.modal --> | |
| 521 | + <div class="modal-footer"> | |
| 522 | + <button type="button" class="btn btn-primary" onclick="javascript:submitSpeak();">提交</button> | |
| 523 | + <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> | |
| 524 | + </div> | |
| 525 | + </div><!-- /.modal-content --> | |
| 526 | + </div><!-- /.modal-dialog --> | |
| 527 | + </div> | |
| 528 | + <!-- /.modal --> | |
| 514 | 529 | <script th:inline="javascript"> |
| 530 | + function GetQueryString(name) { | |
| 531 | + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | |
| 532 | + var r = window.location.search.substr(1).match(reg); | |
| 533 | + if (r != null) return unescape(r[2]); | |
| 534 | + return null; | |
| 535 | + } | |
| 536 | + | |
| 537 | + | |
| 515 | 538 | $(function () { |
| 516 | - //按钮颜色设置 | |
| 539 | + if (GetQueryString("up_d") == "2") { | |
| 540 | + $("#query").click(); | |
| 541 | + } else { | |
| 542 | + | |
| 543 | + } | |
| 544 | + //按钮颜色设置 | |
| 517 | 545 | var state = [[${param.state}]] ? [[${param.state}]][0] : null; |
| 518 | 546 | var receive = [[${param.receive}]] ? [[${param.receive}]][0] : null; |
| 519 | 547 | var stateIsNull = $.trim(state) == ""; |
| 520 | 548 | var receiveIsNull = $.trim(receive) == ""; |
| 521 | - if ( receiveIsNull) { | |
| 549 | + if (receiveIsNull) { | |
| 522 | 550 | $("#quanbu").addClass("btn-info"); |
| 523 | 551 | } else if (state == '0' && receive == '0') { |
| 524 | 552 | $("#daishen").addClass("btn-warning"); |
| ... | ... | @@ -529,39 +557,39 @@ |
| 529 | 557 | } |
| 530 | 558 | |
| 531 | 559 | }) |
| 532 | - | |
| 533 | - //选择每页数量触发函数 | |
| 534 | - function selectPageSize(){ | |
| 535 | - var pageSize=$("#pageSize").val(); | |
| 536 | - var param = location.search; | |
| 537 | - if (param.indexOf("pageSize=") != -1) { | |
| 538 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 539 | - var split = se.split("&"); | |
| 540 | - var h = ""; | |
| 541 | - for (var i = 0; i < split.length; i++) { | |
| 542 | - var s = split[i]; | |
| 543 | - if (s.indexOf("pageSize=") < 0 &&s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 544 | - } | |
| 545 | - h = h.substring(1, h.length); | |
| 546 | - window.location.href = "/comments/page?" + h + "&pageSize=" + pageSize; | |
| 547 | - } else { | |
| 548 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 549 | - var split = se.split("&"); | |
| 550 | - var h = ""; | |
| 551 | - for (var i = 0; i < split.length; i++) { | |
| 552 | - var s = split[i]; | |
| 553 | - if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 554 | - } | |
| 555 | - h = h.substring(1, h.length); | |
| 556 | - window.location.href = "/comments/page?" + h + "&pageSize=" + pageSize; | |
| 557 | - } | |
| 560 | + | |
| 561 | + //选择每页数量触发函数 | |
| 562 | + function selectPageSize() { | |
| 563 | + var pageSize = $("#pageSize").val(); | |
| 564 | + var param = location.search; | |
| 565 | + if (param.indexOf("pageSize=") != -1) { | |
| 566 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 567 | + var split = se.split("&"); | |
| 568 | + var h = ""; | |
| 569 | + for (var i = 0; i < split.length; i++) { | |
| 570 | + var s = split[i]; | |
| 571 | + if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 572 | + } | |
| 573 | + h = h.substring(1, h.length); | |
| 574 | + window.location.href = "/comments/page?" + h + "&pageSize=" + pageSize; | |
| 575 | + } else { | |
| 576 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 577 | + var split = se.split("&"); | |
| 578 | + var h = ""; | |
| 579 | + for (var i = 0; i < split.length; i++) { | |
| 580 | + var s = split[i]; | |
| 581 | + if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 582 | + } | |
| 583 | + h = h.substring(1, h.length); | |
| 584 | + window.location.href = "/comments/page?" + h + "&pageSize=" + pageSize; | |
| 585 | + } | |
| 558 | 586 | } |
| 559 | - | |
| 587 | + | |
| 560 | 588 | //翻页函数 |
| 561 | 589 | function fanye(page) { |
| 562 | 590 | var param = location.search; |
| 563 | 591 | if (param.indexOf("page=") != -1) { |
| 564 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 592 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 565 | 593 | var split = se.split("&"); |
| 566 | 594 | var h = ""; |
| 567 | 595 | for (var i = 0; i < split.length; i++) { |
| ... | ... | @@ -575,56 +603,57 @@ |
| 575 | 603 | window.location.href = "/comments/page?" + param + "&page=" + page; |
| 576 | 604 | } |
| 577 | 605 | } |
| 578 | - | |
| 579 | - var activity_id ="";//活动id | |
| 580 | - var content = "";//内容 | |
| 581 | - var state ="";//状态 | |
| 582 | - var start_date ="";//开始时间 | |
| 583 | - var end_date = "";//结束时间 | |
| 584 | - var count = "";//每页显示数量 | |
| 585 | - var receive ="";//领取状态 | |
| 586 | - var type="";//类型,topic:话题 | |
| 587 | - var comment_user_id="";//sid | |
| 588 | - | |
| 589 | - function query(){ | |
| 590 | - activity_id = $("#activity_id").val(); | |
| 591 | - content = $("#content").val(); | |
| 592 | - start_date = $("#start_date").val(); | |
| 593 | - end_date = $("#end_date").val(); | |
| 594 | - count = $("#pageSize").val(); | |
| 595 | - type = $("#topic").val(); | |
| 606 | + | |
| 607 | + var activity_id = "";//活动id | |
| 608 | + var content = "";//内容 | |
| 609 | + var state = "";//状态 | |
| 610 | + var start_date = "";//开始时间 | |
| 611 | + var end_date = "";//结束时间 | |
| 612 | + var count = "";//每页显示数量 | |
| 613 | + var receive = "";//领取状态 | |
| 614 | + var type = "";//类型,topic:话题 | |
| 615 | + var comment_user_id = "";//sid | |
| 616 | + | |
| 617 | + function query() { | |
| 618 | + activity_id = $("#activity_id").val(); | |
| 619 | + content = $("#content").val(); | |
| 620 | + start_date = $("#start_date").val(); | |
| 621 | + end_date = $("#end_date").val(); | |
| 622 | + count = $("#pageSize").val(); | |
| 623 | + type = $("#topic").val(); | |
| 596 | 624 | comment_user_id = $("#comment_user_id").val(); |
| 597 | - 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; | |
| 598 | - } | |
| 599 | - | |
| 600 | - //全部 | |
| 601 | - function quanbu() { | |
| 602 | - state = $("#state").val(); | |
| 603 | - query(); | |
| 604 | - } | |
| 605 | - | |
| 606 | - //全部待领 | |
| 607 | - $('#daishen').click(function () { | |
| 608 | - state = $("#state").val(); | |
| 609 | - if($.trim(state) == '') state=0; | |
| 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; | |
| 627 | + } | |
| 628 | + | |
| 629 | + //全部 | |
| 630 | + function quanbu() { | |
| 631 | + state = $("#state").val(); | |
| 632 | + query(); | |
| 633 | + } | |
| 634 | + | |
| 635 | + //全部待领 | |
| 636 | + $('#daishen').click(function () { | |
| 637 | + state = $("#state").val(); | |
| 638 | + if ($.trim(state) == '') state = 0; | |
| 610 | 639 | receive = 0; |
| 611 | - query(); | |
| 612 | - }); | |
| 613 | - //我的待审核 | |
| 614 | - $('#Mydaishen').click(function () { | |
| 615 | - state = $("#state").val(); | |
| 616 | - if($.trim(state) == '') state=0; | |
| 617 | - receive = 1; | |
| 618 | - query(); | |
| 619 | - }); | |
| 620 | - //我的已审核 | |
| 621 | - $('#yishen').click(function () { | |
| 622 | - state = $("#state").val(); | |
| 623 | - if($.trim(state) == '') state=3;//审核状态,3代表通过和拒绝都查询 | |
| 624 | - receive = 1; | |
| 625 | - query(); | |
| 626 | - }); | |
| 627 | - | |
| 640 | + query(); | |
| 641 | + }); | |
| 642 | + //我的待审核 | |
| 643 | + $('#Mydaishen').click(function () { | |
| 644 | + state = $("#state").val(); | |
| 645 | + if ($.trim(state) == '') state = 0; | |
| 646 | + receive = 1; | |
| 647 | + query(); | |
| 648 | + }); | |
| 649 | + //我的已审核 | |
| 650 | + $('#yishen').click(function () { | |
| 651 | + state = $("#state").val(); | |
| 652 | + if ($.trim(state) == '') state = 3;//审核状态,3代表通过和拒绝都查询 | |
| 653 | + receive = 1; | |
| 654 | + query(); | |
| 655 | + }); | |
| 656 | + | |
| 628 | 657 | /*全选的操作*/ |
| 629 | 658 | $('#select_all').click(function () { |
| 630 | 659 | if ($("[name=btSelectItem]:checkbox:not(:checked)").length > 0) { |
| ... | ... | @@ -707,10 +736,12 @@ |
| 707 | 736 | $(id_name).slideUp(350); |
| 708 | 737 | $('#a_up').show(); |
| 709 | 738 | $('#a_down').hide(); |
| 739 | + $("#forms").attr("up_d", "1"); | |
| 710 | 740 | } else { |
| 711 | 741 | $(id_name).slideDown(350); |
| 712 | 742 | $('#a_up').hide(); |
| 713 | 743 | $('#a_down').show(); |
| 744 | + $("#forms").attr("up_d", "2"); | |
| 714 | 745 | } |
| 715 | 746 | } |
| 716 | 747 | |
| ... | ... | @@ -820,13 +851,14 @@ |
| 820 | 851 | } |
| 821 | 852 | }) |
| 822 | 853 | } |
| 823 | - //批量提交 | |
| 854 | + | |
| 855 | + //批量提交 | |
| 824 | 856 | function morePass() { |
| 825 | 857 | var rows = $("[name=btSelectItem]:checkbox:checked"); |
| 826 | 858 | if (rows.length > 0) { |
| 827 | 859 | var r = confirm("您确定通过选中的" + rows.length + "条内容吗?"); |
| 828 | 860 | if (r == true) { |
| 829 | - var ids = ""; | |
| 861 | + var ids = ""; | |
| 830 | 862 | rows.each(function (i, e) { |
| 831 | 863 | ids = ids + "," + e.value; |
| 832 | 864 | }) |
| ... | ... | @@ -844,30 +876,31 @@ |
| 844 | 876 | alert("没有选中的数据!"); |
| 845 | 877 | } |
| 846 | 878 | } |
| 879 | + | |
| 847 | 880 | //禁言(弹窗) |
| 848 | - function speakModal(comments_id,userName,sp_desc) { | |
| 849 | - | |
| 850 | - $.post("/notSpeak/querySpeakState?commentId=" + comments_id, function (data) { | |
| 881 | + function speakModal(comments_id, userName, sp_desc) { | |
| 882 | + | |
| 883 | + $.post("/notSpeak/querySpeakState?commentId=" + comments_id, function (data) { | |
| 851 | 884 | if (data.errorCode != 0) { |
| 852 | 885 | alert(data.errorMessage); |
| 853 | 886 | // location.href = location.href; |
| 854 | 887 | } else { |
| 855 | - $('#comments_id').val(comments_id); | |
| 856 | - $('#userName').val(userName); | |
| 857 | - $('#sp_desc').val(sp_desc); | |
| 888 | + $('#comments_id').val(comments_id); | |
| 889 | + $('#userName').val(userName); | |
| 890 | + $('#sp_desc').val(sp_desc); | |
| 858 | 891 | $('#speakModal').modal('show'); |
| 859 | 892 | } |
| 860 | 893 | }) |
| 861 | - | |
| 894 | + | |
| 862 | 895 | } |
| 863 | 896 | |
| 864 | 897 | //提交禁言 |
| 865 | 898 | function submitSpeak() { |
| 866 | 899 | var comments_id = $("#comments_id").val(); |
| 867 | - var noSpeak_days = Number($("#noSpeak_days").val()); | |
| 868 | - var noSpeak_hours = Number($("#noSpeak_hours").val()); | |
| 869 | - var noSpeak_minutes = Number($("#noSpeak_minutes").val()); | |
| 870 | - var time=noSpeak_days*24*60+noSpeak_hours*60+noSpeak_minutes;//单位为分钟 | |
| 900 | + var noSpeak_days = Number($("#noSpeak_days").val()); | |
| 901 | + var noSpeak_hours = Number($("#noSpeak_hours").val()); | |
| 902 | + var noSpeak_minutes = Number($("#noSpeak_minutes").val()); | |
| 903 | + var time = noSpeak_days * 24 * 60 + noSpeak_hours * 60 + noSpeak_minutes;//单位为分钟 | |
| 871 | 904 | // alert(comments_id); |
| 872 | 905 | $.post("/notSpeak/notSpeakByComment?commentId=" + comments_id + "&time=" + time, function (data) { |
| 873 | 906 | if (data.errorCode == 0) { |
| ... | ... | @@ -878,7 +911,7 @@ |
| 878 | 911 | } |
| 879 | 912 | }) |
| 880 | 913 | } |
| 881 | - | |
| 914 | + | |
| 882 | 915 | //导出excel |
| 883 | 916 | function daochu() { |
| 884 | 917 | var param = location.search; | ... | ... |
src/main/resources/templates/page/commentDetail.html
| ... | ... | @@ -183,6 +183,16 @@ |
| 183 | 183 | </div> |
| 184 | 184 | </div> |
| 185 | 185 | <script th:inline="javascript"> |
| 186 | + | |
| 187 | + $(function () { | |
| 188 | + var url = "/content/page"; | |
| 189 | + $('ul.treeview-menu>li').removeClass("active"); | |
| 190 | + $('.sidebar-menu>li').removeClass("active"); | |
| 191 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //二级链接高亮 | |
| 192 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li.treeview').addClass('active'); //一级栏目[含二级链接]高亮 | |
| 193 | + $('.sidebar-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //一级栏目[不含二级链接]高亮 | |
| 194 | + }) | |
| 195 | + | |
| 186 | 196 | var commentId = [[${comment.id}]]; |
| 187 | 197 | |
| 188 | 198 | //审核操作,status=1为通过 | ... | ... |
src/main/resources/templates/page/content.html
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | <h1> |
| 14 | 14 | 图文审核 |
| 15 | 15 | </h1> |
| 16 | -<!-- <div th:text="${T(com.cnlive.shenhe.controller.VideosController).ceshi('')}">JAN</div> --> | |
| 16 | + <!-- <div th:text="${T(com.cnlive.shenhe.controller.VideosController).ceshi('')}">JAN</div> --> | |
| 17 | 17 | <ol class="breadcrumb"> |
| 18 | 18 | <li>首页</li> |
| 19 | 19 | <li class="active">图文审核</li> |
| ... | ... | @@ -26,7 +26,7 @@ |
| 26 | 26 | <div class="box-body"> |
| 27 | 27 | |
| 28 | 28 | <div class="btn-group margin-bottom pull-left"> |
| 29 | -<!-- <input type="hidden" name="state" id="state" value=""/> --> | |
| 29 | + <!-- <input type="hidden" name="state" id="state" value=""/> --> | |
| 30 | 30 | <div class="btn-group margin-bottom" id="hide_select_area_2" style=> |
| 31 | 31 | <button type="button" class="btn btn-success btn-sm margin-r-5 action claim" |
| 32 | 32 | value="2" data="claim" id="claim" data-toggle="modal" |
| ... | ... | @@ -60,7 +60,7 @@ |
| 60 | 60 | th:onclick="'javascript:quanbu()'" value="" id="quanbu"> |
| 61 | 61 | 查询 |
| 62 | 62 | </button> |
| 63 | -<!-- </button> --> | |
| 63 | + <!-- </button> --> | |
| 64 | 64 | <button type="button" class="btn btn-sm margin-r-5 filter " id="daishen" |
| 65 | 65 | th:onclick="'javascript:daishen()'" value="0">全部待领 |
| 66 | 66 | </button> |
| ... | ... | @@ -76,7 +76,8 @@ |
| 76 | 76 | </button> |
| 77 | 77 | </div> |
| 78 | 78 | <div class="form-horizontal form-group-sm" id="forms" style="display: none;float: left;"> |
| 79 | - <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 15%;float: left;"> | |
| 79 | + <div class="btn-group margin-bottom col-md-6" | |
| 80 | + style="padding: 0;width: 15%;float: left;"> | |
| 80 | 81 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 81 | 82 | <label for="video_titleID" class="control-label cb-toolbar">标题:</label> |
| 82 | 83 | <div class="col-sm-9" style="padding: 0;"> |
| ... | ... | @@ -85,7 +86,8 @@ |
| 85 | 86 | </div> |
| 86 | 87 | </div> |
| 87 | 88 | |
| 88 | - <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 23%;float: left;"> | |
| 89 | + <div class="btn-group margin-bottom col-md-6" | |
| 90 | + style="padding: 0;width: 23%;float: left;"> | |
| 89 | 91 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 90 | 92 | <label for="source" class="control-label cb-toolbar">来源(昵称):</label> |
| 91 | 93 | <div class="col-sm-9" style="padding: 0;"> |
| ... | ... | @@ -94,7 +96,8 @@ |
| 94 | 96 | </div> |
| 95 | 97 | </div> |
| 96 | 98 | |
| 97 | - <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 23%;float: left;"> | |
| 99 | + <div class="btn-group margin-bottom col-md-6" | |
| 100 | + style="padding: 0;width: 23%;float: left;"> | |
| 98 | 101 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 99 | 102 | <label for="author" class="control-label cb-toolbar">作者(sid):</label> |
| 100 | 103 | <div class="col-sm-9" style="padding: 0;"> |
| ... | ... | @@ -103,7 +106,8 @@ |
| 103 | 106 | </div> |
| 104 | 107 | </div> |
| 105 | 108 | |
| 106 | - <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 10%;float: left;"> | |
| 109 | + <div class="btn-group margin-bottom col-md-6" | |
| 110 | + style="padding: 0;width: 10%;float: left;"> | |
| 107 | 111 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 108 | 112 | <label for="content_tag" class="control-label cb-toolbar">标签:</label> |
| 109 | 113 | <div class="col-sm-8" style="padding: 0;"> |
| ... | ... | @@ -114,7 +118,7 @@ |
| 114 | 118 | <option value="cms_photoalbum">家庭相册</option> |
| 115 | 119 | <option value="edu_works">作业作品</option> |
| 116 | 120 | </select> |
| 117 | -<!-- <input class="form-control" name="content_tag" type="text" id="content_tag"> --> | |
| 121 | + <!-- <input class="form-control" name="content_tag" type="text" id="content_tag"> --> | |
| 118 | 122 | </div> |
| 119 | 123 | </div> |
| 120 | 124 | </div> |
| ... | ... | @@ -143,21 +147,24 @@ |
| 143 | 147 | </div> |
| 144 | 148 | </div> |
| 145 | 149 | |
| 146 | - <div class="col-md-6" style="padding: 0;width: 25%;" th:if="${session.sessionUser.spid==0}"> | |
| 150 | + <div class="col-md-6" style="padding: 0;width: 25%;" | |
| 151 | + th:if="${session.sessionUser.spid==0}"> | |
| 147 | 152 | <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> |
| 148 | 153 | <div class="col-sm-7" style="padding: 0;"> |
| 149 | 154 | <input class="form-control" type="text" value="" id="sp_desc"> |
| 150 | 155 | </div> |
| 151 | 156 | </div> |
| 152 | 157 | |
| 153 | - <div class="col-md-6" style="padding: 0;width: 15%;" th:if="${session.sessionUser.spid==0}"> | |
| 158 | + <div class="col-md-6" style="padding: 0;width: 15%;" | |
| 159 | + th:if="${session.sessionUser.spid==0}"> | |
| 154 | 160 | <label for="count" class="control-label cb-toolbar">每页条数:</label> |
| 155 | 161 | <div class="col-sm-5" style="padding: 0;"> |
| 156 | 162 | <input class="form-control" type="text" value="" id="count"> |
| 157 | 163 | </div> |
| 158 | 164 | </div> |
| 159 | 165 | |
| 160 | - <div class="col-md-6" style="padding: 0;width: 20%;" th:if="${session.sessionUser.spid==0}"> | |
| 166 | + <div class="col-md-6" style="padding: 0;width: 20%;" | |
| 167 | + th:if="${session.sessionUser.spid==0}"> | |
| 161 | 168 | <label for="contentId" class="control-label cb-toolbar">图文发布id:</label> |
| 162 | 169 | <div class="col-sm-5" style="padding: 0;"> |
| 163 | 170 | <input class="form-control" type="text" value="" id="contentId"> |
| ... | ... | @@ -165,12 +172,12 @@ |
| 165 | 172 | </div> |
| 166 | 173 | </div> |
| 167 | 174 | </div> |
| 168 | -<!-- <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 1%;float: left;"> --> | |
| 169 | -<!-- <div class="col-md-1 text-center" style="width: 12%;padding: 0;float: right;"> --> | |
| 170 | -<!-- <button type="button" class="btn btn-primary btn-sm" id="videos_query">查 询 --> | |
| 171 | -<!-- </button> --> | |
| 172 | -<!-- </div> --> | |
| 173 | -<!-- </div> --> | |
| 175 | + <!-- <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 1%;float: left;"> --> | |
| 176 | + <!-- <div class="col-md-1 text-center" style="width: 12%;padding: 0;float: right;"> --> | |
| 177 | + <!-- <button type="button" class="btn btn-primary btn-sm" id="videos_query">查 询 --> | |
| 178 | + <!-- </button> --> | |
| 179 | + <!-- </div> --> | |
| 180 | + <!-- </div> --> | |
| 174 | 181 | </div> |
| 175 | 182 | |
| 176 | 183 | <div class="fixed-table-container" style="padding-bottom: 0px;"> |
| ... | ... | @@ -211,7 +218,7 @@ |
| 211 | 218 | <div class="th-inner ">审核状态</div> |
| 212 | 219 | <div class="fht-cell"></div> |
| 213 | 220 | </th> |
| 214 | - <th style="text-align: center; width: 6%; " data-field="updater" | |
| 221 | + <th style="text-align: center; width: 6%; " data-field="updater" | |
| 215 | 222 | tabindex="0"> |
| 216 | 223 | <div class="th-inner ">审核员</div> |
| 217 | 224 | <div class="fht-cell"></div> |
| ... | ... | @@ -221,11 +228,11 @@ |
| 221 | 228 | <div class="th-inner ">审核类型</div> |
| 222 | 229 | <div class="fht-cell"></div> |
| 223 | 230 | </th> |
| 224 | -<!-- <th style="text-align: center; width: 10%; " data-field="upload_time" --> | |
| 225 | -<!-- tabindex="0"> --> | |
| 226 | -<!-- <div class="th-inner ">视频上传时间</div> --> | |
| 227 | -<!-- <div class="fht-cell"></div> --> | |
| 228 | -<!-- </th> --> | |
| 231 | + <!-- <th style="text-align: center; width: 10%; " data-field="upload_time" --> | |
| 232 | + <!-- tabindex="0"> --> | |
| 233 | + <!-- <div class="th-inner ">视频上传时间</div> --> | |
| 234 | + <!-- <div class="fht-cell"></div> --> | |
| 235 | + <!-- </th> --> | |
| 229 | 236 | <th style="text-align: center; width: 10%; " data-field="created_at" |
| 230 | 237 | tabindex="0"> |
| 231 | 238 | <div class="th-inner ">送审时间</div> |
| ... | ... | @@ -241,41 +248,47 @@ |
| 241 | 248 | <tbody> |
| 242 | 249 | <tr data-index="0" th:each="content : ${contentPage.list}"> |
| 243 | 250 | <td class="bs-checkbox "> |
| 244 | - <input data-index="0" name="btSelectItem" type="checkbox" th:value="${content.id}"></td> | |
| 245 | - <td style="text-align: center; width: 6%;" th:text="${content.sp_desc}"></td> | |
| 246 | - <td style="text-align: center; width: 20%;" > | |
| 247 | - <a class="detail" th:href="@{'/content/details/'+${content.id}}"> | |
| 251 | + <input data-index="0" name="btSelectItem" type="checkbox" | |
| 252 | + th:value="${content.id}"></td> | |
| 253 | + <td style="text-align: center; width: 6%;" | |
| 254 | + th:text="${content.sp_desc}"></td> | |
| 255 | + <td style="text-align: center; width: 20%;"> | |
| 256 | + <a class="detail" th:href="@{'/content/details/'+${content.id}}"> | |
| 248 | 257 | <span th:if="${content.title == '' and content.content_tag=='moment'}"> |
| 249 | 258 | <!-- <span th:text="${content.source}"></span> --> |
| 250 | 259 | 朋友圈发布无标题内容 |
| 251 | 260 | </span> |
| 252 | - <span th:if="${content.title != ''}"></span> | |
| 253 | - <span th:text="${content.title}"></span> | |
| 254 | - </a> | |
| 261 | + <span th:if="${content.title != ''}"></span> | |
| 262 | + <span th:text="${content.title}"></span> | |
| 263 | + </a> | |
| 255 | 264 | </td> |
| 256 | 265 | <td style="text-align: center; width: 6%;"> |
| 257 | - <span th:if="${content.content_tag=='content'}">图文发布</span> | |
| 258 | - <span th:if="${content.content_tag=='moment'}">朋友圈</span> | |
| 259 | - <span th:if="${content.content_tag=='cms_photoalbum'}">家庭相册</span> | |
| 260 | - <span th:if="${content.content_tag=='edu_works'}">作业作品</span> | |
| 266 | + <span th:if="${content.content_tag=='content'}">图文发布</span> | |
| 267 | + <span th:if="${content.content_tag=='moment'}">朋友圈</span> | |
| 268 | + <span th:if="${content.content_tag=='cms_photoalbum'}">家庭相册</span> | |
| 269 | + <span th:if="${content.content_tag=='edu_works'}">作业作品</span> | |
| 261 | 270 | </td> |
| 262 | 271 | <td style="text-align: center; width: 3%;"> |
| 263 | - <span class="btn btn-sm btn-warning" th:if="${content.content_status==0}">待发布</span> | |
| 264 | - <span class="btn btn-sm btn-success" th:if="${content.content_status==1}">已发布</span> | |
| 265 | - <span class="btn btn-sm btn-danger" th:if="${content.content_status==2}">已下线</span> | |
| 266 | - <span class="btn btn-sm btn-danger" th:if="${content.content_status==3}">已删除</span> | |
| 272 | + <span class="btn btn-sm btn-warning" | |
| 273 | + th:if="${content.content_status==0}">待发布</span> | |
| 274 | + <span class="btn btn-sm btn-success" | |
| 275 | + th:if="${content.content_status==1}">已发布</span> | |
| 276 | + <span class="btn btn-sm btn-danger" | |
| 277 | + th:if="${content.content_status==2}">已下线</span> | |
| 278 | + <span class="btn btn-sm btn-danger" | |
| 279 | + th:if="${content.content_status==3}">已删除</span> | |
| 267 | 280 | </td> |
| 268 | 281 | <td style="text-align: center; width: 3%;"> |
| 269 | - <span th:if="${content.receive_status==0}">未领取</span> | |
| 270 | - <span th:if="${content.receive_status==1}">已领取</span> | |
| 271 | - <span th:if="${content.receive_status==2}">已审核</span> | |
| 282 | + <span th:if="${content.receive_status==0}">未领取</span> | |
| 283 | + <span th:if="${content.receive_status==1}">已领取</span> | |
| 284 | + <span th:if="${content.receive_status==2}">已审核</span> | |
| 272 | 285 | </td> |
| 273 | - <td style="text-align: center; width: 6%;" th:text="${content.updater}">审核员 | |
| 286 | + <td style="text-align: center; width: 6%;" th:text="${content.updater}">审核员 | |
| 274 | 287 | </td> |
| 275 | 288 | <td style="text-align: center; width: 3%;"> |
| 276 | - <span th:if="${content.shenhe_type==1}">免审</span> | |
| 277 | - <span th:if="${content.shenhe_type==2}">机审</span> | |
| 278 | - <span th:if="${content.shenhe_type==3}">人工审</span> | |
| 289 | + <span th:if="${content.shenhe_type==1}">免审</span> | |
| 290 | + <span th:if="${content.shenhe_type==2}">机审</span> | |
| 291 | + <span th:if="${content.shenhe_type==3}">人工审</span> | |
| 279 | 292 | </td> |
| 280 | 293 | <td style="text-align: center; width: 10%;" |
| 281 | 294 | th:text="${#dates.format(content.create_date, 'yyyy-MM-dd HH:mm:ss')}"> |
| ... | ... | @@ -284,7 +297,7 @@ |
| 284 | 297 | <td style="text-align: center; width: 17%;"> |
| 285 | 298 | <a class="detail" th:href="@{'/content/details/'+${content.id}}"> |
| 286 | 299 | <!--th:if="${ (video.receive==true and session.sessionUser.userId==video.receive_user_id) or (video.state==1 or video.state==2) }"--> |
| 287 | - <button class="btn btn-info btn-sm" >查看</button> | |
| 300 | + <button class="btn btn-info btn-sm">查看</button> | |
| 288 | 301 | </a> |
| 289 | 302 | <span th:if="${content.receive_status==0 }"> </span> |
| 290 | 303 | <a th:href="@{'javascript:applyReceive('+${content.id}+')'}" |
| ... | ... | @@ -306,14 +319,14 @@ |
| 306 | 319 | <!--分页处理--> |
| 307 | 320 | <div class="fixed-table-pagination" style="display: block;"> |
| 308 | 321 | <div class="pull-left pagination-detail"> |
| 309 | - <span class="pagination-info" th:text="'共 '+${contentPage.total}+' 条记录,每页显示'">共 0 条记录</span> | |
| 310 | - <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()"> | |
| 311 | - <option value="10" th:selected="${pageSize==10}">10</option> | |
| 312 | - <option value="20" th:selected="${pageSize==20}">20</option> | |
| 313 | - <option value="50" th:selected="${pageSize==50}">50</option> | |
| 314 | - <option value="100" th:selected="${pageSize==100}">100</option> | |
| 322 | + <span class="pagination-info" th:text="'共 '+${contentPage.total}+' 条记录,每页显示'">共 0 条记录</span> | |
| 323 | + <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()"> | |
| 324 | + <option value="10" th:selected="${pageSize==10}">10</option> | |
| 325 | + <option value="20" th:selected="${pageSize==20}">20</option> | |
| 326 | + <option value="50" th:selected="${pageSize==50}">50</option> | |
| 327 | + <option value="100" th:selected="${pageSize==100}">100</option> | |
| 315 | 328 | </select> |
| 316 | - <span class="pagination-info" >条记录</span> | |
| 329 | + <span class="pagination-info">条记录</span> | |
| 317 | 330 | </div> |
| 318 | 331 | <div class="pull-right pagination"> |
| 319 | 332 | <ul class="pagination" th:if="${contentPage.pages>1}"> |
| ... | ... | @@ -332,16 +345,20 @@ |
| 332 | 345 | th:onclick="'javascript:fanye(\''+${contentPage.pageNum-1}+'\');'" |
| 333 | 346 | th:text="${contentPage.pageNum-1}">2</a></li> |
| 334 | 347 | <li class="page-number active"><a href="javaScript:void(0);" |
| 335 | - th:text="${contentPage.pageNum}">2</a></li> | |
| 336 | - <li class="page-number" th:if="${contentPage.pageNum+1<=contentPage.pages}"><a | |
| 337 | - th:onclick="'javascript:fanye(\''+${contentPage.pageNum+1}+'\');'" | |
| 338 | - th:text="${contentPage.pageNum+1}">2</a></li> | |
| 339 | - <li class="page-number" th:if="${contentPage.pageNum+2<=contentPage.pages}"><a | |
| 340 | - th:onclick="'javascript:fanye(\''+${contentPage.pageNum+2}+'\');'" | |
| 341 | - th:text="${contentPage.pageNum+2}">2</a></li> | |
| 342 | - <li class="page-number" th:if="${contentPage.pageNum+3<=contentPage.pages}"><a | |
| 343 | - th:onclick="'javascript:fanye(\''+${contentPage.pageNum+3}+'\');'" | |
| 344 | - th:text="${contentPage.pageNum+3}">2</a></li> | |
| 348 | + th:text="${contentPage.pageNum}">2</a> | |
| 349 | + </li> | |
| 350 | + <li class="page-number" th:if="${contentPage.pageNum+1<=contentPage.pages}"> | |
| 351 | + <a | |
| 352 | + th:onclick="'javascript:fanye(\''+${contentPage.pageNum+1}+'\');'" | |
| 353 | + th:text="${contentPage.pageNum+1}">2</a></li> | |
| 354 | + <li class="page-number" th:if="${contentPage.pageNum+2<=contentPage.pages}"> | |
| 355 | + <a | |
| 356 | + th:onclick="'javascript:fanye(\''+${contentPage.pageNum+2}+'\');'" | |
| 357 | + th:text="${contentPage.pageNum+2}">2</a></li> | |
| 358 | + <li class="page-number" th:if="${contentPage.pageNum+3<=contentPage.pages}"> | |
| 359 | + <a | |
| 360 | + th:onclick="'javascript:fanye(\''+${contentPage.pageNum+3}+'\');'" | |
| 361 | + th:text="${contentPage.pageNum+3}">2</a></li> | |
| 345 | 362 | |
| 346 | 363 | <li class="page-next" th:if="${!contentPage.isLastPage}"><a |
| 347 | 364 | th:onclick="'javascript:fanye(\''+${contentPage.pageNum+1}+'\');'">›</a> |
| ... | ... | @@ -360,261 +377,275 @@ |
| 360 | 377 | </section> |
| 361 | 378 | </div> |
| 362 | 379 | <script th:inline="javascript"> |
| 363 | - $(function () { | |
| 364 | - //按钮颜色设置 | |
| 365 | - var receive_status = [[${param.receive_status}]] ? [[${param.receive_status}]][0] : null; | |
| 380 | + | |
| 381 | + function GetQueryString(name) { | |
| 382 | + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | |
| 383 | + var r = window.location.search.substr(1).match(reg); | |
| 384 | + if (r != null) return unescape(r[2]); | |
| 385 | + return null; | |
| 386 | + } | |
| 387 | + | |
| 388 | + | |
| 389 | + $(function () { | |
| 390 | + if (GetQueryString("up_d") == "2") { | |
| 391 | + $("#query").click(); | |
| 392 | + } else { | |
| 393 | + | |
| 394 | + } | |
| 395 | + //按钮颜色设置 | |
| 396 | + var receive_status = [[${param.receive_status}]] ? [[${param.receive_status}]][0] : null; | |
| 366 | 397 | // var receive = [[${param.receive}]] ? [[${param.receive}]][0] : null; |
| 367 | - var stateIsNull = $.trim(receive_status) == ""; | |
| 398 | + var stateIsNull = $.trim(receive_status) == ""; | |
| 368 | 399 | // var receiveIsNull = $.trim(receive) == ""; |
| 369 | - if (stateIsNull) { | |
| 370 | - $("#quanbu").addClass("btn-info"); | |
| 371 | - } else if (receive_status == '0') { | |
| 372 | - $("#daishen").addClass("btn-warning"); | |
| 373 | - } else if ( receive_status == '1') { | |
| 374 | - $("#Mydaishen").addClass("btn-success"); | |
| 375 | - } else if ( receive_status == '2') { | |
| 376 | - $("#yishen").addClass("btn-danger"); | |
| 400 | + if (stateIsNull) { | |
| 401 | + $("#quanbu").addClass("btn-info"); | |
| 402 | + } else if (receive_status == '0') { | |
| 403 | + $("#daishen").addClass("btn-warning"); | |
| 404 | + } else if (receive_status == '1') { | |
| 405 | + $("#Mydaishen").addClass("btn-success"); | |
| 406 | + } else if (receive_status == '2') { | |
| 407 | + $("#yishen").addClass("btn-danger"); | |
| 408 | + } | |
| 409 | + | |
| 410 | + }) | |
| 411 | + | |
| 412 | + //翻页函数 | |
| 413 | + function fanye(page) { | |
| 414 | + var param = location.search; | |
| 415 | + if (param.indexOf("page=") != -1) { | |
| 416 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 417 | + var split = se.split("&"); | |
| 418 | + var h = ""; | |
| 419 | + for (var i = 0; i < split.length; i++) { | |
| 420 | + var s = split[i]; | |
| 421 | + if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 422 | + } | |
| 423 | + h = h.substring(1, h.length); | |
| 424 | + window.location.href = "/content/page?" + h + "&page=" + page; | |
| 425 | + } else { | |
| 426 | + param = param.substring(1, param.length); | |
| 427 | + window.location.href = "/content/page?" + param + "&page=" + page; | |
| 428 | + } | |
| 377 | 429 | } |
| 378 | 430 | |
| 379 | - }) | |
| 380 | - | |
| 381 | - //翻页函数 | |
| 382 | - function fanye(page) { | |
| 383 | - var param = location.search; | |
| 384 | - if (param.indexOf("page=") != -1) { | |
| 385 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 386 | - var split = se.split("&"); | |
| 387 | - var h = ""; | |
| 388 | - for (var i = 0; i < split.length; i++) { | |
| 389 | - var s = split[i]; | |
| 390 | - if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 431 | + //选择每页数量触发函数 | |
| 432 | + function selectPageSize() { | |
| 433 | + var pageSize = $("#pageSize").val(); | |
| 434 | + var param = location.search; | |
| 435 | + if (param.indexOf("pageSize=") != -1) { | |
| 436 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 437 | + var split = se.split("&"); | |
| 438 | + var h = ""; | |
| 439 | + for (var i = 0; i < split.length; i++) { | |
| 440 | + var s = split[i]; | |
| 441 | + if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 442 | + } | |
| 443 | + h = h.substring(1, h.length); | |
| 444 | + window.location.href = "/content/page?" + h + "&pageSize=" + pageSize; | |
| 445 | + } else { | |
| 446 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 447 | + var split = se.split("&"); | |
| 448 | + var h = ""; | |
| 449 | + for (var i = 0; i < split.length; i++) { | |
| 450 | + var s = split[i]; | |
| 451 | + if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 452 | + } | |
| 453 | + h = h.substring(1, h.length); | |
| 454 | + window.location.href = "/content/page?" + h + "&pageSize=" + pageSize; | |
| 391 | 455 | } |
| 392 | - h = h.substring(1, h.length); | |
| 393 | - window.location.href = "/content/page?" + h + "&page=" + page; | |
| 394 | - } else { | |
| 395 | - param = param.substring(1, param.length); | |
| 396 | - window.location.href = "/content/page?" + param + "&page=" + page; | |
| 397 | 456 | } |
| 398 | - } | |
| 399 | - | |
| 400 | - //选择每页数量触发函数 | |
| 401 | - function selectPageSize(){ | |
| 402 | - var pageSize=$("#pageSize").val(); | |
| 403 | - var param = location.search; | |
| 404 | - if (param.indexOf("pageSize=") != -1) { | |
| 405 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 406 | - var split = se.split("&"); | |
| 407 | - var h = ""; | |
| 408 | - for (var i = 0; i < split.length; i++) { | |
| 409 | - var s = split[i]; | |
| 410 | - if (s.indexOf("pageSize=") < 0 &&s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 411 | - } | |
| 412 | - h = h.substring(1, h.length); | |
| 413 | - window.location.href = "/content/page?" + h + "&pageSize=" + pageSize; | |
| 414 | - } else { | |
| 415 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 416 | - var split = se.split("&"); | |
| 417 | - var h = ""; | |
| 418 | - for (var i = 0; i < split.length; i++) { | |
| 419 | - var s = split[i]; | |
| 420 | - if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 421 | - } | |
| 422 | - h = h.substring(1, h.length); | |
| 423 | - window.location.href = "/content/page?" + h + "&pageSize=" + pageSize; | |
| 424 | - } | |
| 425 | - } | |
| 426 | 457 | |
| 427 | - //导出excel | |
| 428 | - function daochu() { | |
| 429 | - var param = location.search; | |
| 430 | - window.location.href = "/content/excel" + param; | |
| 431 | - } | |
| 432 | - | |
| 433 | - var title = ""; | |
| 434 | - var source = ""; | |
| 435 | - var author = ""; | |
| 436 | - var start_date =""; | |
| 437 | - var end_date = ""; | |
| 438 | - var sp_desc =""; | |
| 439 | - var count = ""; | |
| 440 | - var contentId = ""; | |
| 441 | - var content_tag = ""; | |
| 442 | - | |
| 443 | - function updateValue(){ | |
| 444 | - title = $("#video_titleID").val(); | |
| 445 | - source = $("#source").val(); | |
| 446 | - author = $("#author").val(); | |
| 447 | - start_date = $("#start_date").val(); | |
| 448 | - end_date = $("#end_date").val(); | |
| 449 | - var spId=[[${session.sessionUser.spid}]]; | |
| 450 | - if(spId==0){ | |
| 451 | - sp_desc = $("#sp_desc").val(); | |
| 452 | - count = $("#pageSize").val(); | |
| 453 | - contentId = $("#contentId").val(); | |
| 454 | - content_tag = $("#content_tag").val(); | |
| 458 | + //导出excel | |
| 459 | + function daochu() { | |
| 460 | + var param = location.search; | |
| 461 | + window.location.href = "/content/excel" + param; | |
| 455 | 462 | } |
| 456 | - } | |
| 457 | - | |
| 458 | 463 | |
| 459 | - //全部 | |
| 460 | - function quanbu() { | |
| 461 | - updateValue(); | |
| 464 | + var title = ""; | |
| 465 | + var source = ""; | |
| 466 | + var author = ""; | |
| 467 | + var start_date = ""; | |
| 468 | + var end_date = ""; | |
| 469 | + var sp_desc = ""; | |
| 470 | + var count = ""; | |
| 471 | + var contentId = ""; | |
| 472 | + var content_tag = ""; | |
| 473 | + | |
| 474 | + function updateValue() { | |
| 475 | + title = $("#video_titleID").val(); | |
| 476 | + source = $("#source").val(); | |
| 477 | + author = $("#author").val(); | |
| 478 | + start_date = $("#start_date").val(); | |
| 479 | + end_date = $("#end_date").val(); | |
| 480 | + var spId = [[${session.sessionUser.spid}]]; | |
| 481 | + if (spId == 0) { | |
| 482 | + sp_desc = $("#sp_desc").val(); | |
| 483 | + count = $("#pageSize").val(); | |
| 484 | + contentId = $("#contentId").val(); | |
| 485 | + content_tag = $("#content_tag").val(); | |
| 486 | + } | |
| 487 | + } | |
| 462 | 488 | |
| 463 | - 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; | |
| 464 | - } | |
| 465 | 489 | |
| 466 | - //全部待领 | |
| 467 | - $('#daishen').click(function () { | |
| 468 | - updateValue(); | |
| 469 | - var receive_status = 0; | |
| 470 | - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc+"&pageSize="+count+"&contentId="+contentId+"&content_tag="+content_tag; | |
| 471 | - }); | |
| 472 | - //我的待审核 | |
| 473 | - $('#Mydaishen').click(function () { | |
| 474 | - updateValue(); | |
| 475 | - var receive_status = 1; | |
| 476 | - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc+"&pageSize="+count+"&contentId="+contentId+"&content_tag="+content_tag; | |
| 477 | - }); | |
| 478 | - //我的已审核 | |
| 479 | - $('#yishen').click(function () { | |
| 480 | - updateValue(); | |
| 481 | - var receive_status = 2; | |
| 482 | - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc+"&pageSize="+count+"&contentId="+contentId+"&content_tag="+content_tag; | |
| 483 | - }); | |
| 490 | + //全部 | |
| 491 | + function quanbu() { | |
| 492 | + 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; | |
| 495 | + } | |
| 484 | 496 | |
| 497 | + //全部待领 | |
| 498 | + $('#daishen').click(function () { | |
| 499 | + updateValue(); | |
| 500 | + var receive_status = 0; | |
| 501 | + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag; | |
| 502 | + }); | |
| 503 | + //我的待审核 | |
| 504 | + $('#Mydaishen').click(function () { | |
| 505 | + updateValue(); | |
| 506 | + var receive_status = 1; | |
| 507 | + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag; | |
| 508 | + }); | |
| 509 | + //我的已审核 | |
| 510 | + $('#yishen').click(function () { | |
| 511 | + updateValue(); | |
| 512 | + var receive_status = 2; | |
| 513 | + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag; | |
| 514 | + }); | |
| 515 | + | |
| 516 | + | |
| 517 | + //查询 | |
| 518 | + $('#videos_query').click(function () { | |
| 519 | + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag; | |
| 520 | + }); | |
| 521 | + /*全选的操作*/ | |
| 522 | + $('#select_all').click(function () { | |
| 523 | + if ($("[name=btSelectItem]:checkbox:not(:checked)").length > 0) { | |
| 524 | + $("#select_all").prop('checked', true); | |
| 525 | + $("[name=btSelectItem]:checkbox").each(function () { | |
| 526 | + $(this).prop('checked', true); | |
| 527 | + }); | |
| 528 | + } else { | |
| 529 | + $("#select_all").prop('checked', false); | |
| 530 | + $("[name=btSelectItem]:checkbox").each(function () { | |
| 531 | + $(this).prop('checked', false); | |
| 532 | + }); | |
| 533 | + } | |
| 534 | + }); | |
| 535 | + | |
| 536 | + /** | |
| 537 | + * 认领 | |
| 538 | + */ | |
| 539 | + function receive(n) { | |
| 540 | + if (n > 0) { | |
| 541 | + applyReceiveNum(n); | |
| 542 | + } else { | |
| 543 | + var rows = $("[name=btSelectItem]:checkbox:checked"); | |
| 544 | + if (rows.length > 0) { | |
| 545 | + var ids = ""; | |
| 546 | + rows.each(function (i, e) { | |
| 547 | + ids = ids + "," + e.value; | |
| 548 | + }) | |
| 549 | + ids = ids.substring(1); | |
| 550 | + applyReceive(ids); | |
| 551 | + } else { | |
| 552 | + alert("请选择要认领的内容!"); | |
| 553 | + } | |
| 554 | + } | |
| 555 | + } | |
| 485 | 556 | |
| 486 | - //查询 | |
| 487 | - $('#videos_query').click(function () { | |
| 488 | - window.location.href = "/content/page?title=" + title +"&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + "&sp_desc=" + sp_desc+"&pageSize="+count+"&contentId="+contentId+"&content_tag="+content_tag; | |
| 489 | - }); | |
| 490 | - /*全选的操作*/ | |
| 491 | - $('#select_all').click(function () { | |
| 492 | - if ($("[name=btSelectItem]:checkbox:not(:checked)").length > 0) { | |
| 493 | - $("#select_all").prop('checked', true); | |
| 494 | - $("[name=btSelectItem]:checkbox").each(function () { | |
| 495 | - $(this).prop('checked', true); | |
| 496 | - }); | |
| 497 | - } else { | |
| 498 | - $("#select_all").prop('checked', false); | |
| 499 | - $("[name=btSelectItem]:checkbox").each(function () { | |
| 500 | - $(this).prop('checked', false); | |
| 501 | - }); | |
| 557 | + //认领选中请求 | |
| 558 | + function applyReceive(ids) { | |
| 559 | + $.post("/content/receive?ids=" + ids, function (data) { | |
| 560 | + if (data.errorCode == 0) { | |
| 561 | + alert(data.errorMessage); | |
| 562 | + location.href = location.href; | |
| 563 | + } else { | |
| 564 | + alert(data.errorMessage); | |
| 565 | + } | |
| 566 | + }) | |
| 502 | 567 | } |
| 503 | - }); | |
| 504 | 568 | |
| 505 | - /** | |
| 506 | - * 认领 | |
| 507 | - */ | |
| 508 | - function receive(n) { | |
| 509 | - if (n > 0) { | |
| 510 | - applyReceiveNum(n); | |
| 511 | - } else { | |
| 569 | + //认领多条请求 | |
| 570 | + function applyReceiveNum(num) { | |
| 571 | + $.post("/content/receive?num=" + num, function (data) { | |
| 572 | + if (data.errorCode == 0) { | |
| 573 | + alert(data.errorMessage); | |
| 574 | + location.href = location.href; | |
| 575 | + } else { | |
| 576 | + alert(data.errorMessage); | |
| 577 | + } | |
| 578 | + }) | |
| 579 | + } | |
| 580 | + | |
| 581 | + //退领选中内容 | |
| 582 | + function retReceive() { | |
| 512 | 583 | var rows = $("[name=btSelectItem]:checkbox:checked"); |
| 513 | 584 | if (rows.length > 0) { |
| 514 | - var ids = ""; | |
| 515 | - rows.each(function (i, e) { | |
| 516 | - ids = ids + "," + e.value; | |
| 517 | - }) | |
| 518 | - ids = ids.substring(1); | |
| 519 | - applyReceive(ids); | |
| 585 | + var r = confirm("您确定退领选中的" + rows.length + "条内容吗?"); | |
| 586 | + if (r == true) { | |
| 587 | + var ids = ""; | |
| 588 | + rows.each(function (i, e) { | |
| 589 | + ids = ids + "," + e.value; | |
| 590 | + }) | |
| 591 | + ids = ids.substring(1); | |
| 592 | + applyRetReceive(ids); | |
| 593 | + } | |
| 520 | 594 | } else { |
| 521 | - alert("请选择要认领的内容!"); | |
| 595 | + alert("没有选中的数据!"); | |
| 522 | 596 | } |
| 523 | 597 | } |
| 524 | - } | |
| 525 | 598 | |
| 526 | - //认领选中请求 | |
| 527 | - function applyReceive(ids) { | |
| 528 | - $.post("/content/receive?ids=" + ids, function (data) { | |
| 529 | - if (data.errorCode == 0) { | |
| 530 | - alert(data.errorMessage); | |
| 531 | - location.href = location.href; | |
| 532 | - } else { | |
| 533 | - alert(data.errorMessage); | |
| 534 | - } | |
| 535 | - }) | |
| 536 | - } | |
| 599 | + //退领 | |
| 600 | + function applyRetReceive(ids) { | |
| 601 | + $.post("/content/retReceive?ids=" + ids, function (data) { | |
| 602 | + if (data.errorCode == 0) { | |
| 603 | + alert(data.errorMessage); | |
| 604 | + location.href = location.href; | |
| 605 | + } else { | |
| 606 | + alert(data.errorMessage); | |
| 607 | + } | |
| 608 | + }) | |
| 609 | + } | |
| 537 | 610 | |
| 538 | - //认领多条请求 | |
| 539 | - function applyReceiveNum(num) { | |
| 540 | - $.post("/content/receive?num=" + num, function (data) { | |
| 541 | - if (data.errorCode == 0) { | |
| 542 | - alert(data.errorMessage); | |
| 543 | - location.href = location.href; | |
| 611 | + //拒绝(打回) | |
| 612 | + function repulse() { | |
| 613 | + var rows = $("[name=btSelectItem]:checkbox:checked"); | |
| 614 | + if (rows.length > 0) { | |
| 615 | + var r = confirm("您确定拒绝选中的" + rows.length + "条内容吗?"); | |
| 616 | + if (r == true) { | |
| 617 | + $('#msgModal').modal('show'); | |
| 618 | + } | |
| 544 | 619 | } else { |
| 545 | - alert(data.errorMessage); | |
| 620 | + alert("没有选中的数据!"); | |
| 546 | 621 | } |
| 547 | - }) | |
| 548 | - } | |
| 622 | + } | |
| 549 | 623 | |
| 550 | - //退领选中内容 | |
| 551 | - function retReceive() { | |
| 552 | - var rows = $("[name=btSelectItem]:checkbox:checked"); | |
| 553 | - if (rows.length > 0) { | |
| 554 | - var r = confirm("您确定退领选中的" + rows.length + "条内容吗?"); | |
| 555 | - if (r == true) { | |
| 556 | - var ids = ""; | |
| 557 | - rows.each(function (i, e) { | |
| 558 | - ids = ids + "," + e.value; | |
| 559 | - }) | |
| 560 | - ids = ids.substring(1); | |
| 561 | - applyRetReceive(ids); | |
| 562 | - } | |
| 563 | - } else { | |
| 564 | - alert("没有选中的数据!"); | |
| 624 | + //提交打回 | |
| 625 | + function repulseSubmit() { | |
| 626 | + var rows = $("[name=btSelectItem]:checkbox:checked"); | |
| 627 | + var ids = ""; | |
| 628 | + rows.each(function (i, e) { | |
| 629 | + ids = ids + "," + e.value; | |
| 630 | + }) | |
| 631 | + ids = ids.substring(1); | |
| 632 | + var msg = $("#reviewMsg").val(); | |
| 633 | + $.post("/content/refuse?ids=" + ids + "&msg=" + msg, function (data) { | |
| 634 | + if (data.errorCode == 0) { | |
| 635 | + alert(data.errorMessage); | |
| 636 | + location.href = location.href; | |
| 637 | + } else { | |
| 638 | + alert(data.errorMessage); | |
| 639 | + } | |
| 640 | + }) | |
| 565 | 641 | } |
| 566 | - } | |
| 567 | 642 | |
| 568 | - //退领 | |
| 569 | - function applyRetReceive(ids) { | |
| 570 | - $.post("/content/retReceive?ids=" + ids, function (data) { | |
| 571 | - if (data.errorCode == 0) { | |
| 572 | - alert(data.errorMessage); | |
| 573 | - location.href = location.href; | |
| 574 | - } else { | |
| 575 | - alert(data.errorMessage); | |
| 576 | - } | |
| 577 | - }) | |
| 578 | - } | |
| 579 | 643 | |
| 580 | - //拒绝(打回) | |
| 581 | - function repulse() { | |
| 582 | - var rows = $("[name=btSelectItem]:checkbox:checked"); | |
| 583 | - if (rows.length > 0) { | |
| 584 | - var r = confirm("您确定拒绝选中的" + rows.length + "条内容吗?"); | |
| 585 | - if (r == true) { | |
| 586 | - $('#msgModal').modal('show'); | |
| 587 | - } | |
| 588 | - } else { | |
| 589 | - alert("没有选中的数据!"); | |
| 644 | + //导出excel | |
| 645 | + function daochu() { | |
| 646 | + var param = location.search; | |
| 647 | + window.location.href = "/content/excel" + param; | |
| 590 | 648 | } |
| 591 | - } | |
| 592 | - | |
| 593 | - //提交打回 | |
| 594 | - function repulseSubmit() { | |
| 595 | - var rows = $("[name=btSelectItem]:checkbox:checked"); | |
| 596 | - var ids = ""; | |
| 597 | - rows.each(function (i, e) { | |
| 598 | - ids = ids + "," + e.value; | |
| 599 | - }) | |
| 600 | - ids = ids.substring(1); | |
| 601 | - var msg = $("#reviewMsg").val(); | |
| 602 | - $.post("/content/refuse?ids=" + ids + "&msg=" + msg, function (data) { | |
| 603 | - if (data.errorCode == 0) { | |
| 604 | - alert(data.errorMessage); | |
| 605 | - location.href = location.href; | |
| 606 | - } else { | |
| 607 | - alert(data.errorMessage); | |
| 608 | - } | |
| 609 | - }) | |
| 610 | - } | |
| 611 | - | |
| 612 | - | |
| 613 | - //导出excel | |
| 614 | - function daochu() { | |
| 615 | - var param = location.search; | |
| 616 | - window.location.href = "/content/excel" + param; | |
| 617 | - } | |
| 618 | 649 | </script> |
| 619 | 650 | <!-- 模态框(Modal) --> |
| 620 | 651 | <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
| ... | ... | @@ -651,10 +682,12 @@ |
| 651 | 682 | $(id_name).slideUp(350); |
| 652 | 683 | $('#a_up').show(); |
| 653 | 684 | $('#a_down').hide(); |
| 685 | + $("#forms").attr("up_d", "1"); | |
| 654 | 686 | } else { |
| 655 | 687 | $(id_name).slideDown(350); |
| 656 | 688 | $('#a_up').hide(); |
| 657 | 689 | $('#a_down').show(); |
| 690 | + $("#forms").attr("up_d", "2"); | |
| 658 | 691 | } |
| 659 | 692 | } |
| 660 | 693 | ... | ... |
src/main/resources/templates/page/contentDetail.html
| ... | ... | @@ -29,30 +29,30 @@ |
| 29 | 29 | <div id="tabHome" class="tab-pane fade in active padding-t-15 "> |
| 30 | 30 | <div class="col-sm-6"> |
| 31 | 31 | |
| 32 | - <iframe src="http://sports.china.com.cn/tiyuzhongguowangjiajia/detail2_2019_04/29/1150648.html" | |
| 33 | - th:src="${content.content_url}" | |
| 34 | - frameborder="0" width="100%" scrolling="auto" | |
| 35 | - height="800" leftmargin="0" topmargin="0" allowTransparency="true" > | |
| 36 | - </iframe> | |
| 37 | - | |
| 38 | -<!-- <div class="form-group"> --> | |
| 39 | -<!-- <label for="comment_title" class="control-label col-sm-2">评论标题:</label> --> | |
| 40 | -<!-- <div class="col-sm-10"> --> | |
| 41 | -<!-- <h5 style="font-size:1.5em; font-weight: bold;" --> | |
| 42 | -<!-- th:text="${content.comment_title}"></h5> --> | |
| 43 | -<!-- </div> --> | |
| 44 | -<!-- </div> --> | |
| 45 | -<!-- <div class="form-group"> --> | |
| 46 | - | |
| 47 | -<!-- <label for="content" class="control-label col-sm-2">评论内容:</label> --> | |
| 48 | -<!-- <div class="col-sm-8"> --> | |
| 49 | -<!-- <textarea class="form-control" name="content" cols="50" rows="10" --> | |
| 50 | -<!-- id="content" --> | |
| 51 | -<!-- th:text="${comment.comment_content}">哈哈哈</textarea> --> | |
| 52 | -<!-- </div> --> | |
| 53 | - | |
| 54 | -<!-- </div> --> | |
| 55 | - | |
| 32 | + <iframe src="http://sports.china.com.cn/tiyuzhongguowangjiajia/detail2_2019_04/29/1150648.html" | |
| 33 | + th:src="${content.content_url}" | |
| 34 | + frameborder="0" width="100%" scrolling="auto" | |
| 35 | + height="800" leftmargin="0" topmargin="0" allowTransparency="true"> | |
| 36 | + </iframe> | |
| 37 | + | |
| 38 | + <!-- <div class="form-group"> --> | |
| 39 | + <!-- <label for="comment_title" class="control-label col-sm-2">评论标题:</label> --> | |
| 40 | + <!-- <div class="col-sm-10"> --> | |
| 41 | + <!-- <h5 style="font-size:1.5em; font-weight: bold;" --> | |
| 42 | + <!-- th:text="${content.comment_title}"></h5> --> | |
| 43 | + <!-- </div> --> | |
| 44 | + <!-- </div> --> | |
| 45 | + <!-- <div class="form-group"> --> | |
| 46 | + | |
| 47 | + <!-- <label for="content" class="control-label col-sm-2">评论内容:</label> --> | |
| 48 | + <!-- <div class="col-sm-8"> --> | |
| 49 | + <!-- <textarea class="form-control" name="content" cols="50" rows="10" --> | |
| 50 | + <!-- id="content" --> | |
| 51 | + <!-- th:text="${comment.comment_content}">哈哈哈</textarea> --> | |
| 52 | + <!-- </div> --> | |
| 53 | + | |
| 54 | + <!-- </div> --> | |
| 55 | + | |
| 56 | 56 | <hr> |
| 57 | 57 | |
| 58 | 58 | <!-- <div class="form-group"> |
| ... | ... | @@ -64,7 +64,6 @@ |
| 64 | 64 | </div>--> |
| 65 | 65 | |
| 66 | 66 | |
| 67 | - | |
| 68 | 67 | </div> |
| 69 | 68 | <div class="col-sm-6"> |
| 70 | 69 | <div class="form-group"> |
| ... | ... | @@ -95,16 +94,18 @@ |
| 95 | 94 | <div class="form-group" th:if="${content.content_tag=='content'}"> |
| 96 | 95 | <label for="program_id" class="control-label col-sm-2">pc地址:</label> |
| 97 | 96 | <div class="col-sm-10"> |
| 98 | - <a th:href="@{${content.content_pc_url}}" th:text="${content.content_pc_url}" target="blank"></a> | |
| 97 | + <a th:href="@{${content.content_pc_url}}" | |
| 98 | + th:text="${content.content_pc_url}" target="blank"></a> | |
| 99 | 99 | </div> |
| 100 | 100 | </div> |
| 101 | 101 | <div class="form-group" th:if="${content.content_tag=='moment'}"> |
| 102 | 102 | <label for="program_id" class="control-label col-sm-2">图片/视频地址:</label> |
| 103 | 103 | <div class="col-sm-10" th:each="contentImageUrl:${contentImageUrlList}"> |
| 104 | - <a th:href="@{${contentImageUrl}}" th:text="${contentImageUrl}" target="blank"></a> | |
| 104 | + <a th:href="@{${contentImageUrl}}" th:text="${contentImageUrl}" | |
| 105 | + target="blank"></a> | |
| 105 | 106 | </div> |
| 106 | 107 | </div> |
| 107 | - <div class="form-group"> | |
| 108 | + <div class="form-group"> | |
| 108 | 109 | <label for="comment_user_avatar" |
| 109 | 110 | class="control-label col-sm-2">标题图片(头像):</label> |
| 110 | 111 | <div class="col-sm-10"> |
| ... | ... | @@ -121,7 +122,7 @@ |
| 121 | 122 | <h5 th:if="${content.content_tag=='moment'}">朋友圈</h5> |
| 122 | 123 | </div> |
| 123 | 124 | </div> |
| 124 | - | |
| 125 | + | |
| 125 | 126 | <div class="form-group "> |
| 126 | 127 | <label for="username" class="control-label col-sm-2">审核类型:</label> |
| 127 | 128 | <div class="col-sm-10 "> |
| ... | ... | @@ -130,7 +131,7 @@ |
| 130 | 131 | <h5 class="status" th:if="${content.shenhe_type==3}">人工审</h5> |
| 131 | 132 | </div> |
| 132 | 133 | </div> |
| 133 | - | |
| 134 | + | |
| 134 | 135 | <div class="form-group "> |
| 135 | 136 | <label for="username" class="control-label col-sm-2">图文状态:</label> |
| 136 | 137 | <div class="col-sm-10 "> |
| ... | ... | @@ -156,14 +157,14 @@ |
| 156 | 157 | </div> |
| 157 | 158 | </div> |
| 158 | 159 | |
| 159 | -<!-- <div class="form-group"> --> | |
| 160 | -<!-- <label for="platform" class="control-label col-sm-2">平台:</label> --> | |
| 161 | -<!-- <div class="col-sm-10"> --> | |
| 162 | -<!-- <h5 th:if="${content.platform=='i'}">苹果</h5> --> | |
| 163 | -<!-- <h5 th:if="${content.platform=='a'}">安卓</h5> --> | |
| 164 | -<!-- <h5 th:if="${content.platform=='w'}">网页</h5> --> | |
| 165 | -<!-- </div> --> | |
| 166 | -<!-- </div> --> | |
| 160 | + <!-- <div class="form-group"> --> | |
| 161 | + <!-- <label for="platform" class="control-label col-sm-2">平台:</label> --> | |
| 162 | + <!-- <div class="col-sm-10"> --> | |
| 163 | + <!-- <h5 th:if="${content.platform=='i'}">苹果</h5> --> | |
| 164 | + <!-- <h5 th:if="${content.platform=='a'}">安卓</h5> --> | |
| 165 | + <!-- <h5 th:if="${content.platform=='w'}">网页</h5> --> | |
| 166 | + <!-- </div> --> | |
| 167 | + <!-- </div> --> | |
| 167 | 168 | |
| 168 | 169 | <div class="form-group" th:if="${content.receive_status!=0}"> |
| 169 | 170 | <label for="updater" class="control-label col-sm-2">审核员:</label> |
| ... | ... | @@ -172,7 +173,7 @@ |
| 172 | 173 | openadmin9@cnlive.com</h5> |
| 173 | 174 | </div> |
| 174 | 175 | </div> |
| 175 | - | |
| 176 | + | |
| 176 | 177 | <div class="form-group"> |
| 177 | 178 | <label for="claimed_at" class="control-label col-sm-2">送审时间:</label> |
| 178 | 179 | <div class="col-sm-10"> |
| ... | ... | @@ -188,15 +189,15 @@ |
| 188 | 189 | 2018-11-29 10:04:35</h5> |
| 189 | 190 | </div> |
| 190 | 191 | </div> |
| 191 | - | |
| 192 | - <div class="form-group"> | |
| 192 | + | |
| 193 | + <div class="form-group"> | |
| 193 | 194 | <label for="msg" class="control-label col-sm-2">审核备注:</label> |
| 194 | 195 | <div class="col-sm-8"> |
| 195 | 196 | <textarea class="form-control" name="msg" cols="50" rows="5" |
| 196 | 197 | id="msg" th:text="${content.shenhe_msg}">审核备注</textarea> |
| 197 | 198 | </div> |
| 198 | 199 | </div> |
| 199 | - | |
| 200 | + | |
| 200 | 201 | </div> |
| 201 | 202 | |
| 202 | 203 | </div> |
| ... | ... | @@ -210,27 +211,38 @@ |
| 210 | 211 | |
| 211 | 212 | <div class="box-footer"> |
| 212 | 213 | <div class="col-md-5"> |
| 213 | - <button type="button" class="btn btn-danger pull-right" onclick="content(2);">拒 绝 | |
| 214 | - </button> | |
| 214 | + <button type="button" class="btn btn-danger pull-right" onclick="content(2);">拒 绝 | |
| 215 | + </button> | |
| 215 | 216 | </div> |
| 216 | 217 | |
| 217 | 218 | <div class="col-md-1"> |
| 218 | - <button type="button" class="btn btn-primary pull-right" onclick="content(1);">通 过 | |
| 219 | - </button> | |
| 219 | + <button type="button" class="btn btn-primary pull-right" onclick="content(1);">通 过 | |
| 220 | + </button> | |
| 220 | 221 | </div> |
| 221 | 222 | |
| 222 | 223 | <div class="col-md-1"> |
| 223 | - <button type="button" class="btn btn-info pull-right" | |
| 224 | + <button type="button" class="btn btn-info pull-right" | |
| 224 | 225 | onclick="self.location=document.referrer;">返回列表 |
| 225 | - </button> | |
| 226 | + </button> | |
| 226 | 227 | </div> |
| 227 | 228 | </div> |
| 228 | 229 | <script th:inline="javascript"> |
| 230 | + | |
| 231 | + | |
| 232 | + $(function () { | |
| 233 | + var url = "/content/page"; | |
| 234 | + $('ul.treeview-menu>li').removeClass("active"); | |
| 235 | + $('.sidebar-menu>li').removeClass("active"); | |
| 236 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //二级链接高亮 | |
| 237 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li.treeview').addClass('active'); //一级栏目[含二级链接]高亮 | |
| 238 | + $('.sidebar-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //一级栏目[不含二级链接]高亮 | |
| 239 | + }) | |
| 240 | + | |
| 229 | 241 | var contentId = [[${content.id}]]; |
| 230 | 242 | |
| 231 | 243 | //审核操作,status=1为通过 |
| 232 | 244 | function content(status) { |
| 233 | - var msg = $('#msg').val(); //获取审核msg | |
| 245 | + var msg = $('#msg').val(); //获取审核msg | |
| 234 | 246 | if (status == 1) { |
| 235 | 247 | $.post("/content/pass?ids=" + contentId, function (data) { |
| 236 | 248 | if (data.errorCode == 0) { |
| ... | ... | @@ -241,11 +253,11 @@ |
| 241 | 253 | } |
| 242 | 254 | }) |
| 243 | 255 | } else { |
| 244 | - if ( msg == '') { | |
| 245 | - alert('请输入审核备注!'); | |
| 246 | - return false; | |
| 247 | - } | |
| 248 | - $.post("/content/refuse?ids=" + contentId+"&msg="+msg, function (data) { | |
| 256 | + if (msg == '') { | |
| 257 | + alert('请输入审核备注!'); | |
| 258 | + return false; | |
| 259 | + } | |
| 260 | + $.post("/content/refuse?ids=" + contentId + "&msg=" + msg, function (data) { | |
| 249 | 261 | if (data.errorCode == 0) { |
| 250 | 262 | //location.href = history.back(); |
| 251 | 263 | self.location = document.referrer; | ... | ... |
src/main/resources/templates/page/live.html
| ... | ... | @@ -70,8 +70,8 @@ |
| 70 | 70 | </button> |
| 71 | 71 | <button type="button" |
| 72 | 72 | class="btn btn-primary btn-sm margin-r-5" id="query" |
| 73 | - onclick="openOrClose('forms')"> | |
| 74 | - <span id="a_up">展开▼</span><span id="a_down">收起▲</span> | |
| 73 | + onclick="openOrClose('forms')"> | |
| 74 | + <span id="a_up">展开▼</span><span id="a_down">收起▲</span> | |
| 75 | 75 | </button> |
| 76 | 76 | </div> |
| 77 | 77 | |
| ... | ... | @@ -459,6 +459,13 @@ |
| 459 | 459 | |
| 460 | 460 | <script th:inline="javascript"> |
| 461 | 461 | |
| 462 | + function GetQueryString(name) { | |
| 463 | + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | |
| 464 | + var r = window.location.search.substr(1).match(reg); | |
| 465 | + if (r != null) return unescape(r[2]); | |
| 466 | + return null; | |
| 467 | + } | |
| 468 | + | |
| 462 | 469 | var activity_id = "";//直播id |
| 463 | 470 | var activity_name = "";//直播名称 |
| 464 | 471 | var is_hot = "";//是否热点 |
| ... | ... | @@ -482,7 +489,8 @@ |
| 482 | 489 | sp_desc = $("#sp_desc").val(); |
| 483 | 490 | contentId = $("#contentId").val(); |
| 484 | 491 | } |
| 485 | - 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; | |
| 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; | |
| 486 | 494 | } |
| 487 | 495 | |
| 488 | 496 | //全部 |
| ... | ... | @@ -603,7 +611,7 @@ |
| 603 | 611 | window.location.href = "/live/excel" + param; |
| 604 | 612 | } |
| 605 | 613 | |
| 606 | - //详情页 | |
| 614 | + //详情页 | |
| 607 | 615 | function detail(ids) { |
| 608 | 616 | location.href = "/live/details?id=" + ids; |
| 609 | 617 | } |
| ... | ... | @@ -701,15 +709,22 @@ |
| 701 | 709 | $(id_name).slideUp(350); |
| 702 | 710 | $('#a_up').show(); |
| 703 | 711 | $('#a_down').hide(); |
| 712 | + $("#forms").attr("up_d", "1"); | |
| 704 | 713 | } else { |
| 705 | 714 | $(id_name).slideDown(350); |
| 706 | 715 | $('#a_up').hide(); |
| 707 | 716 | $('#a_down').show(); |
| 717 | + $("#forms").attr("up_d", "2"); | |
| 708 | 718 | } |
| 709 | 719 | } |
| 710 | 720 | |
| 711 | 721 | |
| 712 | 722 | $(function () { |
| 723 | + if (GetQueryString("up_d") == "2") { | |
| 724 | + $("#query").click(); | |
| 725 | + } else { | |
| 726 | + | |
| 727 | + } | |
| 713 | 728 | //按钮颜色设置 |
| 714 | 729 | var shenhe_state = [[${param.shenhe_state}]] ? [[${param.shenhe_state}]][0] : null; |
| 715 | 730 | var stateIsNull = $.trim(shenhe_state) == ""; | ... | ... |
src/main/resources/templates/page/liveApply.html
| ... | ... | @@ -25,7 +25,7 @@ |
| 25 | 25 | <div class="box-body"> |
| 26 | 26 | |
| 27 | 27 | <div class="btn-group margin-bottom pull-left"> |
| 28 | -<!-- <input type="hidden" name="state" id="state" value=""/> --> | |
| 28 | + <!-- <input type="hidden" name="state" id="state" value=""/> --> | |
| 29 | 29 | <div class="btn-group margin-bottom" id="hide_select_area_2" style=> |
| 30 | 30 | <button type="button" class="btn btn-success btn-sm margin-r-5 action claim" |
| 31 | 31 | value="2" data="claim" id="claim" data-toggle="modal" |
| ... | ... | @@ -75,7 +75,8 @@ |
| 75 | 75 | </button> |
| 76 | 76 | </div> |
| 77 | 77 | <div class="form-horizontal form-group-sm" id="forms" style="display: none;float: left;"> |
| 78 | - <div class="btn-group margin-bottom col-md-6" style="padding: 0;width: 15%;float: left;"> | |
| 78 | + <div class="btn-group margin-bottom col-md-6" | |
| 79 | + style="padding: 0;width: 15%;float: left;"> | |
| 79 | 80 | <div class="col-md-6" style="padding: 0;width: 100%;"> |
| 80 | 81 | <label for="liveApply_theme" class="control-label cb-toolbar">直播主题:</label> |
| 81 | 82 | <div class="col-sm-7" style="padding: 0;"> |
| ... | ... | @@ -84,7 +85,8 @@ |
| 84 | 85 | </div> |
| 85 | 86 | </div> |
| 86 | 87 | |
| 87 | - <div class="btn-group margin-bottom col-md-6" style="padding-left:0px;width: 13%;float: left;"> | |
| 88 | + <div class="btn-group margin-bottom col-md-6" | |
| 89 | + style="padding-left:0px;width: 13%;float: left;"> | |
| 88 | 90 | <div class="col-md-5" style="padding: 0;width: 100%;"> |
| 89 | 91 | <label for="shenhe_state" class="control-label cb-toolbar">状态:</label> |
| 90 | 92 | <div class="col-sm-7" style="padding: 0;"> |
| ... | ... | @@ -97,87 +99,93 @@ |
| 97 | 99 | </div> |
| 98 | 100 | </div> |
| 99 | 101 | </div> |
| 100 | -<!-- <div class="btn-group margin-bottom col-md-6" style="padding-left: 10px;width: 13%;float: left;"> --> | |
| 101 | -<!-- <div class="col-md-5" style="padding: 0;width: 100%;"> --> | |
| 102 | -<!-- <label for="business_model" class="control-label cb-toolbar">模式:</label> --> | |
| 103 | -<!-- <div class="col-sm-8" style="padding: 0;"> --> | |
| 104 | -<!-- <select class="form-control" id="business_model" name="business_model"> --> | |
| 105 | -<!-- <option value="">全部</option> --> | |
| 106 | -<!-- <option value="0">免费</option> --> | |
| 107 | -<!-- <option value="1">收费</option> --> | |
| 108 | -<!-- </select> --> | |
| 109 | -<!-- </div> --> | |
| 110 | -<!-- </div> --> | |
| 111 | -<!-- </div> --> | |
| 112 | - <div class="btn-group margin-bottom col-md-6" style="padding-left: 0px;width: 15%;float: left;"> | |
| 113 | - <div class="col-md-5" style="padding: 0;width: 100%;" > | |
| 114 | - <label for="business_model" class="control-label cb-toolbar">发起单位:</label> | |
| 115 | - <div class="col-sm-7" style="padding: 0;"> | |
| 116 | - <input class="form-control" type="text" value="" id="business_model" name="business_model"> | |
| 117 | - </div> | |
| 118 | - </div> | |
| 102 | + <!-- <div class="btn-group margin-bottom col-md-6" style="padding-left: 10px;width: 13%;float: left;"> --> | |
| 103 | + <!-- <div class="col-md-5" style="padding: 0;width: 100%;"> --> | |
| 104 | + <!-- <label for="business_model" class="control-label cb-toolbar">模式:</label> --> | |
| 105 | + <!-- <div class="col-sm-8" style="padding: 0;"> --> | |
| 106 | + <!-- <select class="form-control" id="business_model" name="business_model"> --> | |
| 107 | + <!-- <option value="">全部</option> --> | |
| 108 | + <!-- <option value="0">免费</option> --> | |
| 109 | + <!-- <option value="1">收费</option> --> | |
| 110 | + <!-- </select> --> | |
| 111 | + <!-- </div> --> | |
| 112 | + <!-- </div> --> | |
| 113 | + <!-- </div> --> | |
| 114 | + <div class="btn-group margin-bottom col-md-6" | |
| 115 | + style="padding-left: 0px;width: 15%;float: left;"> | |
| 116 | + <div class="col-md-5" style="padding: 0;width: 100%;"> | |
| 117 | + <label for="business_model" class="control-label cb-toolbar">发起单位:</label> | |
| 118 | + <div class="col-sm-7" style="padding: 0;"> | |
| 119 | + <input class="form-control" type="text" value="" id="business_model" | |
| 120 | + name="business_model"> | |
| 121 | + </div> | |
| 122 | + </div> | |
| 119 | 123 | </div> |
| 120 | - <div class="btn-group margin-bottom col-md-6" style="padding-left: 0px;width: 15%;float: left;"> | |
| 121 | - <div class="col-md-6" style="padding: 0;width: 100%;" th:if="${session.sessionUser.spid==0}"> | |
| 122 | - <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> | |
| 123 | - <div class="col-sm-7" style="padding: 0;"> | |
| 124 | - <input class="form-control" type="text" value="" id="sp_desc"> | |
| 125 | - </div> | |
| 126 | - </div> | |
| 124 | + <div class="btn-group margin-bottom col-md-6" | |
| 125 | + style="padding-left: 0px;width: 15%;float: left;"> | |
| 126 | + <div class="col-md-6" style="padding: 0;width: 100%;" | |
| 127 | + th:if="${session.sessionUser.spid==0}"> | |
| 128 | + <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> | |
| 129 | + <div class="col-sm-7" style="padding: 0;"> | |
| 130 | + <input class="form-control" type="text" value="" id="sp_desc"> | |
| 131 | + </div> | |
| 132 | + </div> | |
| 127 | 133 | </div> |
| 128 | - <div class="btn-group margin-bottom col-md-6" style="padding-left: 0px;width: 20%;float: left;"> | |
| 134 | + <div class="btn-group margin-bottom col-md-6" | |
| 135 | + style="padding-left: 0px;width: 20%;float: left;"> | |
| 129 | 136 | <div class="col-md-12" style="padding: 0;width: 100%;"> |
| 130 | - <label for="start_date" class="control-label cb-toolbar">预计时间:</label> | |
| 131 | - <div class="input-group col-md-8 date"> | |
| 132 | - <input class="form-control date" name="start_date" type="text" | |
| 133 | - id="start_date"> | |
| 134 | - <span class="input-group-addon"> | |
| 137 | + <label for="start_date" class="control-label cb-toolbar">预计时间:</label> | |
| 138 | + <div class="input-group col-md-8 date"> | |
| 139 | + <input class="form-control date" name="start_date" type="text" | |
| 140 | + id="start_date"> | |
| 141 | + <span class="input-group-addon"> | |
| 135 | 142 | <span class="glyphicon glyphicon-calendar"></span> |
| 136 | 143 | </span> |
| 137 | - </div> | |
| 138 | - </div> | |
| 144 | + </div> | |
| 145 | + </div> | |
| 139 | 146 | </div> |
| 140 | - <div class="btn-group margin-bottom col-md-6" style="padding-left: 0px;width: 18%;float: left;"> | |
| 141 | - <div class="col-md-9" style="padding: 0;width: 100%;"> | |
| 142 | - <label for="start_date" class="control-label cb-toolbar">至</label> | |
| 143 | - <div class="input-group col-md-8 date"> | |
| 144 | - <input class="form-control date" name="end_date" type="text" | |
| 145 | - id="end_date"> | |
| 146 | - <span class="input-group-addon"> | |
| 147 | + <div class="btn-group margin-bottom col-md-6" | |
| 148 | + style="padding-left: 0px;width: 18%;float: left;"> | |
| 149 | + <div class="col-md-9" style="padding: 0;width: 100%;"> | |
| 150 | + <label for="start_date" class="control-label cb-toolbar">至</label> | |
| 151 | + <div class="input-group col-md-8 date"> | |
| 152 | + <input class="form-control date" name="end_date" type="text" | |
| 153 | + id="end_date"> | |
| 154 | + <span class="input-group-addon"> | |
| 147 | 155 | <span class="glyphicon glyphicon-calendar"></span> |
| 148 | 156 | </span> |
| 149 | - </div> | |
| 150 | - </div> | |
| 157 | + </div> | |
| 158 | + </div> | |
| 151 | 159 | </div> |
| 152 | - | |
| 153 | - | |
| 154 | -<!-- <div class="btn-group margin-bottom col-md-6 pull-right" --> | |
| 155 | -<!-- style="position: relative;width: 40%;float: left !important;"> --> | |
| 156 | -<!-- <div class="col-md-12" style="width: 100%;padding: 0;"> --> | |
| 157 | -<!-- <div class="col-md-11" style="padding: 0;width: 25%;"> --> | |
| 158 | -<!-- <label for="start_date" class="control-label cb-toolbar">时间:</label> --> | |
| 159 | -<!-- <div class="input-group col-md-9 date"> --> | |
| 160 | -<!-- <input class="form-control date" name="start_date" type="text" --> | |
| 161 | -<!-- id="start_date"> --> | |
| 162 | -<!-- <span class="input-group-addon"> --> | |
| 163 | -<!-- <span class="glyphicon glyphicon-calendar"></span> --> | |
| 164 | -<!-- </span> --> | |
| 165 | -<!-- </div> --> | |
| 166 | -<!-- </div> --> | |
| 167 | -<!-- <div class="col-md-11" style="padding: 0;width: 25%;"> --> | |
| 168 | -<!-- <label for="start_date" class="control-label cb-toolbar">至</label> --> | |
| 169 | -<!-- <div class="input-group col-md-9 date"> --> | |
| 170 | -<!-- <input class="form-control date" name="end_date" type="text" --> | |
| 171 | -<!-- id="end_date"> --> | |
| 172 | -<!-- <span class="input-group-addon"> --> | |
| 173 | -<!-- <span class="glyphicon glyphicon-calendar"></span> --> | |
| 174 | -<!-- </span> --> | |
| 175 | -<!-- </div> --> | |
| 176 | -<!-- </div> --> | |
| 177 | - | |
| 178 | - | |
| 179 | -<!-- </div> --> | |
| 180 | -<!-- </div> --> | |
| 160 | + | |
| 161 | + | |
| 162 | + <!-- <div class="btn-group margin-bottom col-md-6 pull-right" --> | |
| 163 | + <!-- style="position: relative;width: 40%;float: left !important;"> --> | |
| 164 | + <!-- <div class="col-md-12" style="width: 100%;padding: 0;"> --> | |
| 165 | + <!-- <div class="col-md-11" style="padding: 0;width: 25%;"> --> | |
| 166 | + <!-- <label for="start_date" class="control-label cb-toolbar">时间:</label> --> | |
| 167 | + <!-- <div class="input-group col-md-9 date"> --> | |
| 168 | + <!-- <input class="form-control date" name="start_date" type="text" --> | |
| 169 | + <!-- id="start_date"> --> | |
| 170 | + <!-- <span class="input-group-addon"> --> | |
| 171 | + <!-- <span class="glyphicon glyphicon-calendar"></span> --> | |
| 172 | + <!-- </span> --> | |
| 173 | + <!-- </div> --> | |
| 174 | + <!-- </div> --> | |
| 175 | + <!-- <div class="col-md-11" style="padding: 0;width: 25%;"> --> | |
| 176 | + <!-- <label for="start_date" class="control-label cb-toolbar">至</label> --> | |
| 177 | + <!-- <div class="input-group col-md-9 date"> --> | |
| 178 | + <!-- <input class="form-control date" name="end_date" type="text" --> | |
| 179 | + <!-- id="end_date"> --> | |
| 180 | + <!-- <span class="input-group-addon"> --> | |
| 181 | + <!-- <span class="glyphicon glyphicon-calendar"></span> --> | |
| 182 | + <!-- </span> --> | |
| 183 | + <!-- </div> --> | |
| 184 | + <!-- </div> --> | |
| 185 | + | |
| 186 | + | |
| 187 | + <!-- </div> --> | |
| 188 | + <!-- </div> --> | |
| 181 | 189 | </div> |
| 182 | 190 | |
| 183 | 191 | <div class="fixed-table-container" style="padding-bottom: 0px;"> |
| ... | ... | @@ -203,16 +211,16 @@ |
| 203 | 211 | <div class="th-inner ">直播主题</div> |
| 204 | 212 | <div class="fht-cell"></div> |
| 205 | 213 | </th> |
| 206 | - <th style="text-align: center; width: 6%; " data-field="sp_id_brief" | |
| 214 | + <th style="text-align: center; width: 6%; " data-field="sp_id_brief" | |
| 207 | 215 | tabindex="0"> |
| 208 | 216 | <div class="th-inner ">发起单位</div> |
| 209 | 217 | <div class="fht-cell"></div> |
| 210 | 218 | </th> |
| 211 | -<!-- <th style="text-align: center; width: 3%; " data-field="is_hot_name" --> | |
| 212 | -<!-- tabindex="0"> --> | |
| 213 | -<!-- <div class="th-inner ">商务模式</div> --> | |
| 214 | -<!-- <div class="fht-cell"></div> --> | |
| 215 | -<!-- </th> --> | |
| 219 | + <!-- <th style="text-align: center; width: 3%; " data-field="is_hot_name" --> | |
| 220 | + <!-- tabindex="0"> --> | |
| 221 | + <!-- <div class="th-inner ">商务模式</div> --> | |
| 222 | + <!-- <div class="fht-cell"></div> --> | |
| 223 | + <!-- </th> --> | |
| 216 | 224 | <th style="text-align: center; width: 3%; " data-field="is_hot_name" |
| 217 | 225 | tabindex="0"> |
| 218 | 226 | <div class="th-inner ">直播类型</div> |
| ... | ... | @@ -258,35 +266,48 @@ |
| 258 | 266 | <tbody> |
| 259 | 267 | <tr data-index="0" th:each="liveApply : ${liveApplyPage.list}"> |
| 260 | 268 | <td class="bs-checkbox "> |
| 261 | - <input data-index="0" name="btSelectItem" type="checkbox" th:value="${liveApply.id}"> | |
| 269 | + <input data-index="0" name="btSelectItem" type="checkbox" | |
| 270 | + th:value="${liveApply.id}"> | |
| 271 | + </td> | |
| 272 | + <td style="text-align: center; width: 6%;" | |
| 273 | + th:text="${liveApply.spid_desc}"></td> | |
| 274 | + <td style="text-align: center; width: 20%;"> | |
| 275 | + <a class="detail" | |
| 276 | + th:href="@{'/liveApply/details/?id='+${liveApply.id}}"> | |
| 277 | + <span th:text="${liveApply.theme}">邓建国正面PK冯小刚</span> | |
| 278 | + </a> | |
| 262 | 279 | </td> |
| 263 | - <td style="text-align: center; width: 6%;" th:text="${liveApply.spid_desc}"></td> | |
| 264 | - <td style="text-align: center; width: 20%;" > | |
| 265 | - <a class="detail" th:href="@{'/liveApply/details/?id='+${liveApply.id}}"> | |
| 266 | - <span th:text="${liveApply.theme}">邓建国正面PK冯小刚</span> | |
| 267 | - </a> | |
| 280 | + <td style="text-align: center; width: 6%;" | |
| 281 | + th:text="${liveApply.organization}"></td> | |
| 282 | + <!-- <td style="text-align: center; width: 3%;" --> | |
| 283 | + <!-- th:text="${liveApply.business_model=='1'?'收费':'免费'}">收费 --> | |
| 284 | + <!-- </td> --> | |
| 285 | + <td style="text-align: center; width: 3%;" th:text="${liveApply.live_type}"> | |
| 286 | + 直播分类 | |
| 268 | 287 | </td> |
| 269 | - <td style="text-align: center; width: 6%;" th:text="${liveApply.organization}"></td> | |
| 270 | -<!-- <td style="text-align: center; width: 3%;" --> | |
| 271 | -<!-- th:text="${liveApply.business_model=='1'?'收费':'免费'}">收费 --> | |
| 272 | -<!-- </td> --> | |
| 273 | - <td style="text-align: center; width: 3%;" th:text="${liveApply.live_type}">直播分类</td> | |
| 274 | - <td style="text-align: center; width: 6%;" th:text="${liveApply.updater}">审核员 | |
| 288 | + <td style="text-align: center; width: 6%;" th:text="${liveApply.updater}"> | |
| 289 | + 审核员 | |
| 275 | 290 | </td> |
| 276 | 291 | <td style="text-align: center; width: 3%;"> |
| 277 | - <span class="btn btn-sm btn-warning" th:if="${liveApply.shenhe_state==0}">待审</span> | |
| 278 | - <span class="btn btn-sm btn-success" th:if="${liveApply.shenhe_state==1}">通过</span> | |
| 279 | - <span class="btn btn-sm btn-danger" th:if="${liveApply.shenhe_state==2}">拒绝</span> | |
| 292 | + <span class="btn btn-sm btn-warning" | |
| 293 | + th:if="${liveApply.shenhe_state==0}">待审</span> | |
| 294 | + <span class="btn btn-sm btn-success" | |
| 295 | + th:if="${liveApply.shenhe_state==1}">通过</span> | |
| 296 | + <span class="btn btn-sm btn-danger" | |
| 297 | + th:if="${liveApply.shenhe_state==2}">拒绝</span> | |
| 280 | 298 | </td> |
| 281 | 299 | <td style="text-align: center; width: 3%;"> |
| 282 | - <span th:if="${liveApply.shenhe_type==1}">免审</span> | |
| 283 | - <span th:if="${liveApply.shenhe_type==2}">机审</span> | |
| 284 | - <span th:if="${liveApply.shenhe_type==3}">人工审</span> | |
| 300 | + <span th:if="${liveApply.shenhe_type==1}">免审</span> | |
| 301 | + <span th:if="${liveApply.shenhe_type==2}">机审</span> | |
| 302 | + <span th:if="${liveApply.shenhe_type==3}">人工审</span> | |
| 285 | 303 | </td> |
| 286 | - <td style="text-align: center; width: 5%;"> | |
| 287 | - <span class="btn btn-sm btn-warning" th:if="${liveApply.email_notice_state==1}">未通知</span> | |
| 288 | - <span class="btn btn-sm btn-success" th:if="${liveApply.email_notice_state==2}">已通知</span> | |
| 289 | - <span class="btn btn-sm btn-danger" th:if="${liveApply.email_notice_state==3}">通知失败</span> | |
| 304 | + <td style="text-align: center; width: 5%;"> | |
| 305 | + <span class="btn btn-sm btn-warning" | |
| 306 | + th:if="${liveApply.email_notice_state==1}">未通知</span> | |
| 307 | + <span class="btn btn-sm btn-success" | |
| 308 | + th:if="${liveApply.email_notice_state==2}">已通知</span> | |
| 309 | + <span class="btn btn-sm btn-danger" | |
| 310 | + th:if="${liveApply.email_notice_state==3}">通知失败</span> | |
| 290 | 311 | </td> |
| 291 | 312 | <td style="text-align: center; width: 10%;" |
| 292 | 313 | th:text="${#dates.format(liveApply.created_at, 'yyyy-MM-dd HH:mm:ss')}"> |
| ... | ... | @@ -297,8 +318,9 @@ |
| 297 | 318 | 2018-03-07 16:56:20 |
| 298 | 319 | </td> |
| 299 | 320 | <td style="text-align: center; width: 17%;"> |
| 300 | - <a class="detail" th:href="@{'/liveApply/details/?id='+${liveApply.id}}"> | |
| 301 | - <button class="btn btn-info btn-sm" >查看</button> | |
| 321 | + <a class="detail" | |
| 322 | + th:href="@{'/liveApply/details/?id='+${liveApply.id}}"> | |
| 323 | + <button class="btn btn-info btn-sm">查看</button> | |
| 302 | 324 | </a> |
| 303 | 325 | <span th:if="${liveApply.shenhe_state==0 and liveApply.receive==0}"> </span> |
| 304 | 326 | <a th:href="@{'javascript:applyReceive('+${liveApply.id}+')'}" |
| ... | ... | @@ -320,14 +342,14 @@ |
| 320 | 342 | <!--分页处理--> |
| 321 | 343 | <div class="fixed-table-pagination" style="display: block;"> |
| 322 | 344 | <div class="pull-left pagination-detail"> |
| 323 | - <span class="pagination-info" th:text="'共 '+${liveApplyPage.total}+' 条记录,每页显示'">共 0 条记录</span> | |
| 324 | - <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()"> | |
| 325 | - <option value="10" th:selected="${pageSize==10}">10</option> | |
| 326 | - <option value="20" th:selected="${pageSize==20}">20</option> | |
| 327 | - <option value="50" th:selected="${pageSize==50}">50</option> | |
| 328 | - <option value="100" th:selected="${pageSize==100}">100</option> | |
| 345 | + <span class="pagination-info" th:text="'共 '+${liveApplyPage.total}+' 条记录,每页显示'">共 0 条记录</span> | |
| 346 | + <select class="" id="pageSize" name="pageSize" onchange="selectPageSize()"> | |
| 347 | + <option value="10" th:selected="${pageSize==10}">10</option> | |
| 348 | + <option value="20" th:selected="${pageSize==20}">20</option> | |
| 349 | + <option value="50" th:selected="${pageSize==50}">50</option> | |
| 350 | + <option value="100" th:selected="${pageSize==100}">100</option> | |
| 329 | 351 | </select> |
| 330 | - <span class="pagination-info" >条记录</span> | |
| 352 | + <span class="pagination-info">条记录</span> | |
| 331 | 353 | </div> |
| 332 | 354 | <div class="pull-right pagination"> |
| 333 | 355 | <ul class="pagination" th:if="${liveApplyPage.pages>1}"> |
| ... | ... | @@ -346,14 +368,18 @@ |
| 346 | 368 | th:onclick="'javascript:fanye(\''+${liveApplyPage.pageNum-1}+'\');'" |
| 347 | 369 | th:text="${liveApplyPage.pageNum-1}">2</a></li> |
| 348 | 370 | <li class="page-number active"><a href="javaScript:void(0);" |
| 349 | - th:text="${liveApplyPage.pageNum}">2</a></li> | |
| 350 | - <li class="page-number" th:if="${liveApplyPage.pageNum+1<=liveApplyPage.pages}"><a | |
| 371 | + th:text="${liveApplyPage.pageNum}">2</a> | |
| 372 | + </li> | |
| 373 | + <li class="page-number" | |
| 374 | + th:if="${liveApplyPage.pageNum+1<=liveApplyPage.pages}"><a | |
| 351 | 375 | th:onclick="'javascript:fanye(\''+${liveApplyPage.pageNum+1}+'\');'" |
| 352 | 376 | th:text="${liveApplyPage.pageNum+1}">2</a></li> |
| 353 | - <li class="page-number" th:if="${liveApplyPage.pageNum+2<=liveApplyPage.pages}"><a | |
| 377 | + <li class="page-number" | |
| 378 | + th:if="${liveApplyPage.pageNum+2<=liveApplyPage.pages}"><a | |
| 354 | 379 | th:onclick="'javascript:fanye(\''+${liveApplyPage.pageNum+2}+'\');'" |
| 355 | 380 | th:text="${liveApplyPage.pageNum+2}">2</a></li> |
| 356 | - <li class="page-number" th:if="${liveApplyPage.pageNum+3<=liveApplyPage.pages}"><a | |
| 381 | + <li class="page-number" | |
| 382 | + th:if="${liveApplyPage.pageNum+3<=liveApplyPage.pages}"><a | |
| 357 | 383 | th:onclick="'javascript:fanye(\''+${liveApplyPage.pageNum+3}+'\');'" |
| 358 | 384 | th:text="${liveApplyPage.pageNum+3}">2</a></li> |
| 359 | 385 | |
| ... | ... | @@ -374,7 +400,19 @@ |
| 374 | 400 | </section> |
| 375 | 401 | </div> |
| 376 | 402 | <script th:inline="javascript"> |
| 403 | + function GetQueryString(name) { | |
| 404 | + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | |
| 405 | + var r = window.location.search.substr(1).match(reg); | |
| 406 | + if (r != null) return unescape(r[2]); | |
| 407 | + return null; | |
| 408 | + } | |
| 409 | + | |
| 377 | 410 | $(function () { |
| 411 | + if (GetQueryString("up_d") == "2") { | |
| 412 | + $("#query").click(); | |
| 413 | + } else { | |
| 414 | + | |
| 415 | + } | |
| 378 | 416 | //按钮颜色设置 |
| 379 | 417 | var state = [[${param.shenhe_state}]] ? [[${param.shenhe_state}]][0] : null; |
| 380 | 418 | var receive = [[${param.receive}]] ? [[${param.receive}]][0] : null; |
| ... | ... | @@ -396,7 +434,7 @@ |
| 396 | 434 | function fanye(page) { |
| 397 | 435 | var param = location.search; |
| 398 | 436 | if (param.indexOf("page=") != -1) { |
| 399 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 437 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 400 | 438 | var split = se.split("&"); |
| 401 | 439 | var h = ""; |
| 402 | 440 | for (var i = 0; i < split.length; i++) { |
| ... | ... | @@ -410,32 +448,32 @@ |
| 410 | 448 | window.location.href = "/liveApply/page?" + param + "&page=" + page; |
| 411 | 449 | } |
| 412 | 450 | } |
| 413 | - | |
| 451 | + | |
| 414 | 452 | //选择每页数量触发函数 |
| 415 | - function selectPageSize(){ | |
| 416 | - var pageSize=$("#pageSize").val(); | |
| 417 | - var param = location.search; | |
| 418 | - if (param.indexOf("pageSize=") != -1) { | |
| 419 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 420 | - var split = se.split("&"); | |
| 421 | - var h = ""; | |
| 422 | - for (var i = 0; i < split.length; i++) { | |
| 423 | - var s = split[i]; | |
| 424 | - if (s.indexOf("pageSize=") < 0 &&s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 425 | - } | |
| 426 | - h = h.substring(1, h.length); | |
| 427 | - window.location.href = "/liveApply/page?" + h + "&pageSize=" + pageSize; | |
| 428 | - } else { | |
| 429 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 430 | - var split = se.split("&"); | |
| 431 | - var h = ""; | |
| 432 | - for (var i = 0; i < split.length; i++) { | |
| 433 | - var s = split[i]; | |
| 434 | - if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 435 | - } | |
| 436 | - h = h.substring(1, h.length); | |
| 437 | - window.location.href = "/liveApply/page?" + h + "&pageSize=" + pageSize; | |
| 438 | - } | |
| 453 | + function selectPageSize() { | |
| 454 | + var pageSize = $("#pageSize").val(); | |
| 455 | + var param = location.search; | |
| 456 | + if (param.indexOf("pageSize=") != -1) { | |
| 457 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 458 | + var split = se.split("&"); | |
| 459 | + var h = ""; | |
| 460 | + for (var i = 0; i < split.length; i++) { | |
| 461 | + var s = split[i]; | |
| 462 | + if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 463 | + } | |
| 464 | + h = h.substring(1, h.length); | |
| 465 | + window.location.href = "/liveApply/page?" + h + "&pageSize=" + pageSize; | |
| 466 | + } else { | |
| 467 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 468 | + var split = se.split("&"); | |
| 469 | + var h = ""; | |
| 470 | + for (var i = 0; i < split.length; i++) { | |
| 471 | + var s = split[i]; | |
| 472 | + if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 473 | + } | |
| 474 | + h = h.substring(1, h.length); | |
| 475 | + window.location.href = "/liveApply/page?" + h + "&pageSize=" + pageSize; | |
| 476 | + } | |
| 439 | 477 | } |
| 440 | 478 | |
| 441 | 479 | //导出excel |
| ... | ... | @@ -443,62 +481,63 @@ |
| 443 | 481 | var param = location.search; |
| 444 | 482 | window.location.href = "/liveApply/excel" + param; |
| 445 | 483 | } |
| 446 | - | |
| 447 | - var liveApply_theme = ""; | |
| 448 | - var start_date =""; | |
| 449 | - var end_date = ""; | |
| 450 | - var sp_desc =""; | |
| 451 | - var business_model = ""; | |
| 452 | - var shenhe_state = ""; | |
| 453 | - var count = ""; | |
| 454 | - | |
| 455 | - function updateValue(){ | |
| 456 | - liveApply_theme = $("#liveApply_theme").val(); | |
| 457 | - start_date = $("#start_date").val(); | |
| 458 | - end_date = $("#end_date").val(); | |
| 459 | - shenhe_state = $("#shenhe_state").val(); | |
| 460 | - business_model = $("#business_model").val(); | |
| 461 | - count = $("#pageSize").val(); | |
| 462 | - var spId=[[${session.sessionUser.spid}]]; | |
| 463 | - if(spId==0){ | |
| 484 | + | |
| 485 | + var liveApply_theme = ""; | |
| 486 | + var start_date = ""; | |
| 487 | + var end_date = ""; | |
| 488 | + var sp_desc = ""; | |
| 489 | + var business_model = ""; | |
| 490 | + var shenhe_state = ""; | |
| 491 | + var count = ""; | |
| 492 | + | |
| 493 | + function updateValue() { | |
| 494 | + liveApply_theme = $("#liveApply_theme").val(); | |
| 495 | + start_date = $("#start_date").val(); | |
| 496 | + end_date = $("#end_date").val(); | |
| 497 | + shenhe_state = $("#shenhe_state").val(); | |
| 498 | + business_model = $("#business_model").val(); | |
| 499 | + count = $("#pageSize").val(); | |
| 500 | + var spId = [[${session.sessionUser.spid}]]; | |
| 501 | + if (spId == 0) { | |
| 464 | 502 | sp_desc = $("#sp_desc").val(); |
| 465 | - } | |
| 466 | 503 | } |
| 467 | - | |
| 504 | + } | |
| 505 | + | |
| 468 | 506 | |
| 469 | 507 | //全部 |
| 470 | 508 | function quanbu() { |
| 471 | - updateValue(); | |
| 472 | - var receive = ""; | |
| 473 | - 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; | |
| 509 | + updateValue(); | |
| 510 | + 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; | |
| 474 | 513 | } |
| 475 | 514 | |
| 476 | 515 | //全部待领 |
| 477 | 516 | $('#daishen').click(function () { |
| 478 | - updateValue(); | |
| 479 | - if($.trim(shenhe_state) == '') shenhe_state=0; | |
| 517 | + updateValue(); | |
| 518 | + if ($.trim(shenhe_state) == '') shenhe_state = 0; | |
| 480 | 519 | var receive = 0; |
| 481 | - 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; | |
| 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; | |
| 482 | 521 | }); |
| 483 | 522 | //我的待审核 |
| 484 | 523 | $('#Mydaishen').click(function () { |
| 485 | - updateValue(); | |
| 524 | + updateValue(); | |
| 486 | 525 | var receive = 1; |
| 487 | - if($.trim(shenhe_state) == '') shenhe_state=0; | |
| 488 | - 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 | + 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; | |
| 489 | 528 | }); |
| 490 | 529 | //我的已审核 |
| 491 | 530 | $('#yishen').click(function () { |
| 492 | - updateValue(); | |
| 531 | + updateValue(); | |
| 493 | 532 | var receive = 1; |
| 494 | - if($.trim(shenhe_state) == '') shenhe_state=3;//审核状态,3代表通过和拒绝都查询 | |
| 495 | - 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 | + 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; | |
| 496 | 535 | }); |
| 497 | 536 | |
| 498 | 537 | |
| 499 | 538 | //查询 |
| 500 | 539 | $('#videos_query').click(function () { |
| 501 | - 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; | |
| 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; | |
| 502 | 541 | }); |
| 503 | 542 | /*全选的操作*/ |
| 504 | 543 | $('#select_all').click(function () { |
| ... | ... | @@ -590,7 +629,7 @@ |
| 590 | 629 | }) |
| 591 | 630 | } |
| 592 | 631 | |
| 593 | - //拒绝(打回)弹窗 | |
| 632 | + //拒绝(打回)弹窗 | |
| 594 | 633 | function repulse() { |
| 595 | 634 | var rows = $("[name=btSelectItem]:checkbox:checked"); |
| 596 | 635 | if (rows.length > 0) { |
| ... | ... | @@ -612,11 +651,11 @@ |
| 612 | 651 | }) |
| 613 | 652 | ids = ids.substring(1); |
| 614 | 653 | var msg = $("#reviewMsg").val(); |
| 615 | - if ( msg == '') { | |
| 654 | + if (msg == '') { | |
| 616 | 655 | alert('请输入审核意见!'); |
| 617 | 656 | return false; |
| 618 | 657 | } |
| 619 | - $.post("/liveApply/shenheLiveApply?ids=" + ids + "&msg=" + msg+"&state="+2, function (data) { | |
| 658 | + $.post("/liveApply/shenheLiveApply?ids=" + ids + "&msg=" + msg + "&state=" + 2, function (data) { | |
| 620 | 659 | if (data.errorCode == 0) { |
| 621 | 660 | alert(data.errorMessage); |
| 622 | 661 | location.href = location.href; |
| ... | ... | @@ -625,20 +664,20 @@ |
| 625 | 664 | } |
| 626 | 665 | }) |
| 627 | 666 | } |
| 628 | - | |
| 629 | - //批量通过 | |
| 667 | + | |
| 668 | + //批量通过 | |
| 630 | 669 | function morePass() { |
| 631 | 670 | var rows = $("[name=btSelectItem]:checkbox:checked"); |
| 632 | 671 | if (rows.length > 0) { |
| 633 | 672 | var r = confirm("您确定通过选中的" + rows.length + "条内容吗?"); |
| 634 | 673 | if (r == true) { |
| 635 | - var ids = ""; | |
| 674 | + var ids = ""; | |
| 636 | 675 | rows.each(function (i, e) { |
| 637 | 676 | ids = ids + "," + e.value; |
| 638 | 677 | }) |
| 639 | 678 | ids = ids.substring(1); |
| 640 | - var msg ="直播申请审核通过"; | |
| 641 | - $.post("/liveApply/shenheLiveApply?ids=" + ids + "&msg=" + msg+"&state="+1, function (data) { | |
| 679 | + var msg = "直播申请审核通过"; | |
| 680 | + $.post("/liveApply/shenheLiveApply?ids=" + ids + "&msg=" + msg + "&state=" + 1, function (data) { | |
| 642 | 681 | if (data.errorCode == 0) { |
| 643 | 682 | alert(data.errorMessage); |
| 644 | 683 | location.href = location.href; |
| ... | ... | @@ -687,10 +726,12 @@ |
| 687 | 726 | $(id_name).slideUp(350); |
| 688 | 727 | $('#a_up').show(); |
| 689 | 728 | $('#a_down').hide(); |
| 729 | + $("#forms").attr("up_d", "1"); | |
| 690 | 730 | } else { |
| 691 | 731 | $(id_name).slideDown(350); |
| 692 | 732 | $('#a_up').hide(); |
| 693 | 733 | $('#a_down').show(); |
| 734 | + $("#forms").attr("up_d", "2"); | |
| 694 | 735 | } |
| 695 | 736 | } |
| 696 | 737 | ... | ... |
src/main/resources/templates/page/liveApplyDetail.html
| ... | ... | @@ -25,140 +25,164 @@ |
| 25 | 25 | <div class="box box-info"> |
| 26 | 26 | <div class="box-body form-horizontal"> |
| 27 | 27 | <div align="center" id="tabContents" class="tab-content"> |
| 28 | - <span style="font-size:30px;font-weight: bold;color:#F4A460;">中国网家家直播申请单</span> | |
| 29 | - <table border="1" style="background-color:#F5FFFA;width:80%;font-size:20px" id="table"> | |
| 30 | - <tr align="center" valign="middle" height="40px"> | |
| 31 | - <td width="25%" >直播发起人</td> | |
| 32 | - <td width="30%" colspan="2" > | |
| 33 | - <span style="color:#DC143C" th:text="${shyLiveapply.sender}">11111111111111</span> | |
| 34 | - </td> | |
| 35 | - <td width="15%">联系方式</td> | |
| 36 | - <td width="30%" colspan="2"> | |
| 37 | - <span style="color:#DC143C" th:text="${shyLiveapply.mobile}">11111111111111</span> | |
| 38 | - </td> | |
| 39 | - </tr> | |
| 40 | - <tr align="center" valign="middle" height="40px"> | |
| 41 | - <td >直播发起单位</td> | |
| 42 | - <td colspan="5"> | |
| 43 | - <span style="color:#DC143C" th:text="${shyLiveapply.organization}">11111111111111</span> | |
| 44 | - </td> | |
| 45 | - </tr> | |
| 46 | - <tr align="center" valign="middle" height="40px"> | |
| 47 | - <td >直播主题</td> | |
| 48 | - <td colspan="5"> | |
| 49 | - <span style="color:#DC143C" th:text="${shyLiveapply.theme}">11111111111111</span> | |
| 50 | - </td> | |
| 51 | - </tr> | |
| 52 | - <tr align="center" valign="middle" height="40px"> | |
| 53 | - <td >直播时间</td> | |
| 54 | - <td colspan="5"> | |
| 55 | - <span style="color:#DC143C" th:text="${#dates.format(shyLiveapply.pre_start_time, 'yyyy-MM-dd HH:mm:ss')}">11111111111111</span> | |
| 56 | - <span>~</span> | |
| 57 | - <span style="color:#DC143C" th:text="${#dates.format(shyLiveapply.pre_end_time, 'yyyy-MM-dd HH:mm:ss')}">11111111111111</span> | |
| 58 | - </td> | |
| 59 | - </tr> | |
| 60 | - <tr align="center" valign="middle" height="40px"> | |
| 61 | - <td >商务模式</td> | |
| 62 | - <td colspan="5"> | |
| 63 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${shyLiveapply.business_model==0}" disabled/> | |
| 64 | - <span th:style="${shyLiveapply.business_model==0?'color:#DC143C':''}">免费</span> | |
| 65 | - <span> </span> | |
| 66 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${shyLiveapply.business_model==1}" disabled/> | |
| 67 | - <span th:style="${shyLiveapply.business_model==1?'color:#DC143C':''}">收费</span> | |
| 68 | - </td> | |
| 69 | - </tr> | |
| 70 | - <tr align="center" valign="middle" height="40px"> | |
| 71 | - <td >直播类型</td> | |
| 72 | - <td colspan="5"> | |
| 73 | - <span style="color:#DC143C" th:text="${shyLiveapply.live_type}">11111111111111</span> | |
| 74 | - </td> | |
| 75 | - </tr> | |
| 76 | - <tr align="center" valign="middle" height="40px"> | |
| 77 | - <td >内容属性</td> | |
| 78 | - <td colspan="5"> | |
| 79 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${shyLiveapply.content_property==1}" disabled/> | |
| 80 | - <span th:style="${shyLiveapply.content_property==1?'color:#DC143C':''}">商业类活动</span> | |
| 81 | - <span> </span> | |
| 82 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${shyLiveapply.content_property==0}" disabled/> | |
| 83 | - <span th:style="${shyLiveapply.content_property==0?'color:#DC143C':''}">非商业类活动</span> | |
| 84 | - </td> | |
| 85 | - </tr> | |
| 86 | - <tr align="center" valign="middle" height="100px"> | |
| 87 | - <td >内容简述</td> | |
| 88 | - <td colspan="5"> | |
| 89 | - <span style="color:#DC143C" th:text="${shyLiveapply.simple_content}">11111111111111</span> | |
| 90 | - </td> | |
| 91 | - </tr> | |
| 92 | - <tr align="center" valign="middle" height="40px"> | |
| 93 | - <td >要点报备</td> | |
| 94 | - <td colspan="5"> | |
| 95 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${#strings.contains(shyLiveapply.point_key,'0')}" disabled/> | |
| 96 | - <span th:style="${#strings.contains(shyLiveapply.point_key,'0')?'color:#DC143C':''}">品牌植入</span> | |
| 97 | - <span> </span> | |
| 98 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${#strings.contains(shyLiveapply.point_key,'1')}" disabled/> | |
| 99 | - <span th:style="${#strings.contains(shyLiveapply.point_key,'1')?'color:#DC143C':''}">广告植入</span> | |
| 100 | - <span> </span> | |
| 101 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${#strings.contains(shyLiveapply.point_key,'2')}" disabled/> | |
| 102 | - <span th:style="${#strings.contains(shyLiveapply.point_key,'2')?'color:#DC143C':''}">商品推销</span> | |
| 103 | - <span> </span> | |
| 104 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${#strings.contains(shyLiveapply.point_key,'3')}" disabled/> | |
| 105 | - <span th:style="${#strings.contains(shyLiveapply.point_key,'3')?'color:#DC143C':''}">网家家独家麦标</span> | |
| 106 | - </td> | |
| 107 | - </tr> | |
| 108 | - <tr align="center" valign="middle" height="40px"> | |
| 109 | - <td >直播地点</td> | |
| 110 | - <td colspan="5"> | |
| 111 | - <span style="color:#DC143C" th:text="${shyLiveapply.live_place}">11111111111111</span> | |
| 112 | - </td> | |
| 113 | - </tr> | |
| 114 | - <tr align="center" valign="middle" height="40px"> | |
| 115 | - <td >推流地址</td> | |
| 116 | - <td colspan="5"> | |
| 117 | - <span style="color:#DC143C" th:text="${shyLiveapply.push_url}">11111111111111</span> | |
| 118 | - </td> | |
| 119 | - </tr> | |
| 120 | - <tr align="center" valign="middle" height="40px"> | |
| 121 | - <td >拉流地址</td> | |
| 122 | - <td colspan="5"> | |
| 123 | - <span style="color:#DC143C" th:text="${shyLiveapply.pull_source}">11111111111111</span> | |
| 124 | - <span >,</span> | |
| 125 | - <span style="color:#DC143C" th:text="${shyLiveapply.pull_url}">11111111111111</span> | |
| 126 | - </td> | |
| 127 | - </tr> | |
| 128 | - <tr align="center" valign="middle" height="40px"> | |
| 129 | - <td >播出平台及通道</td> | |
| 130 | - <td colspan="5"> | |
| 131 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${#strings.contains(shyLiveapply.platforms,'0')}" disabled/> | |
| 132 | - <span th:style="${#strings.contains(shyLiveapply.platforms,'0')?'color:#DC143C':''}">网家家</span> | |
| 133 | - <span> </span> | |
| 134 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${#strings.contains(shyLiveapply.platforms,'1')}" disabled/> | |
| 135 | - <span th:style="${#strings.contains(shyLiveapply.platforms,'1')?'color:#DC143C':''}">CNlive网站</span> | |
| 136 | - <span> </span> | |
| 137 | - <input type="checkbox" style="height: 24px;width: 24px;" th:checked="${#strings.contains(shyLiveapply.platforms,'2')}" disabled/> | |
| 138 | - <span th:style="${#strings.contains(shyLiveapply.platforms,'2')?'color:#DC143C':''}">@TV互动电视</span> | |
| 139 | -<!-- <span> </span> --> | |
| 140 | -<!-- <input type="checkbox" style="height: 24px;width: 24px;" disabled/>其他平台 --> | |
| 141 | - </td> | |
| 142 | - </tr> | |
| 143 | - </table> | |
| 144 | - | |
| 28 | + <span style="font-size:30px;font-weight: bold;color:#F4A460;">中国网家家直播申请单</span> | |
| 29 | + <table border="1" style="background-color:#F5FFFA;width:80%;font-size:20px" id="table"> | |
| 30 | + <tr align="center" valign="middle" height="40px"> | |
| 31 | + <td width="25%">直播发起人</td> | |
| 32 | + <td width="30%" colspan="2"> | |
| 33 | + <span style="color:#DC143C" | |
| 34 | + th:text="${shyLiveapply.sender}">11111111111111</span> | |
| 35 | + </td> | |
| 36 | + <td width="15%">联系方式</td> | |
| 37 | + <td width="30%" colspan="2"> | |
| 38 | + <span style="color:#DC143C" | |
| 39 | + th:text="${shyLiveapply.mobile}">11111111111111</span> | |
| 40 | + </td> | |
| 41 | + </tr> | |
| 42 | + <tr align="center" valign="middle" height="40px"> | |
| 43 | + <td>直播发起单位</td> | |
| 44 | + <td colspan="5"> | |
| 45 | + <span style="color:#DC143C" th:text="${shyLiveapply.organization}">11111111111111</span> | |
| 46 | + </td> | |
| 47 | + </tr> | |
| 48 | + <tr align="center" valign="middle" height="40px"> | |
| 49 | + <td>直播主题</td> | |
| 50 | + <td colspan="5"> | |
| 51 | + <span style="color:#DC143C" | |
| 52 | + th:text="${shyLiveapply.theme}">11111111111111</span> | |
| 53 | + </td> | |
| 54 | + </tr> | |
| 55 | + <tr align="center" valign="middle" height="40px"> | |
| 56 | + <td>直播时间</td> | |
| 57 | + <td colspan="5"> | |
| 58 | + <span style="color:#DC143C" | |
| 59 | + th:text="${#dates.format(shyLiveapply.pre_start_time, 'yyyy-MM-dd HH:mm:ss')}">11111111111111</span> | |
| 60 | + <span>~</span> | |
| 61 | + <span style="color:#DC143C" | |
| 62 | + th:text="${#dates.format(shyLiveapply.pre_end_time, 'yyyy-MM-dd HH:mm:ss')}">11111111111111</span> | |
| 63 | + </td> | |
| 64 | + </tr> | |
| 65 | + <tr align="center" valign="middle" height="40px"> | |
| 66 | + <td>商务模式</td> | |
| 67 | + <td colspan="5"> | |
| 68 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 69 | + th:checked="${shyLiveapply.business_model==0}" disabled/> | |
| 70 | + <span th:style="${shyLiveapply.business_model==0?'color:#DC143C':''}">免费</span> | |
| 71 | + <span> </span> | |
| 72 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 73 | + th:checked="${shyLiveapply.business_model==1}" disabled/> | |
| 74 | + <span th:style="${shyLiveapply.business_model==1?'color:#DC143C':''}">收费</span> | |
| 75 | + </td> | |
| 76 | + </tr> | |
| 77 | + <tr align="center" valign="middle" height="40px"> | |
| 78 | + <td>直播类型</td> | |
| 79 | + <td colspan="5"> | |
| 80 | + <span style="color:#DC143C" th:text="${shyLiveapply.live_type}">11111111111111</span> | |
| 81 | + </td> | |
| 82 | + </tr> | |
| 83 | + <tr align="center" valign="middle" height="40px"> | |
| 84 | + <td>内容属性</td> | |
| 85 | + <td colspan="5"> | |
| 86 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 87 | + th:checked="${shyLiveapply.content_property==1}" disabled/> | |
| 88 | + <span th:style="${shyLiveapply.content_property==1?'color:#DC143C':''}">商业类活动</span> | |
| 89 | + <span> </span> | |
| 90 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 91 | + th:checked="${shyLiveapply.content_property==0}" disabled/> | |
| 92 | + <span th:style="${shyLiveapply.content_property==0?'color:#DC143C':''}">非商业类活动</span> | |
| 93 | + </td> | |
| 94 | + </tr> | |
| 95 | + <tr align="center" valign="middle" height="100px"> | |
| 96 | + <td>内容简述</td> | |
| 97 | + <td colspan="5"> | |
| 98 | + <span style="color:#DC143C" th:text="${shyLiveapply.simple_content}">11111111111111</span> | |
| 99 | + </td> | |
| 100 | + </tr> | |
| 101 | + <tr align="center" valign="middle" height="40px"> | |
| 102 | + <td>要点报备</td> | |
| 103 | + <td colspan="5"> | |
| 104 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 105 | + th:checked="${#strings.contains(shyLiveapply.point_key,'0')}" | |
| 106 | + disabled/> | |
| 107 | + <span th:style="${#strings.contains(shyLiveapply.point_key,'0')?'color:#DC143C':''}">品牌植入</span> | |
| 108 | + <span> </span> | |
| 109 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 110 | + th:checked="${#strings.contains(shyLiveapply.point_key,'1')}" | |
| 111 | + disabled/> | |
| 112 | + <span th:style="${#strings.contains(shyLiveapply.point_key,'1')?'color:#DC143C':''}">广告植入</span> | |
| 113 | + <span> </span> | |
| 114 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 115 | + th:checked="${#strings.contains(shyLiveapply.point_key,'2')}" | |
| 116 | + disabled/> | |
| 117 | + <span th:style="${#strings.contains(shyLiveapply.point_key,'2')?'color:#DC143C':''}">商品推销</span> | |
| 118 | + <span> </span> | |
| 119 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 120 | + th:checked="${#strings.contains(shyLiveapply.point_key,'3')}" | |
| 121 | + disabled/> | |
| 122 | + <span th:style="${#strings.contains(shyLiveapply.point_key,'3')?'color:#DC143C':''}">网家家独家麦标</span> | |
| 123 | + </td> | |
| 124 | + </tr> | |
| 125 | + <tr align="center" valign="middle" height="40px"> | |
| 126 | + <td>直播地点</td> | |
| 127 | + <td colspan="5"> | |
| 128 | + <span style="color:#DC143C" th:text="${shyLiveapply.live_place}">11111111111111</span> | |
| 129 | + </td> | |
| 130 | + </tr> | |
| 131 | + <tr align="center" valign="middle" height="40px"> | |
| 132 | + <td>推流地址</td> | |
| 133 | + <td colspan="5"> | |
| 134 | + <span style="color:#DC143C" th:text="${shyLiveapply.push_url}">11111111111111</span> | |
| 135 | + </td> | |
| 136 | + </tr> | |
| 137 | + <tr align="center" valign="middle" height="40px"> | |
| 138 | + <td>拉流地址</td> | |
| 139 | + <td colspan="5"> | |
| 140 | + <span style="color:#DC143C" th:text="${shyLiveapply.pull_source}">11111111111111</span> | |
| 141 | + <span>,</span> | |
| 142 | + <span style="color:#DC143C" th:text="${shyLiveapply.pull_url}">11111111111111</span> | |
| 143 | + </td> | |
| 144 | + </tr> | |
| 145 | + <tr align="center" valign="middle" height="40px"> | |
| 146 | + <td>播出平台及通道</td> | |
| 147 | + <td colspan="5"> | |
| 148 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 149 | + th:checked="${#strings.contains(shyLiveapply.platforms,'0')}" | |
| 150 | + disabled/> | |
| 151 | + <span th:style="${#strings.contains(shyLiveapply.platforms,'0')?'color:#DC143C':''}">网家家</span> | |
| 152 | + <span> </span> | |
| 153 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 154 | + th:checked="${#strings.contains(shyLiveapply.platforms,'1')}" | |
| 155 | + disabled/> | |
| 156 | + <span th:style="${#strings.contains(shyLiveapply.platforms,'1')?'color:#DC143C':''}">CNlive网站</span> | |
| 157 | + <span> </span> | |
| 158 | + <input type="checkbox" style="height: 24px;width: 24px;" | |
| 159 | + th:checked="${#strings.contains(shyLiveapply.platforms,'2')}" | |
| 160 | + disabled/> | |
| 161 | + <span th:style="${#strings.contains(shyLiveapply.platforms,'2')?'color:#DC143C':''}">@TV互动电视</span> | |
| 162 | + <!-- <span> </span> --> | |
| 163 | + <!-- <input type="checkbox" style="height: 24px;width: 24px;" disabled/>其他平台 --> | |
| 164 | + </td> | |
| 165 | + </tr> | |
| 166 | + </table> | |
| 167 | + | |
| 145 | 168 | <hr> |
| 146 | - <div class="form-group"> | |
| 147 | - <label for="msg" class="control-label col-sm-2">审核结果信息:</label> | |
| 148 | - <div class="col-sm-9"> | |
| 169 | + <div class="form-group"> | |
| 170 | + <label for="msg" class="control-label col-sm-2">审核结果信息:</label> | |
| 171 | + <div class="col-sm-9"> | |
| 149 | 172 | <textarea class="form-control" name="msg" cols="50" rows="4" |
| 150 | - id="msg" th:text="${shyLiveapply.shenhe_msg}">审核信息</textarea> | |
| 151 | - </div> | |
| 152 | - </div> | |
| 153 | - <div class="form-group"> | |
| 154 | - <label for="msg" class="control-label col-sm-2">邮件通知信息:</label> | |
| 155 | - <div class="col-sm-9"> | |
| 173 | + id="msg" th:text="${shyLiveapply.shenhe_msg}">审核信息</textarea> | |
| 174 | + </div> | |
| 175 | + </div> | |
| 176 | + <div class="form-group"> | |
| 177 | + <label for="msg" class="control-label col-sm-2">邮件通知信息:</label> | |
| 178 | + <div class="col-sm-9"> | |
| 156 | 179 | <textarea class="form-control" name="msg" cols="50" rows="4" |
| 157 | - id="msg" th:text="${shyLiveapply.email_notice_msg}">审核信息</textarea> | |
| 158 | - </div> | |
| 159 | - </div> | |
| 160 | - </div> | |
| 161 | - <hr> | |
| 180 | + id="msg" | |
| 181 | + th:text="${shyLiveapply.email_notice_msg}">审核信息</textarea> | |
| 182 | + </div> | |
| 183 | + </div> | |
| 184 | + </div> | |
| 185 | + <hr> | |
| 162 | 186 | <div class="form-group"> |
| 163 | 187 | <input type="text" hidden="hidden" id="shyLiveapply_id" th:value="${shyLiveapply.id}"> |
| 164 | 188 | </div> |
| ... | ... | @@ -181,38 +205,55 @@ |
| 181 | 205 | </button> |
| 182 | 206 | </div> |
| 183 | 207 | </div> |
| 184 | - | |
| 185 | - <!-- 模态框(Modal) --> | |
| 186 | - <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
| 187 | - <div class="modal-dialog"> | |
| 188 | - <div class="modal-content" style="margin-top: 30%;"> | |
| 189 | - <div class="modal-header"> | |
| 190 | - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 191 | - <h4 class="modal-title" id="myModalLabel">审核意见</h4> | |
| 192 | - </div> | |
| 193 | - <div class="modal-body"> | |
| 194 | - <div class="form-group" style="margin-bottom: 0;"> | |
| 195 | - <textarea id="reviewMsg" style="width: 100%;height: 80px;"></textarea> | |
| 196 | - </div> | |
| 197 | - <div class="form-group"> | |
| 198 | - </div> | |
| 199 | - </div> | |
| 200 | - <div class="modal-footer"> | |
| 201 | - <button type="button" class="btn btn-default" data-dismiss="modal">取消</button> | |
| 202 | - <button type="button" class="btn btn-primary" onclick="javascript:repulseSubmit();">提交</button> | |
| 203 | - </div> | |
| 204 | - </div><!-- /.modal-content --> | |
| 205 | - </div><!-- /.modal-dialog --> | |
| 206 | - </div> | |
| 207 | - <!-- /.modal --> | |
| 208 | + | |
| 209 | + <!-- 模态框(Modal) --> | |
| 210 | + <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" | |
| 211 | + aria-labelledby="myModalLabel" aria-hidden="true"> | |
| 212 | + <div class="modal-dialog"> | |
| 213 | + <div class="modal-content" style="margin-top: 30%;"> | |
| 214 | + <div class="modal-header"> | |
| 215 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> | |
| 216 | + × | |
| 217 | + </button> | |
| 218 | + <h4 class="modal-title" id="myModalLabel">审核意见</h4> | |
| 219 | + </div> | |
| 220 | + <div class="modal-body"> | |
| 221 | + <div class="form-group" style="margin-bottom: 0;"> | |
| 222 | + <textarea id="reviewMsg" style="width: 100%;height: 80px;"></textarea> | |
| 223 | + </div> | |
| 224 | + <div class="form-group"> | |
| 225 | + </div> | |
| 226 | + </div> | |
| 227 | + <div class="modal-footer"> | |
| 228 | + <button type="button" class="btn btn-default" data-dismiss="modal">取消 | |
| 229 | + </button> | |
| 230 | + <button type="button" class="btn btn-primary" | |
| 231 | + onclick="javascript:repulseSubmit();">提交 | |
| 232 | + </button> | |
| 233 | + </div> | |
| 234 | + </div><!-- /.modal-content --> | |
| 235 | + </div><!-- /.modal-dialog --> | |
| 236 | + </div> | |
| 237 | + <!-- /.modal --> | |
| 208 | 238 | <script th:inline="javascript"> |
| 239 | + | |
| 240 | + $(function () { | |
| 241 | + var url = "/liveApply/page"; | |
| 242 | + $('ul.treeview-menu>li').removeClass("active"); | |
| 243 | + $('.sidebar-menu>li').removeClass("active"); | |
| 244 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //二级链接高亮 | |
| 245 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li.treeview').addClass('active'); //一级栏目[含二级链接]高亮 | |
| 246 | + $('.sidebar-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //一级栏目[不含二级链接]高亮 | |
| 247 | + }) | |
| 248 | + | |
| 249 | + | |
| 209 | 250 | var liveId = [[${shyLiveapply.id}]]; |
| 210 | 251 | |
| 211 | 252 | //审核操作,status=1为通过 |
| 212 | 253 | function live(status) { |
| 213 | 254 | if (status == 1) { |
| 214 | - var msg ="直播申请审核通过"; | |
| 215 | - $.post("/liveApply/shenheLiveApply?ids=" + liveId + "&msg=" + msg+"&state="+1, function (data) { | |
| 255 | + var msg = "直播申请审核通过"; | |
| 256 | + $.post("/liveApply/shenheLiveApply?ids=" + liveId + "&msg=" + msg + "&state=" + 1, function (data) { | |
| 216 | 257 | if (data.errorCode == 0) { |
| 217 | 258 | //location.href = history.back(); |
| 218 | 259 | alert(data.errorMessage); |
| ... | ... | @@ -222,20 +263,21 @@ |
| 222 | 263 | } |
| 223 | 264 | }) |
| 224 | 265 | } else { |
| 225 | - var r = confirm("您确定拒绝本条内容吗?"); | |
| 266 | + var r = confirm("您确定拒绝本条内容吗?"); | |
| 226 | 267 | if (r == true) { |
| 227 | 268 | $('#msgModal').modal('show'); |
| 228 | 269 | } |
| 229 | 270 | } |
| 230 | 271 | } |
| 231 | - //提交拒绝 | |
| 272 | + | |
| 273 | + //提交拒绝 | |
| 232 | 274 | function repulseSubmit() { |
| 233 | 275 | var msg = $("#reviewMsg").val(); |
| 234 | - if ( msg == '') { | |
| 276 | + if (msg == '') { | |
| 235 | 277 | alert('请输入审核意见!'); |
| 236 | 278 | return false; |
| 237 | 279 | } |
| 238 | - $.post("/liveApply/shenheLiveApply?ids=" + liveId + "&msg=" + msg+"&state="+2, function (data) { | |
| 280 | + $.post("/liveApply/shenheLiveApply?ids=" + liveId + "&msg=" + msg + "&state=" + 2, function (data) { | |
| 239 | 281 | if (data.errorCode == 0) { |
| 240 | 282 | alert(data.errorMessage); |
| 241 | 283 | self.location = document.referrer; | ... | ... |
src/main/resources/templates/page/liveDetail.html
| ... | ... | @@ -252,7 +252,7 @@ |
| 252 | 252 | </button> |
| 253 | 253 | </div> |
| 254 | 254 | |
| 255 | - <div class="col-sm-6"> | |
| 255 | + <div class="col-sm-1"> | |
| 256 | 256 | <button type="button" class="btn btn-info pull-right" |
| 257 | 257 | onclick="self.location=document.referrer;">返回列表 |
| 258 | 258 | </button> |
| ... | ... | @@ -260,11 +260,14 @@ |
| 260 | 260 | </div> |
| 261 | 261 | |
| 262 | 262 | <!-- 模态框(Modal) --> |
| 263 | - <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
| 263 | + <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" | |
| 264 | + aria-labelledby="myModalLabel" aria-hidden="true"> | |
| 264 | 265 | <div class="modal-dialog"> |
| 265 | 266 | <div class="modal-content" style="margin-top: 30%;"> |
| 266 | 267 | <div class="modal-header"> |
| 267 | - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 268 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> | |
| 269 | + × | |
| 270 | + </button> | |
| 268 | 271 | <h4 class="modal-title" id="myModalLabel">审核意见</h4> |
| 269 | 272 | </div> |
| 270 | 273 | <div class="modal-body"> |
| ... | ... | @@ -275,14 +278,27 @@ |
| 275 | 278 | </div> |
| 276 | 279 | </div> |
| 277 | 280 | <div class="modal-footer"> |
| 278 | - <button type="button" class="btn btn-default" data-dismiss="modal">取消</button> | |
| 279 | - <button type="button" class="btn btn-primary" onclick="javascript:repulseSubmit();">提交</button> | |
| 281 | + <button type="button" class="btn btn-default" data-dismiss="modal">取消 | |
| 282 | + </button> | |
| 283 | + <button type="button" class="btn btn-primary" | |
| 284 | + onclick="javascript:repulseSubmit();">提交 | |
| 285 | + </button> | |
| 280 | 286 | </div> |
| 281 | 287 | </div><!-- /.modal-content --> |
| 282 | 288 | </div><!-- /.modal-dialog --> |
| 283 | 289 | </div> |
| 284 | 290 | |
| 285 | 291 | <script th:inline="javascript"> |
| 292 | + | |
| 293 | + $(function () { | |
| 294 | + var url = "/live/page"; | |
| 295 | + $('ul.treeview-menu>li').removeClass("active"); | |
| 296 | + $('.sidebar-menu>li').removeClass("active"); | |
| 297 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //二级链接高亮 | |
| 298 | + $('ul.treeview-menu>li').find('a[id="' + url + '"]').closest('li.treeview').addClass('active'); //一级栏目[含二级链接]高亮 | |
| 299 | + $('.sidebar-menu>li').find('a[id="' + url + '"]').closest('li').addClass('active'); //一级栏目[不含二级链接]高亮 | |
| 300 | + }) | |
| 301 | + | |
| 286 | 302 | var liveId = [[${live.id}]]; |
| 287 | 303 | |
| 288 | 304 | //审核操作,status=1为通过 |
| ... | ... | @@ -296,7 +312,7 @@ |
| 296 | 312 | alert(data.errorMessage); |
| 297 | 313 | } |
| 298 | 314 | }) |
| 299 | - } else if(status == 4){ | |
| 315 | + } else if (status == 4) { | |
| 300 | 316 | $.post("/live/repulse?ids=" + liveId + "&status=" + status, function (data) { |
| 301 | 317 | var r = confirm("您确定拒绝本条内容吗?"); |
| 302 | 318 | if (r == true) { |
| ... | ... | @@ -316,7 +332,7 @@ |
| 316 | 332 | //提交拒绝 |
| 317 | 333 | function repulseSubmit() { |
| 318 | 334 | var msg = $("#reviewMsg").val(); |
| 319 | - if ( msg == '') { | |
| 335 | + if (msg == '') { | |
| 320 | 336 | alert('请输入审核意见!'); |
| 321 | 337 | return false; |
| 322 | 338 | } | ... | ... |
src/main/resources/templates/page/notspeak.html
| ... | ... | @@ -3,65 +3,72 @@ |
| 3 | 3 | |
| 4 | 4 | <head th:replace="../templates/common/head::head"></head> |
| 5 | 5 | <style type="text/css"> |
| 6 | - .fixed-table-toolbar .bs-bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search{margin-top: 0px;} | |
| 7 | - .table{margin-bottom:0;} | |
| 8 | - | |
| 9 | - | |
| 10 | - .switch { | |
| 11 | - position: relative; | |
| 12 | - display: inline-block; | |
| 13 | - width: 60px; | |
| 14 | - height: 34px; | |
| 15 | -} | |
| 16 | - | |
| 17 | -.switch input {display:none;} | |
| 18 | - | |
| 19 | -.slider { | |
| 20 | - position: absolute; | |
| 21 | - cursor: pointer; | |
| 22 | - top: 0; | |
| 23 | - left: 0; | |
| 24 | - right: 0; | |
| 25 | - bottom: 0; | |
| 26 | - background-color: red; | |
| 27 | - -webkit-transition: .4s; | |
| 28 | - transition: .4s; | |
| 29 | -} | |
| 30 | - | |
| 31 | -.slider:before { | |
| 32 | - position: absolute; | |
| 33 | - content: ""; | |
| 34 | - height: 26px; | |
| 35 | - width: 26px; | |
| 36 | - left: 4px; | |
| 37 | - bottom: 4px; | |
| 38 | - background-color: white; | |
| 39 | - -webkit-transition: .4s; | |
| 40 | - transition: .4s; | |
| 41 | -} | |
| 42 | - | |
| 43 | -input:checked + .slider { | |
| 44 | - background-color: #2196F3; | |
| 45 | -} | |
| 46 | - | |
| 47 | -input:focus + .slider { | |
| 48 | - box-shadow: 0 0 1px #2196F3; | |
| 49 | -} | |
| 50 | - | |
| 51 | -input:checked + .slider:before { | |
| 52 | - -webkit-transform: translateX(26px); | |
| 53 | - -ms-transform: translateX(26px); | |
| 54 | - transform: translateX(26px); | |
| 55 | -} | |
| 56 | - | |
| 57 | -/* Rounded sliders */ | |
| 58 | -.slider.round { | |
| 59 | - border-radius: 34px; | |
| 60 | -} | |
| 61 | - | |
| 62 | -.slider.round:before { | |
| 63 | - border-radius: 50%; | |
| 64 | -} | |
| 6 | + .fixed-table-toolbar .bs-bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search { | |
| 7 | + margin-top: 0px; | |
| 8 | + } | |
| 9 | + | |
| 10 | + .table { | |
| 11 | + margin-bottom: 0; | |
| 12 | + } | |
| 13 | + | |
| 14 | + | |
| 15 | + .switch { | |
| 16 | + position: relative; | |
| 17 | + display: inline-block; | |
| 18 | + width: 60px; | |
| 19 | + height: 34px; | |
| 20 | + } | |
| 21 | + | |
| 22 | + .switch input { | |
| 23 | + display: none; | |
| 24 | + } | |
| 25 | + | |
| 26 | + .slider { | |
| 27 | + position: absolute; | |
| 28 | + cursor: pointer; | |
| 29 | + top: 0; | |
| 30 | + left: 0; | |
| 31 | + right: 0; | |
| 32 | + bottom: 0; | |
| 33 | + background-color: red; | |
| 34 | + -webkit-transition: .4s; | |
| 35 | + transition: .4s; | |
| 36 | + } | |
| 37 | + | |
| 38 | + .slider:before { | |
| 39 | + position: absolute; | |
| 40 | + content: ""; | |
| 41 | + height: 26px; | |
| 42 | + width: 26px; | |
| 43 | + left: 4px; | |
| 44 | + bottom: 4px; | |
| 45 | + background-color: white; | |
| 46 | + -webkit-transition: .4s; | |
| 47 | + transition: .4s; | |
| 48 | + } | |
| 49 | + | |
| 50 | + input:checked + .slider { | |
| 51 | + background-color: #2196F3; | |
| 52 | + } | |
| 53 | + | |
| 54 | + input:focus + .slider { | |
| 55 | + box-shadow: 0 0 1px #2196F3; | |
| 56 | + } | |
| 57 | + | |
| 58 | + input:checked + .slider:before { | |
| 59 | + -webkit-transform: translateX(26px); | |
| 60 | + -ms-transform: translateX(26px); | |
| 61 | + transform: translateX(26px); | |
| 62 | + } | |
| 63 | + | |
| 64 | + /* Rounded sliders */ | |
| 65 | + .slider.round { | |
| 66 | + border-radius: 34px; | |
| 67 | + } | |
| 68 | + | |
| 69 | + .slider.round:before { | |
| 70 | + border-radius: 50%; | |
| 71 | + } | |
| 65 | 72 | |
| 66 | 73 | </style> |
| 67 | 74 | <body class="skin-blue sidebar-mini"> |
| ... | ... | @@ -73,7 +80,7 @@ input:checked + .slider:before { |
| 73 | 80 | <div class="content-wrapper" style="min-height: 788px;"> |
| 74 | 81 | <section class="content-header"> |
| 75 | 82 | <h1> |
| 76 | - 禁言管理 | |
| 83 | + 禁言管理 | |
| 77 | 84 | </h1> |
| 78 | 85 | <ol class="breadcrumb"> |
| 79 | 86 | <li>首页</li> |
| ... | ... | @@ -95,16 +102,16 @@ input:checked + .slider:before { |
| 95 | 102 | </button> |
| 96 | 103 | <button type="button" id="jinyan" |
| 97 | 104 | class="btn btn-sm margin-r-5 action_bottom" |
| 98 | - >禁言中 | |
| 105 | + >禁言中 | |
| 99 | 106 | </button> |
| 100 | 107 | <button type="button" id="jiejin" |
| 101 | 108 | class="btn btn-sm margin-r-5 action_bottom" |
| 102 | - >已解禁 | |
| 109 | + >已解禁 | |
| 103 | 110 | </button> |
| 104 | -<!-- <button type="button" id="yishen" --> | |
| 105 | -<!-- class="btn btn-sm margin-r-5 action_bottom" --> | |
| 106 | -<!-- >我的已审 --> | |
| 107 | -<!-- </button> --> | |
| 111 | + <!-- <button type="button" id="yishen" --> | |
| 112 | + <!-- class="btn btn-sm margin-r-5 action_bottom" --> | |
| 113 | + <!-- >我的已审 --> | |
| 114 | + <!-- </button> --> | |
| 108 | 115 | </div> |
| 109 | 116 | <button type="button" class="btn btn-primary btn-sm margin-r-5" id="query" |
| 110 | 117 | onclick="openOrClose('forms')"> |
| ... | ... | @@ -121,25 +128,25 @@ input:checked + .slider:before { |
| 121 | 128 | <label for="user_id" class="control-label cb-toolbar">用户id:</label> |
| 122 | 129 | <div class="col-sm-8" style="padding: 0;"> |
| 123 | 130 | <input class="form-control" name="user_id" type="text" |
| 124 | - id="user_id" > | |
| 131 | + id="user_id"> | |
| 125 | 132 | </div> |
| 126 | 133 | </div> |
| 127 | 134 | <div class="col-md-5" style="padding: 0"> |
| 128 | 135 | <label for="user_name" class="control-label cb-toolbar">用户昵称:</label> |
| 129 | 136 | <div class="col-sm-8" style="padding: 0;"> |
| 130 | - <input class="form-control" name="user_name" type="text" id="user_name" > | |
| 137 | + <input class="form-control" name="user_name" type="text" id="user_name"> | |
| 131 | 138 | </div> |
| 132 | 139 | </div> |
| 133 | -<!-- <div class="col-md-3" style="padding: 0"> --> | |
| 134 | -<!-- <label for="state" class="control-label cb-toolbar">状态:</label> --> | |
| 135 | -<!-- <div class="col-sm-6" style="padding: 0;"> --> | |
| 136 | -<!-- <select class="form-control col-sm-2" id="state" name="state"> --> | |
| 137 | -<!-- <option value="">全部</option> --> | |
| 138 | -<!-- <option value="0" >已解禁</option> --> | |
| 139 | -<!-- <option value="1" >禁言中</option> --> | |
| 140 | -<!-- </select> --> | |
| 141 | -<!-- </div> --> | |
| 142 | -<!-- </div> --> | |
| 140 | + <!-- <div class="col-md-3" style="padding: 0"> --> | |
| 141 | + <!-- <label for="state" class="control-label cb-toolbar">状态:</label> --> | |
| 142 | + <!-- <div class="col-sm-6" style="padding: 0;"> --> | |
| 143 | + <!-- <select class="form-control col-sm-2" id="state" name="state"> --> | |
| 144 | + <!-- <option value="">全部</option> --> | |
| 145 | + <!-- <option value="0" >已解禁</option> --> | |
| 146 | + <!-- <option value="1" >禁言中</option> --> | |
| 147 | + <!-- </select> --> | |
| 148 | + <!-- </div> --> | |
| 149 | + <!-- </div> --> | |
| 143 | 150 | |
| 144 | 151 | </div> |
| 145 | 152 | |
| ... | ... | @@ -148,342 +155,396 @@ input:checked + .slider:before { |
| 148 | 155 | </div> |
| 149 | 156 | |
| 150 | 157 | |
| 151 | - <div class="fixed-table-container" style="padding-bottom: 0px;"> | |
| 152 | - <div class="fixed-table-body"> | |
| 153 | - <table data-toggle="table" data-pagination="true" data-search="false" data-show-refresh="true" | |
| 154 | - data-show-toggle="true" data-show-columns="true" data-toolbar="#toolbar" class="table table-hover"> | |
| 155 | - <thead> | |
| 156 | - <tr> | |
| 157 | - <th style="text-align: center; width: 3%;" data-field="sp_id" tabindex="0"> | |
| 158 | - <div class="th-inner ">用户ID</div> | |
| 159 | - <div class="fht-cell"></div> | |
| 160 | - </th> | |
| 161 | - <th style="text-align: center; width: 10%;" data-field="sp_id_brief" tabindex="0"> | |
| 162 | - <div class="th-inner ">用户昵称</div> | |
| 163 | - <div class="fht-cell"></div> | |
| 164 | - </th> | |
| 165 | - <th style="text-align: center; width: 5%;" data-field="type" tabindex="0"> | |
| 166 | - <div class="th-inner ">用户头像</div> | |
| 167 | - <div class="fht-cell"></div> | |
| 168 | - </th> | |
| 169 | - <th style="text-align: center; width: 3%;" data-field="type" tabindex="0"> | |
| 170 | - <div class="th-inner ">使用平台</div> | |
| 171 | - <div class="fht-cell"></div> | |
| 172 | - </th> | |
| 173 | - <th style="text-align: center; width: 3%;" data-field="type" tabindex="0"> | |
| 174 | - <div class="th-inner ">禁言状态</div> | |
| 175 | - <div class="fht-cell"></div> | |
| 176 | - </th> | |
| 177 | - <th style="text-align: center; width: 3%;" data-field="type" tabindex="0"> | |
| 178 | - <div class="th-inner ">禁言次数</div> | |
| 179 | - <div class="fht-cell"></div> | |
| 180 | - </th> | |
| 181 | - <th style="text-align: center; width: 3%;" data-field="type" tabindex="0"> | |
| 182 | - <div class="th-inner ">修改人</div> | |
| 183 | - <div class="fht-cell"></div> | |
| 184 | - </th> | |
| 185 | - <th style="text-align: center; width: 10%;" data-field="upload_time" tabindex="0"> | |
| 186 | - <div class="th-inner ">禁言开始时间</div> | |
| 187 | - <div class="fht-cell"></div> | |
| 188 | - </th> | |
| 189 | - <th style="text-align: center; width: 10%;" data-field="updated_at" tabindex="0"> | |
| 190 | - <div class="th-inner ">禁言结束时间</div> | |
| 191 | - <div class="fht-cell"></div> | |
| 192 | - </th> | |
| 193 | - <th style="text-align: center; width: 30%;" data-field="msg" tabindex="0"> | |
| 194 | - <div class="th-inner ">禁言消息</div> | |
| 195 | - <div class="fht-cell"></div> | |
| 196 | - </th> | |
| 197 | -<!-- <th style="text-align: center; width: 10%;" data-field="action" tabindex="0"> --> | |
| 198 | -<!-- <div class="th-inner ">操作</div> --> | |
| 199 | -<!-- <div class="fht-cell"></div> --> | |
| 200 | -<!-- </th> --> | |
| 201 | - </tr> | |
| 202 | - </thead> | |
| 203 | - <tbody> | |
| 204 | - <tr th:data-index="${notspeakStat.index}" th:each="notspeak : ${notspeakPage.list}"> | |
| 205 | - <td style="text-align: center; width: 5%;" th:text="${notspeak.user_id}">82</td> | |
| 206 | - <td style="text-align: center; width: 6%;" th:text="${notspeak.user_name}">视讯中国</td> | |
| 207 | - <td style="text-align: center; width: 6%;" > | |
| 208 | - <div style="width:60px;height:60px;"><img | |
| 209 | - th:src="@{${notspeak.user_avatar}}" width="60px" | |
| 210 | - alt="用户头像"></div> | |
| 211 | - </td> | |
| 212 | - <td style="text-align: center; width: 6%;" th:text="${notspeak.spid_desc}"></td> | |
| 213 | - <td style="text-align: center; width: 6%;" th:if="${notspeak.state==0}"> | |
| 214 | - <label class="switch"><input type="checkbox" checked th:id="'id'+${notspeak.id}" th:user_name="${notspeak.user_name}" th:spid_desc="${notspeak.spid_desc}"><span class="slider round" th:id="${notspeak.id}"></span></label> | |
| 215 | - </td> | |
| 216 | - <td style="text-align: center; width: 6%;" th:if="${notspeak.state==1}"> | |
| 217 | - <label class="switch"><input type="checkbox" th:id="'id'+${notspeak.id}" th:user_name="${notspeak.user_name}" th:spid_desc="${notspeak.spid_desc}"><span class="slider round" th:id="${notspeak.id}"></span></label> | |
| 218 | - </td> | |
| 219 | - <td style="text-align: center; width: 6%;" th:text="${notspeak.count}"></td> | |
| 220 | - <td style="text-align: center; width: 6%;" th:text="${notspeak.updater}"></td> | |
| 221 | - <td style="text-align: center; width: 10%;" th:text="${#dates.format(notspeak.start_time, 'yyyy-MM-dd HH:mm:ss')}">2018-11-22 | |
| 222 | - 23:08:48</td> | |
| 223 | - <td style="text-align: center; width: 10%;" th:text="${#dates.format(notspeak.end_time, 'yyyy-MM-dd HH:mm:ss')}">2016-08-03 | |
| 224 | - 14:27:17</td> | |
| 225 | - <td style="text-align: center; width: 25%;" > | |
| 226 | -<!-- <span th:text="${notspeak.msg}"></span> --> | |
| 227 | - <textarea class="form-control" name="msg" cols="50" rows="3" | |
| 228 | - id="msg" th:text="${notspeak.msg}">禁言信息</textarea> | |
| 229 | - </td> | |
| 230 | -<!-- <td style="text-align: center; width: 10%;"> --> | |
| 231 | -<!-- <span> </span> --> | |
| 232 | -<!-- <a class="edit" th:href="'javascript:edit('+${notspeak.id}+',\''+${notspeak.user_name}+'\',\''+${notspeak.time}+'\',\''+${notspeak.time} +'\')'"> --> | |
| 233 | -<!-- <button class="btn btn-danger btn-xs">禁言</button> --> | |
| 234 | -<!-- </a><span> </span><span> </span> --> | |
| 235 | -<!-- <span> </span> --> | |
| 236 | -<!-- <a class="delete" th:href="'javascript:deleted('+${notspeak.id}+')'"> --> | |
| 237 | -<!-- <button class="btn btn-primary btn-xs">解除</button> --> | |
| 238 | -<!-- </a><span> </span><span> </span></td> --> | |
| 239 | - </tr> | |
| 240 | - | |
| 241 | - </tbody> | |
| 242 | - </table> | |
| 243 | - </div> | |
| 244 | - | |
| 245 | - <div class="fixed-table-pagination" style="display: block;"> | |
| 246 | - <div class="pull-left pagination-detail"> | |
| 158 | + <div class="fixed-table-container" style="padding-bottom: 0px;"> | |
| 159 | + <div class="fixed-table-body"> | |
| 160 | + <table data-toggle="table" data-pagination="true" data-search="false" | |
| 161 | + data-show-refresh="true" | |
| 162 | + data-show-toggle="true" data-show-columns="true" data-toolbar="#toolbar" | |
| 163 | + class="table table-hover"> | |
| 164 | + <thead> | |
| 165 | + <tr> | |
| 166 | + <th style="text-align: center; width: 3%;" data-field="sp_id" tabindex="0"> | |
| 167 | + <div class="th-inner ">用户ID</div> | |
| 168 | + <div class="fht-cell"></div> | |
| 169 | + </th> | |
| 170 | + <th style="text-align: center; width: 10%;" data-field="sp_id_brief" | |
| 171 | + tabindex="0"> | |
| 172 | + <div class="th-inner ">用户昵称</div> | |
| 173 | + <div class="fht-cell"></div> | |
| 174 | + </th> | |
| 175 | + <th style="text-align: center; width: 5%;" data-field="type" tabindex="0"> | |
| 176 | + <div class="th-inner ">用户头像</div> | |
| 177 | + <div class="fht-cell"></div> | |
| 178 | + </th> | |
| 179 | + <th style="text-align: center; width: 3%;" data-field="type" tabindex="0"> | |
| 180 | + <div class="th-inner ">使用平台</div> | |
| 181 | + <div class="fht-cell"></div> | |
| 182 | + </th> | |
| 183 | + <th style="text-align: center; width: 3%;" data-field="type" tabindex="0"> | |
| 184 | + <div class="th-inner ">禁言状态</div> | |
| 185 | + <div class="fht-cell"></div> | |
| 186 | + </th> | |
| 187 | + <th style="text-align: center; width: 3%;" data-field="type" tabindex="0"> | |
| 188 | + <div class="th-inner ">禁言次数</div> | |
| 189 | + <div class="fht-cell"></div> | |
| 190 | + </th> | |
| 191 | + <th style="text-align: center; width: 3%;" data-field="type" tabindex="0"> | |
| 192 | + <div class="th-inner ">修改人</div> | |
| 193 | + <div class="fht-cell"></div> | |
| 194 | + </th> | |
| 195 | + <th style="text-align: center; width: 10%;" data-field="upload_time" | |
| 196 | + tabindex="0"> | |
| 197 | + <div class="th-inner ">禁言开始时间</div> | |
| 198 | + <div class="fht-cell"></div> | |
| 199 | + </th> | |
| 200 | + <th style="text-align: center; width: 10%;" data-field="updated_at" | |
| 201 | + tabindex="0"> | |
| 202 | + <div class="th-inner ">禁言结束时间</div> | |
| 203 | + <div class="fht-cell"></div> | |
| 204 | + </th> | |
| 205 | + <th style="text-align: center; width: 30%;" data-field="msg" tabindex="0"> | |
| 206 | + <div class="th-inner ">禁言消息</div> | |
| 207 | + <div class="fht-cell"></div> | |
| 208 | + </th> | |
| 209 | + <!-- <th style="text-align: center; width: 10%;" data-field="action" tabindex="0"> --> | |
| 210 | + <!-- <div class="th-inner ">操作</div> --> | |
| 211 | + <!-- <div class="fht-cell"></div> --> | |
| 212 | + <!-- </th> --> | |
| 213 | + </tr> | |
| 214 | + </thead> | |
| 215 | + <tbody> | |
| 216 | + <tr th:data-index="${notspeakStat.index}" | |
| 217 | + th:each="notspeak : ${notspeakPage.list}"> | |
| 218 | + <td style="text-align: center; width: 5%;" th:text="${notspeak.user_id}"> | |
| 219 | + 82 | |
| 220 | + </td> | |
| 221 | + <td style="text-align: center; width: 6%;" th:text="${notspeak.user_name}"> | |
| 222 | + 视讯中国 | |
| 223 | + </td> | |
| 224 | + <td style="text-align: center; width: 6%;"> | |
| 225 | + <div style="width:60px;height:60px;"><img | |
| 226 | + th:src="@{${notspeak.user_avatar}}" width="60px" | |
| 227 | + alt="用户头像"></div> | |
| 228 | + </td> | |
| 229 | + <td style="text-align: center; width: 6%;" | |
| 230 | + th:text="${notspeak.spid_desc}"></td> | |
| 231 | + <td style="text-align: center; width: 6%;" th:if="${notspeak.state==0}"> | |
| 232 | + <label class="switch"><input type="checkbox" checked | |
| 233 | + th:id="'id'+${notspeak.id}" | |
| 234 | + th:user_name="${notspeak.user_name}" | |
| 235 | + th:spid_desc="${notspeak.spid_desc}"><span | |
| 236 | + class="slider round" th:id="${notspeak.id}"></span></label> | |
| 237 | + </td> | |
| 238 | + <td style="text-align: center; width: 6%;" th:if="${notspeak.state==1}"> | |
| 239 | + <label class="switch"><input type="checkbox" th:id="'id'+${notspeak.id}" | |
| 240 | + th:user_name="${notspeak.user_name}" | |
| 241 | + th:spid_desc="${notspeak.spid_desc}"><span | |
| 242 | + class="slider round" th:id="${notspeak.id}"></span></label> | |
| 243 | + </td> | |
| 244 | + <td style="text-align: center; width: 6%;" th:text="${notspeak.count}"></td> | |
| 245 | + <td style="text-align: center; width: 6%;" | |
| 246 | + th:text="${notspeak.updater}"></td> | |
| 247 | + <td style="text-align: center; width: 10%;" | |
| 248 | + th:text="${#dates.format(notspeak.start_time, 'yyyy-MM-dd HH:mm:ss')}"> | |
| 249 | + 2018-11-22 | |
| 250 | + 23:08:48 | |
| 251 | + </td> | |
| 252 | + <td style="text-align: center; width: 10%;" | |
| 253 | + th:text="${#dates.format(notspeak.end_time, 'yyyy-MM-dd HH:mm:ss')}"> | |
| 254 | + 2016-08-03 | |
| 255 | + 14:27:17 | |
| 256 | + </td> | |
| 257 | + <td style="text-align: center; width: 25%;"> | |
| 258 | + <!-- <span th:text="${notspeak.msg}"></span> --> | |
| 259 | + <textarea class="form-control" name="msg" cols="50" rows="3" | |
| 260 | + id="msg" th:text="${notspeak.msg}">禁言信息</textarea> | |
| 261 | + </td> | |
| 262 | + <!-- <td style="text-align: center; width: 10%;"> --> | |
| 263 | + <!-- <span> </span> --> | |
| 264 | + <!-- <a class="edit" th:href="'javascript:edit('+${notspeak.id}+',\''+${notspeak.user_name}+'\',\''+${notspeak.time}+'\',\''+${notspeak.time} +'\')'"> --> | |
| 265 | + <!-- <button class="btn btn-danger btn-xs">禁言</button> --> | |
| 266 | + <!-- </a><span> </span><span> </span> --> | |
| 267 | + <!-- <span> </span> --> | |
| 268 | + <!-- <a class="delete" th:href="'javascript:deleted('+${notspeak.id}+')'"> --> | |
| 269 | + <!-- <button class="btn btn-primary btn-xs">解除</button> --> | |
| 270 | + <!-- </a><span> </span><span> </span></td> --> | |
| 271 | + </tr> | |
| 272 | + | |
| 273 | + </tbody> | |
| 274 | + </table> | |
| 275 | + </div> | |
| 276 | + | |
| 277 | + <div class="fixed-table-pagination" style="display: block;"> | |
| 278 | + <div class="pull-left pagination-detail"> | |
| 247 | 279 | <span class="pagination-info" |
| 248 | - th:text="'共 '+${notspeakPage.total}+' 条记录,每页显示'">共 0 条记录</span> | |
| 249 | - <select class="" id="pageSize" name="pageSize" | |
| 250 | - onchange="selectPageSize()"> | |
| 251 | - <option value="10" th:selected="${pageSize==10}">10</option> | |
| 252 | - <option value="20" th:selected="${pageSize==20}">20</option> | |
| 253 | - <option value="50" th:selected="${pageSize==50}">50</option> | |
| 254 | - <option value="100" th:selected="${pageSize==100}">100</option> | |
| 255 | - </select> <span class="pagination-info">条记录</span> | |
| 256 | - </div> | |
| 257 | - <div class="pull-right pagination"> | |
| 258 | - <ul class="pagination" th:if="${notspeakPage.pages>1}"> | |
| 259 | - <li class="page-pre"><a | |
| 260 | - th:href="'javascript:fanye(1);'">‹‹</a></li> | |
| 261 | - <li class="page-pre" th:if="${!notspeakPage.isFirstPage}"><a | |
| 262 | - th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-1}+'\');'">‹</a> | |
| 263 | - </li> | |
| 264 | - | |
| 265 | - <li class="page-number" th:if="${notspeakPage.pageNum-3>=1}"><a | |
| 266 | - th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-3}+'\');'" | |
| 267 | - th:text="${notspeakPage.pageNum-3}">2</a></li> | |
| 268 | - <li class="page-number" th:if="${notspeakPage.pageNum-2>=1}"><a | |
| 269 | - th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-2}+'\');'" | |
| 270 | - th:text="${notspeakPage.pageNum-2}">2</a></li> | |
| 271 | - <li class="page-number" th:if="${notspeakPage.pageNum-1>=1}"><a | |
| 272 | - th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-1}+'\');'" | |
| 273 | - th:text="${notspeakPage.pageNum-1}">2</a></li> | |
| 274 | - <li class="page-number active"><a | |
| 275 | - href="javaScript:void(0);" th:text="${notspeakPage.pageNum}">2</a></li> | |
| 276 | - <li class="page-number" | |
| 277 | - th:if="${notspeakPage.pageNum+1<=notspeakPage.pages}"><a | |
| 278 | - th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+1}+'\');'" | |
| 279 | - th:text="${notspeakPage.pageNum+1}">2</a></li> | |
| 280 | - <li class="page-number" | |
| 281 | - th:if="${notspeakPage.pageNum+2<=notspeakPage.pages}"><a | |
| 282 | - th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+2}+'\');'" | |
| 283 | - th:text="${notspeakPage.pageNum+2}">2</a></li> | |
| 284 | - <li class="page-number" | |
| 285 | - th:if="${notspeakPage.pageNum+3<=notspeakPage.pages}"><a | |
| 286 | - th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+3}+'\');'" | |
| 287 | - th:text="${notspeakPage.pageNum+3}">2</a></li> | |
| 288 | - | |
| 289 | - <li class="page-next" th:if="${!notspeakPage.isLastPage}"><a | |
| 290 | - th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+1}+'\');'">›</a> | |
| 291 | - </li> | |
| 292 | - <li class="page-next"><a | |
| 293 | - th:onclick="'javascript:fanye(\''+${notspeakPage.pages}+'\');'">››</a> | |
| 294 | - </li> | |
| 295 | - </ul> | |
| 296 | - </div> | |
| 297 | - </div> | |
| 298 | - </div> | |
| 299 | - </div> | |
| 300 | - <div class="clearfix"></div> | |
| 301 | - </div> | |
| 302 | - </div> | |
| 280 | + th:text="'共 '+${notspeakPage.total}+' 条记录,每页显示'">共 0 条记录</span> | |
| 281 | + <select class="" id="pageSize" name="pageSize" | |
| 282 | + onchange="selectPageSize()"> | |
| 283 | + <option value="10" th:selected="${pageSize==10}">10</option> | |
| 284 | + <option value="20" th:selected="${pageSize==20}">20</option> | |
| 285 | + <option value="50" th:selected="${pageSize==50}">50</option> | |
| 286 | + <option value="100" th:selected="${pageSize==100}">100</option> | |
| 287 | + </select> <span class="pagination-info">条记录</span> | |
| 288 | + </div> | |
| 289 | + <div class="pull-right pagination"> | |
| 290 | + <ul class="pagination" th:if="${notspeakPage.pages>1}"> | |
| 291 | + <li class="page-pre"><a | |
| 292 | + th:href="'javascript:fanye(1);'">‹‹</a></li> | |
| 293 | + <li class="page-pre" th:if="${!notspeakPage.isFirstPage}"><a | |
| 294 | + th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-1}+'\');'">‹</a> | |
| 295 | + </li> | |
| 296 | + | |
| 297 | + <li class="page-number" th:if="${notspeakPage.pageNum-3>=1}"><a | |
| 298 | + th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-3}+'\');'" | |
| 299 | + th:text="${notspeakPage.pageNum-3}">2</a></li> | |
| 300 | + <li class="page-number" th:if="${notspeakPage.pageNum-2>=1}"><a | |
| 301 | + th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-2}+'\');'" | |
| 302 | + th:text="${notspeakPage.pageNum-2}">2</a></li> | |
| 303 | + <li class="page-number" th:if="${notspeakPage.pageNum-1>=1}"><a | |
| 304 | + th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum-1}+'\');'" | |
| 305 | + th:text="${notspeakPage.pageNum-1}">2</a></li> | |
| 306 | + <li class="page-number active"><a | |
| 307 | + href="javaScript:void(0);" th:text="${notspeakPage.pageNum}">2</a> | |
| 308 | + </li> | |
| 309 | + <li class="page-number" | |
| 310 | + th:if="${notspeakPage.pageNum+1<=notspeakPage.pages}"><a | |
| 311 | + th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+1}+'\');'" | |
| 312 | + th:text="${notspeakPage.pageNum+1}">2</a></li> | |
| 313 | + <li class="page-number" | |
| 314 | + th:if="${notspeakPage.pageNum+2<=notspeakPage.pages}"><a | |
| 315 | + th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+2}+'\');'" | |
| 316 | + th:text="${notspeakPage.pageNum+2}">2</a></li> | |
| 317 | + <li class="page-number" | |
| 318 | + th:if="${notspeakPage.pageNum+3<=notspeakPage.pages}"><a | |
| 319 | + th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+3}+'\');'" | |
| 320 | + th:text="${notspeakPage.pageNum+3}">2</a></li> | |
| 321 | + | |
| 322 | + <li class="page-next" th:if="${!notspeakPage.isLastPage}"><a | |
| 323 | + th:onclick="'javascript:fanye(\''+${notspeakPage.pageNum+1}+'\');'">›</a> | |
| 324 | + </li> | |
| 325 | + <li class="page-next"><a | |
| 326 | + th:onclick="'javascript:fanye(\''+${notspeakPage.pages}+'\');'">››</a> | |
| 327 | + </li> | |
| 328 | + </ul> | |
| 329 | + </div> | |
| 330 | + </div> | |
| 331 | + </div> | |
| 332 | + </div> | |
| 333 | + <div class="clearfix"></div> | |
| 334 | + </div> | |
| 303 | 335 | </div> |
| 336 | + </div> | |
| 304 | 337 | </section> |
| 305 | 338 | </div> |
| 306 | 339 | |
| 307 | -<!-- 模态框(Modal) --> | |
| 308 | -<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
| 309 | - <div class="modal-dialog"> | |
| 310 | - <div class="modal-content" style="margin-top: 30%;"> | |
| 311 | - <div class="modal-header"> | |
| 312 | - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 313 | - <h4 class="modal-title" id="myModalLabel">编辑邮件消息</h4> | |
| 314 | - </div> | |
| 315 | - <div class="modal-body"> | |
| 316 | - <form action="/notspeak/write" method="post" id="editWrite"> | |
| 317 | - <input type="text" name="redirect_url" value="" class="hide" id="redirect_url"/> | |
| 318 | - <div class="form-group hide"> | |
| 319 | - <label class="control-label col-sm-3" style="font-size: 15px;" >Id:</label> | |
| 320 | - <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 321 | - <input class="form-control" style="width:30%;" type="text" value="" id="id" name="id"> | |
| 322 | - </div> | |
| 323 | - </div> | |
| 324 | - <div class="form-group"> | |
| 325 | - <label class="control-label col-sm-3" style="font-size: 15px;">邮件地址:</label> | |
| 326 | - <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 327 | - <input class="form-control" style="width:40%;" type="text" value="" id="notspeak_edit" name="notspeak"> | |
| 328 | - </div> | |
| 329 | - </div> | |
| 330 | - <div class="form-group"> | |
| 331 | - <label class="control-label col-sm-3" style="font-size: 15px;">邮件人:</label> | |
| 332 | - <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 333 | - <input class="form-control" style="width:20%;" type="text" value="" id="remark_edit" name="remark"> | |
| 334 | - </div> | |
| 340 | + <!-- 模态框(Modal) --> | |
| 341 | + <div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" | |
| 342 | + aria-hidden="true"> | |
| 343 | + <div class="modal-dialog"> | |
| 344 | + <div class="modal-content" style="margin-top: 30%;"> | |
| 345 | + <div class="modal-header"> | |
| 346 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 347 | + <h4 class="modal-title" id="myModalLabel">编辑邮件消息</h4> | |
| 335 | 348 | </div> |
| 349 | + <div class="modal-body"> | |
| 350 | + <form action="/notspeak/write" method="post" id="editWrite"> | |
| 351 | + <input type="text" name="redirect_url" value="" class="hide" id="redirect_url"/> | |
| 352 | + <div class="form-group hide"> | |
| 353 | + <label class="control-label col-sm-3" style="font-size: 15px;">Id:</label> | |
| 354 | + <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 355 | + <input class="form-control" style="width:30%;" type="text" value="" id="id" name="id"> | |
| 356 | + </div> | |
| 357 | + </div> | |
| 358 | + <div class="form-group"> | |
| 359 | + <label class="control-label col-sm-3" style="font-size: 15px;">邮件地址:</label> | |
| 360 | + <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 361 | + <input class="form-control" style="width:40%;" type="text" value="" id="notspeak_edit" | |
| 362 | + name="notspeak"> | |
| 363 | + </div> | |
| 364 | + </div> | |
| 365 | + <div class="form-group"> | |
| 366 | + <label class="control-label col-sm-3" style="font-size: 15px;">邮件人:</label> | |
| 367 | + <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 368 | + <input class="form-control" style="width:20%;" type="text" value="" id="remark_edit" | |
| 369 | + name="remark"> | |
| 370 | + </div> | |
| 371 | + </div> | |
| 336 | 372 | |
| 337 | - <div class="form-group"> | |
| 338 | - <label class="control-label col-sm-3" style="font-size: 15px;">邮件类型:</label> | |
| 339 | - <div class="col-sm-9" style="float: left"> | |
| 340 | - <div th:each="bu:${notspeak_message}" style="padding-right: 30px;" class="write_check"> | |
| 341 | - <span th:text="${bu.value}" style="font-size: 15px"></span> | |
| 342 | - <input type="checkbox" name="write_business" th:value="${bu.key}" th:id="'write_check_'+${bu.key}"> | |
| 373 | + <div class="form-group"> | |
| 374 | + <label class="control-label col-sm-3" style="font-size: 15px;">邮件类型:</label> | |
| 375 | + <div class="col-sm-9" style="float: left"> | |
| 376 | + <div th:each="bu:${notspeak_message}" style="padding-right: 30px;" class="write_check"> | |
| 377 | + <span th:text="${bu.value}" style="font-size: 15px"></span> | |
| 378 | + <input type="checkbox" name="write_business" th:value="${bu.key}" | |
| 379 | + th:id="'write_check_'+${bu.key}"> | |
| 380 | + </div> | |
| 343 | 381 | </div> |
| 344 | 382 | </div> |
| 345 | - </div> | |
| 346 | 383 | |
| 347 | - </form> | |
| 348 | - </div> | |
| 349 | - <div class="modal-footer"> | |
| 350 | - <button type="button" class="btn btn-primary" onclick="javascript:$('#editWrite').submit();">提交</button> | |
| 351 | - <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> | |
| 352 | - </div> | |
| 353 | - </div><!-- /.modal-content --> | |
| 354 | - </div><!-- /.modal-dialog --> | |
| 355 | -</div> | |
| 356 | -<!-- /.modal --> | |
| 357 | - <!-- 模态框,禁言框(Modal) --> | |
| 358 | -<div class="modal fade" id="speakModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
| 359 | - <div class="modal-dialog"> | |
| 360 | - <div class="modal-content" style="margin-top: 30%;"> | |
| 361 | - <div class="modal-header"> | |
| 362 | - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 363 | - <h4 class="modal-title" id="myModalLabel">禁言选项</h4> | |
| 364 | - </div> | |
| 365 | - <div class="modal-body"> | |
| 366 | - <input type="text" name="speak_id" value="" class="hide" id="speak_id"/> | |
| 367 | - <div class="form-group"> | |
| 368 | - <label class="control-label col-sm-3" style="font-size: 15px;" >用户昵称:</label> | |
| 369 | - <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 370 | - <input class="form-control" readonly="readonly" style="width:40%;" type="text" value="" id="userName" name="userName"> | |
| 371 | - </div> | |
| 384 | + </form> | |
| 372 | 385 | </div> |
| 373 | - <div class="form-group"> | |
| 374 | - <label class="control-label col-sm-3" style="font-size: 15px;">发言平台:</label> | |
| 375 | - <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 376 | - <input class="form-control" readonly="readonly" style="width:40%;" type="text" value="" id="sp_desc" name="sp_desc"> | |
| 377 | - </div> | |
| 386 | + <div class="modal-footer"> | |
| 387 | + <button type="button" class="btn btn-primary" onclick="javascript:$('#editWrite').submit();">提交 | |
| 388 | + </button> | |
| 389 | + <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> | |
| 378 | 390 | </div> |
| 379 | - <div class="form-group"> | |
| 380 | - <label class="control-label col-sm-3" style="font-size: 15px;">禁言时长:</label> | |
| 381 | - <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 382 | - <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" style="display:inline;width:10%;" type="text" value="0" id="noSpeak_days" name="noSpeak_days"> | |
| 383 | - <span> 天 </span> | |
| 384 | - <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" style="display:inline;width:10%;" type="text" value="0" id="noSpeak_hours" name="noSpeak_hours"> | |
| 385 | - <span> 时 </span> | |
| 386 | - <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" style="display:inline;width:10%;" type="text" value="0" id="noSpeak_minutes" name="noSpeak_minutes"> | |
| 387 | - <span> 分 </span> | |
| 391 | + </div><!-- /.modal-content --> | |
| 392 | + </div><!-- /.modal-dialog --> | |
| 393 | + </div> | |
| 394 | + <!-- /.modal --> | |
| 395 | + <!-- 模态框,禁言框(Modal) --> | |
| 396 | + <div class="modal fade" id="speakModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" | |
| 397 | + aria-hidden="true"> | |
| 398 | + <div class="modal-dialog"> | |
| 399 | + <div class="modal-content" style="margin-top: 30%;"> | |
| 400 | + <div class="modal-header"> | |
| 401 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 402 | + <h4 class="modal-title" id="myModalLabel">禁言选项</h4> | |
| 403 | + </div> | |
| 404 | + <div class="modal-body"> | |
| 405 | + <input type="text" name="speak_id" value="" class="hide" id="speak_id"/> | |
| 406 | + <div class="form-group"> | |
| 407 | + <label class="control-label col-sm-3" style="font-size: 15px;">用户昵称:</label> | |
| 408 | + <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 409 | + <input class="form-control" readonly="readonly" style="width:40%;" type="text" value="" | |
| 410 | + id="userName" name="userName"> | |
| 411 | + </div> | |
| 412 | + </div> | |
| 413 | + <div class="form-group"> | |
| 414 | + <label class="control-label col-sm-3" style="font-size: 15px;">发言平台:</label> | |
| 415 | + <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 416 | + <input class="form-control" readonly="readonly" style="width:40%;" type="text" value="" | |
| 417 | + id="sp_desc" name="sp_desc"> | |
| 418 | + </div> | |
| 419 | + </div> | |
| 420 | + <div class="form-group"> | |
| 421 | + <label class="control-label col-sm-3" style="font-size: 15px;">禁言时长:</label> | |
| 422 | + <div class="col-sm-9" style="margin-top: -5px;margin-bottom: 20px;"> | |
| 423 | + <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" | |
| 424 | + style="display:inline;width:10%;" type="text" value="0" id="noSpeak_days" | |
| 425 | + name="noSpeak_days"> | |
| 426 | + <span> 天 </span> | |
| 427 | + <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" | |
| 428 | + style="display:inline;width:10%;" type="text" value="0" id="noSpeak_hours" | |
| 429 | + name="noSpeak_hours"> | |
| 430 | + <span> 时 </span> | |
| 431 | + <input class="form-control" onkeyup="value=value.replace(/[^\d]/g,'')" | |
| 432 | + style="display:inline;width:10%;" type="text" value="0" id="noSpeak_minutes" | |
| 433 | + name="noSpeak_minutes"> | |
| 434 | + <span> 分 </span> | |
| 435 | + </div> | |
| 388 | 436 | </div> |
| 389 | 437 | </div> |
| 390 | - </div> | |
| 391 | - <div class="modal-footer"> | |
| 392 | - <button type="button" class="btn btn-primary" onclick="javascript:submitSpeak();">提交</button> | |
| 393 | - <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> | |
| 394 | - </div> | |
| 395 | - </div><!-- /.modal-content --> | |
| 396 | - </div><!-- /.modal-dialog --> | |
| 397 | -</div> | |
| 398 | -<!-- /.modal --> | |
| 399 | - <script th:inline="javascript"> | |
| 400 | - $(function () { | |
| 401 | - //按钮颜色设置 | |
| 402 | - var state = [[${param.state}]] ? [[${param.state}]][0] : null; | |
| 403 | - var stateIsNull = $.trim(state) == ""; | |
| 404 | - if ( stateIsNull) { | |
| 405 | - $("#quanbu").addClass("btn-success"); | |
| 406 | - } else if (state == '1') { | |
| 407 | - $("#jinyan").addClass("btn-danger"); | |
| 408 | - } else if (state == '0') { | |
| 409 | - $("#jiejin").addClass("btn-info"); | |
| 410 | - } | |
| 438 | + <div class="modal-footer"> | |
| 439 | + <button type="button" class="btn btn-primary" onclick="javascript:submitSpeak();">提交</button> | |
| 440 | + <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> | |
| 441 | + </div> | |
| 442 | + </div><!-- /.modal-content --> | |
| 443 | + </div><!-- /.modal-dialog --> | |
| 444 | + </div> | |
| 445 | + <!-- /.modal --> | |
| 446 | + <script th:inline="javascript"> | |
| 447 | + | |
| 448 | + function GetQueryString(name) { | |
| 449 | + var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | |
| 450 | + var r = window.location.search.substr(1).match(reg); | |
| 451 | + if (r != null) return unescape(r[2]); | |
| 452 | + return null; | |
| 453 | + } | |
| 454 | + | |
| 455 | + $(function () { | |
| 456 | + if (GetQueryString("up_d") == "2") { | |
| 457 | + $("#query").click(); | |
| 458 | + } else { | |
| 459 | + | |
| 460 | + } | |
| 461 | + //按钮颜色设置 | |
| 462 | + var state = [[${param.state}]] ? [[${param.state}]][0] : null; | |
| 463 | + var stateIsNull = $.trim(state) == ""; | |
| 464 | + if (stateIsNull) { | |
| 465 | + $("#quanbu").addClass("btn-success"); | |
| 466 | + } else if (state == '1') { | |
| 467 | + $("#jinyan").addClass("btn-danger"); | |
| 468 | + } else if (state == '0') { | |
| 469 | + $("#jiejin").addClass("btn-info"); | |
| 470 | + } | |
| 411 | 471 | // else if (!stateIsNull && state != '0' && receive == '1') { |
| 412 | 472 | // $("#yishen").addClass("btn-warning"); |
| 413 | 473 | // } |
| 414 | 474 | |
| 415 | - }) | |
| 416 | - | |
| 417 | - | |
| 418 | - var user_id ="";//活动id | |
| 419 | - var user_name = "";//内容 | |
| 420 | - var state ="";//状态 | |
| 421 | - var count = "";//每页显示数量 | |
| 422 | - | |
| 423 | - function query(){ | |
| 424 | - user_id = $("#user_id").val(); | |
| 425 | - user_name = $("#user_name").val(); | |
| 426 | - count = $("#pageSize").val(); | |
| 427 | - window.location.href = "/notSpeak/page?user_id=" + user_id + "&user_name=" + user_name + "&state=" + state + "&pageSize="+count; | |
| 428 | - } | |
| 429 | - | |
| 430 | - //全部 | |
| 431 | - function quanbu() { | |
| 432 | - query(); | |
| 433 | - } | |
| 434 | - | |
| 435 | - //禁言 | |
| 436 | - $('#jinyan').click(function () { | |
| 437 | - state=1; | |
| 438 | - query(); | |
| 439 | - }); | |
| 440 | - //解禁 | |
| 441 | - $('#jiejin').click(function () { | |
| 442 | - state=0; | |
| 443 | - query(); | |
| 444 | - }); | |
| 445 | - | |
| 475 | + }) | |
| 476 | + | |
| 477 | + | |
| 478 | + var user_id = "";//活动id | |
| 479 | + var user_name = "";//内容 | |
| 480 | + var state = "";//状态 | |
| 481 | + var count = "";//每页显示数量 | |
| 482 | + | |
| 483 | + function query() { | |
| 484 | + user_id = $("#user_id").val(); | |
| 485 | + user_name = $("#user_name").val(); | |
| 486 | + 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; | |
| 489 | + } | |
| 490 | + | |
| 491 | + //全部 | |
| 492 | + function quanbu() { | |
| 493 | + query(); | |
| 494 | + } | |
| 495 | + | |
| 496 | + //禁言 | |
| 497 | + $('#jinyan').click(function () { | |
| 498 | + state = 1; | |
| 499 | + query(); | |
| 500 | + }); | |
| 501 | + //解禁 | |
| 502 | + $('#jiejin').click(function () { | |
| 503 | + state = 0; | |
| 504 | + query(); | |
| 505 | + }); | |
| 506 | + | |
| 446 | 507 | //开关的点击事件 |
| 447 | - $(".slider").on('click',function(e){ | |
| 448 | - var myId=$(this).prop("id"); | |
| 449 | - // var myIndex = $(".slider").index($(this)); | |
| 450 | - var checked=$("#id"+myId).prop("checked");//获取当前状态,下一个状态用!checked表示 | |
| 451 | - var user_name=$("#id"+myId).attr("user_name"); | |
| 452 | - var spid_desc=$("#id"+myId).attr("spid_desc"); | |
| 453 | - if(checked){//当前用户没有被禁言,现在要执行禁言操作 | |
| 454 | - speakModal(myId,user_name,spid_desc); | |
| 455 | - }else{//当前用户已被禁言,现在执行解除禁言操作 | |
| 456 | - var r = confirm("您确定要解除当前用户的禁言操作吗?"); | |
| 508 | + $(".slider").on('click', function (e) { | |
| 509 | + var myId = $(this).prop("id"); | |
| 510 | + // var myIndex = $(".slider").index($(this)); | |
| 511 | + var checked = $("#id" + myId).prop("checked");//获取当前状态,下一个状态用!checked表示 | |
| 512 | + var user_name = $("#id" + myId).attr("user_name"); | |
| 513 | + var spid_desc = $("#id" + myId).attr("spid_desc"); | |
| 514 | + if (checked) {//当前用户没有被禁言,现在要执行禁言操作 | |
| 515 | + speakModal(myId, user_name, spid_desc); | |
| 516 | + } else {//当前用户已被禁言,现在执行解除禁言操作 | |
| 517 | + var r = confirm("您确定要解除当前用户的禁言操作吗?"); | |
| 457 | 518 | if (r == true) { |
| 458 | - $.post("/notSpeak/speak?notSpeakId=" + myId+"&type=0&time=0", function (data) { | |
| 459 | - if (data.errorCode == 0) { | |
| 460 | - alert(data.errorMessage); | |
| 461 | - location.href = location.href; | |
| 462 | - } else { | |
| 463 | - alert(data.errorMessage); | |
| 464 | - location.href = location.href; | |
| 465 | - } | |
| 466 | - }) | |
| 519 | + $.post("/notSpeak/speak?notSpeakId=" + myId + "&type=0&time=0", function (data) { | |
| 520 | + if (data.errorCode == 0) { | |
| 521 | + alert(data.errorMessage); | |
| 522 | + location.href = location.href; | |
| 523 | + } else { | |
| 524 | + alert(data.errorMessage); | |
| 525 | + location.href = location.href; | |
| 526 | + } | |
| 527 | + }) | |
| 467 | 528 | } |
| 468 | - } | |
| 469 | - }) | |
| 470 | - | |
| 471 | - //禁言(弹窗) | |
| 472 | - function speakModal(speak_id,userName,sp_desc) { | |
| 473 | - $('#speak_id').val(speak_id); | |
| 474 | - $('#userName').val(userName); | |
| 475 | - $('#sp_desc').val(sp_desc); | |
| 529 | + } | |
| 530 | + }) | |
| 531 | + | |
| 532 | + //禁言(弹窗) | |
| 533 | + function speakModal(speak_id, userName, sp_desc) { | |
| 534 | + $('#speak_id').val(speak_id); | |
| 535 | + $('#userName').val(userName); | |
| 536 | + $('#sp_desc').val(sp_desc); | |
| 476 | 537 | $('#speakModal').modal('show'); |
| 477 | 538 | } |
| 478 | 539 | |
| 479 | 540 | //提交禁言 |
| 480 | 541 | function submitSpeak() { |
| 481 | 542 | var speak_id = $("#speak_id").val(); |
| 482 | - var noSpeak_days = Number($("#noSpeak_days").val()); | |
| 483 | - var noSpeak_hours = Number($("#noSpeak_hours").val()); | |
| 484 | - var noSpeak_minutes = Number($("#noSpeak_minutes").val()); | |
| 485 | - var time=noSpeak_days*24*60+noSpeak_hours*60+noSpeak_minutes;//单位为分钟 | |
| 486 | - $.post("/notSpeak/speak?notSpeakId=" + speak_id + "&time=" + time+ "&type=1", function (data) { | |
| 543 | + var noSpeak_days = Number($("#noSpeak_days").val()); | |
| 544 | + var noSpeak_hours = Number($("#noSpeak_hours").val()); | |
| 545 | + var noSpeak_minutes = Number($("#noSpeak_minutes").val()); | |
| 546 | + var time = noSpeak_days * 24 * 60 + noSpeak_hours * 60 + noSpeak_minutes;//单位为分钟 | |
| 547 | + $.post("/notSpeak/speak?notSpeakId=" + speak_id + "&time=" + time + "&type=1", function (data) { | |
| 487 | 548 | if (data.errorCode == 0) { |
| 488 | 549 | alert(data.errorMessage); |
| 489 | 550 | location.href = location.href; |
| ... | ... | @@ -497,7 +558,7 @@ input:checked + .slider:before { |
| 497 | 558 | function fanye(page) { |
| 498 | 559 | var param = location.search; |
| 499 | 560 | if (param.indexOf("page=") != -1) { |
| 500 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 561 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 501 | 562 | var split = se.split("&"); |
| 502 | 563 | var h = ""; |
| 503 | 564 | for (var i = 0; i < split.length; i++) { |
| ... | ... | @@ -511,87 +572,87 @@ input:checked + .slider:before { |
| 511 | 572 | window.location.href = "/notSpeak/page?" + param + "&page=" + page; |
| 512 | 573 | } |
| 513 | 574 | } |
| 514 | - | |
| 575 | + | |
| 515 | 576 | //选择每页数量触发函数 |
| 516 | - function selectPageSize(){ | |
| 517 | - var pageSize=$("#pageSize").val(); | |
| 518 | - var param = location.search; | |
| 519 | - if (param.indexOf("pageSize=") != -1) { | |
| 520 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 521 | - var split = se.split("&"); | |
| 522 | - var h = ""; | |
| 523 | - for (var i = 0; i < split.length; i++) { | |
| 524 | - var s = split[i]; | |
| 525 | - if (s.indexOf("pageSize=") < 0 &&s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 526 | - } | |
| 527 | - h = h.substring(1, h.length); | |
| 528 | - window.location.href = "/notSpeak/page?" + h + "&pageSize=" + pageSize; | |
| 529 | - } else { | |
| 530 | - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 531 | - var split = se.split("&"); | |
| 532 | - var h = ""; | |
| 533 | - for (var i = 0; i < split.length; i++) { | |
| 534 | - var s = split[i]; | |
| 535 | - if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 536 | - } | |
| 537 | - h = h.substring(1, h.length); | |
| 538 | - window.location.href = "/notSpeak/page?" + h + "&pageSize=" + pageSize; | |
| 539 | - } | |
| 577 | + function selectPageSize() { | |
| 578 | + var pageSize = $("#pageSize").val(); | |
| 579 | + var param = location.search; | |
| 580 | + if (param.indexOf("pageSize=") != -1) { | |
| 581 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 582 | + var split = se.split("&"); | |
| 583 | + var h = ""; | |
| 584 | + for (var i = 0; i < split.length; i++) { | |
| 585 | + var s = split[i]; | |
| 586 | + if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 587 | + } | |
| 588 | + h = h.substring(1, h.length); | |
| 589 | + window.location.href = "/notSpeak/page?" + h + "&pageSize=" + pageSize; | |
| 590 | + } else { | |
| 591 | + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连 | |
| 592 | + var split = se.split("&"); | |
| 593 | + var h = ""; | |
| 594 | + for (var i = 0; i < split.length; i++) { | |
| 595 | + var s = split[i]; | |
| 596 | + if (s.indexOf("page=") < 0) h = h + "&" + split[i]; | |
| 597 | + } | |
| 598 | + h = h.substring(1, h.length); | |
| 599 | + window.location.href = "/notSpeak/page?" + h + "&pageSize=" + pageSize; | |
| 600 | + } | |
| 540 | 601 | } |
| 541 | - | |
| 542 | - | |
| 543 | - //鼠标回车事件 | |
| 544 | - $(document).keyup(function(event){ | |
| 545 | - if(event.keyCode ==13){ | |
| 546 | - quanbu(); | |
| 547 | - } | |
| 548 | - }); | |
| 549 | - //打开编辑窗口 | |
| 550 | -// function edit(Id,notspeak,remark,write_business){ | |
| 551 | -// $("#myModalLabel").text("编辑邮件消息"); | |
| 552 | -// $("#id").val(Id); | |
| 553 | -// $("#notspeak_edit").val(notspeak); | |
| 554 | -// $("#notspeak_edit").attr("readonly","true"); | |
| 555 | -// $("#remark_edit").val(remark); | |
| 556 | -// $("#redirect_url").val(location.pathname+location.search); | |
| 557 | -// $(".write_check input").prop("checked",false); | |
| 558 | -// if($.trim(write_business)!=''){ | |
| 559 | -// var array = write_business.split(",") | |
| 560 | -// for (var i=0;i<array.length;i++){ | |
| 561 | -// $("#write_check_"+array[i]).prop("checked",true); | |
| 562 | -// } | |
| 563 | -// } | |
| 564 | -// $('#editModal').modal('show'); | |
| 565 | -// } | |
| 566 | - | |
| 567 | - //打开添加窗口 | |
| 568 | -// function add(){ | |
| 569 | -// $("#id").val(""); | |
| 570 | -// $("#notspeak_edit").val(""); | |
| 571 | -// $("#notspeak_edit").removeAttr("readonly"); | |
| 572 | -// $("#remark_edit").val(""); | |
| 573 | -// $(".write_check input").prop("checked",false); | |
| 574 | - | |
| 575 | -// $("#redirect_url").val(location.pathname+location.search); | |
| 576 | -// $("#myModalLabel").text("添加邮件消息"); | |
| 577 | -// $('#editModal').modal('show'); | |
| 578 | -// } | |
| 579 | - | |
| 580 | - //删除操作 | |
| 581 | -// function deleted(id){ | |
| 582 | -// var r = confirm("您确定删除本条内容吗?"); | |
| 583 | -// if (r == true) { | |
| 584 | -// $.post("/notspeak/deleted?id=" + id, function (data) { | |
| 585 | -// if (data.errorCode == 0) { | |
| 586 | -// alert(data.errorMessage); | |
| 587 | -// location.href = location.href; | |
| 588 | -// } else { | |
| 589 | -// alert(data.errorMessage); | |
| 590 | -// } | |
| 591 | -// }) | |
| 592 | -// } | |
| 593 | -// } | |
| 594 | - | |
| 602 | + | |
| 603 | + | |
| 604 | + //鼠标回车事件 | |
| 605 | + $(document).keyup(function (event) { | |
| 606 | + if (event.keyCode == 13) { | |
| 607 | + quanbu(); | |
| 608 | + } | |
| 609 | + }); | |
| 610 | + //打开编辑窗口 | |
| 611 | + // function edit(Id,notspeak,remark,write_business){ | |
| 612 | + // $("#myModalLabel").text("编辑邮件消息"); | |
| 613 | + // $("#id").val(Id); | |
| 614 | + // $("#notspeak_edit").val(notspeak); | |
| 615 | + // $("#notspeak_edit").attr("readonly","true"); | |
| 616 | + // $("#remark_edit").val(remark); | |
| 617 | + // $("#redirect_url").val(location.pathname+location.search); | |
| 618 | + // $(".write_check input").prop("checked",false); | |
| 619 | + // if($.trim(write_business)!=''){ | |
| 620 | + // var array = write_business.split(",") | |
| 621 | + // for (var i=0;i<array.length;i++){ | |
| 622 | + // $("#write_check_"+array[i]).prop("checked",true); | |
| 623 | + // } | |
| 624 | + // } | |
| 625 | + // $('#editModal').modal('show'); | |
| 626 | + // } | |
| 627 | + | |
| 628 | + //打开添加窗口 | |
| 629 | + // function add(){ | |
| 630 | + // $("#id").val(""); | |
| 631 | + // $("#notspeak_edit").val(""); | |
| 632 | + // $("#notspeak_edit").removeAttr("readonly"); | |
| 633 | + // $("#remark_edit").val(""); | |
| 634 | + // $(".write_check input").prop("checked",false); | |
| 635 | + | |
| 636 | + // $("#redirect_url").val(location.pathname+location.search); | |
| 637 | + // $("#myModalLabel").text("添加邮件消息"); | |
| 638 | + // $('#editModal').modal('show'); | |
| 639 | + // } | |
| 640 | + | |
| 641 | + //删除操作 | |
| 642 | + // function deleted(id){ | |
| 643 | + // var r = confirm("您确定删除本条内容吗?"); | |
| 644 | + // if (r == true) { | |
| 645 | + // $.post("/notspeak/deleted?id=" + id, function (data) { | |
| 646 | + // if (data.errorCode == 0) { | |
| 647 | + // alert(data.errorMessage); | |
| 648 | + // location.href = location.href; | |
| 649 | + // } else { | |
| 650 | + // alert(data.errorMessage); | |
| 651 | + // } | |
| 652 | + // }) | |
| 653 | + // } | |
| 654 | + // } | |
| 655 | + | |
| 595 | 656 | /*查询样式*/ |
| 596 | 657 | function openOrClose(id_name_str) { |
| 597 | 658 | var id_name = '#' + id_name_str; |
| ... | ... | @@ -599,15 +660,17 @@ input:checked + .slider:before { |
| 599 | 660 | $(id_name).slideUp(350); |
| 600 | 661 | $('#a_up').show(); |
| 601 | 662 | $('#a_down').hide(); |
| 663 | + $("#forms").attr("up_d", "1"); | |
| 602 | 664 | } else { |
| 603 | 665 | $(id_name).slideDown(350); |
| 604 | 666 | $('#a_up').hide(); |
| 605 | 667 | $('#a_down').show(); |
| 668 | + $("#forms").attr("up_d", "2"); | |
| 606 | 669 | } |
| 607 | 670 | } |
| 608 | 671 | </script> |
| 609 | 672 | |
| 610 | - <footer th:replace="../templates/common/foot::foot" ></footer> | |
| 673 | + <footer th:replace="../templates/common/foot::foot"></footer> | |
| 611 | 674 | |
| 612 | 675 | |
| 613 | 676 | <!-- Add the sidebar's background. This div must be placed | ... | ... |