From a9564eae9f0169ca39329b2f14a8f13d13358a0a Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期五, 17 十一月 2023 15:28:44 +0800 Subject: [PATCH] 11.7 --- cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js | 33 +++++++++++++++++++++++++++++---- 1 files changed, 29 insertions(+), 4 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 f4ee71b..8b2f8d7 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 @@ -105,6 +105,20 @@ 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){ @@ -122,6 +136,7 @@ } }); ajax.set("province",oneId); + ajax.set("operatorId",operatorId); ajax.start(); }; TCarInfoDlg.oneChangeNext9 = function (e) { @@ -202,9 +217,6 @@ if(!this.validate()){ return ; } - - - var pCode = $("#pCode").val(); if(pCode==""){ Feng.info("请选择省"); @@ -616,7 +628,20 @@ }; - +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(); -- Gitblit v1.7.1