From 88d56c7c74be121a11e3760e4fc7a058ea2f6c47 Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期四, 26 十月 2023 10:45:30 +0800 Subject: [PATCH] 10.26.2 --- cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js | 84 ++++++++++++++++++++++++++++++++++++++---- 1 files changed, 76 insertions(+), 8 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js index 94dde40..0620273 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js @@ -266,9 +266,9 @@ ajax.set("cityCode",cCode); ajax.set("storeId",shopIdString); ajax.set("name",name); - ajax.set("sTime",startTime); - ajax.set("eTime",endTime); - ajax.set("rEndTime",registerEndTime); + ajax.set("startTime",startTime); + ajax.set("endTime",endTime); + ajax.set("registerEndTime",registerEndTime); ajax.set("registerCondition",registerCondition); ajax.set("startAge",startAge); ajax.set("endAge",endAge); @@ -402,9 +402,9 @@ ajax.set("cityCode",cCode); ajax.set("storeId",shopIdString); ajax.set("name",name); - ajax.set("sTime",startTime); - ajax.set("eTime",endTime); - ajax.set("rEndTime",registerEndTime); + ajax.set("startTime",startTime); + ajax.set("endTime",endTime); + ajax.set("registerEndTime",registerEndTime); ajax.set("startAge",startAge); ajax.set("endAge",endAge); ajax.set("cashPrice",cashPrice); @@ -502,9 +502,77 @@ $("#cCode").empty().append(content); } }); - ajax.set("oneId",oneId); + + if (typeof(oneId) == "undefined" || oneId == "undefined") { + ajax.set("oneId",0); + }else{ + ajax.set("oneId",oneId);} ajax.start(); } + + +TCarInfoDlg.oneChangeYys = function(e){ + + var oneId= $("input[name='pt']:checked").val() + + console.log("===========oneId=========="+oneId) + var SelectValue=""; + if(SelectValue=='0' ){ + oneId=0 + } + // var ajax = new $ax(Feng.ctxPath + "/tSite/getChangeOne", function(data){ + // if(data!=null){ + // // var content1 = '<option value="0">平台</option>'; + + // + // + // var content='<option value="">选择门店</option>'; + // $.each(data, function(k,v) { + // content += "<option value='"+v.id+"'>"+v.name+"</option>"; + // }); + // $("#shopId").empty().append(content); + // } + // }); + + + + var ajax = new $ax(Feng.ctxPath + "/tShop/onChange1", function(data){ + if(data!=null){ + if (typeof(oneId) != "undefined") { + $("#account").prop('disabled', true); + } + if(language==1){ + var content='<option value="">选择省</option>'; + }else if(language==2){ + var content='<option value="">Choose your franchisee</option>'; + }else { + var content='<option value="">Pilih franchisee Anda</option>'; + } + $.each(data, function(k,v) { + content += "<option value='"+v.code+"'>"+v.name+"</option>"; + }); + $("#pCode").empty().append(content); + } + }); + ajax.set("oneId",0); + ajax.start(); + + + if (typeof(oneId) == "undefined"){ + console.log("===============") + + var button = document.getElementById("account"); + button.removeAttribute("disabled"); + + } + + ajax.set("oneId",oneId); + ajax.start(); + + + +}; + TCarInfoDlg.oneChange1 = function (e) { @@ -520,7 +588,7 @@ var content='<option value="">Pilih franchisee Anda</option>'; } $.each(data, function(k,v) { - content += "<option value='"+v.code+"'>"+v.name+"</option>"; + content += "<option value='"+v.operatorId+"'>"+v.name+"</option>"; }); $("#pCode").empty().append(content); } -- Gitblit v1.7.1