From 374ce4ffd0c459bb4067e8d5765f972668aff9b1 Mon Sep 17 00:00:00 2001 From: wzp <2040239371@qq.com> Date: 星期四, 02 三月 2023 14:56:23 +0800 Subject: [PATCH] 变更oracle访问组件 --- web/web/GwAuditCache.aspx | 166 ++++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 132 insertions(+), 34 deletions(-) diff --git a/web/web/GwAuditCache.aspx b/web/web/GwAuditCache.aspx index b4c14df..0d8b43c 100644 --- a/web/web/GwAuditCache.aspx +++ b/web/web/GwAuditCache.aspx @@ -41,47 +41,55 @@ value="10" /><label>寰呬簩娆¢壌瀹氫俊鎭�</label> <input type="button" value="鍒锋柊" class="btn btn-primary action-go" /> </div> </div> - <div class="form-group"> - <div class="input-group m-b">  + </form> + + + + <div class="table-responsive"> <input class="btn btn-success action-modal-approve" data-status="4" value="鎵归噺閫氳繃(鍙慨鏀归�氶亾)" type="button" />  <input class="btn btn-danger action-audit-all" data-status="4" value="鐩存帴鎵归噺閫氳繃" type="button" />  <input class="btn btn-warning action-audit-all" data-status="5" value="鐩存帴鎵归噺鎷掔粷" type="button" /> - </div> + <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> + <th> + 鍐呭 + </th> + <th> + 鍏抽敭瀛� + </th> + <th> + 鏉℃暟 + </th> + <th style="width: 200px"> + 鎿嶄綔 + </th> + </tr> + </thead> + <tbody> + </tbody> + </table> </div> - </form> - <table class="table table-striped table-bordered table-hover" id="cacheTable"> - <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> - <th> - 鍏抽敭瀛� - </th> - <th> - 鏉℃暟 - </th> - <th style="width: 200px"> - 鎿嶄綔 - </th> - </tr> - </thead> - <tbody> - </tbody> - </table> - <div id="pager"></div> + <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"> @@ -103,6 +111,33 @@ </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"> @@ -266,6 +301,69 @@ $("#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("閫変腑璇ヨ鐨処EMI锛�"+$(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> -- Gitblit v1.9.1