Commit c254c0609914c19d96b17f3dfa249b1b6f381194

Authored by liwei2917
1 parent 59ae597f

增加评论的批量通过

src/main/resources/templates/common/frame.html
@@ -61,9 +61,9 @@ line-height: 2em; margin: 0 auto;font-size: 2em" th:text="${session.sessionUser. @@ -61,9 +61,9 @@ line-height: 2em; margin: 0 auto;font-size: 2em" th:text="${session.sessionUser.
61 </a> 61 </a>
62 <ul class="treeview-menu"> 62 <ul class="treeview-menu">
63 <li class="active"><a href="/videos/page?state=0&receive=0" id="/videos/page">点播审核</a></li> 63 <li class="active"><a href="/videos/page?state=0&receive=0" id="/videos/page">点播审核</a></li>
64 - <li><a href="/live/page?shenhe_state=0" id="/live/page"> 直播审核</a></li> 64 +<!-- <li><a href="/live/page?shenhe_state=0" id="/live/page"> 直播审核</a></li> -->
65 <li><a href="/comments/page?state=0&receive=0" id="/comments/page"> 评论审核</a></li> 65 <li><a href="/comments/page?state=0&receive=0" id="/comments/page"> 评论审核</a></li>
66 - <li><a href="/content/page?receive_status=0" id="/content/page"> 图文审核</a></li> 66 +<!-- <li><a href="/content/page?receive_status=0" id="/content/page"> 图文审核</a></li> -->
67 </ul> 67 </ul>
68 </li> 68 </li>
69 <li class="treeview" th:if="${session.sessionUser.spid==0 or session.sessionUser.master}"> 69 <li class="treeview" th:if="${session.sessionUser.spid==0 or session.sessionUser.master}">
src/main/resources/templates/page/comment.html
@@ -51,6 +51,9 @@ @@ -51,6 +51,9 @@
51 value="2" data="claim1000" id="claim1000" data-toggle="modal" 51 value="2" data="claim1000" id="claim1000" data-toggle="modal"
52 data-target="#modal" onclick="repulse();">拒绝 52 data-target="#modal" onclick="repulse();">拒绝
53 </button> 53 </button>
  54 + <button type="button" class="btn btn-success btn-sm margin-r-5 action_bottom"
  55 + id="morePass" onclick="morePass();">批量通过
  56 + </button>
54 </div> 57 </div>
55 58
56 </div> 59 </div>
@@ -715,6 +718,30 @@ @@ -715,6 +718,30 @@
715 } 718 }
716 }) 719 })
717 } 720 }
  721 + //批量提交
  722 + function morePass() {
  723 + var rows = $("[name=btSelectItem]:checkbox:checked");
  724 + if (rows.length > 0) {
  725 + var r = confirm("您确定通过选中的" + rows.length + "条内容吗?");
  726 + if (r == true) {
  727 + var ids = "";
  728 + rows.each(function (i, e) {
  729 + ids = ids + "," + e.value;
  730 + })
  731 + ids = ids.substring(1);
  732 + $.post("/comments/pass?ids=" + ids, function (data) {
  733 + if (data.errorCode == 0) {
  734 + alert(data.errorMessage);
  735 + location.href = location.href;
  736 + } else {
  737 + alert(data.errorMessage);
  738 + }
  739 + })
  740 + }
  741 + } else {
  742 + alert("没有选中的数据!");
  743 + }
  744 + }
718 </script> 745 </script>
719 <script> 746 <script>
720 /*时间插件*/ 747 /*时间插件*/