forked from liweijie/education
人才培养方案
This commit is contained in:
@@ -83,12 +83,12 @@ export function exportTrainingProgram() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载培养方案导入模板(返回 Blob)
|
||||
* GET /download/training-program
|
||||
* 下载培养方案目录导入模板(返回 Blob)
|
||||
* GET /training/template
|
||||
*/
|
||||
export function downloadTrainingProgramTemplate() {
|
||||
return request({
|
||||
url: '/download/training-program',
|
||||
url: '/training/template',
|
||||
method: 'get',
|
||||
responseType: 'blob'
|
||||
})
|
||||
|
||||
@@ -631,7 +631,7 @@ export default {
|
||||
},
|
||||
handleTemplateDownload() {
|
||||
downloadTrainingProgramTemplate().then(blob => {
|
||||
saveAs(blob, '人才培养方案课程数据文件模板.xls')
|
||||
saveAs(blob, '人才培养方案目录模板.xlsx')
|
||||
this.$message.success('模板下载成功')
|
||||
}).catch(() => {})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user