选修课和课程科目,上传按钮样式调整,点击按钮选择文件导入

This commit is contained in:
2026-09-22 16:46:56 +08:00
parent 1ac022757d
commit f87e02b06b
3 changed files with 144 additions and 61 deletions
+13
View File
@@ -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({