feat: 人员档案前端

This commit is contained in:
2025-03-08 16:58:37 +08:00
parent ea298f00f6
commit a4faa6b48a
4 changed files with 281 additions and 272 deletions

View File

@@ -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'
})
}