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

update

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