diff --git a/src/main/java/cn/stylefeng/guns/modular/file/FileViewController.java b/src/main/java/cn/stylefeng/guns/modular/file/FileViewController.java index 2602c433..3c6f0507 100644 --- a/src/main/java/cn/stylefeng/guns/modular/file/FileViewController.java +++ b/src/main/java/cn/stylefeng/guns/modular/file/FileViewController.java @@ -1,4 +1,4 @@ -package cn.stylefeng.guns.modular.file; +package cn.stylefeng.guns.modular.file.controller; import cn.stylefeng.roses.kernel.resource.api.annotation.ApiResource; import cn.stylefeng.roses.kernel.resource.api.annotation.GetResource; @@ -7,15 +7,16 @@ import org.springframework.stereotype.Controller; /** * 文件管理界面 - * - * @author lgq - * @date 2021/1/9 + * @author : lgq + * @date : 2021/1/9 */ @Controller @Slf4j @ApiResource(name = "文件管理界面") public class FileViewController { + + /** * 文件管理首页 * @@ -27,4 +28,18 @@ public class FileViewController { return "/modular/system/fileInfo/file_info.html"; } + + + /** + * 文件详情页面 + * + * @author lgq + * @date 2021/1/12 下午11:11 + */ + @GetResource(name = "文件详情页面", path = "/view/fileInfoDetails") + public String details(){ + + return "/modular/system/fileInfo/file_info_details.html"; + } + } diff --git a/src/main/webapp/assets/modular/system/fileInfo/file_info.js b/src/main/webapp/assets/modular/system/fileInfo/file_info.js index 664c359b..693d6cc6 100644 --- a/src/main/webapp/assets/modular/system/fileInfo/file_info.js +++ b/src/main/webapp/assets/modular/system/fileInfo/file_info.js @@ -66,12 +66,12 @@ layui.use(['table', 'form', 'func', 'HttpRequest', 'util', 'upload'], function ( - // 点击编辑 - FileInfo.openEditDlg = function (data) { + // 点击详情 + FileInfo.openDetails = function (data) { func.open({ height: 800, - title: '修改职位', - content: Feng.ctxPath + '/position/editView?positionId=' + data.positionId, + title: '详情', + content: Feng.ctxPath + '/view/fileInfoDetails?fileId=' + data.fileId, tableId: FileInfo.tableId }); }; @@ -106,31 +106,10 @@ layui.use(['table', 'form', 'func', 'HttpRequest', 'util', 'upload'], function ( FileInfo.openPreview = function (data) { var imgUrl = Feng.ctxPath + '/sysFileInfo/previewByObjectName?fileBucket=' + data.fileBucket + '&fileObjectName=' + data.fileObjectName; - // layer.open({ - // type: 1, - // title: false, - // closeBtn: 0, - // skin: 'layui-layer-nobg', //没有背景色 - // shadeClose: true, - // content: '