From 771df6d6a3f7d4bdcccb94f6bc823166d6317425 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期三, 17 九月 2025 14:23:57 +0800
Subject: [PATCH] bug修改

---
 cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js |   54 ++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 38 insertions(+), 16 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js
index 860aeac..b728895 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js
@@ -345,18 +345,16 @@
 
     var objectType =$("#objectType").val()
     data.halfName= halfName;
+    var introduce="";
     if (objectType==1){
         introduce  = TSiteInfo.editor.getContent();
-    }
-
-    console.log(introduce)
-    if(introduce==""){
-        Feng.info("请输入公告内容")
-        return;
+        console.log(introduce)
+        if(introduce==""){
+            Feng.info("请输入场地说明")
+            return;
+        }
     }
     data.introduce= introduce;
-
-
     var goodImgs = TSiteInfo.goodsPicArray;
 
     if(goodImgs.length==0){
@@ -513,18 +511,39 @@
 };
 
 TSiteInfo.oneChangeYys = function(e){
-    var oneId=$(e).val();
-    var SelectValue="";
-    var getSelectValueMenbers = $("input[name='pt']:checked").each(function(j) {
-        if (j >= 0) {
-            SelectValue += $(this).val()
+    var oneId = $(e).val();
+    var checkbox = document.querySelector('input[name="pt"]');
+    if (checkbox.checked) {
+        oneId=0;
+        console.log("选中是平台");
+    }else{
+        oneId = 1;
+        console.log("运营商");
+        console.log(oneId)
+    }
+    if (oneId == "1"){
+        oneId = $("#yys").val()
+        if (oneId==""){
+            oneId = 1
         }
-    });
-    if(SelectValue=='0' ){
-        oneId=0
+        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){
+            // var content1 = '<option value="0">平台</option>';
+            console.log("看看oneId")
+            console.log(oneId)
+            if (oneId == 0) {
+                console.log("锁住")
+                $("#yys").prop('disabled', true);
+            }else{
+                console.log("放开")
+                $("#yys").prop('disabled', false);
+            }
+
             var content='<option value="">选择门店</option>';
             $.each(data, function(k,v) {
                 content += "<option value='"+v.id+"'>"+v.name+"</option>";
@@ -532,6 +551,9 @@
             $("#store").empty().append(content);
         }
     });
+
+
+
     ajax.set("oneId",oneId);
     ajax.start();
 };

--
Gitblit v1.7.1