From c3acb0bf589ba6de244e4eae737152688e5d3e61 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期三, 23 十一月 2022 16:41:29 +0800
Subject: [PATCH] 优化待审核页面

---
 web/web/GwClient.aspx |   65 ++++++++++++++++++--------------
 1 files changed, 36 insertions(+), 29 deletions(-)

diff --git a/web/web/GwClient.aspx b/web/web/GwClient.aspx
index 0b50c2b..e2fac9d 100644
--- a/web/web/GwClient.aspx
+++ b/web/web/GwClient.aspx
@@ -1,11 +1,17 @@
 锘�<%@ Page Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeFile="GwClient.aspx.cs" Inherits="_GwClient" %>
 
 <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
+    <script type="text/javascript" src="/web/js/jquery.min.js?v=2.1.4"></script>
     <%--<link href="css/plugins/bootstrap-fileinput/fileinput.min.css" rel="stylesheet"/>
     <script src="js/plugins/bootstrap-fileinput/fileinput.min.js" type="text/javascript"></script>--%>
     <script type="text/javascript">
         $(document).ready(function () {
             $("textarea").numberedtextarea();
+
+            //鍏ㄩ��
+            $("#checkAll").click(function () {
+                $("input[name='checkbox']").prop("checked", $(this).is(":checked"));
+            });
 
             $(document).on("click", ".action-query", function () {
                 loadPageList();
@@ -224,33 +230,35 @@
             //淇敼鍒嗛厤涓�т骇鍝侊細淇敼纭
             $(document).on("click", ".action-updateProduct", function () {
                 var productIdArray = [];
-                mytek.confirm("鏄惁闇�瑕佷慨鏀瑰鎴峰垎閰嶄釜鎬т骇鍝侊紵", "纭鍒嗛厤涓�т骇鍝侊紝璇疯皑鎱庢搷浣滐紒", function (b) {
-                    if (b) {
-                        $("#updateProductDialog #_ProductId").each(function () {
-                            if ($(this).is(":checked")) {
-                                productIdArray.push($(this).val());
-                            }
-                        });
+                //mytek.confirm("鏄惁闇�瑕佷慨鏀瑰鎴峰垎閰嶄釜鎬т骇鍝侊紵", "纭鍒嗛厤涓�т骇鍝侊紝璇疯皑鎱庢搷浣滐紒", function (b) {
+                    //if (b) {
+                if (confirm("鏄惁闇�瑕佷慨鏀瑰鎴峰垎閰嶄釜鎬т骇鍝侊紵") == true) {
+                    $("#updateProductDialog #_ProductId").each(function () {
+                        if ($(this).is(":checked")) {
+                            productIdArray.push($(this).val());
+                        }
+                    });
 
-                        //var clientId = $("#updateProductDialog").data("id");
-                        var clientId = $("#updateProductDialog input[name='clientID']").val();
-                        $.ajax({
-                            url: "GwClient.ashx",
-                            type: "POST",
-                            data: { action: "updateProduct", clientId: clientId, productIdArray: $.toJSON(productIdArray) },
-                            success: function (result) {
-                                if (result.OK) {
-                                    $("#updateProductDialog").modal("hide");
-                                    loadPageList();
-                                } else {
-                                    mytek.alert(result.Message, result.OK);
-                                }
+                    //var clientId = $("#updateProductDialog").data("id");
+                    var clientId = $("#updateProductDialog input[name='clientID']").val();
+                    $.ajax({
+                        url: "GwClient.ashx",
+                        type: "POST",
+                        data: { action: "updateProduct", clientId: clientId, productIdArray: $.toJSON(productIdArray) },
+                        success: function (result) {
+                            if (result.OK) {
+                                $("#updateProductDialog").modal("hide");
+                                loadPageList();
+                            } else {
+                                mytek.alert(result.Message, result.OK);
                             }
-                        });
+                        }
+                    });
 
-                        //swal.close();
-                    }
-                });
+                    //swal.close();
+                    //}
+                    //});
+                }
             });
 
 
@@ -367,10 +375,9 @@
             return pwd;
         }
 
-        //鍏ㄩ��
-        $("#checkAll").click(function () {
-            $("input[name='checkbox']").prop("checked", $(this).is(":checked"));
-        });
+        
+
+
 
         //鎵归噺鍒嗛厤涓�т骇鍝�:鎵撳紑鐣岄潰
         $(document).on("click", ".action-modal-setProduct", function () {
@@ -714,7 +721,7 @@
                                     <select name="smsStatusReport" id="smsStatusReport" class="form-control">
                                         <option value="0" >涓嶆樉绀�</option>
                                         <option value="1" >鍙樉绀烘彁浜ゅけ璐ヤ负鍙戦�佸け璐ョ姸鎬�</option>
-                                        <option value="2" >鏄剧ず鍏ㄩ儴鐘舵�佺姸鎬�</option>
+                                        <option value="2" >鏄剧ず鍏ㄩ儴鐘舵��</option>
                                     </select>
                             </div>
                         </div>

--
Gitblit v1.9.1