From 7e7f901b2172281dc294dfbc67e6ad00625f09f4 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 04 三月 2024 10:11:21 +0800 Subject: [PATCH] 合并代码 --- cloud-server-management/src/main/webapp/WEB-INF/view/system/tShop/TShop_edit_two.html | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tShop/TShop_edit_two.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tShop/TShop_edit_two.html index 8fb9ad7..0c59bc4 100644 --- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tShop/TShop_edit_two.html +++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tShop/TShop_edit_two.html @@ -82,10 +82,7 @@ }); - document.addEventListener('DOMContentLoaded', function() { - var selectElement = document.getElementById('page'); - selectElement.onchange(); - }); + function updateType(e) { let name = $("#name").val() @@ -98,11 +95,16 @@ $("#t1").val("") $("#t2").val("") $("#t3").val("") + $("#type").val("") + $("#page").val("") }else { $("#t1").show() $("#t2").show() $("#t3").show() + $("#type").val("") + $("#page").val("") + console.log("页面") var oneId=$(e).val(); var ajax = new $ax(Feng.ctxPath + "/tShop/typeChange", function(data){ if(data!=null){ @@ -140,6 +142,7 @@ } function updateOne(e) { + console.log("类型") var oneId=$(e).val(); var ajax = new $ax(Feng.ctxPath + "/tShop/typeChangeOne", function(data){ if(data!=null&&data.length>0){ @@ -153,16 +156,12 @@ console.log("=-======0000") $("#t2").hide() $("#t2").val("") - - } }); if (oneId==2 || oneId==25|| oneId==27){ $("#t3").val("") - $("#t3").hide() } - ajax.set("id",oneId); ajax.start(); updateT(document.getElementById("type")); -- Gitblit v1.7.1