Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
ebd09796
提交
ebd09796
authored
12月 07, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:对接考试数据详情
上级
bcb2d9a7
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
37 行增加
和
19 行删除
+37
-19
QuestionList.vue
src/components/data/QuestionList.vue
+1
-8
RankingAll.vue
src/modules/teacher/data/exam/components/RankingAll.vue
+19
-2
index.js
src/modules/teacher/data/exam/index.js
+1
-1
ClassDetail.vue
src/modules/teacher/data/exam/views/ClassDetail.vue
+15
-7
TopicData.vue
src/modules/teacher/data/exam/views/TopicData.vue
+1
-1
没有找到文件。
src/components/data/QuestionList.vue
浏览文件 @
ebd09796
<
template
>
<
template
>
<div>
<div>
<
!--
<
div
class=
"exam-detail"
v-for=
"(data, index) in examData"
:key=
"index"
>
<div
class=
"exam-detail"
v-for=
"(data, index) in examData"
:key=
"index"
>
<div
class=
"title-type"
>
{{
questionTypeText
[
data
.
question_type
]
}}
</div>
<div
class=
"title-type"
>
{{
questionTypeText
[
data
.
question_type
]
}}
</div>
<template
v-for=
"pItem in data.list"
>
<template
v-for=
"pItem in data.list"
>
<question-list-item
<question-list-item
...
@@ -10,13 +10,6 @@
...
@@ -10,13 +10,6 @@
:key=
"item.id"
:key=
"item.id"
></question-list-item>
></question-list-item>
</
template
>
</
template
>
</div>
-->
<div
class=
"exam-detail"
v-if=
"examData.length"
>
<!-- <div class="title-type">{{ questionTypeText[examData[0].question_type] }}</div> -->
<question-list-item
:data=
"examData[0].list[0][0]"
:question=
"examData[0]"
></question-list-item>
</div>
</div>
</div>
</div>
</template>
</template>
...
...
src/modules/teacher/data/exam/components/RankingAll.vue
浏览文件 @
ebd09796
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</
template
>
</
template
>
<
template
v-slot:table_operate=
"{ row }"
>
<
template
v-slot:table_operate=
"{ row }"
>
<el-button
type=
"text"
@
click=
"toDetail(row)"
v-if=
"tabActive === 'finished'"
>
查看
</el-button>
<el-button
type=
"text"
@
click=
"toDetail(row)"
v-if=
"tabActive === 'finished'"
>
查看
</el-button>
<el-button
type=
"text"
@
click=
"to
Detail
(row)"
v-else-if=
"tabActive === 'toEvaluate'"
>
批阅
</el-button>
<el-button
type=
"text"
@
click=
"to
Review
(row)"
v-else-if=
"tabActive === 'toEvaluate'"
>
批阅
</el-button>
<div
v-else
>
-
</div>
<div
v-else
>
-
</div>
</
template
>
</
template
>
</app-list>
</app-list>
...
@@ -43,7 +43,24 @@ export default {
...
@@ -43,7 +43,24 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
toDetail
()
{},
toDetail
(
data
)
{
this
.
$router
.
push
({
path
:
'/teacher/data/exam/examData/classDetail'
,
query
:
{
id
:
data
.
id
}
})
},
toReview
(
data
)
{
this
.
$router
.
push
({
path
:
'/teacher/exam/exam/review'
,
query
:
{
sheet_id
:
data
.
id
,
stu_id
:
data
.
student_id
}
})
console
.
log
(
data
)
},
// 根据首次缴费时间排序
// 根据首次缴费时间排序
sortChange
(
columns
)
{
sortChange
(
columns
)
{
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
...
...
src/modules/teacher/data/exam/index.js
浏览文件 @
ebd09796
...
@@ -6,7 +6,7 @@ const routes = [
...
@@ -6,7 +6,7 @@ const routes = [
{
path
:
'/teacher/data/exam'
,
component
:
()
=>
import
(
'./views/List.vue'
)
},
{
path
:
'/teacher/data/exam'
,
component
:
()
=>
import
(
'./views/List.vue'
)
},
{
path
:
'/teacher/data/exam/class'
,
component
:
()
=>
import
(
'./views/ClassList.vue'
)
},
{
path
:
'/teacher/data/exam/class'
,
component
:
()
=>
import
(
'./views/ClassList.vue'
)
},
{
path
:
'/teacher/data/exam/PersonalList'
,
component
:
()
=>
import
(
'./views/PersonalList.vue'
)
},
{
path
:
'/teacher/data/exam/PersonalList'
,
component
:
()
=>
import
(
'./views/PersonalList.vue'
)
},
{
path
:
'/teacher/data/exam/classDetail'
,
component
:
()
=>
import
(
'./views/ClassDetail.vue'
)
},
{
path
:
'/teacher/data/exam/
examData/
classDetail'
,
component
:
()
=>
import
(
'./views/ClassDetail.vue'
)
},
{
path
:
'/teacher/data/exam/examData'
,
component
:
()
=>
import
(
'./views/ExamData.vue'
)
},
{
path
:
'/teacher/data/exam/examData'
,
component
:
()
=>
import
(
'./views/ExamData.vue'
)
},
{
path
:
'/teacher/data/exam/examData/topicData'
,
component
:
()
=>
import
(
'./views/TopicData.vue'
)
}
{
path
:
'/teacher/data/exam/examData/topicData'
,
component
:
()
=>
import
(
'./views/TopicData.vue'
)
}
]
]
...
...
src/modules/teacher/data/exam/views/ClassDetail.vue
浏览文件 @
ebd09796
...
@@ -19,14 +19,14 @@ export default {
...
@@ -19,14 +19,14 @@ export default {
examData
:
[],
examData
:
[],
infoData
:
[
infoData
:
[
[
[
{
title
:
'考生姓名'
,
value
:
'王大坝'
},
{
title
:
'考生姓名'
,
value
:
'王大坝'
,
key
:
'personal_name'
},
{
title
:
'学号'
,
value
:
'test001'
},
{
title
:
'学号'
,
value
:
'test001'
,
key
:
'sno'
},
{
title
:
'分数'
,
value
:
'100'
}
{
title
:
'分数'
,
value
:
'100'
,
key
:
'score'
}
],
],
[
[
{
title
:
'提交日期'
,
value
:
'2021-11-30 10:43:00'
},
{
title
:
'提交日期'
,
value
:
'2021-11-30 10:43:00'
,
key
:
'created_time'
},
{
title
:
'批改日期'
,
value
:
'2021-11-30 10:43:00'
},
{
title
:
'批改日期'
,
value
:
'2021-11-30 10:43:00'
,
key
:
'updated_time'
},
{
title
:
'状态'
,
value
:
'已批阅'
}
{
title
:
'状态'
,
value
:
'已批阅'
,
key
:
'status'
}
]
]
]
]
}
}
...
@@ -37,8 +37,16 @@ export default {
...
@@ -37,8 +37,16 @@ export default {
},
},
methods
:
{
methods
:
{
getTopic
()
{
getTopic
()
{
api
.
getReviewDetails
({
sheet_id
:
'6869950724323672064'
}).
then
(
response
=>
{
api
.
getReviewDetails
({
sheet_id
:
this
.
$route
.
query
.
id
}).
then
(
response
=>
{
this
.
data
=
JSON
.
parse
(
response
.
data
).
sheet
this
.
data
=
JSON
.
parse
(
response
.
data
).
sheet
const
status
=
{
3
:
'考卷生成'
,
0
:
'已缓存'
,
1
:
'已提交'
,
2
:
'已批阅'
}
this
.
infoData
=
this
.
infoData
.
reduce
((
a
,
b
)
=>
{
a
.
push
(
b
.
map
(
item
=>
{
item
.
key
===
'status'
?
item
.
value
=
status
[
this
.
data
[
item
.
key
]]
:
item
.
value
=
this
.
data
[
item
.
key
]
return
item
}))
return
a
},
[])
this
.
setExamData
()
this
.
setExamData
()
})
})
},
},
...
...
src/modules/teacher/data/exam/views/TopicData.vue
浏览文件 @
ebd09796
...
@@ -75,7 +75,7 @@ export default {
...
@@ -75,7 +75,7 @@ export default {
},
},
methods
:
{
methods
:
{
getTopic
()
{
getTopic
()
{
api
.
getReviewDetails
({
sheet_id
:
'6869950724323672064'
}).
then
(
response
=>
{
api
.
getReviewDetails
({
sheet_id
:
this
.
$route
.
query
.
id
}).
then
(
response
=>
{
this
.
data
=
JSON
.
parse
(
response
.
data
).
sheet
this
.
data
=
JSON
.
parse
(
response
.
data
).
sheet
this
.
setExamData
()
this
.
setExamData
()
})
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论