forked from liweijie/education
选修课和课程科目,上传按钮样式调整,点击按钮选择文件导入
This commit is contained in:
@@ -46,6 +46,19 @@ export function batchStopElective(bhList) {
|
||||
})
|
||||
}
|
||||
|
||||
/** 导入选修课 Excel POST /jys/elective/import(multipart,字段名 file) */
|
||||
export function importElective(file) {
|
||||
const formData = new FormData()
|
||||
formData.append('file', file)
|
||||
return request({
|
||||
url: '/jys/elective/import',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
timeout: 60000
|
||||
})
|
||||
}
|
||||
|
||||
// 下载选修班列表(Excel)
|
||||
export function exportElectiveList(query) {
|
||||
return request({
|
||||
|
||||
Reference in New Issue
Block a user