| | |
| | | { |
| | | path: '/', |
| | | name: 'examIndex', |
| | | component: () => import('@/views/Exam/ExamManage.vue') |
| | | component: () => import('@/views/Exam/ExamManage.vue'), |
| | | }, |
| | | { |
| | | path: '/exam/mark/paper', |
| | | name: 'markPaper', |
| | | component: () => import('@/views/Exam/MarkPaper.vue'), |
| | | }, |
| | | { |
| | | path: 'myexam', |
| | |
| | | >修改 |
| | | </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> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | this.MyExamPaperList() |
| | | }, |
| | | methods: { |
| | | markPaper(row) { |
| | | // 跳转阅卷页面 |
| | | this.$router.push({path: "/exam/mark/paper", query: {examName: row.examName, examId: row.id}}) |
| | | }, |
| | | timeFormatter(row) { |
| | | return row.startTime + "至" + row.endTime |
| | | }, |
New file |
| | |
| | | <template> |
| | | <div> |
| | | <div> |
| | | <div></div> |
| | | <div></div> |
| | | </div> |
| | | <div></div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getExamInfo } from "@/api/exam" |
| | | export default { |
| | | name: "MarkPaper", |
| | | mounted() { |
| | | this.examInfo.examName = this.$route.query.examName |
| | | this.examInfo.id = this.$route.query.examId |
| | | this.getExamInfo() |
| | | }, |
| | | data() { |
| | | return { |
| | | examInfo: { |
| | | examName: "", |
| | | id: null, |
| | | paperList: [] |
| | | } |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | | getExamInfo() { |
| | | getExamInfo(this.examInfo.id).then(res => { |
| | | this.examInfo = res.data.data |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |