forked from liweijie/education
模板
This commit is contained in:
@@ -67,3 +67,13 @@ export function exportJointTraining() {
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
// 下载联教联训导入模板(返回 Blob)
|
||||
// GET /download/joint-training
|
||||
export function downloadJointTrainingTemplate() {
|
||||
return request({
|
||||
url: '/download/joint-training',
|
||||
method: 'get',
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -115,10 +115,10 @@ export function exportTeachingLog(query) {
|
||||
})
|
||||
}
|
||||
|
||||
// 下载导入模板(返回 Blob),接口形态:GET /log/teaching-log/download-template
|
||||
// 下载导入模板(返回 Blob),接口形态:GET /download/teaching-log
|
||||
export function downloadTeachingLogTemplate() {
|
||||
return request({
|
||||
url: '/log/teaching-log/download-template',
|
||||
url: '/download/teaching-log',
|
||||
method: 'get',
|
||||
responseType: 'blob'
|
||||
})
|
||||
|
||||
@@ -93,3 +93,15 @@ export function listClassroomByJxldh(jxldh) {
|
||||
params: { jxldh }
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载教学场地导入模板(返回 Blob)
|
||||
* GET /download/classroom
|
||||
*/
|
||||
export function downloadClassroomTemplate() {
|
||||
return request({
|
||||
url: '/download/classroom',
|
||||
method: 'get',
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -69,3 +69,42 @@ export function listTraining(params) {
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出培养方案到 Excel(返回 Blob)
|
||||
* GET /training/export
|
||||
*/
|
||||
export function exportTrainingProgram() {
|
||||
return request({
|
||||
url: '/training/export',
|
||||
method: 'get',
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载培养方案导入模板(返回 Blob)
|
||||
* GET /download/training-program
|
||||
*/
|
||||
export function downloadTrainingProgramTemplate() {
|
||||
return request({
|
||||
url: '/download/training-program',
|
||||
method: 'get',
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入培养方案 Excel(multipart,字段名 file)
|
||||
* POST /training/import
|
||||
*/
|
||||
export function importTrainingProgram(file) {
|
||||
const formData = new FormData()
|
||||
formData.append('file', file)
|
||||
return request({
|
||||
url: '/training/import',
|
||||
method: 'post',
|
||||
data: formData,
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -44,4 +44,14 @@ export function updateKb(data) {
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 下载课程科目导入模板(返回 Blob)
|
||||
// GET /download/course-subject
|
||||
export function downloadCourseSubjectTemplate() {
|
||||
return request({
|
||||
url: '/download/course-subject',
|
||||
method: 'get',
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
@@ -61,10 +61,10 @@ export function deleteTeachingMaterial(id) {
|
||||
})
|
||||
}
|
||||
|
||||
/** 教材导入模板下载 GET /teachingMaterial/template */
|
||||
/** 教材导入模板下载 GET /download/teaching-material */
|
||||
export function downloadTeachingMaterialTemplate() {
|
||||
return request({
|
||||
url: '/teachingMaterial/template',
|
||||
url: '/download/teaching-material',
|
||||
method: 'get',
|
||||
responseType: 'blob'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user