diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/filemanager/TdFileDestoryController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/filemanager/TdFileDestoryController.java index becf41e..606fb7f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/filemanager/TdFileDestoryController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/filemanager/TdFileDestoryController.java @@ -22,7 +22,7 @@ import com.ruoyi.common.core.page.TableDataInfo; /** * 涉密文件销毁Controller - * + * * @author ruoyi * @date 2024-05-15 */ @@ -92,6 +92,7 @@ public class TdFileDestoryController extends BaseController TdFileProvide tdFileProvide = tdFileProvideService.selectTdFileProvideByFileId(fileId); mmap.put("tdFileProvide", tdFileProvide); mmap.put("tdFileReceive", tdFileReceive); + mmap.put("user",getSysUser()); return prefix + "/edit"; } diff --git a/ruoyi-admin/src/main/resources/templates/system/filedestory/detail.html b/ruoyi-admin/src/main/resources/templates/system/filedestory/detail.html new file mode 100644 index 0000000..44be179 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/filedestory/detail.html @@ -0,0 +1,163 @@ + + + + + + + +
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+ +
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+ +
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+
+ 销毁人:[[${tdFileReceive.destoryUsername}]] +
+
+
+ + + + + diff --git a/ruoyi-admin/src/main/resources/templates/system/filedestory/edit.html b/ruoyi-admin/src/main/resources/templates/system/filedestory/edit.html index 24d5674..8632107 100644 --- a/ruoyi-admin/src/main/resources/templates/system/filedestory/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/filedestory/edit.html @@ -8,95 +8,65 @@
+ + + +
- -
- -
-
-
- +
- -
- -
-
-
- +
-
- - -
+
- +
- +
- +
-
- - +
+ +
- +
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- +
- +
- +
- +
- +
-
- - -
+
- +
@@ -116,30 +86,13 @@ $.operate.save(prefix + "/edit", $('#form-filereceive-edit').serialize()); } } - - $("input[name='provideDate']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", - autoclose: true - }); - - $("input[name='receiveDate']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", - autoclose: true - }); - - $("input[name='extractDate']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", - autoclose: true - }); - - $("input[name='destoryDate']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", - autoclose: true - }); + function conversionDate(date){ + var year = date.getFullYear(); + var month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要加 1 + var day = String(date.getDate()).padStart(2, '0'); // 日可能是个位数,需要补零 + return year + '-' + month + '-' + day + } + $("input[name='destoryDate']").val(conversionDate(new Date())); - \ No newline at end of file + diff --git a/ruoyi-admin/src/main/resources/templates/system/filedestory/filedestory.html b/ruoyi-admin/src/main/resources/templates/system/filedestory/filedestory.html index 6516f48..fe5ae9f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/filedestory/filedestory.html +++ b/ruoyi-admin/src/main/resources/templates/system/filedestory/filedestory.html @@ -48,19 +48,18 @@
- \ No newline at end of file +