From 705909e14fe4e9f2fc261ee4eb40a8b41fa2f6d4 Mon Sep 17 00:00:00 2001 From: wzp <2880584989@qq.com> Date: 星期二, 12 七月 2022 17:37:26 +0800 Subject: [PATCH] 增加免密登陆的token --- web/web/GwProduct.aspx | 110 +++++++++++++++++++++++++++++++++++------------------- 1 files changed, 71 insertions(+), 39 deletions(-) diff --git a/web/web/GwProduct.aspx b/web/web/GwProduct.aspx index de239c9..516ac10 100644 --- a/web/web/GwProduct.aspx +++ b/web/web/GwProduct.aspx @@ -12,7 +12,8 @@ function loadPageList() { var name = $("#Name").val(); - var classes = $("#Classes").val(); + //var classes = $("#Classes").val(); + var classes = 1; $.ajax({ url: "GwProduct.ashx", type: "POST", @@ -31,16 +32,16 @@ } $(document).on("click", ".action-modal-add", function() { - $("#productDialog .modal-title").text("娣诲姞浜у搧鎴栦骇鍝佸垎绫�"); + $("#productDialog .modal-title").text("娣诲姞浜у搧"); $("#productDialog #action").val("add"); $("#productDialog #id").val("").attr("readonly", false); $("#productDialog #name").val(""); $("#productDialog #icon").val(""); $("#productDialog #instructions").val(""); - $("#productDialog #classes").val(""); + //$("#productDialog #classes").val(""); $("#productDialog #parentId").val(""); //$("#productDialog #path").val(""); - $("#productDialog #isDefault").val(""); + //$("#productDialog #isDefault").val(""); $("#productDialog #isDnable").val(1); $("#productDialog #sort").val(1); $("#productDialog #routerType").val(1); @@ -92,16 +93,16 @@ $("#classes").trigger("change"); //閫夋嫨璺敱绫诲瀷涓嬫媺妗嗭紝鎺у埗鐩稿叧杈撳叆椤规樉绀� - $("#RouterType").on("change", function () { + $("#routerType").on("change", function () { $(".router-type-span").hide(); $(".router-type-span-" + $(this).val()).show(); }); - $("#RouterType").trigger("change"); + $("#routerType").trigger("change"); $(document).on("click", ".action-modal-edit", function() { var id = $(this).data("id"); - $("#productDialog .modal-title").text("缂栬緫浜у搧鎴栦骇鍝佸垎绫�"); + $("#productDialog .modal-title").text("缂栬緫浜у搧"); $("#productDialog #id").val(id).attr("readonly", true); $.get("gwProduct.ashx", { "action": "get", id: id }, function(r) { @@ -146,6 +147,9 @@ //璁剧疆绫诲埆 $("#classes").trigger("change"); + //璁剧疆璺敱 + $("#routerType").trigger("change"); + //璁剧疆鍥炬爣 $("#icon").trigger("change"); @@ -161,10 +165,21 @@ //data鐨勫睘鎬у弬鏁颁笉鑳藉惈鏈夊ぇ鍐欏瓧姣嶃�� var id = $(this).data("id"); var isEnable = $(this).data("is_enable"); - $.post("gwProduct.ashx", { "action": "updateStatus", id: id, isEnable: isEnable }, function (r) { - mytek.alert(r.Message, r.OK, function () { - loadPageList(); - }); + var statusStr = ""; + if (isEnable == 0) { + statusStr = "銆愬仠鐢ㄣ��"; + } + else { + statusStr = "銆愬惎鐢ㄣ��"; + } + mytek.confirm("鏄惁闇�瑕�" + statusStr + "璇ヤ俊鎭紵", "纭鏇存柊淇℃伅鐘舵�侊紝璇疯皑鎱庢搷浣滐紒", function (b) { + if (b) { + $.post("gwProduct.ashx", { "action": "updateStatus", id: id, isEnable: isEnable }, function (r) { + mytek.alert(r.Message, r.OK, function () { + loadPageList(); + }); + }); + } }); }); @@ -198,7 +213,7 @@ }); </script> </asp:Content> -<asp:Content runat="server" ID="Content2" ContentPlaceHolderID="title">浜у搧鎴栦骇鍝佸垎绫荤鐞�</asp:Content> +<asp:Content runat="server" ID="Content2" ContentPlaceHolderID="title">浜у搧绠$悊</asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="content" runat="Server"> <form name="queryForm" method="get" action="GwProduct.aspx" id="queryForm" class="form-inline" @@ -210,6 +225,7 @@ <input type="text" name="Name" id="Name" class="form-control" /> </div> </div> + <!-- <div class="form-group"> <div class="input-group"> <select name="Classes" id="Classes" class="form-control"> @@ -219,6 +235,7 @@ </select> </div> </div> + --> <div class="form-group"> <div class="input-group"> <input type="button" value="鏌ヨ" class="btn btn-primary action-btn-GwProductQuery" /> @@ -231,29 +248,33 @@ <tr class="header"> <th>鍥炬爣 </th> - <th>鍚嶇О + <th>鎵�灞炰骇鍝佺被鍒� </th> - <th>浣跨敤璇存槑 + <th>浜у搧鍚嶇О </th> + <!-- <th>绫诲埆 </th> - <th>閫氶亾 - </th> - <th>鐖剁骇浜у搧鍒嗙被ID + --> + <th>閫氶亾鎴栭�氶亾缁� </th> <th>鏄惁榛樿 </th> <th>鏄惁鍚敤 </th> + <!-- <th>鎺掑簭 </th> + --> <th>璧犻�佹潯鏁� </th> - <th>鍙傝�冨崟浠� + <th>鍙傝�冨崟浠凤紙鍏�/鏉★級 </th> <th>鍒涘缓鏃堕棿 </th> - <th class="text-right">鎿嶄綔 + <th>浣跨敤璇存槑 + </th> + <th class="text-center">鎿嶄綔 </th> </tr> </thead> @@ -279,7 +300,7 @@ <h4 class="modal-title">缂栬緫浜у搧璧勬枡</h4> </div> <div class="modal-body"> - <div class="form-group"> + <div class="form-group" style="display: none"> <label class="col-sm-2 control-label"> 绫诲埆</label> <div class="col-sm-4 "> @@ -292,7 +313,7 @@ </div> <div class="form-group"> <label class="col-sm-2 control-label"> - 鐖剁骇鍒嗙被ID</label> + 鎵�灞炰骇鍝佺被鍒� <span style="color:red">*</span></label> <div class="col-sm-4 "> <select name="parentId" id="parentId" class="form-control"> <%=GetProductClassOptions("0")%> @@ -316,7 +337,8 @@ </div> <div class="form-group"> <label class="col-sm-2 control-label"> - 鍚嶇О</label> + 鍚嶇О <span style="color:red">*</span> + </label> <div class="col-sm-4 "> <input type="text" class="form-control" name="name" id="name" value="" /> </div> @@ -348,6 +370,7 @@ </div> <span class="help-block m-b-none">涓�у寲瀹㈡埛鏄寚鐗规畩鎺ㄩ�佺粰瀹㈡埛锛涚郴缁熼粯璁ゆ槸鎸囩郴缁熼粯璁ゅ彲鎺ㄩ�佹墍鏈夊鎴枫��</span> </div> + <input type="hidden" class="form-control" name="isDefault" id="isDefault" value="1" /> <div class="form-group"> <label class="col-sm-2 control-label"> 鏄惁鍚敤</label> @@ -362,18 +385,16 @@ <label class="col-sm-2 control-label"> 鎺掑簭</label> <div class="col-sm-4"> - <div class="input-group"> - <input type="text" class="form-control" name="sort" id="sort" value="" - maxlength="5" onkeyup="value=value.replace(/[^\d]/g,'')" onpaste="value=value.replace(/[^\d]/g,'')" - oncontextmenu="return false" /> - </div> + <input type="text" class="form-control" name="sort" id="sort" value="" + maxlength="5" onkeyup="value=value.replace(/[^\d]/g,'')" onpaste="value=value.replace(/[^\d]/g,'')" + oncontextmenu="return false" /> </div> </div> <div class="form-group classes-span classes-span-1"> <label class="col-sm-2 control-label"> 閫氶亾璺敱</label> - <div class="col-sm-10"> - <select name="RouterType" id="RouterType"> + <div class="col-sm-4"> + <select name="routerType" id="routerType" class="form-control"> <option value="1" >鎸囧畾閫氶亾璺敱</option> <option value="3" >閫氶亾缁勮矾鐢辨ā寮�</option> </select> @@ -381,26 +402,37 @@ <div class="router-type-span router-type-span-1"> <div style="padding: 5px"> - 绉诲姩锛�<select name="cmOpId" id="cmOpId"> + 绉诲姩锛�<select name="cmOpId" id="cmOpId" > <%=GetOpOptions(0)%> - </select> 鎵╁睍鍙傛暟锛�<input type="text" name="cmExtParams" id="cmExtParams" maxlength="600" + </select> + <!-- + 鎵╁睍鍙傛暟锛�<input type="text" name="cmExtParams" id="cmExtParams" maxlength="600" value="" style="width: 50%;" placeholder="绉诲姩鎵╁睍鍙傛暟" /> + --> </div> <div style="padding: 5px"> - 鑱旈�氾細<select name="cuOpId" id="cuOpId"> + 鑱旈�氾細<select name="cuOpId" id="cuOpId" > <%=GetOpOptions(0)%> - </select> 鎵╁睍鍙傛暟锛�<input type="text" name="cuExtParams" id="cuExtParams" maxlength="600" + </select> + <!-- + 鎵╁睍鍙傛暟锛�<input type="text" name="cuExtParams" id="cuExtParams" maxlength="600" value="" style="width: 50%;" placeholder="鑱旈�氭墿灞曞弬鏁�" /> + --> </div> <div style="padding: 5px"> - 鐢典俊锛�<select name="ctOpId" id="ctOpId"> + 鐢典俊锛�<select name="ctOpId" id="ctOpId" > <%=GetOpOptions(0)%> - </select> 鎵╁睍鍙傛暟锛�<input type="text" name="ctExtParams" id="ctExtParams" maxlength="600" + </select> + <!-- + 鎵╁睍鍙傛暟锛�<input type="text" name="ctExtParams" id="ctExtParams" maxlength="600" value="" style="width: 50%;" placeholder="鐢典俊鎵╁睍鍙傛暟" /> + --> </div> + <!-- <span class="help-block m-b-none">CMPP2.0,CMPP3.0鍗忚鏀寔鎵╁睍鍙傛暟鏈夛細SERVICEID(鏈嶅姟浠g爜/涓氬姟浠g爜(鏈�闀�10浣�)),FEECODE(璐圭敤浠g爜(鏈�闀�6浣�)),FEETYPE(璐圭敤绫诲瀷),FEEUSERTYPE,FEETERMINALID(璁¤垂鍙风爜) SGIP鏀寔鎵╁睍鍙傛暟鏈夛細SERVICETYPE(涓氬姟浠g爜(鏈�闀�10浣�)),CHARGENUMBER(璁¤垂鍙风爜(鏈�闀�21浣�)),FEEVALUE(鏀惰垂鍊�(鏈�闀�6浣�)),GIVENVALUE,NODEID(鑺傜偣(鏈�闀�6浣�)),CONNTIMEOUT(杩炴帴瓒呮椂) SMGP鏀寔鎵╁睍鍙傛暟鏈夛細SERVICEID(鏈嶅姟浠g爜/涓氬姟浠g爜(鏈�闀�10浣�)),FIXEDFEE(鍖呮湀璐�/灏侀《璐�(鏈�闀�6浣�)),FEECODE(璐圭敤浠g爜/璧勮垂浠g爜(鏈�澶�6浣�));</span> + --> </div> <div class="router-type-span router-type-span-3"> <div style="padding: 5px"> @@ -432,7 +464,7 @@ 鍙傝�冨崟浠�</label> <div class="col-sm-4"> <div class="input-group"> - <input type="text" class="form-control" name="price" id="price" value="" maxlength="5" + <input type="text" class="form-control" name="price" id="price" value="" maxlength="10" onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" oncontextmenu="return false" /><span class="input-group-addon">鍏�/鏉� </span> </div> @@ -443,7 +475,7 @@ 榛樿璧犻�佹潯鏁�</label> <div class="col-sm-4"> <div class="input-group"> - <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="5" + <input type="text" class="form-control" name="givingNum" id="givingNum" value="" maxlength="10" onkeyup="value=value.replace(/[^\d\.]/g,'')" onpaste="value=value.replace(/[^\d\.]/g,'')" oncontextmenu="return false" /><span class="input-group-addon">鏉� </span> </div> @@ -452,8 +484,8 @@ <div class="form-group"> <label class="col-sm-2 control-label"> 澶囨敞</label> - <div class="col-sm-10 input-group m-b"> - <input type="text" class="form-control" name="remark" id="remark" value="" /> + <div class="col-sm-4"> + <textarea class="form-control" name="remark" id="remark" rows="4" ></textarea> </div> </div> </div> -- Gitblit v1.9.1