diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development index 301f7ab..990dfd2 100644 --- a/ruoyi-ui/.env.development +++ b/ruoyi-ui/.env.development @@ -5,8 +5,8 @@ VUE_APP_TITLE = 福安德综合办公系统 ENV = 'development' # 若依管理系统/开发环境 -VUE_APP_BASE_API = '/prod-api' -# VUE_APP_BASE_API = 'http://110.41.139.73:8080' +# VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = 'http://110.41.139.73:8080' # 应用访问路径 例如使用前缀 /admin/ VUE_APP_CONTEXT_PATH = '/' diff --git a/ruoyi-ui/src/api/oa/document.js b/ruoyi-ui/src/api/oa/document.js index ad65479..93a175f 100644 --- a/ruoyi-ui/src/api/oa/document.js +++ b/ruoyi-ui/src/api/oa/document.js @@ -31,4 +31,28 @@ export function addFile(userId, fileList) { fileList } }) +} + +/** + * 文件上传 + */ +export function uploadFile(file) { + return request({ + url: '/common/upload', + method: 'post', + data: file, + headers: { + 'Content-Type': 'multipart/form-data' + } + }) +} + +/** + * 获取文件类型字典 + */ +export function getFileTypeList() { + return request({ + url: '/system/dict/data/list?dictType=people_file_type', + method: 'get' + }) } \ No newline at end of file diff --git a/ruoyi-ui/src/views/oa/peoples/document/FileList.vue b/ruoyi-ui/src/views/oa/peoples/document/FileList.vue index bc9ba7d..70c4b78 100644 --- a/ruoyi-ui/src/views/oa/peoples/document/FileList.vue +++ b/ruoyi-ui/src/views/oa/peoples/document/FileList.vue @@ -1,15 +1,10 @@ - - 添加文件 - 删除选中 - 打印列表 - - - 已选 {{ selectedFiles.length }} 个文件 - - + + 添加文件 + + - + - {{ row.fileName }} @@ -32,50 +26,90 @@ {{ row.fileType }} - - {{ formatSize(row.fileSize) }} - {{ formatDate(row.uploadTime) }} - 预览 + 下载 - + 将文件拖到此处,或点击上传 - 支持格式:doc/docx/pdf/jpg/png,单个文件不超过50MB + 支持格式:doc/docx/pdf/jpg/png,单个文件不超过50MB + + + + + {{ file.name }} + + + + + + + + + @@ -191,31 +273,21 @@ export default { padding: 20px; } -.operation-bar { - margin-bottom: 15px; +.file-form { + margin-top: 20px; +} + +.file-item { display: flex; align-items: center; - gap: 12px; + gap: 10px; } -.selection-count { - margin-left: auto; - color: #666; - font-size: 14px; -} - -.file-name-cell { - display: flex; - align-items: center; - gap: 8px; -} - -.file-icon { - font-size: 18px; - color: #409EFF; -} - -.upload-demo { - text-align: center; +.file-name { + flex: none; + width: 150px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } \ No newline at end of file diff --git a/ruoyi-ui/src/views/oa/peoples/document/index.vue b/ruoyi-ui/src/views/oa/peoples/document/index.vue index 0d98bd2..90b2fab 100644 --- a/ruoyi-ui/src/views/oa/peoples/document/index.vue +++ b/ruoyi-ui/src/views/oa/peoples/document/index.vue @@ -1,26 +1,18 @@ + - + - - + + - + 搜索 @@ -28,251 +20,172 @@ + - 导出 + + 导出 + - + + - - + + - 男 - 女 + {{ scope.row.sex === '0' ? '男' : '女' }} - - + - {{scope.row.joiningDate!==null?scope.row.joiningDate:'未完成审批流程'}} + {{ scope.row.joiningDate || '未完成审批流程' }} - 添加文件 - 详情 + + 文件管理 + + + 详情 + - + + - - - - - 人员详情 - - 添加 - 删除 - 打印 - - - - - - - - - 已选择 {{ selectedItems.length }} 项 - - - - - - - - - - - {{ item.label }}: - {{ item.value }} - - - - - - - + + + - - - - - + + + + \ No newline at end of file