Commit 797a1409c0010c8976149b745197cad013abdcbd
Merge branch 'dev'
Showing
1 changed file
with
27 additions
and
0 deletions
src/main/resources/templates/page/comment.html
| ... | ... | @@ -51,6 +51,9 @@ |
| 51 | 51 | value="2" data="claim1000" id="claim1000" data-toggle="modal" |
| 52 | 52 | data-target="#modal" onclick="repulse();">拒绝 |
| 53 | 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 | 57 | </div> |
| 55 | 58 | |
| 56 | 59 | </div> |
| ... | ... | @@ -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 | 745 | </script> |
| 719 | 746 | <script> |
| 720 | 747 | /*时间插件*/ | ... | ... |