From 217f40eaaab3feac35dbe7649c808cc46886c9d8 Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Wed, 15 May 2024 09:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E5=AF=86=E6=96=87=E4=BB=B6=E4=B8=8B?= =?UTF-8?q?=E5=8F=91,=E7=BC=96=E8=BE=91=EF=BC=8C=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/system/fileprovide/detail.html | 158 ++++++++++++++++++ .../templates/system/fileprovide/edit.html | 21 ++- .../system/fileprovide/fileprovide.html | 5 +- 3 files changed, 180 insertions(+), 4 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/templates/system/fileprovide/detail.html diff --git a/ruoyi-admin/src/main/resources/templates/system/fileprovide/detail.html b/ruoyi-admin/src/main/resources/templates/system/fileprovide/detail.html new file mode 100644 index 0000000..b02a0a9 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/fileprovide/detail.html @@ -0,0 +1,158 @@ + + + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + + + diff --git a/ruoyi-admin/src/main/resources/templates/system/fileprovide/edit.html b/ruoyi-admin/src/main/resources/templates/system/fileprovide/edit.html index 9136c13..7961edf 100644 --- a/ruoyi-admin/src/main/resources/templates/system/fileprovide/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/fileprovide/edit.html @@ -36,7 +36,7 @@
- +
@@ -76,7 +76,7 @@
- +
@@ -127,7 +127,22 @@ $("#form-fileprovide-edit").validate({ focusCleanup: true }); - + var updateDate = document.querySelector('#updateDate').value; + var provideDate = document.querySelector('#provideDate').value; + function fileFormatDate(date){ + //日期格式化 + var dateObj = new Date(date); + var year = dateObj.getFullYear(); + var month = dateObj.getMonth() + 1; + var day = dateObj.getDate(); + return year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : day); + } + if (updateDate != null && updateDate !== ''){ + document.querySelector('#updateDate').value = fileFormatDate(updateDate) + } + if (provideDate != null && provideDate !== ''){ + document.querySelector('#provideDate').value = fileFormatDate(provideDate) + } function submitHandler() { if ($.validate.form()) { $.operate.save(prefix + "/edit", $('#form-fileprovide-edit').serialize()); diff --git a/ruoyi-admin/src/main/resources/templates/system/fileprovide/fileprovide.html b/ruoyi-admin/src/main/resources/templates/system/fileprovide/fileprovide.html index b831f9f..0a13187 100644 --- a/ruoyi-admin/src/main/resources/templates/system/fileprovide/fileprovide.html +++ b/ruoyi-admin/src/main/resources/templates/system/fileprovide/fileprovide.html @@ -61,6 +61,7 @@ - \ No newline at end of file +