| | |
| | | width="150px" |
| | | prop="createTime" |
| | | ></el-table-column> |
| | | <el-table-column label="操作" fiexd="right" width="210px"> |
| | | <el-table-column label="操作" fiexd="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | type="primary" |
| | |
| | | @click="handlerEdit(scope.row)" |
| | | >修改 |
| | | </el-button> |
| | | <el-button type="danger" size="small" @click="deleteExam(scope.row.id)">删除</el-button> |
| | | <el-button type="success" size="small" @click="markPaper(scope.row)">阅卷</el-button> |
| | | <el-popconfirm |
| | | v-if="scope.row.status === 'not_start'" |
| | | style="margin: 0 5px" |
| | | title="确定要删除该考试吗?" |
| | | @confirm="deleteExam(scope.row.id)" |
| | | > |
| | | <el-button slot="reference" type="danger" size="small">删除</el-button> |
| | | </el-popconfirm> |
| | | |
| | | <el-button v-if="scope.row.status === 'finished'" type="success" size="small" @click="markPaper(scope.row)">阅卷</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-date-picker |
| | | v-model="examForm.time" |
| | | type="datetimerange" |
| | | format="yyyy-MM-dd HH:mm:ss" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期"> |
| | | end-placeholder="结束日期" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="考试地点" :label-width="formLabelWidth" prop="examPlace"> |
| | |
| | | }) |
| | | }, |
| | | handlerEdit (row) { |
| | | this.examForm = row |
| | | this.examForm.time = [row.startTime, row.endTime] |
| | | this.examForm = { |
| | | ...row, |
| | | time: [row.startTime, row.endTime] |
| | | } |
| | | this.title = '修改考试' |
| | | this.open = true |
| | | }, |
| | |
| | | }, |
| | | routerTo (url) { |
| | | this.$router.push(url) |
| | | } |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |