✨ feat: 人员档案前端
This commit is contained in:
@@ -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'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user