From 3b3571fb25ff13b4a1bc704b95181d9639b896fc Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Tue, 16 Apr 2024 18:07:12 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E5=B7=A5=E7=A8=8B=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=9A=E4=BF=AE=E6=94=B9=E4=BA=A7=E5=93=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=8C=E6=9E=84=E5=BB=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/system/domain/SysProductModel.java | 1 + .../resources/templates/system/model/add.html | 6 ---- .../templates/system/model/edit.html | 31 ++++++++++--------- 3 files changed, 17 insertions(+), 21 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysProductModel.java b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysProductModel.java index 216a1d25..9f58ddb2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysProductModel.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysProductModel.java @@ -47,6 +47,7 @@ public class SysProductModel extends BaseEntity @Excel(name = "图片地址") private String photoUrl; + public void setPid(Long pid) { this.pid = pid; diff --git a/ruoyi-admin/src/main/resources/templates/system/model/add.html b/ruoyi-admin/src/main/resources/templates/system/model/add.html index e5609257..96bb8bfb 100644 --- a/ruoyi-admin/src/main/resources/templates/system/model/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/model/add.html @@ -6,12 +6,6 @@
-
- -
- -
-
diff --git a/ruoyi-admin/src/main/resources/templates/system/model/edit.html b/ruoyi-admin/src/main/resources/templates/system/model/edit.html index 0f9ef007..94db2343 100644 --- a/ruoyi-admin/src/main/resources/templates/system/model/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/model/edit.html @@ -7,12 +7,6 @@
-
- -
- -
-
@@ -43,17 +37,24 @@
-
- -
- -
-
-
- +
+
- + + 点击上传 +
只能上传jpg/png文件,第一张图片为主图
+
+ + +