Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-qa
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-qa
Commits
b5214761
提交
b5214761
authored
3月 03, 2022
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
01bcb2cb
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
32 行增加
和
5 行删除
+32
-5
AutomaticPaper.vue
src/modules/paper/components/AutomaticPaper.vue
+7
-0
PaperQuestions.vue
src/modules/paper/components/PaperQuestions.vue
+13
-1
List.vue
src/modules/paper/views/List.vue
+12
-4
没有找到文件。
src/modules/paper/components/AutomaticPaper.vue
浏览文件 @
b5214761
...
@@ -261,6 +261,13 @@ export default {
...
@@ -261,6 +261,13 @@ export default {
this
.
questionList
.
forEach
(
question
=>
{
this
.
questionList
.
forEach
(
question
=>
{
rules
.
push
(
Object
.
assign
({},
question
))
rules
.
push
(
Object
.
assign
({},
question
))
})
})
for
(
let
i
=
0
;
i
<
rules
.
length
;
i
++
)
{
const
item
=
rules
[
i
]
if
(
!
item
.
question_score
||
!
item
.
question_num
)
{
this
.
$message
.
error
(
`第
${
i
+
1
}
行规则配置错误,请检查后重试`
)
return
}
}
const
parmas
=
{
id
:
this
.
data
.
id
,
permission
:
this
.
form
.
permission
,
rules
}
const
parmas
=
{
id
:
this
.
data
.
id
,
permission
:
this
.
form
.
permission
,
rules
}
updatePaperRules
(
parmas
).
then
(
res
=>
{
updatePaperRules
(
parmas
).
then
(
res
=>
{
this
.
$message
.
success
(
'保存成功'
)
this
.
$message
.
success
(
'保存成功'
)
...
...
src/modules/paper/components/PaperQuestions.vue
浏览文件 @
b5214761
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
>
>
</
template
>
</
template
>
<
template
v-if=
"data.paper_type === 2"
>
<
template
v-if=
"data.paper_type === 2"
>
<el-button
type=
"primary"
@
click=
"
showSelectQuestion
"
>
自动组卷
</el-button>
<el-button
type=
"primary"
@
click=
"
handleAutoPaper
"
>
自动组卷
</el-button>
</
template
>
</
template
>
</template>
</template>
<question-list
<question-list
...
@@ -115,6 +115,18 @@ export default {
...
@@ -115,6 +115,18 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
// 自动组卷添加试题
handleAutoPaper
()
{
if
(
this
.
questions
.
length
)
{
this
.
$confirm
(
'该试卷已自动组卷完成,再次自动组卷将会清空现有试题,是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
this
.
showSelectQuestion
)
}
else
{
this
.
showSelectQuestion
()
}
},
// 增加试题
// 增加试题
showSelectQuestion
()
{
showSelectQuestion
()
{
this
.
visible
=
true
this
.
visible
=
true
...
...
src/modules/paper/views/List.vue
浏览文件 @
b5214761
...
@@ -81,8 +81,8 @@ export default {
...
@@ -81,8 +81,8 @@ export default {
}
}
],
],
columns
:
[
columns
:
[
{
type
:
'selection'
,
width
:
'50px'
,
fixed
:
'left'
},
{
type
:
'selection'
,
fixed
:
'left'
},
{
type
:
'index'
,
label
:
'序号'
,
minWidth
:
'50px'
,
fixed
:
'left'
},
{
type
:
'index'
,
label
:
'序号'
,
fixed
:
'left'
},
{
{
label
:
'组卷模式'
,
label
:
'组卷模式'
,
prop
:
'paper_type'
,
prop
:
'paper_type'
,
...
@@ -91,8 +91,16 @@ export default {
...
@@ -91,8 +91,16 @@ export default {
return
map
[
row
.
paper_type
]
||
row
.
paper_type
return
map
[
row
.
paper_type
]
||
row
.
paper_type
}
}
},
},
{
label
:
'试卷分类'
,
prop
:
'paper_category.category_name'
},
{
{
label
:
'试卷名称'
,
prop
:
'paper_title'
},
label
:
'试卷用途'
,
prop
:
'paper_uses'
,
computed
:
({
row
})
=>
{
const
map
=
{
1
:
'考试'
,
2
:
'课后作业'
,
3
:
'课程测试'
}
return
map
[
row
.
paper_type
]
||
row
.
paper_type
}
},
{
label
:
'试卷分类'
,
prop
:
'paper_category.category_name'
,
minWidth
:
200
},
{
label
:
'试卷名称'
,
prop
:
'paper_title'
,
minWidth
:
200
},
{
label
:
'总分'
,
prop
:
'paper_total_score'
},
{
label
:
'总分'
,
prop
:
'paper_total_score'
},
{
label
:
'及格分数'
,
prop
:
'pass_score'
},
{
label
:
'及格分数'
,
prop
:
'pass_score'
},
{
label
:
'更新人'
,
prop
:
'operator.realname'
},
{
label
:
'更新人'
,
prop
:
'operator.realname'
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论