From d2b9ce5ceb7059dfa06e9281661c8c9516686dd0 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期一, 06 十月 2025 19:54:22 +0800 Subject: [PATCH] bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js | 55 +++++++++++++++++++++++++++++-------------------------- 1 files changed, 29 insertions(+), 26 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js index c5fa4e7..f59a69c 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js @@ -102,11 +102,10 @@ } TCarInfoDlg.addSubmit3 = function() { var ajax = new $ax(Feng.ctxPath + "/tShop/addDevice", function(data){ - window.parent.TCompetition.table.refresh(); + console.log("调用方法") TCarInfoDlg.close(); }); ajax.set("id",$("#id")); - ajax.set("siteId",$("#site")); ajax.set("device",$("#device")); ajax.start(); } @@ -228,27 +227,30 @@ let name = $("#name").val() let phone = $("#phone").val() var elementById = document.getElementById("radio1"); - if (elementById.checked) { - if (pCode == '' && $("#role").val() == "1") { - Feng.info("请选择省") - return; + if (elementById != null){ + if (elementById.checked) { + if (pCode == '' && $("#role").val() == "1") { + Feng.info("请选择省") + return; + } + if (cCode == '' && $("#role").val() == "1") { + Feng.info("请选择市") + return; + } } - if (cCode == '' && $("#role").val() == "1") { - Feng.info("请选择市") - return; + if (!elementById.checked){ + if(pCode1=='' && $("#role").val()=="1"){ + Feng.info("请选择省") + return; + } + if(cCode1=='' && $("#role").val()=="1"){ + Feng.info("请选择市") + return; + } } } - if (!elementById.checked){ - if(pCode1=='' && $("#role").val()=="1"){ - Feng.info("请选择省") - return; - } - if(cCode1=='' && $("#role").val()=="1"){ - Feng.info("请选择市") - return; - } - } + if(name==''){ Feng.info("门店名称不能为空") return; @@ -405,8 +407,7 @@ } }); }); - -} +}; //地图点击事件 function showInfoClick(){ map.on('click', function (e) { @@ -565,12 +566,14 @@ Feng.info("请上传实景图") return; } + console.log("图片") + console.log(goodImgs) var imgOne =""; for (let i = 0; i <goodImgs.length; i++) { if(i==goodImgs.length-1){ - imgOne += (goodImgs[i].response) + imgOne += (goodImgs[i]) }else { - imgOne+=(goodImgs[i].response+",") + imgOne+=(goodImgs[i]+",") } } @@ -650,9 +653,9 @@ var carPhoto = new $WebUpload("img"); carPhoto.setUploadBarId("progressBar"); carPhoto.init(); - var carPhoto = new $WebUpload("welfarePicture"); - carPhoto.setUploadBarId("progressBar"); - carPhoto.init(); + var welfarePicture = new $WebUpload("welfarePicture"); + welfarePicture.setUploadBarId("progressBar"); + welfarePicture.init(); var drivingLicensePhoto = new $WebUpload("drivingLicensePhoto"); drivingLicensePhoto.setUploadBarId("progressBar"); drivingLicensePhoto.init(); -- Gitblit v1.7.1