Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
694bcefa
提交
694bcefa
authored
12月 07, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'vite' of
https://gitlab.ezijing.com/ezijing/x-learn
into vite
上级
fa1b5ea4
e593fb7a
隐藏空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
41 行增加
和
66 行删除
+41
-66
AppList.vue
src/components/base/AppList.vue
+1
-1
resultCard.vue
src/components/exam/result/resultCard.vue
+10
-6
Result.vue
src/modules/exam/test/views/Result.vue
+0
-2
ClassLIst.vue
src/modules/teacher/data/course/views/ClassLIst.vue
+0
-1
List.vue
src/modules/teacher/data/course/views/List.vue
+1
-6
PersonalList.vue
src/modules/teacher/data/course/views/PersonalList.vue
+0
-1
Process.vue
src/modules/teacher/data/course/views/Process.vue
+1
-2
Finished.vue
src/modules/teacher/data/exam/components/Finished.vue
+0
-2
QuestionType.vue
src/modules/teacher/data/exam/components/QuestionType.vue
+0
-2
RankingAll.vue
src/modules/teacher/data/exam/components/RankingAll.vue
+2
-3
ScoreRanking.vue
src/modules/teacher/data/exam/components/ScoreRanking.vue
+0
-1
SetScoreRange.vue
src/modules/teacher/data/exam/components/SetScoreRange.vue
+0
-1
TitleData.vue
src/modules/teacher/data/exam/components/TitleData.vue
+0
-2
QuestionListItem.vue
.../teacher/data/exam/components/detail/QuestionListItem.vue
+4
-7
ClassDetail.vue
src/modules/teacher/data/exam/views/ClassDetail.vue
+6
-5
ClassList.vue
src/modules/teacher/data/exam/views/ClassList.vue
+3
-4
ExamData.vue
src/modules/teacher/data/exam/views/ExamData.vue
+9
-11
PersonalList.vue
src/modules/teacher/data/exam/views/PersonalList.vue
+0
-4
TopicData.vue
src/modules/teacher/data/exam/views/TopicData.vue
+4
-5
没有找到文件。
src/components/base/AppList.vue
浏览文件 @
694bcefa
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
// 是否含有翻页
// 是否含有翻页
hasPagination
:
{
type
:
Boolean
,
default
:
true
},
hasPagination
:
{
type
:
Boolean
,
default
:
true
},
// 每页多少条数据
// 每页多少条数据
limit
:
{
type
:
Number
,
default
:
2
0
},
limit
:
{
type
:
Number
,
default
:
1
0
},
pagationLayout
:
{
type
:
String
,
default
:
'total, prev, pager, next, sizes, jumper'
}
pagationLayout
:
{
type
:
String
,
default
:
'total, prev, pager, next, sizes, jumper'
}
},
},
data
()
{
data
()
{
...
...
src/components/exam/result/resultCard.vue
浏览文件 @
694bcefa
...
@@ -54,8 +54,7 @@ export default {
...
@@ -54,8 +54,7 @@ export default {
order
:
[]
order
:
[]
}
}
},
},
computed
:
{
computed
:
{},
},
mounted
()
{
mounted
()
{
this
.
changeQuestion
=
this
.
setData
()
this
.
changeQuestion
=
this
.
setData
()
},
},
...
@@ -69,22 +68,27 @@ export default {
...
@@ -69,22 +68,27 @@ export default {
list
.
question_list
.
map
(
item
=>
{
list
.
question_list
.
map
(
item
=>
{
const
isOptions
=
Array
.
isArray
(
item
.
question_options
)
?
item
.
question_options
[
0
]
:
item
.
question_options
const
isOptions
=
Array
.
isArray
(
item
.
question_options
)
?
item
.
question_options
[
0
]
:
item
.
question_options
if
(
!
isOptions
)
{
if
(
!
isOptions
)
{
this
.
data
.
score_items
[
list
.
question_item_id
][
item
.
id
].
checked_flag
?
item
.
cardStust
=
4
:
item
.
cardStust
=
5
this
.
data
.
score_items
[
list
.
question_item_id
][
item
.
id
].
checked_flag
?
(
item
.
cardStust
=
4
)
:
(
item
.
cardStust
=
5
)
return
item
return
item
}
else
{
}
else
{
const
ans
=
this
.
data
.
answers
[
list
.
question_item_id
][
item
.
id
].
answer
||
this
.
data
.
answers
[
list
.
question_item_id
][
item
.
id
].
answers
const
ans
=
this
.
data
.
answers
[
list
.
question_item_id
][
item
.
id
].
answer
||
this
.
data
.
answers
[
list
.
question_item_id
][
item
.
id
].
answers
if
(
!
ans
.
length
)
{
if
(
!
ans
.
length
)
{
item
.
cardStust
=
3
item
.
cardStust
=
3
return
item
return
item
}
else
{
}
else
{
this
.
data
.
score_items
[
list
.
question_item_id
][
item
.
id
].
is_right
?
(
item
.
cardStust
=
1
)
:
(
item
.
cardStust
=
2
)
this
.
data
.
score_items
[
list
.
question_item_id
][
item
.
id
].
is_right
?
(
item
.
cardStust
=
1
)
:
(
item
.
cardStust
=
2
)
return
item
return
item
}
}
}
}
})
})
data
.
push
(
list
)
data
.
push
(
list
)
})
})
// console.log(data, '=123')
this
.
order
=
data
this
.
order
=
data
},
},
goQuestion
(
id
)
{
goQuestion
(
id
)
{
...
...
src/modules/exam/test/views/Result.vue
浏览文件 @
694bcefa
...
@@ -155,7 +155,6 @@ export default {
...
@@ -155,7 +155,6 @@ export default {
// this.accuracText = parseInt((rightNum / totalNum) * 100)
// this.accuracText = parseInt((rightNum / totalNum) * 100)
// }
// }
this
.
data
=
data
this
.
data
=
data
console
.
log
(
data
)
// this.accuracScore = parseInt(totalNum)
// this.accuracScore = parseInt(totalNum)
this
.
status
=
data
.
sheet
.
status
this
.
status
=
data
.
sheet
.
status
let
subjectQuestionTotal
=
0
let
subjectQuestionTotal
=
0
...
@@ -167,7 +166,6 @@ export default {
...
@@ -167,7 +166,6 @@ export default {
return
a
.
concat
(
b
)
return
a
.
concat
(
b
)
},
[])
},
[])
const
currentQuestionScore
=
data
.
sheet
.
score_items
[
item
.
question_item_id
]
const
currentQuestionScore
=
data
.
sheet
.
score_items
[
item
.
question_item_id
]
// console.log(item)
item
.
question_list
.
forEach
(
it
=>
{
item
.
question_list
.
forEach
(
it
=>
{
const
currentItem
=
currentQuestionScore
[
it
.
id
]
const
currentItem
=
currentQuestionScore
[
it
.
id
]
if
(
Array
.
isArray
(
it
.
question_options
)
&&
it
.
question_options
.
length
)
{
if
(
Array
.
isArray
(
it
.
question_options
)
&&
it
.
question_options
.
length
)
{
...
...
src/modules/teacher/data/course/views/ClassLIst.vue
浏览文件 @
694bcefa
...
@@ -56,7 +56,6 @@ export default {
...
@@ -56,7 +56,6 @@ export default {
})
})
},
},
sortChange
(
columns
)
{
sortChange
(
columns
)
{
console
.
log
(
columns
,
'123'
)
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
else
{
}
else
{
...
...
src/modules/teacher/data/course/views/List.vue
浏览文件 @
694bcefa
...
@@ -2,9 +2,7 @@
...
@@ -2,9 +2,7 @@
<app-container>
<app-container>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
sort-change=
"sortChange"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
sort-change=
"sortChange"
>
<!-- 操作 -->
<!-- 操作 -->
<template
v-slot:table-img=
"
{ row }">
<template
v-slot:table-img=
"
{ row }">
<img
:src=
"row.course_picture"
alt=
""
style=
"width: 100px"
/>
</
template
>
<img
:src=
"row.course_picture"
alt=
""
style=
"width: 100px; height: 100px"
/>
</
template
>
<
template
v-slot:table-operate=
"{ row }"
>
<
template
v-slot:table-operate=
"{ row }"
>
<el-button
type=
"text"
size=
"mini"
@
click=
"toClassData(row)"
>
班级数据
</el-button>
<el-button
type=
"text"
size=
"mini"
@
click=
"toClassData(row)"
>
班级数据
</el-button>
<el-button
type=
"text"
size=
"mini"
@
click=
"toPersonal(row)"
>
个人数据
</el-button>
<el-button
type=
"text"
size=
"mini"
@
click=
"toPersonal(row)"
>
个人数据
</el-button>
...
@@ -61,7 +59,6 @@ export default {
...
@@ -61,7 +59,6 @@ export default {
},
},
methods
:
{
methods
:
{
sortChange
(
columns
)
{
sortChange
(
columns
)
{
console
.
log
(
columns
,
'123'
)
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
else
{
}
else
{
...
@@ -74,11 +71,9 @@ export default {
...
@@ -74,11 +71,9 @@ export default {
getCourseNameList
()
{
getCourseNameList
()
{
getCourseNameList
().
then
(
res
=>
{
getCourseNameList
().
then
(
res
=>
{
this
.
conditionList
=
res
.
data
this
.
conditionList
=
res
.
data
console
.
log
(
res
,
'fdd'
)
})
})
},
},
toClassData
(
row
)
{
toClassData
(
row
)
{
console
.
log
(
row
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/teacher/data/course/classDatas'
,
path
:
'/teacher/data/course/classDatas'
,
query
:
{
query
:
{
...
...
src/modules/teacher/data/course/views/PersonalList.vue
浏览文件 @
694bcefa
...
@@ -49,7 +49,6 @@ export default {
...
@@ -49,7 +49,6 @@ export default {
})
})
},
},
sortChange
(
columns
)
{
sortChange
(
columns
)
{
console
.
log
(
columns
,
'123'
)
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
else
{
}
else
{
...
...
src/modules/teacher/data/course/views/Process.vue
浏览文件 @
694bcefa
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<app-card>
<app-card>
<app-list
v-bind=
"tableOptions"
ref=
"list"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
>
<template
v-slot:course_picture=
"
{ row }">
<template
v-slot:course_picture=
"
{ row }">
<el-image
:src=
"row.course_picture"
></el-image>
<el-image
:src=
"row.course_picture"
style=
"width: 100px"
></el-image>
</
template
>
</
template
>
<
template
v-slot:progress=
"{ row }"
>
<
template
v-slot:progress=
"{ row }"
>
<el-progress
:percentage=
"row.progress"
></el-progress>
<el-progress
:percentage=
"row.progress"
></el-progress>
...
@@ -54,7 +54,6 @@ export default {
...
@@ -54,7 +54,6 @@ export default {
})
})
},
},
toDetail
(
row
)
{
toDetail
(
row
)
{
// console.log(row)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/teacher/data/course/processDetail'
,
path
:
'/teacher/data/course/processDetail'
,
query
:
{
query
:
{
...
...
src/modules/teacher/data/exam/components/Finished.vue
浏览文件 @
694bcefa
...
@@ -67,7 +67,6 @@ export default {
...
@@ -67,7 +67,6 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
type
,
'123dfs'
)
},
},
methods
:
{
methods
:
{
toPersonal
(
row
)
{
toPersonal
(
row
)
{
...
@@ -85,7 +84,6 @@ export default {
...
@@ -85,7 +84,6 @@ export default {
})
})
},
},
sortChange
(
columns
)
{
sortChange
(
columns
)
{
console
.
log
(
columns
,
'123'
)
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
this
.
$parent
.
$parent
.
$parent
.
$parent
.
getClassList
()
this
.
$parent
.
$parent
.
$parent
.
$parent
.
getClassList
()
return
columns
.
prop
return
columns
.
prop
...
...
src/modules/teacher/data/exam/components/QuestionType.vue
浏览文件 @
694bcefa
...
@@ -97,7 +97,6 @@ export default {
...
@@ -97,7 +97,6 @@ export default {
mounted
()
{
mounted
()
{
this
.
initEchart
()
this
.
initEchart
()
this
.
initCorrectRate
()
this
.
initCorrectRate
()
// console.log(this.dataInfo.questions_info_2, '12')
},
},
methods
:
{
methods
:
{
initEchart
()
{
initEchart
()
{
...
@@ -117,7 +116,6 @@ export default {
...
@@ -117,7 +116,6 @@ export default {
},
},
initCorrectRate
()
{
initCorrectRate
()
{
this
.
correctRate
=
this
.
dataInfo
.
questions_info_2
.
reduce
((
a
,
b
)
=>
({
...
a
,
[
b
.
type
]:
b
}),
{})
this
.
correctRate
=
this
.
dataInfo
.
questions_info_2
.
reduce
((
a
,
b
)
=>
({
...
a
,
[
b
.
type
]:
b
}),
{})
// console.log(this.correctRate, '=123')
}
}
}
}
}
}
...
...
src/modules/teacher/data/exam/components/RankingAll.vue
浏览文件 @
694bcefa
<
template
>
<
template
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
sort-change=
"sortChange"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
sort-change=
"sortChange"
>
<template
v-slot:paper_title=
"
{ row }">
<template
v-slot:paper_title=
"
{ row }">
<div
:class=
"`paper-title active$
{row.
paper_title}`">
{{
row
.
paper_title
}}
</div>
<div
:class=
"`paper-title active$
{row.
ranking}`">
{{
row
.
ranking
}}
</div>
</
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>
...
@@ -32,7 +32,7 @@ export default {
...
@@ -32,7 +32,7 @@ export default {
return
{
return
{
data
:
this
.
scoreRanking
.
list
,
data
:
this
.
scoreRanking
.
list
,
columns
:
[
columns
:
[
{
label
:
'排名'
,
slots
:
'paper_title'
,
prop
:
'
paper_title
'
,
align
:
'center'
},
{
label
:
'排名'
,
slots
:
'paper_title'
,
prop
:
'
ranking
'
,
align
:
'center'
},
{
label
:
'姓名'
,
prop
:
'personal_name'
,
align
:
'center'
},
{
label
:
'姓名'
,
prop
:
'personal_name'
,
align
:
'center'
},
{
label
:
'客观题'
,
prop
:
'subjective'
,
align
:
'center'
,
sortable
:
'custom'
,
minWidth
:
100
},
{
label
:
'客观题'
,
prop
:
'subjective'
,
align
:
'center'
,
sortable
:
'custom'
,
minWidth
:
100
},
{
label
:
'主观题'
,
prop
:
'objective'
,
align
:
'center'
,
sortable
:
'custom'
,
minWidth
:
100
},
{
label
:
'主观题'
,
prop
:
'objective'
,
align
:
'center'
,
sortable
:
'custom'
,
minWidth
:
100
},
...
@@ -60,7 +60,6 @@ export default {
...
@@ -60,7 +60,6 @@ export default {
stu_id
:
data
.
student_id
stu_id
:
data
.
student_id
}
}
})
})
console
.
log
(
data
)
},
},
// 根据首次缴费时间排序
// 根据首次缴费时间排序
sortChange
(
columns
)
{
sortChange
(
columns
)
{
...
...
src/modules/teacher/data/exam/components/ScoreRanking.vue
浏览文件 @
694bcefa
...
@@ -93,7 +93,6 @@ export default {
...
@@ -93,7 +93,6 @@ export default {
})
})
},
},
handleClick
(
tab
,
event
)
{
handleClick
(
tab
,
event
)
{
// console.log(tab, event)
if
(
tab
.
index
===
1
)
{
if
(
tab
.
index
===
1
)
{
// 待评价
// 待评价
this
.
getScoreRanking
()
this
.
getScoreRanking
()
...
...
src/modules/teacher/data/exam/components/SetScoreRange.vue
浏览文件 @
694bcefa
...
@@ -66,7 +66,6 @@ export default {
...
@@ -66,7 +66,6 @@ export default {
this
.
tags
.
sort
((
a
,
b
)
=>
a
-
b
)
this
.
tags
.
sort
((
a
,
b
)
=>
a
-
b
)
this
.
tagInput
=
''
this
.
tagInput
=
''
}
}
console
.
log
(
this
.
recordScoreRange
,
'===123'
)
},
},
// 删除标签
// 删除标签
removeTag
(
index
)
{
removeTag
(
index
)
{
...
...
src/modules/teacher/data/exam/components/TitleData.vue
浏览文件 @
694bcefa
...
@@ -157,7 +157,6 @@ export default {
...
@@ -157,7 +157,6 @@ export default {
})
})
},
},
sortChange
(
columns
)
{
sortChange
(
columns
)
{
console
.
log
(
columns
,
'123'
)
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
else
{
}
else
{
...
@@ -167,7 +166,6 @@ export default {
...
@@ -167,7 +166,6 @@ export default {
this
.
$refs
.
list
.
refetch
()
this
.
$refs
.
list
.
refetch
()
},
},
toDetail
(
row
)
{
toDetail
(
row
)
{
console
.
log
(
row
,
'uyeruywgr'
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/teacher/data/exam/examData/topicData'
,
path
:
'/teacher/data/exam/examData/topicData'
,
query
:
{
query
:
{
...
...
src/modules/teacher/data/exam/components/detail/QuestionListItem.vue
浏览文件 @
694bcefa
...
@@ -141,15 +141,12 @@ export default {
...
@@ -141,15 +141,12 @@ export default {
handleChange
()
{
handleChange
()
{
this
.
$emit
(
'change'
,
this
.
data
)
this
.
$emit
(
'change'
,
this
.
data
)
}
}
},
mounted
()
{
console
.
log
(
this
.
data
,
'===123'
)
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.question-list-public__title
{
.question-list-public__title
{
font-size
:
20px
;
font-size
:
20px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#222
;
color
:
#222
;
...
@@ -181,14 +178,14 @@ export default {
...
@@ -181,14 +178,14 @@ export default {
color
:
#222
;
color
:
#222
;
line-height
:
25px
;
line-height
:
25px
;
}
}
.question-list-item-hd__score
{
.question-list-item-hd__score
{
margin-left
:
auto
;
margin-left
:
auto
;
padding-top
:
10px
;
padding-top
:
10px
;
font-size
:
16px
;
font-size
:
16px
;
// font-weight: bold;
// font-weight: bold;
color
:
#222
;
color
:
#222
;
line-height
:
25px
;
line-height
:
25px
;
white-space
:nowrap
;
white-space
:
nowrap
;
padding-left
:
30px
;
padding-left
:
30px
;
}
}
.question-option-item
{
.question-option-item
{
...
@@ -239,7 +236,7 @@ export default {
...
@@ -239,7 +236,7 @@ export default {
flex
:
1
;
flex
:
1
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.question-list-item-score
{
.question-list-item-score
{
margin-left
:
auto
;
margin-left
:
auto
;
padding-top
:
10px
;
padding-top
:
10px
;
font-size
:
16px
;
font-size
:
16px
;
...
...
src/modules/teacher/data/exam/views/ClassDetail.vue
浏览文件 @
694bcefa
...
@@ -41,10 +41,12 @@ export default {
...
@@ -41,10 +41,12 @@ export default {
this
.
data
=
JSON
.
parse
(
response
.
data
).
sheet
this
.
data
=
JSON
.
parse
(
response
.
data
).
sheet
const
status
=
{
3
:
'考卷生成'
,
0
:
'已缓存'
,
1
:
'已提交'
,
2
:
'已批阅'
}
const
status
=
{
3
:
'考卷生成'
,
0
:
'已缓存'
,
1
:
'已提交'
,
2
:
'已批阅'
}
this
.
infoData
=
this
.
infoData
.
reduce
((
a
,
b
)
=>
{
this
.
infoData
=
this
.
infoData
.
reduce
((
a
,
b
)
=>
{
a
.
push
(
b
.
map
(
item
=>
{
a
.
push
(
item
.
key
===
'status'
?
item
.
value
=
status
[
this
.
data
[
item
.
key
]]
:
item
.
value
=
this
.
data
[
item
.
key
]
b
.
map
(
item
=>
{
return
item
item
.
key
===
'status'
?
(
item
.
value
=
status
[
this
.
data
[
item
.
key
]])
:
(
item
.
value
=
this
.
data
[
item
.
key
])
}))
return
item
})
)
return
a
return
a
},
[])
},
[])
this
.
setExamData
()
this
.
setExamData
()
...
@@ -68,7 +70,6 @@ export default {
...
@@ -68,7 +70,6 @@ export default {
prev
.
push
({
...
cur
,
list
})
prev
.
push
({
...
cur
,
list
})
return
prev
return
prev
},
[])
},
[])
console
.
log
(
this
.
examData
,
'123'
)
}
}
}
}
}
}
...
...
src/modules/teacher/data/exam/views/ClassList.vue
浏览文件 @
694bcefa
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
<div>
<div>
<div
style=
"font-size: 32px; margin-bottom: 15px"
>
{{
$route
.
query
.
examination_name
}}
</div>
<div
style=
"font-size: 32px; margin-bottom: 15px"
>
{{
$route
.
query
.
examination_name
}}
</div>
<app-card>
<app-card>
<h1
class=
"title"
style=
"font-size: 28px"
>
班级排名
</h1>
<h1
class=
"title"
style=
"color: #333; font-size: 16px; border-left: 3px solid #aa1941; padding-left: 7px"
>
班级排名
</h1>
<el-button
type=
"text"
style=
"float: right; margin-top: -40px"
@
click=
"exportClassList"
>
导出
</el-button>
<el-button
type=
"text"
style=
"float: right; margin-top: -40px"
@
click=
"exportClassList"
>
导出
</el-button>
<el-tabs
v-model=
"tabActive"
style=
"margin-top: 30px"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"tabActive"
style=
"margin-top: 30px"
@
tab-click=
"handleClick"
>
<el-tab-pane
:label=
"`已结束$
{classList.checked_count}`" name="finished">
<el-tab-pane
:label=
"`已结束$
{classList.checked_count}`" name="finished">
...
@@ -73,7 +75,6 @@ export default {
...
@@ -73,7 +75,6 @@ export default {
},
},
created
()
{
created
()
{
this
.
getClassList
()
this
.
getClassList
()
console
.
log
(
this
.
$route
.
query
.
type
,
'type123'
)
},
},
methods
:
{
methods
:
{
getClassList
()
{
getClassList
()
{
...
@@ -84,13 +85,11 @@ export default {
...
@@ -84,13 +85,11 @@ export default {
type
:
this
.
$route
.
query
.
type
,
type
:
this
.
$route
.
query
.
type
,
status
:
this
.
status
status
:
this
.
status
}
}
console
.
log
(
this
.
$route
.
query
.
type
,
'type'
)
getClassList
(
params
).
then
(
res
=>
{
getClassList
(
params
).
then
(
res
=>
{
this
.
classList
=
res
.
data
this
.
classList
=
res
.
data
})
})
},
},
handleClick
(
tab
,
event
)
{
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
,
event
)
if
(
tab
.
index
===
1
)
{
if
(
tab
.
index
===
1
)
{
// 待评价
// 待评价
this
.
getClassList
()
this
.
getClassList
()
...
...
src/modules/teacher/data/exam/views/ExamData.vue
浏览文件 @
694bcefa
...
@@ -13,21 +13,19 @@
...
@@ -13,21 +13,19 @@
>
>
<section
slot=
"pdf-content"
:key=
"value"
>
<section
slot=
"pdf-content"
:key=
"value"
>
<div
class=
"container"
>
<div
class=
"container"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
style=
"margin-bottom: 30px"
>
<div
style=
"display: flex; justify-content: space-between"
>
<el-col
<h1
style=
"font-size: 30px"
>
><h1
style=
"padding-left: 0px; font-size: 30px"
>
{{
$route
.
query
.
examination_name
}}
<span
style=
"color: #c01540; font-size: 14px"
>
*部分数据未进行评价
</span>
{{
$route
.
query
.
examination_name
}}
</h1>
<span
style=
"color: #c01540; font-size: 14px"
>
*部分数据未进行评价
</span>
<div
style=
"margin-right: 60px"
>
</h1>
</el-col>
<el-col
:span=
"10"
>
<el-select
v-model=
"value"
placeholder=
"全部数据"
@
change=
"refreshPage"
clearable
>
<el-select
v-model=
"value"
placeholder=
"全部数据"
@
change=
"refreshPage"
clearable
>
<el-option
v-for=
"item in dataInfo.class_map"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
<el-option
v-for=
"item in dataInfo.class_map"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-option>
</el-select>
</el-select>
<el-button
type=
"text"
style=
"margin-left: 30px"
@
click=
"$refs.html2Pdf.generatePdf()"
>
导出pdf
</el-button>
<el-button
type=
"text"
style=
"margin-left: 10px"
@
click=
"$refs.html2Pdf.generatePdf()"
>
导出pdf
</el-button>
</el-col>
</div>
</el-row>
</div>
<template
v-if=
"dataInfo.paper_info"
>
<template
v-if=
"dataInfo.paper_info"
>
<el-row
:gutter=
"10"
class=
"row-bg"
>
<el-row
:gutter=
"10"
class=
"row-bg"
>
<el-col
:span=
"8"
class=
"col"
><exam-info
:dataInfo=
"dataInfo"
/></el-col>
<el-col
:span=
"8"
class=
"col"
><exam-info
:dataInfo=
"dataInfo"
/></el-col>
...
...
src/modules/teacher/data/exam/views/PersonalList.vue
浏览文件 @
694bcefa
...
@@ -46,9 +46,6 @@ export default {
...
@@ -46,9 +46,6 @@ export default {
}
}
}
}
},
},
mounted
()
{
console
.
log
(
this
.
$route
.
query
.
type
,
'fughdkugh'
)
},
methods
:
{
methods
:
{
toExamData
(
row
)
{
toExamData
(
row
)
{
// this.$router.push({
// this.$router.push({
...
@@ -59,7 +56,6 @@ export default {
...
@@ -59,7 +56,6 @@ export default {
// })
// })
},
},
sortChange
(
columns
)
{
sortChange
(
columns
)
{
console
.
log
(
columns
,
'123'
)
if
(
columns
.
order
===
'ascending'
)
{
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
else
{
}
else
{
...
...
src/modules/teacher/data/exam/views/TopicData.vue
浏览文件 @
694bcefa
...
@@ -108,22 +108,21 @@ export default {
...
@@ -108,22 +108,21 @@ export default {
prev
.
push
({
...
cur
,
list
})
prev
.
push
({
...
cur
,
list
})
return
prev
return
prev
},
[])
},
[])
console
.
log
(
this
.
examData
,
'123'
)
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.flex-box
{
.flex-box
{
margin
:
20px
0
;
margin
:
20px
0
;
display
:
flex
;
display
:
flex
;
.flex
{
.flex
{
flex
:
1
;
flex
:
1
;
&
:nth-child
(
1
)
{
&
:nth-child
(
1
)
{
margin-right
:
10px
;
margin-right
:
10px
;
min-height
:
200px
;
min-height
:
200px
;
}
}
&
:nth-child
(
2
)
{
&
:nth-child
(
2
)
{
margin-left
:
10px
;
margin-left
:
10px
;
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论