Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-qa
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-qa
Commits
ed1a9514
提交
ed1a9514
authored
5月 12, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Auto stash before merge of "master" and "origin/master"
上级
17f6d10c
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
25 行增加
和
8 行删除
+25
-8
CheckPaper.vue
src/modules/exam/components/CheckPaper.vue
+25
-8
没有找到文件。
src/modules/exam/components/CheckPaper.vue
浏览文件 @
ed1a9514
...
@@ -9,6 +9,13 @@
...
@@ -9,6 +9,13 @@
:titles=
"['备选栏', '已选栏']"
:titles=
"['备选栏', '已选栏']"
>
>
</el-transfer>
</el-transfer>
<el-pagination
:current-page
.
sync=
"page"
layout=
"total, prev, pager, next"
:total=
"total"
:page-size=
"limit"
@
current-change=
"handleCurrentChange"
></el-pagination>
<el-card
style=
"margin-top: 30px"
>
<el-card
style=
"margin-top: 30px"
>
<ul
style=
"margin-top: 20px"
>
<ul
style=
"margin-top: 20px"
>
<li
class=
"paper_desc"
>
考生的试卷会从以上已选的试卷中随机抽取
</li>
<li
class=
"paper_desc"
>
考生的试卷会从以上已选的试卷中随机抽取
</li>
...
@@ -31,7 +38,11 @@ import { getExamPaperList, updateExam, getExamPaperDetail } from '../api'
...
@@ -31,7 +38,11 @@ import { getExamPaperList, updateExam, getExamPaperDetail } from '../api'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
perPage
:
20
,
total
:
0
,
page
:
1
,
limit
:
30
,
// perPage: 20,
row
:
{},
row
:
{},
ExamParerList
:
[],
ExamParerList
:
[],
q
:
[],
q
:
[],
...
@@ -49,20 +60,26 @@ export default {
...
@@ -49,20 +60,26 @@ export default {
},
},
methods
:
{
methods
:
{
handleCurrentChange
(
val
)
{
// console.log(val)
this
.
page
=
val
this
.
getExamParerList
()
},
// 获取试卷列表
// 获取试卷列表
getExamParerList
()
{
getExamParerList
()
{
const
params
=
{
q
:
''
}
const
params
=
{
q
:
''
,
page
:
this
.
page
,
'per-page'
:
this
.
limit
}
params
[
'per-page'
]
=
this
.
perPage
//
params['per-page'] = this.perPage
this
.
ExamParerList
=
[]
//
this.ExamParerList = []
getExamPaperList
(
params
).
then
(
res
=>
{
getExamPaperList
(
params
).
then
(
res
=>
{
this
.
total
=
res
.
data
.
total
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
//
this.perPage = res.data.total
if
(
this
.
perPage
!==
res
.
data
.
list
.
length
)
{
//
if (this.perPage !== res.data.list.length) {
this
.
getExamParerList
()
//
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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论