| | |
| | | <router-link :to="{ path: '/exam/paper/edit' }" class="link-left"> |
| | | <el-button type="primary" >添加</el-button> |
| | | </router-link> |
| | | <el-button class="link-left" type="danger" @click="downloadImportTemplate">下载导入模板</el-button> |
| | | <el-button class="link-left" type="danger" @click="downloadImportTemplate">下载模板</el-button> |
| | | <router-link :to="{ path: '/exam/paper/import' }" class="link-left"> |
| | | <el-button type="success">导入</el-button> |
| | | </router-link> |
| | |
| | | // 下载导入模板 |
| | | downloadImportTemplate() { |
| | | examPaperApi.downloadImportTemplate().then(res => { |
| | | downloadExcel(res, '题目导入模板') |
| | | downloadExcel(res, '试卷导入模板') |
| | | }) |
| | | }, |
| | | submitForm() { |