Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
e32c2cad
提交
e32c2cad
authored
1月 17, 2020
作者:
GOD_ZYX
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
ede512a4
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
203 行增加
和
163 行删除
+203
-163
exam.vue
client/client/components/player/exam/exam.vue
+154
-155
sideChapterList.vue
...nt/client/components/player/rightSide/sideChapterList.vue
+2
-0
base_api.js
client/client/components/services/base_api.js
+1
-1
uploadForm.vue
client/client/components/upload-form/src/uploadForm.vue
+11
-0
ChapterAction.js
client/client/project/actions/ChapterAction.js
+7
-0
CourseAction.js
client/client/project/actions/CourseAction.js
+11
-0
ExamAction.js
client/client/project/actions/ExamAction.js
+15
-7
courseDetail.vue
client/client/project/pages/myLearn/courseDetail.vue
+2
-0
没有找到文件。
client/client/components/player/exam/exam.vue
浏览文件 @
e32c2cad
<
template
>
<div
class=
"play-paper"
>
<div
class=
"play-paper-body"
>
<div
class=
"play-paper-title"
><div><h3>
{{
chapterNam
e
}}
</h3></div></div>
<div
class=
"play-paper-title"
><div><h3>
{{
exam
.
titl
e
}}
</h3></div></div>
<div
class=
"play-paper-content play-chapter-exam"
>
<template
v-if=
"exam.id"
>
<div
class=
'exam'
>
<div
style=
'text-align: center;'
>
<div
class=
'topic'
>
<!--
<div
class=
'tit'
>
{{
exam
.
title
}}
</div>
-->
<template
v-if=
'exam.score
'
><div
class=
'cur'
>
正确率:
{{
exam
.
score
}}
%
</div></
template
>
<template
v-if=
'exam.score
.total !== undefined'
><div
class=
'cur'
>
单选:
{{
exam
.
score
.
radio
}}
分,多选:
{{
exam
.
score
.
checkbox
}}
分,简答:
{{
exam
.
score
.
shortAnswer
}}
分,总分:
{{
exam
.
score
.
total
}}
分
</div></
template
>
</div>
</div>
<!-- 单选题 -->
...
...
@@ -18,10 +18,10 @@
<div
class=
'q-num'
>
{{
index
+
1
}}
.
</div><div
class=
'q-title'
v-html=
'item.content'
></div><div
class=
'q-type'
>
(单选题)
</div>
<el-radio-group
class=
'radio-group'
v-model=
"item.user_answer"
>
<template
v-for=
'(item1, index1) in item.options'
>
<el-radio
v-bind:key=
"item1.id"
:label=
'item1.id'
:disabled=
'!!item.right_answer
'
:class=
'["radio", (item.right_answer ? (item1.id === item.user
_answer ? "success" : "error") : "")]'
>
{{
index1
|
getLetter
()
}}
.
{{
item1
.
option
}}
</el-radio>
<el-radio
v-bind:key=
"item1.id"
:label=
'item1.id'
:disabled=
'!!item.right_answer
&& !!exam.type'
:class=
'["radio", ((item.right_answer && !!exam.type) ? (item1.id === item.right
_answer ? "success" : "error") : "")]'
>
{{
index1
|
getLetter
()
}}
.
{{
item1
.
option
}}
</el-radio>
</
template
>
</el-radio-group>
<
template
v-if=
'item.right_answer'
><div
class=
'result'
>
学生答案:
<div
:class=
'["stu", (item.right_answer === item.user_answer ? "success" : "error")]'
>
{{
item
.
user_answer
|
getRadioAnswer
(
item
.
options
)
}}
</div>
正确答案:
{{
item
.
right_answer
|
getRadioAnswer
(
item
.
options
)
}}
</div></
template
>
<
template
v-if=
'item.right_answer
&& !!exam.type
'
><div
class=
'result'
>
学生答案:
<div
:class=
'["stu", (item.right_answer === item.user_answer ? "success" : "error")]'
>
{{
item
.
user_answer
|
getRadioAnswer
(
item
.
options
)
}}
</div>
正确答案:
{{
item
.
right_answer
|
getRadioAnswer
(
item
.
options
)
}}
</div></
template
>
</div>
</template>
</template>
...
...
@@ -32,10 +32,10 @@
<div
class=
'q-num'
>
{{
exam
.
radioList
.
length
+
index
+
1
}}
.
</div><div
class=
'q-title'
v-html=
'item.content'
></div><div
class=
'q-type'
>
(多选题)
</div>
<el-checkbox-group
class=
'checkbox-group'
v-model=
"item.user_answer"
>
<template
v-for=
'(item1, index1) in item.options'
>
<el-checkbox
v-bind:key=
"item1.id"
:label=
'item1.id'
:disabled=
'!!item.right_answer.length
'
:class=
'["checkbox", (item.right_answer.length
? (isCheckboxChecked(item1.id, item.right_answer) ? "success" : "error") : "")]'
>
{{
index1
|
getLetter
()
}}
.
{{
item1
.
option
}}
</el-checkbox>
<el-checkbox
v-bind:key=
"item1.id"
:label=
'item1.id'
:disabled=
'!!item.right_answer.length
&& !!exam.type'
:class=
'["checkbox", ((item.right_answer.length && !!exam.type)
? (isCheckboxChecked(item1.id, item.right_answer) ? "success" : "error") : "")]'
>
{{
index1
|
getLetter
()
}}
.
{{
item1
.
option
}}
</el-checkbox>
</
template
>
</el-checkbox-group>
<
template
v-if=
'item.right_answer.length'
><div
class=
'result'
>
学生答案:
<div
:class=
'["stu", ((item.right_answer.length && isCheckboxRight(item.user_answer, item.right_answer)) ? "success" : "error")]'
>
{{
item
.
user_answer
|
getCheckboxAnswer
(
item
.
options
)
}}
</div>
正确答案:
{{
item
.
right_answer
|
getCheckboxAnswer
(
item
.
options
)
}}
</div></
template
>
<
template
v-if=
'item.right_answer.length
&& !!exam.type
'
><div
class=
'result'
>
学生答案:
<div
:class=
'["stu", ((item.right_answer.length && isCheckboxRight(item.user_answer, item.right_answer)) ? "success" : "error")]'
>
{{
item
.
user_answer
|
getCheckboxAnswer
(
item
.
options
)
}}
</div>
正确答案:
{{
item
.
right_answer
|
getCheckboxAnswer
(
item
.
options
)
}}
</div></
template
>
</div>
</template>
</template>
...
...
@@ -52,7 +52,7 @@
</
template
>
</template>
<div
:class=
'["btn", (exam.
submitted_time && "on")]'
@
click=
'submitExam'
:data-submit=
'!!exam.submitted_time'
@
mousedown=
'_SubmitMouseLeftDown()'
>
{{exam.submitted_tim
e ? "已提交" : "提交"}}
</div>
<div
:class=
'["btn", (exam.
type && "on")]'
@
click=
'submitExam'
:data-submit=
'!!exam.type'
@
mousedown=
'_SubmitMouseLeftDown()'
>
{{exam.typ
e ? "已提交" : "提交"}}
</div>
<div
class=
'care'
>
(注意:测试只有一次提交机会)
</div>
<!-- <div :class='["btn"]' @click='repeatExam($event, true)' v-if="exam.work_contents">重做</div> -->
</div>
...
...
@@ -88,9 +88,6 @@ var getLetter = (val) => {
export
default
{
props
:
{
chapterId
:
{
type
:
String
,
require
:
false
},
chapterName
:
{
type
:
String
,
require
:
false
},
chapterExam
:
{
type
:
Object
,
require
:
false
},
sid
:
{
type
:
String
,
require
:
false
},
cid
:
{
type
:
String
,
require
:
false
},
id
:
{
type
:
String
,
require
:
false
}
...
...
@@ -121,128 +118,129 @@ export default {
data
()
{
return
{
exam
:
{
id
:
'1'
,
title
:
'标题'
,
radioList
:
[
{
id
:
'6622309081933676544'
,
content
:
'
\
u5047
\
u8bbe
\
u8d27
\
u5e01
\
u9700
\
u6c42
\
u4e3aL=ky-hr
\
uff0c
\
u8d27
\
u5e01
\
u4f9b
\
u7ed9
\
u589e
\
u52a010
\
u4ebf
\
u7f8e
\
u5143
\
u800c
\
u5176
\
u5b83
\
u6761
\
u4ef6
\
u4e0d
\
u53d8
\
uff0c
\
u5219
\
u4f1a
\
u4f7fLM
\
u66f2
\
u7ebf( )'
,
options
:
[
{
id
:
'6622310260604403712'
,
option
:
'
\
u53f3
\
u79fb10
\
u4ebf
\
u7f8e
\
u5143'
},
{
id
:
'6622310260604403713'
,
option
:
'
\
u53f3
\
u79fb k
\
u4e58
\
u4ee510
\
u4ebf
\
u7f8e
\
u5143'
},
{
id
:
'6622310260604403714'
,
option
:
'
\
u53f3
\
u79fb10
\
u4ebf
\
u7f8e
\
u5143
\
u9664
\
u4ee5k'
},
{
id
:
'6622310260604403715'
,
option
:
'
\
u53f3
\
u79fb k
\
u9664
\
u4ee510
\
u4ebf
\
u7f8e
\
u5143'
}
],
user_answer
:
'6622310260604403714'
,
right_answer
:
'6622310260604403714'
,
get_score
:
30
,
score
:
30
}
],
checkboxList
:
[
{
id
:
'6622310510798831616'
,
content
:
'
\
u51ef
\
u6069
\
u65af
\
u5b8f
\
u89c2
\
u7ecf
\
u6d4e
\
u7406
\
u8bba
\
u7684
\
u4e3b
\
u8981
\
u524d
\
u63d0
\
u5305
\
u62ec
\
uff08
\
uff09'
,
options
:
[
{
id
:
'6622310872641437696'
,
option
:
'
\
u8fb9
\
u9645
\
u6d88
\
u8d39
\
u503e
\
u5411
\
u9012
\
u51cf'
},
{
id
:
'6622310872641437697'
,
option
:
'
\
u8d44
\
u672c
\
u8fb9
\
u9645
\
u6548
\
u7387
\
u9012
\
u51cf'
},
{
id
:
'6622310872641437698'
,
option
:
'
\
u4e0d
\
u786e
\
u5b9a
\
u6027
\
u4e0e
\
u6d41
\
u52a8
\
u6027
\
u504f
\
u597d'
},
{
id
:
'6622310872641437699'
,
option
:
'
\
u540d
\
u4e49
\
u5de5
\
u8d44
\
u521a
\
u6027'
}
],
user_answer
:
[
'6622310872641437697'
,
'6622310872641437698'
,
'6622310872641437699'
],
right_answer
:
[
'6622310872641437697'
,
'6622310872641437698'
],
get_score
:
30
,
score
:
30
}
],
shortAnswerList
:
[
{
id
:
'6622311487476072448'
,
content
:
'
\
u8bba
\
u8ff01929
\
u5e74
\
u7f8e
\
u56fd
\
u4e3a
\
u4ec0
\
u4e48
\
u4f1a
\
u51fa
\
u73b0
\
u5927
\
u8427
\
u6761
\
u3002'
,
user_answer
:
'2018
\
u5e74
\
u79ef
\
u6781
\
u7684
\
u8d22
\
u653f
\
u653f
\
u7b56
\
u5bf9
\
u4f9b
\
u7ed9
\
u6027
\
u7ed3
\
u6784
\
u6027
\
u6539
\
u9769
\
u6709
\
u4e00
\
u5b9a
\
u7684
\
u63a8
\
u52a8
\
u4f5c
\
u7528
\
u3002
\
u623f
\
u5730
\
u4ea7
\
u5e02
\
u573a
\
u5f97
\
u5230
\
u4e00
\
u5b9a
\
u7a0b
\
u5ea6
\
u6291
\
u5236
\
u3002
\
u7ecf
\
u6d4e
\
u53d1
\
u5c55
\
u5e73
\
u7a33
\
uff0c
\
u7ecf
\
u6d4e
\
u8fd0
\
u884c
\
u5728
\
u5408
\
u7406
\
u533a
\
u95f4
\
u3002
\
u964d
\
u7a0e
\
u4e3e
\
u52a8
\
u53d6
\
u5f97
\
u6210
\
u6548
\
uff0c
\
u5168
\
u5e74
\
u56fd
\
u5185
\
u589e
\
u503c
\
u7a0e
\
u3001
\
u4f01
\
u4e1a
\
u6240
\
u5f97
\
u7a0e
\
u3001
\
u4e2a
\
u4eba
\
u6240
\
u5f97
\
u7a0e
\
u540c
\
u6bd4
\
u5206
\
u522b
\
u589e
\
u957f9.1%
\
u300110%
\
u300115.9%
\
uff0c
\
u5206
\
u522b
\
u62c9
\
u9ad8
\
u5168
\
u56fd
\
u8d22
\
u653f
\
u6536
\
u5165
\
u589e
\
u5e453
\
u4e2a
\
u30011.9
\
u4e2a
\
u30011.1
\
u4e2a
\
u767e
\
u5206
\
u70b9
\
uff0c
\
u6709
\
u53d1
\
u6325
\
u51fa
\
u5b8f
\
u89c2
\
u8c03
\
u63a7
\
u7684
\
u4f5c
\
u7528
\
u3002
\
u4ece2018
\
u5e74
\
u8d27
\
u5e01
\
u653f
\
u7b56
\
u6574
\
u4f53
\
u6765
\
u770b
\
uff0c
\
u8f83
\
u597d
\
u5730
\
u628a
\
u63e1
\
u4e86
\
u652f
\
u6301
\
u5b9e
\
u4f53
\
u7ecf
\
u6d4e
\
u548c
\
u517c
\
u987e
\
u5185
\
u5916
\
u90e8
\
u5747
\
u8861
\
u4e4b
\
u95f4
\
u7684
\
u5e73
\
u8861
\
uff0c
\
u53d6
\
u5f97
\
u4e86
\
u79ef
\
u6781
\
u6210
\
u6548
\
uff0c
\
u4e5f
\
u5f88
\
u597d
\
u5730
\
u9632
\
u8303
\
u4e86
\
u91d1
\
u878d
\
u98ce
\
u9669
\
u30022018
\
u5e74
\
u603b
\
u4f53
\
u4fdd
\
u6301
\
u4e86
\
u9002
\
u5b9c
\
u7684
\
u8d27
\
u5e01
\
u91d1
\
u878d
\
u73af
\
u5883
\
uff0c
\
u65e0
\
u8bba
\
u662f
\
u5404
\
u9879
\
u8d37
\
u6b3e
\
u8fd8
\
u662f
\
u666e
\
u60e0
\
u53e3
\
u5f84
\
u5c0f
\
u5fae
\
u8d37
\
u6b3e
\
u90fd
\
u540c
\
u6bd4
\
u5927
\
u5e45
\
u591a
\
u589e
\
uff0cM2
\
u548c
\
u793e
\
u4f1a
\
u878d
\
u8d44
\
u89c4
\
u6a21
\
u5b58
\
u91cf
\
u540c
\
u6bd4
\
u589e
\
u901f
\
u4e0e
\
u540d
\
u4e49GDP
\
u589e
\
u901f
\
u57fa
\
u672c
\
u5339
\
u914d
\
uff0c
\
u6709
\
u529b
\
u4fc3
\
u8fdb
\
u4e86
\
u6211
\
u56fd
\
u7ecf
\
u6d4e
\
u6301
\
u7eed
\
u5065
\
u5eb7
\
u53d1
\
u5c55
\
u3002
\
u6211
\
u56fd
\
u5b9e
\
u65bd
\
u79ef
\
u6781
\
u7684
\
u8d22
\
u653f
\
u653f
\
u7b56
\
u548c
\
u7a33
\
u5065
\
u7684
\
u8d27
\
u5e01
\
u653f
\
u7b56
\
uff0c
\
u4e00
\
u65b9
\
u9762
\
u80fd
\
u4ee5
\
u653f
\
u7b56
\
u7684
\
u7a33
\
u5b9a
\
u6765
\
u5e94
\
u5bf9
\
u5916
\
u90e8
\
u73af
\
u5883
\
u7684
\
u4e0d
\
u7a33
\
u5b9a
\
uff0c
\
u5728
\
u9762
\
u5bf9
\
u4e16
\
u754c
\
u73af
\
u5883
\
u53d8
\
u5316
\
u65f6
\
u80fd
\
u968f
\
u65f6
\
u628a
\
u63e1
\
u4f4f
\
u6218
\
u7565
\
u4e3b
\
u52a8
\
u6027
\
uff1b
\
u540c
\
u65f6
\
u80fd
\
u591f
\
u79ef
\
u6781
\
u4fc3
\
u8fdb
\
u6211
\
u56fd
\
u4f9b
\
u7ed9
\
u4fa7
\
u7ed3
\
u6784
\
u6027
\
u6539
\
u9769
\
u8fdb
\
u7a0b
\
uff0c
\
u652f
\
u6301
\
u89e3
\
u51b3
\
u7ecf
\
u6d4e
\
u53d1
\
u5c55
\
u4e2d
\
u7684
\
u6df1
\
u5c42
\
u6b21
\
u7ed3
\
u6784
\
u6027
\
u95ee
\
u9898
\
uff0c
\
u63d0
\
u5347
\
u6211
\
u56fd
\
u7ecf
\
u6d4e
\
u53d1
\
u5c55
\
u8d28
\
u91cf
\
u548c
\
u6548
\
u7387
\
u3002
\
u5b8f
\
u89c2
\
u653f
\
u7b56
\
u7684
\
u5b9e
\
u65bd
\
u4e5f
\
u5de9
\
u56fa
\
u4e86
\
u6211
\
u56fd
\
u5e73
\
u7a33
\
u53d1
\
u5c55
\
u7684
\
u7ecf
\
u6d4e
\
u57fa
\
u7840
\
uff0c
\
u4e3a
\
u5168
\
u9762
\
u5efa
\
u6210
\
u5c0f
\
u5eb7
\
u793e
\
u4f1a
\
u63d0
\
u4f9b
\
u4e86
\
u575a
\
u5f3a
\
u6709
\
u529b
\
u7684
\
u7ecf
\
u6d4e
\
u63aa
\
u65bd
\
u4fdd
\
u969c
\
u3002'
,
check_comment
:
'
\
u5361
\
u5c3c
\
u66fc
\
u8ba4
\
u4e3a
\
u4eba
\
u7684
\
u5927
\
u8111
\
u5b58
\
u5728
\
u4e24
\
u4e2a
\
u7cfb
\
u7edf
\
uff0c
\
u4e24
\
u4e2a
\
u7cfb
\
u7edf
\
u5206
\
u522b
\
u6709
\
u5feb
\
u4e0e
\
u6162
\
u4e24
\
u79cd
\
u4f5c
\
u51b3
\
u5b9a
\
u7684
\
u65b9
\
u5f0f
\
u611f
\
u6027
\
u8ba4
\
u8bc6
\
u548c
\
u7406
\
u6027
\
u8ba4
\
u8bc6
\
u662f
\
u540c
\
u4e00
\
u8ba4
\
u8bc6
\
u8fc7
\
u7a0b
\
u7684
\
u4e24
\
u4e2a
\
u9636
\
u6bb5
\
u3002
\
u4e8c
\
u8005
\
u65e2
\
u76f8
\
u4e92
\
u5bf9
\
u7acb
\
u53c8
\
u76f8
\
u4e92
\
u7edf
\
u4e00
\
u3002
\
u6211
\
u4eec
\
u79f0
\
u4f5c
\
u7cfb
\
u7edf1
\
u548c
\
u7cfb
\
u7edf2
\
uff0c
\
u4ed6
\
u7684
\
u7406
\
u8bba
\
u4e0e
\
u6211
\
u4eec
\
u719f
\
u77e5
\
u7684
\
u611f
\
u6027
\
u8ba4
\
u8bc6
\
u548c
\
u7406
\
u6027
\
u8ba4
\
u8bc6
\
u7684
\
u8fc7
\
u7a0b
\
u7684
\
u4e24
\
u4e2a
\
u9636
\
u6bb5
\
u6709
\
u5f88
\
u76f8
\
u4f3c
\
u7684
\
u7406
\
u8bba
\
u6216
\
u8005
\
u8bf4
\
u662f
\
u4e0d
\
u662f
\
u5c5e
\
u4e8e
\
u540c
\
u4e00
\
u4e2a
\
u7406
\
u8bba
\
u57fa
\
u7840
\
u3002'
,
get_score
:
30
,
score
:
40
,
attachments
:
[],
upload
:
{
type
:
'upload-form'
,
label
:
'附件上传:'
,
model
:
'attachments'
,
action
:
webConf
.
apiBaseURL
+
'/util/upload-file'
,
data
:
{
special
:
'exam'
},
attrs
:
{
multiple
:
true
,
headers
:
{
'tenant'
:
'sofia'
}
},
html
:
`
<div style="color: #72818c; font-size: 14px;">
<p style="margin: 0;">支持doc,docx,ppt,xls,txt,rar,zip,pdf,jpg,pic,png格式的文件,文件小于30M。</p>
</div>
`
}
},
{
id
:
'6622311487476072448'
,
content
:
'
\
u8bba
\
u8ff01929
\
u5e74
\
u7f8e
\
u56fd
\
u4e3a
\
u4ec0
\
u4e48
\
u4f1a
\
u51fa
\
u73b0
\
u5927
\
u8427
\
u6761
\
u3002'
,
user_answer
:
'2018
\
u5e74
\
u79ef
\
u6781
\
u7684
\
u8d22
\
u653f
\
u653f
\
u7b56
\
u5bf9
\
u4f9b
\
u7ed9
\
u6027
\
u7ed3
\
u6784
\
u6027
\
u6539
\
u9769
\
u6709
\
u4e00
\
u5b9a
\
u7684
\
u63a8
\
u52a8
\
u4f5c
\
u7528
\
u3002
\
u623f
\
u5730
\
u4ea7
\
u5e02
\
u573a
\
u5f97
\
u5230
\
u4e00
\
u5b9a
\
u7a0b
\
u5ea6
\
u6291
\
u5236
\
u3002
\
u7ecf
\
u6d4e
\
u53d1
\
u5c55
\
u5e73
\
u7a33
\
uff0c
\
u7ecf
\
u6d4e
\
u8fd0
\
u884c
\
u5728
\
u5408
\
u7406
\
u533a
\
u95f4
\
u3002
\
u964d
\
u7a0e
\
u4e3e
\
u52a8
\
u53d6
\
u5f97
\
u6210
\
u6548
\
uff0c
\
u5168
\
u5e74
\
u56fd
\
u5185
\
u589e
\
u503c
\
u7a0e
\
u3001
\
u4f01
\
u4e1a
\
u6240
\
u5f97
\
u7a0e
\
u3001
\
u4e2a
\
u4eba
\
u6240
\
u5f97
\
u7a0e
\
u540c
\
u6bd4
\
u5206
\
u522b
\
u589e
\
u957f9.1%
\
u300110%
\
u300115.9%
\
uff0c
\
u5206
\
u522b
\
u62c9
\
u9ad8
\
u5168
\
u56fd
\
u8d22
\
u653f
\
u6536
\
u5165
\
u589e
\
u5e453
\
u4e2a
\
u30011.9
\
u4e2a
\
u30011.1
\
u4e2a
\
u767e
\
u5206
\
u70b9
\
uff0c
\
u6709
\
u53d1
\
u6325
\
u51fa
\
u5b8f
\
u89c2
\
u8c03
\
u63a7
\
u7684
\
u4f5c
\
u7528
\
u3002
\
u4ece2018
\
u5e74
\
u8d27
\
u5e01
\
u653f
\
u7b56
\
u6574
\
u4f53
\
u6765
\
u770b
\
uff0c
\
u8f83
\
u597d
\
u5730
\
u628a
\
u63e1
\
u4e86
\
u652f
\
u6301
\
u5b9e
\
u4f53
\
u7ecf
\
u6d4e
\
u548c
\
u517c
\
u987e
\
u5185
\
u5916
\
u90e8
\
u5747
\
u8861
\
u4e4b
\
u95f4
\
u7684
\
u5e73
\
u8861
\
uff0c
\
u53d6
\
u5f97
\
u4e86
\
u79ef
\
u6781
\
u6210
\
u6548
\
uff0c
\
u4e5f
\
u5f88
\
u597d
\
u5730
\
u9632
\
u8303
\
u4e86
\
u91d1
\
u878d
\
u98ce
\
u9669
\
u30022018
\
u5e74
\
u603b
\
u4f53
\
u4fdd
\
u6301
\
u4e86
\
u9002
\
u5b9c
\
u7684
\
u8d27
\
u5e01
\
u91d1
\
u878d
\
u73af
\
u5883
\
uff0c
\
u65e0
\
u8bba
\
u662f
\
u5404
\
u9879
\
u8d37
\
u6b3e
\
u8fd8
\
u662f
\
u666e
\
u60e0
\
u53e3
\
u5f84
\
u5c0f
\
u5fae
\
u8d37
\
u6b3e
\
u90fd
\
u540c
\
u6bd4
\
u5927
\
u5e45
\
u591a
\
u589e
\
uff0cM2
\
u548c
\
u793e
\
u4f1a
\
u878d
\
u8d44
\
u89c4
\
u6a21
\
u5b58
\
u91cf
\
u540c
\
u6bd4
\
u589e
\
u901f
\
u4e0e
\
u540d
\
u4e49GDP
\
u589e
\
u901f
\
u57fa
\
u672c
\
u5339
\
u914d
\
uff0c
\
u6709
\
u529b
\
u4fc3
\
u8fdb
\
u4e86
\
u6211
\
u56fd
\
u7ecf
\
u6d4e
\
u6301
\
u7eed
\
u5065
\
u5eb7
\
u53d1
\
u5c55
\
u3002
\
u6211
\
u56fd
\
u5b9e
\
u65bd
\
u79ef
\
u6781
\
u7684
\
u8d22
\
u653f
\
u653f
\
u7b56
\
u548c
\
u7a33
\
u5065
\
u7684
\
u8d27
\
u5e01
\
u653f
\
u7b56
\
uff0c
\
u4e00
\
u65b9
\
u9762
\
u80fd
\
u4ee5
\
u653f
\
u7b56
\
u7684
\
u7a33
\
u5b9a
\
u6765
\
u5e94
\
u5bf9
\
u5916
\
u90e8
\
u73af
\
u5883
\
u7684
\
u4e0d
\
u7a33
\
u5b9a
\
uff0c
\
u5728
\
u9762
\
u5bf9
\
u4e16
\
u754c
\
u73af
\
u5883
\
u53d8
\
u5316
\
u65f6
\
u80fd
\
u968f
\
u65f6
\
u628a
\
u63e1
\
u4f4f
\
u6218
\
u7565
\
u4e3b
\
u52a8
\
u6027
\
uff1b
\
u540c
\
u65f6
\
u80fd
\
u591f
\
u79ef
\
u6781
\
u4fc3
\
u8fdb
\
u6211
\
u56fd
\
u4f9b
\
u7ed9
\
u4fa7
\
u7ed3
\
u6784
\
u6027
\
u6539
\
u9769
\
u8fdb
\
u7a0b
\
uff0c
\
u652f
\
u6301
\
u89e3
\
u51b3
\
u7ecf
\
u6d4e
\
u53d1
\
u5c55
\
u4e2d
\
u7684
\
u6df1
\
u5c42
\
u6b21
\
u7ed3
\
u6784
\
u6027
\
u95ee
\
u9898
\
uff0c
\
u63d0
\
u5347
\
u6211
\
u56fd
\
u7ecf
\
u6d4e
\
u53d1
\
u5c55
\
u8d28
\
u91cf
\
u548c
\
u6548
\
u7387
\
u3002
\
u5b8f
\
u89c2
\
u653f
\
u7b56
\
u7684
\
u5b9e
\
u65bd
\
u4e5f
\
u5de9
\
u56fa
\
u4e86
\
u6211
\
u56fd
\
u5e73
\
u7a33
\
u53d1
\
u5c55
\
u7684
\
u7ecf
\
u6d4e
\
u57fa
\
u7840
\
uff0c
\
u4e3a
\
u5168
\
u9762
\
u5efa
\
u6210
\
u5c0f
\
u5eb7
\
u793e
\
u4f1a
\
u63d0
\
u4f9b
\
u4e86
\
u575a
\
u5f3a
\
u6709
\
u529b
\
u7684
\
u7ecf
\
u6d4e
\
u63aa
\
u65bd
\
u4fdd
\
u969c
\
u3002'
,
check_comment
:
'
\
u5361
\
u5c3c
\
u66fc
\
u8ba4
\
u4e3a
\
u4eba
\
u7684
\
u5927
\
u8111
\
u5b58
\
u5728
\
u4e24
\
u4e2a
\
u7cfb
\
u7edf
\
uff0c
\
u4e24
\
u4e2a
\
u7cfb
\
u7edf
\
u5206
\
u522b
\
u6709
\
u5feb
\
u4e0e
\
u6162
\
u4e24
\
u79cd
\
u4f5c
\
u51b3
\
u5b9a
\
u7684
\
u65b9
\
u5f0f
\
u611f
\
u6027
\
u8ba4
\
u8bc6
\
u548c
\
u7406
\
u6027
\
u8ba4
\
u8bc6
\
u662f
\
u540c
\
u4e00
\
u8ba4
\
u8bc6
\
u8fc7
\
u7a0b
\
u7684
\
u4e24
\
u4e2a
\
u9636
\
u6bb5
\
u3002
\
u4e8c
\
u8005
\
u65e2
\
u76f8
\
u4e92
\
u5bf9
\
u7acb
\
u53c8
\
u76f8
\
u4e92
\
u7edf
\
u4e00
\
u3002
\
u6211
\
u4eec
\
u79f0
\
u4f5c
\
u7cfb
\
u7edf1
\
u548c
\
u7cfb
\
u7edf2
\
uff0c
\
u4ed6
\
u7684
\
u7406
\
u8bba
\
u4e0e
\
u6211
\
u4eec
\
u719f
\
u77e5
\
u7684
\
u611f
\
u6027
\
u8ba4
\
u8bc6
\
u548c
\
u7406
\
u6027
\
u8ba4
\
u8bc6
\
u7684
\
u8fc7
\
u7a0b
\
u7684
\
u4e24
\
u4e2a
\
u9636
\
u6bb5
\
u6709
\
u5f88
\
u76f8
\
u4f3c
\
u7684
\
u7406
\
u8bba
\
u6216
\
u8005
\
u8bf4
\
u662f
\
u4e0d
\
u662f
\
u5c5e
\
u4e8e
\
u540c
\
u4e00
\
u4e2a
\
u7406
\
u8bba
\
u57fa
\
u7840
\
u3002'
,
get_score
:
30
,
score
:
40
,
attachments
:
[],
upload
:
{
type
:
'upload-form'
,
label
:
'附件上传:'
,
model
:
'attachments'
,
action
:
webConf
.
apiBaseURL
+
'/util/upload-file'
,
data
:
{
special
:
'exam'
},
attrs
:
{
multiple
:
true
},
html
:
`
<div style="color: #72818c; font-size: 14px;">
<p style="margin: 0;">支持doc,docx,ppt,xls,txt,rar,zip,pdf,jpg,pic,png格式的文件,文件小于30M。</p>
</div>
`
}
}
]
// id: '1',
// title: '标题',
// type: 0, // 0: 暂存,可以继续答题;1: 提交,不能再继续答题
// radioList: [
// {
// id: '6622309081933676544',
// content: '\u5047\u8bbe\u8d27\u5e01\u9700\u6c42\u4e3aL=ky-hr\uff0c\u8d27\u5e01\u4f9b\u7ed9\u589e\u52a010\u4ebf\u7f8e\u5143\u800c\u5176\u5b83\u6761\u4ef6\u4e0d\u53d8\uff0c\u5219\u4f1a\u4f7fLM \u66f2\u7ebf( )',
// options: [
// {
// id: '6622310260604403712',
// option: '\u53f3\u79fb10\u4ebf\u7f8e\u5143'
// },
// {
// id: '6622310260604403713',
// option: '\u53f3\u79fb k\u4e58\u4ee510\u4ebf\u7f8e\u5143'
// },
// {
// id: '6622310260604403714',
// option: '\u53f3\u79fb10\u4ebf\u7f8e\u5143\u9664\u4ee5k'
// },
// {
// id: '6622310260604403715',
// option: '\u53f3\u79fb k\u9664\u4ee510\u4ebf\u7f8e\u5143'
// }
// ],
// user_answer: '6622310260604403714',
// right_answer: '6622310260604403714',
// get_score: 30,
// score: 30
// }
// ],
// checkboxList: [
// {
// id: '6622310510798831616',
// content: '\u51ef\u6069\u65af\u5b8f\u89c2\u7ecf\u6d4e\u7406\u8bba\u7684\u4e3b\u8981\u524d\u63d0\u5305\u62ec\uff08\uff09',
// options: [
// {
// id: '6622310872641437696',
// option: '\u8fb9\u9645\u6d88\u8d39\u503e\u5411\u9012\u51cf'
// },
// {
// id: '6622310872641437697',
// option: '\u8d44\u672c\u8fb9\u9645\u6548\u7387\u9012\u51cf'
// },
// {
// id: '6622310872641437698',
// option: '\u4e0d\u786e\u5b9a\u6027\u4e0e\u6d41\u52a8\u6027\u504f\u597d'
// },
// {
// id: '6622310872641437699',
// option: '\u540d\u4e49\u5de5\u8d44\u521a\u6027'
// }
// ],
// user_answer: [
// '6622310872641437697',
// '6622310872641437698',
// '6622310872641437699'
// ],
// right_answer: [
// '6622310872641437697',
// '6622310872641437698'
// ],
// get_score: 30,
// score: 30
// }
// ],
// shortAnswerList: [
// {
// id: '6622311487476072448',
// content: '\u8bba\u8ff01929\u5e74\u7f8e\u56fd\u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\u5927\u8427\u6761\u3002',
// user_answer: '2018\u5e74\u79ef\u6781\u7684\u8d22\u653f\u653f\u7b56\u5bf9\u4f9b\u7ed9\u6027\u7ed3\u6784\u6027\u6539\u9769\u6709\u4e00\u5b9a\u7684\u63a8\u52a8\u4f5c\u7528\u3002\u623f\u5730\u4ea7\u5e02\u573a\u5f97\u5230\u4e00\u5b9a\u7a0b\u5ea6\u6291\u5236\u3002\u7ecf\u6d4e\u53d1\u5c55\u5e73\u7a33\uff0c\u7ecf\u6d4e\u8fd0\u884c\u5728\u5408\u7406\u533a\u95f4\u3002\u964d\u7a0e\u4e3e\u52a8\u53d6\u5f97\u6210\u6548\uff0c\u5168\u5e74\u56fd\u5185\u589e\u503c\u7a0e\u3001\u4f01\u4e1a\u6240\u5f97\u7a0e\u3001\u4e2a\u4eba\u6240\u5f97\u7a0e\u540c\u6bd4\u5206\u522b\u589e\u957f9.1%\u300110%\u300115.9%\uff0c\u5206\u522b\u62c9\u9ad8\u5168\u56fd\u8d22\u653f\u6536\u5165\u589e\u5e453\u4e2a\u30011.9\u4e2a\u30011.1\u4e2a\u767e\u5206\u70b9\uff0c\u6709\u53d1\u6325\u51fa\u5b8f\u89c2\u8c03\u63a7\u7684\u4f5c\u7528\u3002\u4ece2018\u5e74\u8d27\u5e01\u653f\u7b56\u6574\u4f53\u6765\u770b\uff0c\u8f83\u597d\u5730\u628a\u63e1\u4e86\u652f\u6301\u5b9e\u4f53\u7ecf\u6d4e\u548c\u517c\u987e\u5185\u5916\u90e8\u5747\u8861\u4e4b\u95f4\u7684\u5e73\u8861\uff0c\u53d6\u5f97\u4e86\u79ef\u6781\u6210\u6548\uff0c\u4e5f\u5f88\u597d\u5730\u9632\u8303\u4e86\u91d1\u878d\u98ce\u9669\u30022018\u5e74\u603b\u4f53\u4fdd\u6301\u4e86\u9002\u5b9c\u7684\u8d27\u5e01\u91d1\u878d\u73af\u5883\uff0c\u65e0\u8bba\u662f\u5404\u9879\u8d37\u6b3e\u8fd8\u662f\u666e\u60e0\u53e3\u5f84\u5c0f\u5fae\u8d37\u6b3e\u90fd\u540c\u6bd4\u5927\u5e45\u591a\u589e\uff0cM2\u548c\u793e\u4f1a\u878d\u8d44\u89c4\u6a21\u5b58\u91cf\u540c\u6bd4\u589e\u901f\u4e0e\u540d\u4e49GDP\u589e\u901f\u57fa\u672c\u5339\u914d\uff0c\u6709\u529b\u4fc3\u8fdb\u4e86\u6211\u56fd\u7ecf\u6d4e\u6301\u7eed\u5065\u5eb7\u53d1\u5c55\u3002\u6211\u56fd\u5b9e\u65bd\u79ef\u6781\u7684\u8d22\u653f\u653f\u7b56\u548c\u7a33\u5065\u7684\u8d27\u5e01\u653f\u7b56\uff0c\u4e00\u65b9\u9762\u80fd\u4ee5\u653f\u7b56\u7684\u7a33\u5b9a\u6765\u5e94\u5bf9\u5916\u90e8\u73af\u5883\u7684\u4e0d\u7a33\u5b9a\uff0c\u5728\u9762\u5bf9\u4e16\u754c\u73af\u5883\u53d8\u5316\u65f6\u80fd\u968f\u65f6\u628a\u63e1\u4f4f\u6218\u7565\u4e3b\u52a8\u6027\uff1b\u540c\u65f6\u80fd\u591f\u79ef\u6781\u4fc3\u8fdb\u6211\u56fd\u4f9b\u7ed9\u4fa7\u7ed3\u6784\u6027\u6539\u9769\u8fdb\u7a0b\uff0c\u652f\u6301\u89e3\u51b3\u7ecf\u6d4e\u53d1\u5c55\u4e2d\u7684\u6df1\u5c42\u6b21\u7ed3\u6784\u6027\u95ee\u9898\uff0c\u63d0\u5347\u6211\u56fd\u7ecf\u6d4e\u53d1\u5c55\u8d28\u91cf\u548c\u6548\u7387\u3002\u5b8f\u89c2\u653f\u7b56\u7684\u5b9e\u65bd\u4e5f\u5de9\u56fa\u4e86\u6211\u56fd\u5e73\u7a33\u53d1\u5c55\u7684\u7ecf\u6d4e\u57fa\u7840\uff0c\u4e3a\u5168\u9762\u5efa\u6210\u5c0f\u5eb7\u793e\u4f1a\u63d0\u4f9b\u4e86\u575a\u5f3a\u6709\u529b\u7684\u7ecf\u6d4e\u63aa\u65bd\u4fdd\u969c\u3002',
// check_comment: '\u5361\u5c3c\u66fc\u8ba4\u4e3a\u4eba\u7684\u5927\u8111\u5b58\u5728\u4e24\u4e2a\u7cfb\u7edf\uff0c\u4e24\u4e2a\u7cfb\u7edf\u5206\u522b\u6709\u5feb\u4e0e\u6162\u4e24\u79cd\u4f5c\u51b3\u5b9a\u7684\u65b9\u5f0f\u611f\u6027\u8ba4\u8bc6\u548c\u7406\u6027\u8ba4\u8bc6\u662f\u540c\u4e00\u8ba4\u8bc6\u8fc7\u7a0b\u7684\u4e24\u4e2a\u9636\u6bb5\u3002\u4e8c\u8005\u65e2\u76f8\u4e92\u5bf9\u7acb\u53c8\u76f8\u4e92\u7edf\u4e00\u3002\u6211\u4eec\u79f0\u4f5c\u7cfb\u7edf1\u548c\u7cfb\u7edf2\uff0c\u4ed6\u7684\u7406\u8bba\u4e0e\u6211\u4eec\u719f\u77e5\u7684\u611f\u6027\u8ba4\u8bc6\u548c\u7406\u6027\u8ba4\u8bc6\u7684\u8fc7\u7a0b\u7684\u4e24\u4e2a\u9636\u6bb5\u6709\u5f88\u76f8\u4f3c\u7684\u7406\u8bba\u6216\u8005\u8bf4\u662f\u4e0d\u662f\u5c5e\u4e8e\u540c\u4e00\u4e2a\u7406\u8bba\u57fa\u7840\u3002',
// get_score: 30,
// score: 40,
// attachments: [],
// upload: {
// type: 'upload-form',
// label: '附件上传:',
// model: 'attachments',
// action: webConf.apiBaseURL + '/util/upload-file',
// data: {
// special: 'exam'
// },
// attrs: {
// multiple: true,
// headers: {
// 'tenant': 'sofia'
// }
// },
// html: `
//
<
div
style
=
"color: #72818c; font-size: 14px;"
>
//
<
p
style
=
"margin: 0;"
>
支持
doc
,
docx
,
ppt
,
xls
,
txt
,
rar
,
zip
,
pdf
,
jpg
,
pic
,
png
格式的文件,文件小于
30
M
。
<
/p
>
//
<
/div
>
// `
// }
// },
// {
// id: '6622311487476072448',
// content: '\u8bba\u8ff01929\u5e74\u7f8e\u56fd\u4e3a\u4ec0\u4e48\u4f1a\u51fa\u73b0\u5927\u8427\u6761\u3002',
// user_answer: '2018\u5e74\u79ef\u6781\u7684\u8d22\u653f\u653f\u7b56\u5bf9\u4f9b\u7ed9\u6027\u7ed3\u6784\u6027\u6539\u9769\u6709\u4e00\u5b9a\u7684\u63a8\u52a8\u4f5c\u7528\u3002\u623f\u5730\u4ea7\u5e02\u573a\u5f97\u5230\u4e00\u5b9a\u7a0b\u5ea6\u6291\u5236\u3002\u7ecf\u6d4e\u53d1\u5c55\u5e73\u7a33\uff0c\u7ecf\u6d4e\u8fd0\u884c\u5728\u5408\u7406\u533a\u95f4\u3002\u964d\u7a0e\u4e3e\u52a8\u53d6\u5f97\u6210\u6548\uff0c\u5168\u5e74\u56fd\u5185\u589e\u503c\u7a0e\u3001\u4f01\u4e1a\u6240\u5f97\u7a0e\u3001\u4e2a\u4eba\u6240\u5f97\u7a0e\u540c\u6bd4\u5206\u522b\u589e\u957f9.1%\u300110%\u300115.9%\uff0c\u5206\u522b\u62c9\u9ad8\u5168\u56fd\u8d22\u653f\u6536\u5165\u589e\u5e453\u4e2a\u30011.9\u4e2a\u30011.1\u4e2a\u767e\u5206\u70b9\uff0c\u6709\u53d1\u6325\u51fa\u5b8f\u89c2\u8c03\u63a7\u7684\u4f5c\u7528\u3002\u4ece2018\u5e74\u8d27\u5e01\u653f\u7b56\u6574\u4f53\u6765\u770b\uff0c\u8f83\u597d\u5730\u628a\u63e1\u4e86\u652f\u6301\u5b9e\u4f53\u7ecf\u6d4e\u548c\u517c\u987e\u5185\u5916\u90e8\u5747\u8861\u4e4b\u95f4\u7684\u5e73\u8861\uff0c\u53d6\u5f97\u4e86\u79ef\u6781\u6210\u6548\uff0c\u4e5f\u5f88\u597d\u5730\u9632\u8303\u4e86\u91d1\u878d\u98ce\u9669\u30022018\u5e74\u603b\u4f53\u4fdd\u6301\u4e86\u9002\u5b9c\u7684\u8d27\u5e01\u91d1\u878d\u73af\u5883\uff0c\u65e0\u8bba\u662f\u5404\u9879\u8d37\u6b3e\u8fd8\u662f\u666e\u60e0\u53e3\u5f84\u5c0f\u5fae\u8d37\u6b3e\u90fd\u540c\u6bd4\u5927\u5e45\u591a\u589e\uff0cM2\u548c\u793e\u4f1a\u878d\u8d44\u89c4\u6a21\u5b58\u91cf\u540c\u6bd4\u589e\u901f\u4e0e\u540d\u4e49GDP\u589e\u901f\u57fa\u672c\u5339\u914d\uff0c\u6709\u529b\u4fc3\u8fdb\u4e86\u6211\u56fd\u7ecf\u6d4e\u6301\u7eed\u5065\u5eb7\u53d1\u5c55\u3002\u6211\u56fd\u5b9e\u65bd\u79ef\u6781\u7684\u8d22\u653f\u653f\u7b56\u548c\u7a33\u5065\u7684\u8d27\u5e01\u653f\u7b56\uff0c\u4e00\u65b9\u9762\u80fd\u4ee5\u653f\u7b56\u7684\u7a33\u5b9a\u6765\u5e94\u5bf9\u5916\u90e8\u73af\u5883\u7684\u4e0d\u7a33\u5b9a\uff0c\u5728\u9762\u5bf9\u4e16\u754c\u73af\u5883\u53d8\u5316\u65f6\u80fd\u968f\u65f6\u628a\u63e1\u4f4f\u6218\u7565\u4e3b\u52a8\u6027\uff1b\u540c\u65f6\u80fd\u591f\u79ef\u6781\u4fc3\u8fdb\u6211\u56fd\u4f9b\u7ed9\u4fa7\u7ed3\u6784\u6027\u6539\u9769\u8fdb\u7a0b\uff0c\u652f\u6301\u89e3\u51b3\u7ecf\u6d4e\u53d1\u5c55\u4e2d\u7684\u6df1\u5c42\u6b21\u7ed3\u6784\u6027\u95ee\u9898\uff0c\u63d0\u5347\u6211\u56fd\u7ecf\u6d4e\u53d1\u5c55\u8d28\u91cf\u548c\u6548\u7387\u3002\u5b8f\u89c2\u653f\u7b56\u7684\u5b9e\u65bd\u4e5f\u5de9\u56fa\u4e86\u6211\u56fd\u5e73\u7a33\u53d1\u5c55\u7684\u7ecf\u6d4e\u57fa\u7840\uff0c\u4e3a\u5168\u9762\u5efa\u6210\u5c0f\u5eb7\u793e\u4f1a\u63d0\u4f9b\u4e86\u575a\u5f3a\u6709\u529b\u7684\u7ecf\u6d4e\u63aa\u65bd\u4fdd\u969c\u3002',
// check_comment: '\u5361\u5c3c\u66fc\u8ba4\u4e3a\u4eba\u7684\u5927\u8111\u5b58\u5728\u4e24\u4e2a\u7cfb\u7edf\uff0c\u4e24\u4e2a\u7cfb\u7edf\u5206\u522b\u6709\u5feb\u4e0e\u6162\u4e24\u79cd\u4f5c\u51b3\u5b9a\u7684\u65b9\u5f0f\u611f\u6027\u8ba4\u8bc6\u548c\u7406\u6027\u8ba4\u8bc6\u662f\u540c\u4e00\u8ba4\u8bc6\u8fc7\u7a0b\u7684\u4e24\u4e2a\u9636\u6bb5\u3002\u4e8c\u8005\u65e2\u76f8\u4e92\u5bf9\u7acb\u53c8\u76f8\u4e92\u7edf\u4e00\u3002\u6211\u4eec\u79f0\u4f5c\u7cfb\u7edf1\u548c\u7cfb\u7edf2\uff0c\u4ed6\u7684\u7406\u8bba\u4e0e\u6211\u4eec\u719f\u77e5\u7684\u611f\u6027\u8ba4\u8bc6\u548c\u7406\u6027\u8ba4\u8bc6\u7684\u8fc7\u7a0b\u7684\u4e24\u4e2a\u9636\u6bb5\u6709\u5f88\u76f8\u4f3c\u7684\u7406\u8bba\u6216\u8005\u8bf4\u662f\u4e0d\u662f\u5c5e\u4e8e\u540c\u4e00\u4e2a\u7406\u8bba\u57fa\u7840\u3002',
// get_score: 30,
// score: 40,
// attachments: [],
// upload: {
// type: 'upload-form',
// label: '附件上传:',
// model: 'attachments',
// action: webConf.apiBaseURL + '/util/upload-file',
// data: {
// special: 'exam'
// },
// attrs: {
// multiple: true
// },
// html: `
//
<
div
style
=
"color: #72818c; font-size: 14px;"
>
//
<
p
style
=
"margin: 0;"
>
支持
doc
,
docx
,
ppt
,
xls
,
txt
,
rar
,
zip
,
pdf
,
jpg
,
pic
,
png
格式的文件,文件小于
30
M
。
<
/p
>
//
<
/div
>
// `
// }
// }
// ]
}
}
},
...
...
@@ -252,15 +250,15 @@ export default {
methods
:
{
isCheckboxRight
:
(
val
,
arr
)
=>
{
let
flag
=
true
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
)
{
let
tmpId
=
val
[
i
]
for
(
let
i
=
0
;
i
<
arr
.
length
;
i
++
)
{
let
tmpId
=
arr
[
i
]
let
j
=
0
for
(;
j
<
arr
.
length
;
j
++
)
{
if
(
arr
[
j
]
===
tmpId
)
{
for
(;
j
<
val
.
length
;
j
++
)
{
if
(
val
[
j
]
===
tmpId
)
{
break
}
}
if
(
j
===
arr
.
length
)
{
flag
=
false
;
break
}
if
(
j
===
val
.
length
)
{
flag
=
false
;
break
}
}
return
flag
},
...
...
@@ -271,11 +269,10 @@ export default {
return
true
}
}
if
(
i
===
arr
.
length
)
{
return
false
}
return
false
},
initckeditor
()
{
if
(
!
this
.
exam
.
shortAnswerList
)
{
return
}
for
(
let
i
=
0
;
i
<
this
.
exam
.
shortAnswerList
.
length
;
i
++
)
{
let
tmpEditor
=
CKEDITOR
.
replace
(
'editor-exam'
+
i
,
{
height
:
300
,
...
...
@@ -307,7 +304,20 @@ export default {
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
if
(
this
.
id
!==
'0'
)
{
cAction
.
examAction
.
getExamAnswer
(
this
.
cid
,
this
.
sid
,
this
.
id
).
then
(
_data
=>
{
if
(
_data
.
code
===
8001
)
{
cAction
.
examAction
.
getExamInfo
(
this
.
cid
,
this
.
sid
).
then
(
_data
=>
{
this
.
exam
=
_data
this
.
exam
.
id
=
this
.
id
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
/* 滚动到头部 */
document
.
querySelector
(
'.play-paper'
).
scrollTop
=
0
loading
.
close
()
this
.
initckeditor
()
})
return
}
this
.
exam
=
_data
this
.
exam
.
id
=
this
.
id
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
/* 滚动到头部 */
document
.
querySelector
(
'.play-paper'
).
scrollTop
=
0
...
...
@@ -317,6 +327,7 @@ export default {
}
else
{
cAction
.
examAction
.
getExamInfo
(
this
.
cid
,
this
.
sid
).
then
(
_data
=>
{
this
.
exam
=
_data
this
.
exam
.
id
=
this
.
id
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
/* 滚动到头部 */
document
.
querySelector
(
'.play-paper'
).
scrollTop
=
0
...
...
@@ -368,16 +379,15 @@ export default {
}
body
.
answers
.
shortAnswerList
.
push
({
id
:
tmp
.
id
,
user_answer
:
Base64
.
encode
(
tmp
.
user_answer
),
user_answer
:
Base64
.
encode
(
tmp
.
user_answer
,
'utf-8'
),
attachments
:
tmp
.
attachments
})
}
body
.
answers
=
JSON
.
stringify
(
body
.
answers
)
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
cAction
.
examAction
.
submitExam
(
this
.
cid
,
this
.
sid
,
this
.
exam
.
id
,
body
).
then
(
_res
=>
{
debugger
if
(
_res
.
success
)
{
if
(
_res
.
code
===
200
)
{
this
.
loadAjax
()
}
else
{
this
.
$message
.
error
(
_res
.
data
.
error
)
}
...
...
@@ -406,17 +416,6 @@ export default {
cAction
.
chapterAction
.
getExamDetail
(
this
.
sid
,
this
.
cid
,
this
.
id
).
then
(
_data
=>
{
this
.
exam
=
{}
}).
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}).
finally
(()
=>
{
this
.
setTime
=
setInterval
(()
=>
{
// console.log(this.chapterExam.work_id, this.id)
if
(
this
.
chapterExam
.
work_id
&&
this
.
chapterExam
.
work_id
===
this
.
id
)
{
if
(
!
this
.
exam
.
id
)
{
this
.
exam
=
this
.
updateData
(
this
.
chapterExam
)
/* 滚动到头部 */
document
.
querySelector
(
'.play-paper'
).
scrollTop
=
0
}
clearInterval
(
this
.
setTime
)
}
},
50
)
loading
.
close
()
})
}
...
...
client/client/components/player/rightSide/sideChapterList.vue
浏览文件 @
e32c2cad
...
...
@@ -62,6 +62,8 @@ export default {
}
else
if
(
_course
.
chapters
[
i2
].
id
===
'teach_evaluation'
)
{
// window.localStorage.setItem('headerInfo', JSON.stringify(this.headerInfo))
this
.
$router
.
push
({
path
:
`/survey/
${
sid
}
/
${
cid
}
`
})
}
else
if
(
_course
.
chapters
[
i2
].
type
===
'exam'
)
{
this
.
$router
.
push
({
path
:
`/player/
${
sid
}
/
${
cid
}
/exam/
${
_id
}
`
})
}
return
}
...
...
client/client/components/services/base_api.js
浏览文件 @
e32c2cad
...
...
@@ -120,7 +120,7 @@ export default class API {
message
:
'已取消,将不再记录任何数据操作,除非重新登录'
})
})
}
else
if
(
data
.
status
!==
200
&&
data
.
message
)
{
}
else
if
(
data
.
status
!==
200
&&
data
.
message
&&
!
data
.
code
)
{
err
=
new
Error
(
data
.
message
)
throw
err
}
else
{
...
...
client/client/components/upload-form/src/uploadForm.vue
浏览文件 @
e32c2cad
...
...
@@ -100,6 +100,17 @@ export default {
// }
// })
}
},
watch
:
{
filesArr
:
{
immediate
:
true
,
deep
:
true
,
handler
(
value
)
{
if
(
this
.
formData
[
this
.
item
.
model
].
length
!==
value
.
length
)
{
this
.
formData
[
this
.
item
.
model
]
=
value
}
}
}
}
}
</
script
>
...
...
client/client/project/actions/ChapterAction.js
浏览文件 @
e32c2cad
...
...
@@ -116,6 +116,13 @@ export default class ChapterAction {
id
:
'teach_evaluation'
}]
})
if
(
_res
.
course_examination
)
{
json
.
course
[
json
.
course
.
length
-
1
].
chapters
.
push
({
name
:
'课程考试'
,
type
:
'exam'
,
id
:
_res
.
course_examination
})
}
let
courseWork
=
_res
.
curriculum
||
{}
courseWork
[
'end_date'
]
=
_res
.
end_date
courseWork
[
'essay_date'
]
=
_res
.
essay_date
...
...
client/client/project/actions/CourseAction.js
浏览文件 @
e32c2cad
...
...
@@ -149,6 +149,17 @@ export default class CourseAction {
sid
:
sid
,
cid
:
cid
})
if
(
cur
.
course_examination
)
{
json
.
tabs1ChapterList
.
course
.
push
({
title
:
'课程考试'
,
isUp
:
true
,
chapters
:
[],
type
:
'exam'
,
sid
:
sid
,
cid
:
cid
,
examId
:
cur
.
course_examination
})
}
/* 课程考核 考核标准文案读取 */
json
.
tabs3richTest
=
cur
.
course_evaluation
// callback(json) // 可以不使用callback 因为使用then
...
...
client/client/project/actions/ExamAction.js
浏览文件 @
e32c2cad
import
{
examApi
}
from
'@services'
import
Base64
from
'Base64'
export
default
class
ExamAction
{
/* 获取考卷信息 */
...
...
@@ -7,6 +8,7 @@ export default class ExamAction {
let
exam
=
{}
exam
.
id
=
_res
.
id
exam
.
title
=
_res
.
title
exam
.
score
=
{}
exam
.
radioList
=
_res
.
examination
.
radioList
for
(
let
i
=
0
;
i
<
exam
.
radioList
.
length
;
i
++
)
{
exam
.
radioList
[
i
].
user_answer
=
''
...
...
@@ -51,26 +53,32 @@ export default class ExamAction {
/* 获取考卷结果 */
getExamAnswer
(
cid
,
sid
,
eid
)
{
return
examApi
.
getExamAnswer
(
cid
,
sid
,
eid
).
then
(
_res
=>
{
if
(
_res
.
code
)
{
return
_res
}
let
exam
=
{}
let
tmp
=
null
exam
.
id
=
_res
.
id
exam
.
title
=
_res
.
title
exam
.
type
=
_res
.
type
exam
.
score
=
_res
.
score
exam
.
submitted_time
=
_res
.
submitted_time
exam
.
radioList
=
_res
.
sheet
.
radioList
for
(
let
i
=
0
;
i
<
exam
.
radioList
.
length
;
i
++
)
{
let
tmp
=
exam
.
radioList
[
i
]
tmp
=
exam
.
radioList
[
i
]
if
(
!
tmp
.
user_answer
)
tmp
.
user_answer
=
''
if
(
!
tmp
.
right_answer
)
tmp
.
right_answer
=
''
if
(
!
tmp
.
get_score
)
tmp
.
get_score
=
-
1
}
exam
.
checkboxList
=
_res
.
sheet
.
checkboxList
for
(
let
i
=
0
;
i
<
exam
.
checkboxList
.
length
;
i
++
)
{
let
tmp
=
exam
.
checkboxList
[
i
]
tmp
=
exam
.
checkboxList
[
i
]
if
(
!
tmp
.
user_answer
||
!
tmp
.
user_answer
.
length
)
tmp
.
user_answer
=
[]
if
(
!
tmp
.
right_answer
||
!
tmp
.
right_answer
.
length
)
tmp
.
right_answer
=
[]
if
(
!
tmp
.
get_score
)
tmp
.
get_score
=
-
1
}
exam
.
shortAnswerList
=
_res
.
sheet
.
shortAnswerList
for
(
let
i
=
0
;
i
<
exam
.
shortAnswerList
.
length
;
i
++
)
{
let
tmp
=
exam
.
shortAnswerList
[
i
]
tmp
=
exam
.
shortAnswerList
[
i
]
tmp
.
user_answer
=
Base64
.
decode
(
tmp
.
user_answer
.
replace
(
' '
,
'+'
),
'utf-8'
)
if
(
!
tmp
.
attachments
||
!
tmp
.
attachments
.
length
)
tmp
.
attachments
=
[]
tmp
.
upload
=
{
type
:
'upload-form'
,
...
...
@@ -78,14 +86,14 @@ export default class ExamAction {
model
:
'attachments'
,
action
:
webConf
.
apiBaseURL
+
'/util/upload-file'
,
data
:
{
special
:
'exam'
,
special
:
'exam'
},
attrs
:
{
multiple
:
true
,
headers
:
{
'tenant'
:
'sofia'
}
},
attrs
:
{
multiple
:
true
},
html
:
`
<div style="color: #72818c; font-size: 14px;">
<p style="margin: 0;">支持doc,docx,ppt,xls,txt,rar,zip,pdf,jpg,pic,png格式的文件,文件小于30M。</p>
...
...
client/client/project/pages/myLearn/courseDetail.vue
浏览文件 @
e32c2cad
...
...
@@ -483,6 +483,8 @@ export default {
// } else {
// this.$router.push({ path: `/survey-phone/${sid}/${cid}` })
// }
} else if (course.type === '
exam
') {
this.$router.push({ path: `/player/${sid}/${cid}/exam/${course.examId}` })
}
}
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论