| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getExamInfo } from "@/api/exam" |
| | | import { getExamInfo } from '@/api/exam' |
| | | |
| | | export default { |
| | | name: "MarkPaper", |
| | | mounted() { |
| | | name: 'MarkPaper', |
| | | mounted () { |
| | | this.examInfo.examName = this.$route.query.examName |
| | | this.examInfo.id = this.$route.query.examId |
| | | this.getExamInfo() |
| | | }, |
| | | data() { |
| | | data () { |
| | | return { |
| | | examInfo: { |
| | | examName: "", |
| | | examName: '', |
| | | id: null, |
| | | paperList: [] |
| | | } |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | getExamInfo() { |
| | | getExamInfo () { |
| | | getExamInfo(this.examInfo.id).then(res => { |
| | | this.examInfo = res.data.data |
| | | }) |