提交 17f6d10c authored 作者: lihuihui's avatar lihuihui

update

上级 d5faddbe
...@@ -31,6 +31,7 @@ import { getExamPaperList, updateExam, getExamPaperDetail } from '../api' ...@@ -31,6 +31,7 @@ import { getExamPaperList, updateExam, getExamPaperDetail } from '../api'
export default { export default {
data() { data() {
return { return {
perPage: 20,
row: {}, row: {},
ExamParerList: [], ExamParerList: [],
q: [], q: [],
...@@ -51,12 +52,17 @@ export default { ...@@ -51,12 +52,17 @@ export default {
// 获取试卷列表 // 获取试卷列表
getExamParerList() { getExamParerList() {
const params = { q: '' } const params = { q: '' }
params['per-page'] = 10000 params['per-page'] = this.perPage
this.ExamParerList = []
getExamPaperList(params).then(res => { getExamPaperList(params).then(res => {
this.ExamParerList = res.data.list.reduce((a, b) => { this.ExamParerList = res.data.list.reduce((a, b) => {
this.ExamParerList.push({ label: b.paper_title, key: b.id }) this.ExamParerList.push({ label: b.paper_title, key: b.id })
return this.ExamParerList return this.ExamParerList
}, []) }, [])
this.perPage = res.data.total
if (this.perPage !== res.data.list.length) {
this.getExamParerList()
}
// this.getCheckedExam() // this.getCheckedExam()
if (this.$route.query.exam_id && this.$route.query.isEdit === '2') { if (this.$route.query.exam_id && this.$route.query.isEdit === '2') {
this.getDetailInfo() // 获取详情 this.getDetailInfo() // 获取详情
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论