| | |
| | | icon="el-icon-plus" |
| | | @click="questionBankHandleAdd">新 增 |
| | | </el-button> |
| | | <!-- <el-button |
| | | type="success" |
| | | size="small" |
| | | plain |
| | | icon="el-icon-upload2" |
| | | @click="handleImport" |
| | | >导入 |
| | | </el-button> --> |
| | | <el-button type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | |
| | | </el-button> |
| | | </template> |
| | | |
| | | <template slot-scope="{row}" slot="menu"> |
| | | <el-button type="text" |
| | | size="mini" |
| | | icon="el-icon-edit" |
| | | @click="questionBankHandleAdd(row)">编辑 |
| | | </el-button> |
| | | <el-button type="text" |
| | | size="mini" |
| | | icon="el-icon-delete" |
| | | @click="questionBankHandleDel(row)">删除 |
| | | </el-button> |
| | | </template> |
| | | |
| | | </avue-crud> |
| | | |
| | | <el-dialog |
| | | title="题目导入" |
| | | append-to-body |
| | | :visible.sync="excelBox" |
| | | width="555px" |
| | | > |
| | | <avue-form |
| | | :option="excelOption" |
| | | v-model="excelForm" |
| | | :upload-after="uploadAfter" |
| | | > |
| | | <template slot="excelTemplate"> |
| | | <el-button type="primary" @click="handleTemplate"> |
| | | 点击下载<i class="el-icon-download el-icon--right"></i> |
| | | </el-button> |
| | | </template> |
| | | </avue-form> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | |
| | |
| | | return { |
| | | questionBankOption: { |
| | | // 操作栏多余按钮去除 |
| | | delBtn: true, |
| | | delBtn: false, |
| | | |
| | | editBtn: false, |
| | | |
| | |
| | | }, { |
| | | label: '判断题', |
| | | value: 2, |
| | | }, { |
| | | label: '实操题', |
| | | value: 3, |
| | | }], |
| | | slot: true, |
| | | width: 96, |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | questionBankHandleAdd(){ |
| | | this.$refs.addsubject.inits(); |
| | | questionBankHandleAdd(row){ |
| | | this.$refs.addsubject.inits(row.id); |
| | | }, |
| | | questionBankOnLoad (page, params = {}) { |
| | | this.questionBankLoading = false; |
| | |
| | | this.$refs.questionBankCrud.toggleSelection(); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |