| | |
| | | </div> |
| | | </div> |
| | | </form> |
| | | |
| | | |
| | | |
| | | <div class="table-responsive"> |
| | | <input class="btn btn-success action-modal-approve" data-status="4" value="批量通过(可修改通道)" |
| | | type="button" />  |
| | |
| | | type="button" />  |
| | | <input class="btn btn-warning action-audit-all" data-status="5" value="直接批量拒绝" |
| | | type="button" /> |
| | | <table class="table table-striped table-bordered table-hover" id="cacheTable"> |
| | | <input class="btn btn-primary action-edit-content" data-status="999" value="修改内容" |
| | | type="button" /> |
| | | |
| | | <table class="table table-striped table-bordered table-hover" id="cacheTable" style="margin:10px 0 0 0;"> |
| | | <thead> |
| | | <tr class="header"> |
| | | <th style="width: 20px"> |
| | | <input type="checkbox" name='checkAll' id="checkAll" /> |
| | | </th> |
| | | <th style="width: 50px"> |
| | | 账号 |
| | | 短信账号 |
| | | </th> |
| | | <th>客户账户</th> |
| | | <th> |
| | | 通道 |
| | | </th> |
| | |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | <div id="pager"> |
| | | <div id="pager" style="margin:10px 0 0 0;"> |
| | | </div> |
| | | |
| | | <%--通道选择--%> |
| | | <div class="modal inmodal " id="opDialog" tabindex="-1" role="dialog" aria-hidden="true"> |
| | | <div class="modal-dialog modal-sm"> |
| | | <div class="modal-content"> |
| | |
| | | </div> |
| | | |
| | | |
| | | <%--内容修改--%> |
| | | <div class="modal inmodal " id="editContentDialog" tabindex="-1" role="dialog" aria-hidden="true"> |
| | | <div class="modal-dialog modal-sm"> |
| | | <div class="modal-content" style="width:450px;"> |
| | | <div class="modal-header"> |
| | | <span class="title">修改内容</span><a class="close" data-dismiss="modal" aria-hidden="true">×</a></div> |
| | | <div class="modal-body"> |
| | | <div style="display:flex;align-items:center;flex-direction:column;justify-content:center;"> |
| | | <div>原内容:<textarea style="width:400px;height:200px" readonly id="oldContent"></textarea></div> |
| | | |
| | | <div style="margin:30px 0 0 0;"><span style="color:red;font-weight:bold;">修改后的内容:</span><textarea style="width:400px;height:200px" id="newContent"></textarea></div> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | <div class="modal-footer"> |
| | | <button class="btn-warning btn" data-dismiss="modal" aria-hidden="true"> |
| | | 取消</button> |
| | | <button class="btn-primary btn action-edit-submit"> |
| | | 确定</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <%--详情面板--%> |
| | | <div class="modal inmodal " id="detailDialog" tabindex="-1" role="dialog" aria-hidden="true"> |
| | | <div class="modal-dialog modal-lg"> |
| | | <div class="modal-content"> |
| | |
| | | |
| | | $("#opDialog").modal("show"); |
| | | }); |
| | | |
| | | |
| | | //修改内容 |
| | | $(".action-edit-content").on("click", function () { |
| | | var hashCodes = []; |
| | | |
| | | $("input[name=hashCode]").each(function () { |
| | | if ($(this).is(":checked")) { |
| | | hashCodes.push($(this).val()); |
| | | } |
| | | }); |
| | | |
| | | $("input[type='checkbox']").each(function () { //遍历checkbox的选择状态 |
| | | if ($(this).prop("checked")) { //如果值为checked表明选中了 |
| | | hashCodes.push($(this).val()); |
| | | |
| | | // console.log("选中该行的IEMI:"+$(this).closest('tr').find('td').eq(7).text()); |
| | | var delei = $(this).closest('tr').find('td').eq(4).text();//获取eq为7的那一列数据(就是第7列) |
| | | console.log("选中该行的列值:" + typeof delei + '--' + delei); |
| | | |
| | | $("#oldContent").val(delei); |
| | | $("#newContent").val(delei); |
| | | |
| | | } |
| | | }); |
| | | |
| | | if (hashCodes.length == 0) { |
| | | mytek.alert("尚未选择要修改的内容"); |
| | | return; |
| | | } |
| | | |
| | | $("#editContentDialog").modal("show"); |
| | | }); |
| | | |
| | | |
| | | //提交修改内容 |
| | | $(".action-edit-submit").on("click", function () { |
| | | |
| | | var hashCodes = []; |
| | | |
| | | $("input[name=hashCode]").each(function () { |
| | | if ($(this).is(":checked")) { |
| | | hashCodes.push($(this).val()); |
| | | } |
| | | }); |
| | | |
| | | if (hashCodes.length == 0) { |
| | | mytek.alert("尚未选择要修改内容的短信"); |
| | | return; |
| | | } |
| | | |
| | | let newSms = $("#newContent").val(); |
| | | |
| | | |
| | | $.post("gwauditcache.ashx", { action: "editContent", hashCodes: $.toJSON(hashCodes), newSms: newSms }, |
| | | function (result) { |
| | | $("#editContentDialog").modal("hide"); |
| | | mytek.alert(result.Message, result.OK, function () { |
| | | load(); |
| | | }); |
| | | }, "json"); |
| | | }); |
| | | |
| | | }); |
| | | </script> |
| | | </asp:Content> |