From 032f7c07e272dae9a857ed76b480dc391dc4073f Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期二, 12 三月 2024 14:18:47 +0800 Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0 --- cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js index d3ede42..dd87c09 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js @@ -164,17 +164,25 @@ ajax.start(); }; TSite.oneChangeYys = function(e){ - var oneId = $(e).val(); - var checkbox = document.querySelector('input[name="pt"]'); if (checkbox.checked) { oneId=0; console.log("选中是平台"); - } else { + }else{ oneId = 1; console.log("运营商"); console.log(oneId) + } + if (oneId == "1"){ + oneId = $("#yys").val() + if (oneId==""){ + oneId = 1 + } + console.log("看看选择之后") + console.log(oneId) + var button = document.getElementById("yys"); + button.removeAttribute("disabled"); } var ajax = new $ax(Feng.ctxPath + "/tSite/getChangeOne", function(data){ if(data!=null){ @@ -189,8 +197,6 @@ $("#yys").prop('disabled', false); } - console.log("看看返回数据") - console.log(data) var content='<option value="">选择门店</option>'; $.each(data, function(k,v) { content += "<option value='"+v.id+"'>"+v.name+"</option>"; @@ -199,12 +205,7 @@ } }); - if (oneId == "1"){ - console.log("===============") - oneId = $("#yys").val() - var button = document.getElementById("yys"); - button.removeAttribute("disabled"); - } + ajax.set("oneId",oneId); ajax.start(); -- Gitblit v1.7.1