From ae9bfd2d66f68a553786ac78b12f4390e65e4e09 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期五, 24 十一月 2023 18:30:18 +0800 Subject: [PATCH] 后台bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js | 164 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 153 insertions(+), 11 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..84c0147 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 @@ -102,6 +102,63 @@ parent.layer.close(window.parent.TCompetition.layerIndex); } +TCarInfoDlg.oneChange9 = function (e) { + console.log(111) + var oneId=$(e).val(); + var elementById = document.getElementById("pt"); + + var operatorId; + if (elementById !== null) { + console.log(elementById) + operatorId = $("#account").val() + if (elementById.checked){ + operatorId = 0 + }else{ + operatorId = $("#account").val() + } + } + + + var ajax = new $ax(Feng.ctxPath + "/tShop/getCityYys", function(data){ + if(data!=null){ + 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>"; + }); + $("#cCode1").empty().append(content); + $("#cCode").empty().append(content); + } + }); + ajax.set("province",oneId); + ajax.set("operatorId",operatorId); + ajax.start(); +}; +TCarInfoDlg.oneChangeNext9 = function (e) { + console.log(111) + var oneId=$(e).val(); + var ajax = new $ax(Feng.ctxPath + "/tShop/getStoresYys", function(data){ + if(data!=null){ + if(language==1){ + }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.id+"'>"+v.name+"</option>"; + }); + $("#shopId").empty().append(content); + } + }); + ajax.set("cityCode",oneId); + ajax.start(); +} /** * 收集数据 */ @@ -160,9 +217,6 @@ if(!this.validate()){ return ; } - - - var pCode = $("#pCode").val(); if(pCode==""){ Feng.info("请选择省"); @@ -266,9 +320,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 +456,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,11 +556,99 @@ $("#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(oneId=='0' ){ + oneId=0 + console.log("隐藏") + $("#yys1").hide(); + $("#account").hide(); + }else{ + console.log("展示") + $("#yys1").show(); + $("#account").show(); + } + // 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.oneChange3 = function (e) { + var operatorId=$(e).val(); + var ajax = new $ax(Feng.ctxPath + "/tShop/getProvinceYys", function(data){ + if(data!=null){ + var content='<option value="">选择市</option>'; + $.each(data, function(k,v) { + content += "<option value='"+v.code+"'>"+v.name+"</option>"; + }); + $("#pCode").empty().append(content); + } + }); + ajax.set("operatorId",operatorId); + ajax.start(); +}; TCarInfoDlg.oneChange1 = function (e) { console.log(111) var oneId=$(e).val(); @@ -520,7 +662,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