From 9bfb1cea203b7f7627659716fe8b62b1300bae01 Mon Sep 17 00:00:00 2001 From: "20932067@zju.edu.cn" Date: Sat, 20 Feb 2021 12:45:40 +0800 Subject: [PATCH] =?UTF-8?q?ftp=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hchyun-ui/src/api/system/file.js | 7 +++--- hchyun-ui/src/views/system/file/index.vue | 24 +++++++++++++++---- hchyun-ui/src/views/system/role/index.vue | 15 +++++++++++- .../web/controller/system/FileController.java | 15 ++++++++++++ .../common/core/entity/entity/SysRole.java | 2 +- .../java/com/hchyun/system/dao/FileDao.java | 7 ++++++ .../hchyun/system/service/FileService.java | 6 +++++ .../system/service/impl/FileServiceImpl.java | 11 +++++++++ .../resources/mapper/system/FileMapper.xml | 7 +++++- .../resources/mapper/system/SysRoleMapper.xml | 2 +- 10 files changed, 84 insertions(+), 12 deletions(-) diff --git a/hchyun-ui/src/api/system/file.js b/hchyun-ui/src/api/system/file.js index 3e34978..95e5715 100644 --- a/hchyun-ui/src/api/system/file.js +++ b/hchyun-ui/src/api/system/file.js @@ -64,10 +64,11 @@ export function getRoleAll(){ }) } -export function downloadFile(fileId){ +// 获取文件夹列表 +export function getFolder(){ return request({ - url:'/system/file/download/'+fileId, - method:'get' + url:'/system/file/folder', + method:'get', }) } diff --git a/hchyun-ui/src/views/system/file/index.vue b/hchyun-ui/src/views/system/file/index.vue index 08fe9e3..cb7b8eb 100644 --- a/hchyun-ui/src/views/system/file/index.vue +++ b/hchyun-ui/src/views/system/file/index.vue @@ -173,6 +173,16 @@ + + + + +