forked from liweijie/education
学员学籍异动申请新增报错
This commit is contained in:
@@ -1125,7 +1125,11 @@ export default {
|
||||
// ==================== 模板下载 / 导入 ====================
|
||||
handleDownloadTemplate() {
|
||||
downloadTeachingMaterialTemplate().then(blob => {
|
||||
saveAs(blob, '教材管理导入模板.xls')
|
||||
if (blob && blob.type && blob.type.indexOf('json') !== -1) {
|
||||
this.$message.error('模板下载失败')
|
||||
return
|
||||
}
|
||||
saveAs(blob, '教材管理导入模板.xlsx')
|
||||
this.$message.success('模板下载成功')
|
||||
}).catch(() => {})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user