Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
14487f48
提交
14487f48
authored
10月 20, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
9c0aae9c
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
35 行增加
和
30 行删除
+35
-30
questionListItem.vue
src/components/exam/questionListItem.vue
+3
-1
review.vue
src/pages/teacher/examReview/review.vue
+32
-29
没有找到文件。
src/components/exam/questionListItem.vue
浏览文件 @
14487f48
...
...
@@ -35,7 +35,9 @@
:disabled="disabled"
>
</el-input>
</
template
>
<slot></slot>
<
template
v-if=
"questionType === 3"
>
<slot></slot>
</
template
>
</div>
<div
class=
"question-list-item-ft"
v-if=
"hasResult"
>
<h3
class=
"question-list-item-ft__title"
>
答案解析
</h3>
...
...
src/pages/teacher/examReview/review.vue
浏览文件 @
14487f48
...
...
@@ -19,14 +19,14 @@
<div
class=
"review-btn"
>
<el-button
type=
"primary"
@
click=
"visible = true"
>
点评
</el-button>
</div>
<div
ref=
'reviewCard'
:scorenum=
"item.score"
:questionid=
"item.id"
:itemid=
"data.question_item_id"
></div>
<div
ref=
"reviewCard"
:scorenum=
"item.score"
:questionid=
"item.id"
:itemid=
"data.question_item_id"
></div>
<div
class=
"review-card"
v-if=
"visible"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
本题
{{
item
.
score
}}
分
</span>
<div
class=
"score"
>
<span>
学生得分:
</span>
<input
type=
"number"
:disabled=
"isReviewFlag"
v-model=
"scoreNum"
placeholder=
"请输入分数"
>
<input
type=
"number"
:disabled=
"isReviewFlag"
v-model=
"scoreNum"
placeholder=
"请输入分数"
/
>
</div>
</div>
<div
class=
"textarea"
>
...
...
@@ -37,7 +37,8 @@
placeholder=
"请输入本题点评"
max=
"2"
resize=
"none"
v-model=
"textarea"
>
v-model=
"textarea"
>
</el-input>
</div>
<div
class=
"submit-btn"
>
...
...
@@ -47,21 +48,22 @@
</div>
</div>
</
template
>
<
template
v-slot:students
=
"{ data }"
>
<
template
v-slot:students
>
<div
class=
"stu-list"
>
<div
class=
"title"
>
<span>
学生列表
</span>
<el-select
@
change=
"change"
v-model=
"selectValue"
placeholder=
"请选择"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
<ul>
<li
:class=
"item.id === $route.query.stu_id ? 'active' : ''"
v-for=
"(item, index) in studentList"
:key=
"index"
>
{{
item
.
name
}}
</li>
<li
:class=
"item.id === $route.query.stu_id ? 'active' : ''"
v-for=
"(item, index) in studentList"
:key=
"index"
>
{{
item
.
name
}}
</li>
</ul>
</div>
</
template
>
...
...
@@ -157,14 +159,15 @@ export default {
confirmButtonText
:
'点评'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
api
.
submitReviewDetails
(
param
).
then
(
response
=>
{
this
.
$message
(
'批阅成功'
)
})
}).
catch
(()
=>
{
})
.
then
(()
=>
{
api
.
submitReviewDetails
(
param
).
then
(
response
=>
{
this
.
$message
(
'批阅成功'
)
})
})
.
catch
(()
=>
{})
},
handlePageChange
()
{
handlePageChange
(
index
,
group
,
groupList
)
{
const
refReview
=
this
.
$refs
.
reviewCard
const
itemId
=
refReview
.
getAttribute
(
'itemid'
)
const
questionId
=
refReview
.
getAttribute
(
'questionid'
)
...
...
@@ -186,45 +189,45 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.review-btn
{
.review-btn
{
display
:
flex
;
justify-content
:
right
;
padding
:
20px
0
;
}
.score
{
.score
{
float
:
right
;
display
:
flex
;
input
{
input
{
width
:
90px
;
height
:
100%
;
outline
:
none
;
}
}
.submit-btn
{
.submit-btn
{
display
:
flex
;
justify-content
:
center
;
padding-top
:
20px
;
}
.review-box
{
.review-box
{
// max-width: 500px;
}
.stu-list
{
.title
{
.stu-list
{
.title
{
// text-align: center;
margin-bottom
:
10px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
::v-deep
{
.el-select
{
::v-deep
{
.el-select
{
width
:
120px
;
}
}
}
ul
{
li
{
ul
{
li
{
padding
:
3px
0
;
&
.active
{
&
.active
{
color
:
#c01540
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论