| | |
| | | >导出 |
| | | </el-button> |
| | | <el-button |
| | | style="display:none" |
| | | type="success" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | @click="handleImport" |
| | | >导入 |
| | | </el-button> |
| | | <el-button |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | icon="el-icon-receiving" |
| | | @click="handleExport" |
| | | >清册打印 |
| | | </el-button> |
| | | <el-button |
| | | type="success" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-download" |
| | | @click="handleImport" |
| | | >清册导入 |
| | | </el-button> |
| | | </template> |
| | | |
| | |
| | | |
| | | export default { |
| | | data () { |
| | | |
| | | var examId = this.$route.query.id; |
| | | return { |
| | | excelBox: false, |
| | | questionBankOption: { |
| | |
| | | res: "data", |
| | | }, |
| | | tip: "请上传 .xls,.xlsx 标准格式文件", |
| | | action: "/api/trainingRegistration/import-trainingRegistration", |
| | | action: "/api/trainingRegistration/import-trainingRegistration?examId="+examId, |
| | | }, |
| | | { |
| | | label: "模板下载", |
| | |
| | | }, |
| | | handleTemplate() { |
| | | window.open( |
| | | `/api/apply/export-template` |
| | | `/api/trainingRegistration/export-template` |
| | | ); |
| | | }, |
| | | uploadAfter(res, done, loading, column) { |
| | |
| | | icon="el-icon-folder-checked" |
| | | v-if="permission.trainingRegistration_import" |
| | | @click="handleImport" |
| | | >清册导入 |
| | | >批量导入 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |