From c31f9914a85889bbe090d907ed53cc7a2fdcf8b6 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期四, 28 十二月 2023 10:41:53 +0800
Subject: [PATCH] 11.27,9
---
cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js | 46 +++++++++++++++++++++++++++-------------------
1 files changed, 27 insertions(+), 19 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 324eb4f..5251cd8 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
@@ -171,26 +171,29 @@
};
TSite.oneChangeYys = function(e){
- var oneId= $("input[name='pt']:checked").val()
+ var oneId;
- console.log("===========oneId=========="+oneId)
- var SelectValue="";
- var getSelectValueMenbers = $("input[name='pt']:checked").each(function(j) {
- if (j >= 0) {
- SelectValue += $(this).val()
- }
- });
- if(SelectValue=='0' ){
- oneId=0
+ var checkbox = document.querySelector('input[name="pt"]');
+ if (checkbox.checked) {
+ oneId=0;
+ console.log("选中是平台");
+ } else {
+ oneId = $("#yys").val();
+ console.log("运营商");
}
var ajax = new $ax(Feng.ctxPath + "/tSite/getChangeOne", function(data){
if(data!=null){
// var content1 = '<option value="0">平台</option>';
- if (typeof(oneId) != "undefined") {
+ if (oneId == 0) {
+ console.log("锁住")
$("#yys").prop('disabled', true);
+ }else{
+ console.log("放开")
+ $("#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>";
@@ -201,7 +204,7 @@
if (typeof(oneId) == "undefined"){
console.log("===============")
-
+ oneId = $("#yys").val()
var button = document.getElementById("yys");
button.removeAttribute("disabled");
@@ -439,6 +442,7 @@
halfName:"",
introduce:"",
imgs:"",
+ introduce:"",
ids:""
};
data.province = $("#pCode").val()
@@ -592,9 +596,10 @@
data.halfName= halfName;
data.ids= $("#ids").val();
- let introduce = TSite.editor.getContent();
-
-
+ let introduce ;
+ if (objectType==1){
+ introduce = TSite.editor.getContent();
+ }
console.log(introduce)
if(introduce==""){
@@ -605,10 +610,13 @@
var goodImgs = this.goodsPicArray;
- if(goodImgs.length==0){
- Feng.info("请上传实景图")
- return;
+ if(objectType==1){
+ if(goodImgs.length==0){
+ Feng.info("请上传实景图")
+ return;
+ }
}
+
var imgOne ="";
for (let i = 0; i <goodImgs.length; i++) {
if(i==goodImgs.length-1){
--
Gitblit v1.7.1