Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-learn
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-learn
Commits
538b2f88
提交
538b2f88
authored
12月 08, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/vite' into vite
上级
7dd45f36
6bfb8068
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
16 行删除
+9
-16
QuestionType.vue
src/modules/teacher/data/exam/components/QuestionType.vue
+1
-2
QuestionDetails.vue
...s/teacher/data/exam/components/detail/QuestionDetails.vue
+0
-13
TopicData.vue
src/modules/teacher/data/exam/views/TopicData.vue
+8
-1
没有找到文件。
src/modules/teacher/data/exam/components/QuestionType.vue
浏览文件 @
538b2f88
...
@@ -101,12 +101,11 @@ export default {
...
@@ -101,12 +101,11 @@ export default {
methods
:
{
methods
:
{
initEchart
()
{
initEchart
()
{
const
type
=
{
1
:
'单选'
,
2
:
'多选'
,
3
:
'问答'
,
5
:
'案例'
,
6
:
'判断'
,
7
:
'实操'
,
8
:
'情景'
}
const
type
=
{
1
:
'单选'
,
2
:
'多选'
,
3
:
'问答'
,
5
:
'案例'
,
6
:
'判断'
,
7
:
'实操'
,
8
:
'情景'
}
console
.
log
(
this
.
dataInfo
.
questions_info
,
'=123'
)
const
data
=
this
.
dataInfo
.
questions_info
.
reduce
(
const
data
=
this
.
dataInfo
.
questions_info
.
reduce
(
(
prev
,
cur
)
=>
{
(
prev
,
cur
)
=>
{
if
([
1
,
2
,
6
].
includes
(
cur
.
type
))
{
prev
.
x
.
push
(
type
[
cur
.
type
])
prev
.
x
.
push
(
type
[
cur
.
type
])
prev
.
y
.
push
(
cur
.
rate
)
prev
.
y
.
push
(
cur
.
rate
)
}
return
prev
return
prev
},
},
{
x
:
[],
y
:
[]
}
{
x
:
[],
y
:
[]
}
...
...
src/modules/teacher/data/exam/components/detail/QuestionDetails.vue
浏览文件 @
538b2f88
...
@@ -26,19 +26,6 @@
...
@@ -26,19 +26,6 @@
</el-checkbox-group>
</el-checkbox-group>
</
template
>
</
template
>
</div>
</div>
<!-- 简答题 -->
<
template
v-if=
"questionType === 3"
>
<el-input
type=
"textarea"
v-model=
"data.answer[0]"
placeholder=
"请输入答案内容"
:autosize=
"
{ minRows: 4, maxRows: 6 }"
:disabled="disabled"
@blur="handleChange"
:maxlength="100"
:show-word-limit="true"
>
</el-input>
</
template
>
<!-- <div class="question-list-item-score">得分:{{ data.score }}</div> -->
<!-- <div class="question-list-item-score">得分:{{ data.score }}</div> -->
<div
class=
"question-list-item-ft"
v-if=
"data.analysis"
>
<div
class=
"question-list-item-ft"
v-if=
"data.analysis"
>
<h3
class=
"question-list-item-ft__title"
>
答案解析
</h3>
<h3
class=
"question-list-item-ft__title"
>
答案解析
</h3>
...
...
src/modules/teacher/data/exam/views/TopicData.vue
浏览文件 @
538b2f88
<
template
>
<
template
>
<div
v-if=
"Object.keys(examData).length"
>
<div
v-if=
"Object.keys(examData).length"
>
<question-details
class=
"exam"
:data=
"examData"
v-if=
"examData.type != 3"
></question-details>
<question-details
class=
"exam"
:data=
"examData"
></question-details>
<div
class=
"flex-box"
>
<div
class=
"flex-box"
>
<topic-data-info
:data=
"topicInfo"
class=
"flex"
></topic-data-info>
<topic-data-info
:data=
"topicInfo"
class=
"flex"
></topic-data-info>
<topic-data-chart
:data=
"examData"
class=
"flex"
v-if=
"examData.type != 3"
></topic-data-chart>
<topic-data-chart
:data=
"examData"
class=
"flex"
v-if=
"examData.type != 3"
></topic-data-chart>
...
@@ -9,6 +9,11 @@
...
@@ -9,6 +9,11 @@
<div
slot=
"header"
style=
"display: flex; align-items: center"
>
<div
slot=
"header"
style=
"display: flex; align-items: center"
>
<h1
style=
"font-size: 16px"
>
概述信息
</h1>
<h1
style=
"font-size: 16px"
>
概述信息
</h1>
</div>
</div>
<!--
<div
style=
"display: flex; justify-content: flex-start"
>
<el-input
v-model=
"search"
clearable
style=
"width: 200px; margin-right: 20px"
placeholder=
"学生姓名"
/>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"searchChange"
>
搜索
</el-button>
<el-button
icon=
"el-icon-refresh-left"
@
click=
"reset"
>
重置
</el-button>
</div>
-->
<app-list
v-bind=
"tableOptions"
ref=
"list"
></app-list>
<app-list
v-bind=
"tableOptions"
ref=
"list"
></app-list>
</el-card>
</el-card>
</div>
</div>
...
@@ -62,6 +67,8 @@ export default {
...
@@ -62,6 +67,8 @@ export default {
this
.
getTopic
()
this
.
getTopic
()
},
},
methods
:
{
methods
:
{
searchChange
()
{
},
getTopic
()
{
getTopic
()
{
const
query
=
this
.
$route
.
query
const
query
=
this
.
$route
.
query
const
params
=
{
type
:
query
.
type
,
course_id
:
query
.
course_id
,
examination_id
:
query
.
examination_id
,
chapter_id
:
query
.
chapter_id
,
question_id
:
query
.
question_id
}
const
params
=
{
type
:
query
.
type
,
course_id
:
query
.
course_id
,
examination_id
:
query
.
examination_id
,
chapter_id
:
query
.
chapter_id
,
question_id
:
query
.
question_id
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论