| | |
| | | <div class="app-container"> |
| | | <el-form :model="queryParam" ref="queryForm" :inline="true"> |
| | | <el-form-item label="试卷ID:"> |
| | | <el-input v-model="queryParam.id" clearable></el-input> |
| | | <el-input v-model="queryParam.id" clearable @input="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="submitForm">查询</el-button> |
| | | <el-button type="primary" @click="submitForm" size="small">查询</el-button> |
| | | <router-link :to="{ path: '/exam/paper/edit' }" class="link-left"> |
| | | <el-button type="primary" >添加</el-button> |
| | | <el-button type="primary" size="small">添加</el-button> |
| | | </router-link> |
| | | <el-button class="link-left" type="danger" @click="downloadImportTemplate">下载导入模板</el-button> |
| | | <el-button class="link-left" type="danger" @click="downloadImportTemplate" size="small">下载模板</el-button> |
| | | <router-link :to="{ path: '/exam/paper/import' }" class="link-left"> |
| | | <el-button type="success">导入</el-button> |
| | | <el-button type="success" size="small">导入</el-button> |
| | | </router-link> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | // 下载导入模板 |
| | | downloadImportTemplate() { |
| | | examPaperApi.downloadImportTemplate().then(res => { |
| | | downloadExcel(res, '题目导入模板') |
| | | downloadExcel(res, '试卷导入模板') |
| | | }) |
| | | }, |
| | | submitForm() { |