From fa3c8634c252f5733cdbbed27ce742da8b44b88d Mon Sep 17 00:00:00 2001 From: wangjiuyun <1595161655@qq.com> Date: Tue, 20 May 2025 15:56:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E4=BF=A1=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/system/product/add.html | 15 +++++++++++---- .../templates/system/product/edit.html | 19 ++++++++++++++++--- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/product/add.html b/ruoyi-admin/src/main/resources/templates/system/product/add.html index b92a3b2a..13224785 100644 --- a/ruoyi-admin/src/main/resources/templates/system/product/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/product/add.html @@ -51,18 +51,17 @@
-
-
+ @@ -107,6 +106,14 @@ minView: "month", autoclose: true }); + function changeType(){ + let type=$('[name="type"]').val() + if(type=='11'||type=='22'){ + $('#valueBox').show() + }else{ + $('#valueBox').hide() + } + } \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/product/edit.html b/ruoyi-admin/src/main/resources/templates/system/product/edit.html index a5bc731d..844cdbb5 100644 --- a/ruoyi-admin/src/main/resources/templates/system/product/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/product/edit.html @@ -51,15 +51,15 @@
-
-
+
- +
@@ -87,6 +87,19 @@ $.operate.save(prefix + "/edit", $('#form-product-edit').serialize()); } } + function changeType(){ + let type=$('[name="type"]').val() + if(type=='11'||type=='22'){ + $('#valueBox').show() + }else{ + $('#valueBox').hide() + } + } + $(function (){ + if([[${productInfo.type}]]!=11&&[[${productInfo.type}]]!=22){ + $('#valueBox').hide() + } + }) \ No newline at end of file