Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
f4dd7035
提交
f4dd7035
authored
1月 07, 2019
作者:
GOD_ZYX
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
测试题 类型不同 不相等问题BUG
上级
371acb17
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
69 行增加
和
10 行删除
+69
-10
uploadAliyunCDN.js
build-dist/uploadAliyunCDN.js
+1
-1
build.zip
build.zip
+0
-0
index.html
client-dist/index.html
+2
-2
9.5b9f6fc1.js
client-dist/resources/9.5b9f6fc1.js
+2
-0
9.90951ba6.js
client-dist/resources/9.90951ba6.js
+0
-2
9.e676aa582c42.css
client-dist/resources/9.e676aa582c42.css
+2
-2
manifest.be4b04ef.js
client-dist/resources/manifest.be4b04ef.js
+2
-2
chapterExam.vue
client/components/player/chapterExam/chapterExam.vue
+60
-1
没有找到文件。
build-dist/uploadAliyunCDN.js
浏览文件 @
f4dd7035
...
@@ -43,7 +43,7 @@ function findfiles (dirPath, callback) {
...
@@ -43,7 +43,7 @@ function findfiles (dirPath, callback) {
if
(
isFile
&&
typeof
callback
===
'function'
)
{
if
(
isFile
&&
typeof
callback
===
'function'
)
{
callback
(
filedir
)
callback
(
filedir
)
}
}
if
(
isDir
)
{
if
(
isDir
&&
filename
!==
'static'
)
{
var
morePath
=
filedir
.
replace
(
new
RegExp
(
DIR_PATH
+
'/'
,
'g'
),
''
)
+
'/'
var
morePath
=
filedir
.
replace
(
new
RegExp
(
DIR_PATH
+
'/'
,
'g'
),
''
)
+
'/'
findfiles
(
filedir
,
function
(
filedir
)
{
findfiles
(
filedir
,
function
(
filedir
)
{
uploadFile
(
PREFIX_PATH
+
morePath
,
filedir
)
uploadFile
(
PREFIX_PATH
+
morePath
,
filedir
)
...
...
build.zip
浏览文件 @
f4dd7035
No preview for this file type
client-dist/index.html
浏览文件 @
f4dd7035
...
@@ -2,4 +2,4 @@
...
@@ -2,4 +2,4 @@
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<![endif]-->
<script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.44a28b22.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.f74fc2d9.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.65392113.js"
></script></body></html>
<![endif]-->
<script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.be4b04ef.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.f74fc2d9.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.65392113.js"
></script></body></html>
\ No newline at end of file
\ No newline at end of file
client-dist/resources/9.5b9f6fc1.js
0 → 100644
浏览文件 @
f4dd7035
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
9
],{
266
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
a
=
r
(
401
),
s
=
r
(
334
);
for
(
var
i
in
s
)
"default"
!==
i
&&
function
(
e
){
r
.
d
(
t
,
e
,
function
(){
return
s
[
e
]})}(
i
);
r
(
381
);
var
o
=
r
(
3
),
c
=
Object
(
o
.
a
)(
s
.
default
,
a
.
a
,
a
.
b
,
!
1
,
null
,
"3141ab78"
,
null
);
c
.
options
.
__file
=
"chapterExam.vue"
,
t
.
default
=
c
.
exports
},
334
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
a
=
r
(
335
),
s
=
r
.
n
(
a
);
for
(
var
i
in
a
)
"default"
!==
i
&&
function
(
e
){
r
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
i
);
t
.
default
=
s
.
a
},
335
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
,
s
=
r
(
68
),
h
=
(
a
=
s
)
&&
a
.
__esModule
?
a
:{
default
:
a
};
t
.
default
=
{
props
:{
chapterId
:{
type
:
String
,
require
:
!
1
},
chapterName
:{
type
:
String
,
require
:
!
1
},
chapterExam
:{
type
:
Object
,
require
:
!
1
},
sid
:{
type
:
String
,
require
:
!
1
},
cid
:{
type
:
String
,
require
:
!
1
},
id
:{
type
:
String
,
require
:
!
1
}},
data
:
function
(){
return
{
exam
:{},
param
:{
course_id
:
""
,
chapter_id
:
""
,
work_id
:
""
,
semester_id
:
""
,
work_contents
:
""
,
duration
:
0
,
score
:
0
},
startTime
:
""
,
recordAll
:[],
setTime
:
null
,
radioCur
:
""
,
checkCur
:
""
}},
mounted
:
function
(){
this
.
loadAjax
()},
methods
:{
updateData
:
function
(
n
){
return
this
.
param
=
{
course_id
:
n
.
course_id
,
chapter_id
:
n
.
chapter_id
,
work_id
:
n
.
work_id
,
semester_id
:
n
.
semester_id
,
work_contents
:
""
,
duration
:
0
,
score
:
0
},
this
.
startTime
=
(
new
Date
).
getTime
(),{
id
:
n
.
id
,
semester_id
:
n
.
semester_id
,
title
:
n
.
work_title
,
score
:
n
.
score
||
""
,
work_contents
:
n
.
work_contents
||
""
,
group
:
n
.
questions
.
map
(
function
(
e
,
t
){
var
r
=
""
,
a
=
JSON
.
parse
(
e
.
question_options
);
a
.
forEach
(
function
(
e
,
t
){
if
(
e
.
checked
)
switch
(
t
){
case
0
:
r
+=
"A,"
;
break
;
case
1
:
r
+=
"B,"
;
break
;
case
2
:
r
+=
"C,"
;
break
;
case
3
:
r
+=
"D,"
}});
var
s
=
""
;
if
(
n
.
work_contents
){
for
(
var
i
=
JSON
.
parse
(
n
.
work_contents
),
o
=
0
;
o
<
i
.
length
;
o
++
)
if
(
i
[
o
].
question_id
===
e
.
id
){
a
=
i
[
o
].
options
;
break
}
if
(
1
===
e
.
question_type
)
for
(
var
c
=
0
;
c
<
a
.
length
;
c
++
)
if
(
a
[
c
].
selected
){
s
=
c
;
break
}}
return
{
id
:
e
.
id
,
type
:
e
.
question_type
,
title
:
e
.
question_content
,
arr
:
a
,
cur
:
n
.
work_contents
&&
r
.
substr
(
0
,
r
.
length
-
1
)
||
""
,
arrSel
:[],
sel
:
s
}})}},
updateData1
:
function
(
e
){
this
.
exam
.
id
=
e
.
id
,
this
.
exam
.
semester_id
=
e
.
semester_id
,
this
.
exam
.
title
=
e
.
work_title
,
this
.
exam
.
score
=
e
.
score
||
""
,
this
.
exam
.
work_contents
=
e
.
work_contents
||
""
;
for
(
var
t
=
0
;
t
<
this
.
exam
.
group
.
length
;
t
++
){
var
r
=
""
,
a
=
e
.
questions
[
t
],
s
=
JSON
.
parse
(
a
.
question_options
);
s
.
forEach
(
function
(
e
,
t
){
if
(
e
.
checked
)
switch
(
t
){
case
0
:
r
+=
"A,"
;
break
;
case
1
:
r
+=
"B,"
;
break
;
case
2
:
r
+=
"C,"
;
break
;
case
3
:
r
+=
"D,"
}});
var
i
=
""
;
if
(
e
.
work_contents
){
for
(
var
o
=
JSON
.
parse
(
e
.
work_contents
),
c
=
0
;
c
<
o
.
length
;
c
++
)
if
(
o
[
c
].
question_id
===
a
.
id
){
s
=
o
[
c
].
options
;
break
}
if
(
1
===
a
.
question_type
)
for
(
var
n
=
0
;
n
<
s
.
length
;
n
++
)
if
(
s
[
n
].
selected
){
i
=
n
;
break
}}
this
.
exam
.
group
[
t
].
id
=
a
.
id
,
this
.
exam
.
group
[
t
].
type
=
a
.
question_type
,
this
.
exam
.
group
[
t
].
title
=
a
.
question_content
,
this
.
exam
.
group
[
t
].
cur
=
e
.
work_contents
&&
r
.
substr
(
0
,
r
.
length
-
1
)
||
""
,
this
.
exam
.
group
[
t
].
arrSel
=
[],
this
.
exam
.
group
[
t
].
sel
=
i
;
for
(
var
u
=
this
.
exam
.
group
[
t
].
arr
,
l
=
0
;
l
<
u
.
length
;
l
++
)
u
[
l
].
selected
=
s
[
l
].
selected
}},
loadAjax
:
function
(){
var
r
=
this
,
e
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
h
.
default
.
chapterAction
.
getExamDetail
(
this
.
sid
,
this
.
id
).
then
(
function
(
e
){
var
t
=
e
.
homework
;
r
.
exam
=
t
?(
t
.
score
=
e
.
score
,
t
.
work_contents
=
e
.
work_contents
,
r
.
updateData
(
t
)):{}}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
r
.
setTime
=
setInterval
(
function
(){
r
.
chapterExam
.
work_id
&&
r
.
chapterExam
.
work_id
===
r
.
id
&&
(
r
.
exam
.
id
||
(
r
.
exam
=
r
.
updateData
(
r
.
chapterExam
),
document
.
querySelector
(
".play-paper"
).
scrollTop
=
0
),
clearInterval
(
r
.
setTime
))},
50
),
e
.
close
()})},
radioClick
:
function
(
e
){
this
.
radioCur
=
e
.
currentTarget
.
dataset
.
index
},
radioChange
:
function
(
e
){
for
(
var
t
=
this
.
radioCur
,
r
=
this
.
exam
.
group
[
t
].
arr
,
a
=
e
,
s
=
0
;
s
<
r
.
length
;
s
++
)
r
[
s
].
selected
=
0
;
r
[
a
].
selected
=
1
,
this
.
exam
.
group
[
t
].
arr
=
r
,
this
.
recordAll
.
push
(
t
)},
checkboxClick
:
function
(
e
){
this
.
checkboxCur
=
e
.
currentTarget
.
dataset
.
index
},
checkboxChange
:
function
(
e
){
for
(
var
r
=
this
.
checkboxCur
,
t
=
this
.
exam
.
group
[
r
].
arr
,
a
=
e
,
s
=
0
;
s
<
t
.
length
;
s
++
)
t
[
s
].
selected
=
0
;
for
(
var
i
=
0
;
i
<
a
.
length
;
i
++
)
t
[
a
[
i
]].
selected
=
1
;
this
.
exam
.
group
[
r
].
arr
=
t
,
a
.
length
?
this
.
recordAll
.
push
(
r
):
this
.
recordAll
=
this
.
recordAll
.
filter
(
function
(
e
,
t
){
return
e
!==
r
})},
submitExam
:
function
(
e
){
var
r
=
this
;
if
(
e
.
currentTarget
.
dataset
.
submit
)
this
.
$message
.
error
(
"已做过,不能再提交"
);
else
{
this
.
param
.
duration
=
Math
.
floor
(((
new
Date
).
getTime
()
-
this
.
startTime
)
/
1
e3
);
for
(
var
t
=
this
.
exam
.
group
,
a
=
t
.
length
,
s
=
[],
i
=
0
,
o
=
0
,
c
=
0
;
c
<
a
;
c
++
){
for
(
var
n
=
0
;
n
<
this
.
recordAll
.
length
&&
this
.
recordAll
[
n
]
!==
c
+
""
;
n
++
);
if
(
n
===
this
.
recordAll
.
length
)
return
void
this
.
$message
.
error
(
"还有题目未做,不能提交"
)}
for
(
var
u
=
0
;
u
<
t
.
length
;
u
++
){
if
(
o
=
0
,
1
===
t
[
u
].
type
&&
t
[
u
].
arr
.
forEach
(
function
(
e
,
t
){
e
.
checked
&&
e
.
selected
&&
(
i
+=
o
=
1
)}),
2
===
t
[
u
].
type
){
var
l
=!
0
;
t
[
u
].
arr
.
forEach
(
function
(
e
,
t
){
e
.
checked
!==!!
e
.
selected
&&
(
l
=!
1
)}),
l
&&
(
i
+=
o
=
1
)}
s
.
push
({
question_id
:
t
[
u
].
id
,
is_correct
:
o
,
options
:
t
[
u
].
arr
})}
this
.
param
.
work_contents
=
JSON
.
stringify
(
s
),
this
.
param
.
score
=
(
i
/
a
*
100
).
toFixed
(
1
);
var
d
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
h
.
default
.
chapterAction
.
submitExamDetail
(
this
.
param
).
then
(
function
(
e
){
e
.
status
?
h
.
default
.
chapterAction
.
getExamDetail
(
r
.
sid
,
r
.
id
).
then
(
function
(
e
){
var
t
=
e
.
homework
;
t
&&
(
t
.
score
=
e
.
score
,
t
.
work_contents
=
e
.
work_contents
,
r
.
exam
=
r
.
updateData
(
t
))}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}):
r
.
$message
.
error
(
e
.
data
.
error
)}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
d
.
close
()})}}},
watch
:{
id
:{
handler
:
function
(){
this
.
loadAjax
()}}}}},
336
:
function
(
e
,
t
,
r
){},
381
:
function
(
e
,
t
,
r
){
"use strict"
;
var
a
=
r
(
336
);
r
.
n
(
a
).
a
},
401
:
function
(
e
,
t
,
r
){
"use strict"
;
var
a
=
function
(){
var
a
=
this
,
e
=
a
.
$createElement
,
s
=
a
.
_self
.
_c
||
e
;
return
s
(
"div"
,{
staticClass
:
"play-paper"
},[
s
(
"div"
,{
staticClass
:
"play-paper-body"
},[
s
(
"div"
,{
staticClass
:
"play-paper-title"
},[
s
(
"div"
,[
s
(
"h3"
,[
a
.
_v
(
a
.
_s
(
a
.
chapterName
))])])]),
a
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"play-paper-content play-chapter-exam"
},[
this
.
exam
.
id
?[
s
(
"div"
,{
staticClass
:
"exam"
},[
s
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
}},[
s
(
"div"
,{
staticClass
:
"topic"
},[
a
.
exam
.
score
?[
s
(
"div"
,{
staticClass
:
"cur"
},[
a
.
_v
(
"正确率:"
+
a
.
_s
(
a
.
exam
.
score
)
+
"%"
)])]:
a
.
_e
()],
2
)]),
a
.
_v
(
" "
),
s
(
"div"
,{},[
a
.
_l
(
a
.
exam
.
group
,
function
(
r
,
e
){
return
[
1
==
r
.
type
?[
s
(
"div"
,{
key
:
e
,
staticClass
:
"q-group"
,
attrs
:{
"data-index"
:
e
},
on
:{
click
:
a
.
radioClick
}},[
s
(
"div"
,{
staticClass
:
"q-num"
},[
a
.
_v
(
a
.
_s
(
e
+
1
)
+
"."
)]),
s
(
"div"
,{
staticClass
:
"q-title"
,
domProps
:{
innerHTML
:
a
.
_s
(
r
.
title
)}}),
s
(
"div"
,{
staticClass
:
"q-type"
},[
a
.
_v
(
"(单选题)"
)]),
a
.
_v
(
" "
),
s
(
"el-radio-group"
,{
staticClass
:
"radio-group"
,
on
:{
change
:
a
.
radioChange
},
model
:{
value
:
r
.
sel
,
callback
:
function
(
e
){
a
.
$set
(
r
,
"sel"
,
e
)},
expression
:
"item.sel"
}},[
a
.
_l
(
r
.
arr
,
function
(
e
,
t
){
return
[
s
(
"el-radio"
,{
key
:
t
,
class
:[
"radio"
,
r
.
cur
&&
e
.
checked
&&
"success"
,
r
.
cur
&&!
e
.
checked
&&
e
.
selected
&&
"error"
],
attrs
:{
label
:
t
,
disabled
:
!!
r
.
cur
}},[
a
.
_v
(
a
.
_s
(
0
==
t
?
"A"
:
1
==
t
?
"B"
:
2
==
t
?
"C"
:
3
==
t
?
"D"
:
4
==
t
?
"E"
:
5
==
t
?
"F"
:
"G"
)
+
". "
+
a
.
_s
(
e
.
option
))])]})],
2
),
a
.
_v
(
" "
),
r
.
cur
?[
s
(
"div"
,{
staticClass
:
"result"
},[
a
.
_v
(
"正确答案:"
+
a
.
_s
(
r
.
cur
))])]:
a
.
_e
()],
2
)]:
a
.
_e
(),
a
.
_v
(
" "
),
2
==
r
.
type
?[
s
(
"div"
,{
key
:
e
,
staticClass
:
"q-group"
,
attrs
:{
"data-index"
:
e
},
on
:{
click
:
a
.
checkboxClick
}},[
s
(
"div"
,{
staticClass
:
"q-num"
},[
a
.
_v
(
a
.
_s
(
e
+
1
)
+
"."
)]),
s
(
"div"
,{
staticClass
:
"q-title"
,
domProps
:{
innerHTML
:
a
.
_s
(
r
.
title
)}}),
s
(
"div"
,{
staticClass
:
"q-type"
},[
a
.
_v
(
"(多选题)"
)]),
a
.
_v
(
" "
),
s
(
"el-checkbox-group"
,{
staticClass
:
"checkbox-group"
,
on
:{
change
:
a
.
checkboxChange
},
model
:{
value
:
r
.
arrSel
,
callback
:
function
(
e
){
a
.
$set
(
r
,
"arrSel"
,
e
)},
expression
:
"item.arrSel"
}},[
a
.
_l
(
r
.
arr
,
function
(
e
,
t
){
return
[
s
(
"el-checkbox"
,{
key
:
e
.
id
,
class
:[
"checkbox"
,
r
.
cur
&&
e
.
checked
&&
"success"
,
r
.
cur
&&!
e
.
checked
&&
e
.
selected
&&
"error"
],
attrs
:{
label
:
t
,
checked
:
!!
e
.
selected
,
disabled
:
!!
r
.
cur
}},[
a
.
_v
(
a
.
_s
(
0
==
t
?
"A"
:
1
==
t
?
"B"
:
2
==
t
?
"C"
:
3
==
t
?
"D"
:
4
==
t
?
"E"
:
5
==
t
?
"F"
:
"G"
)
+
". "
+
a
.
_s
(
e
.
option
))])]})],
2
),
a
.
_v
(
" "
),
r
.
cur
?[
s
(
"div"
,{
staticClass
:
"result"
},[
a
.
_v
(
"正确答案:"
+
a
.
_s
(
r
.
cur
))])]:
a
.
_e
()],
2
)]:
a
.
_e
()]})],
2
),
a
.
_v
(
" "
),
s
(
"div"
,{
class
:[
"btn"
,
a
.
exam
.
work_contents
&&
"on"
],
attrs
:{
"data-submit"
:
!!
a
.
exam
.
work_contents
},
on
:{
click
:
a
.
submitExam
}},[
a
.
_v
(
a
.
_s
(
a
.
exam
.
work_contents
?
"已提交"
:
"提交"
))]),
a
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"care"
},[
a
.
_v
(
"(注意:测试只有一次提交机会)"
)])])]:
a
.
_e
()],
2
)])])},
s
=
[];
r
.
d
(
t
,
"a"
,
function
(){
return
a
}),
r
.
d
(
t
,
"b"
,
function
(){
return
s
})}}]);
\ No newline at end of file
client-dist/resources/9.90951ba6.js
deleted
100644 → 0
浏览文件 @
371acb17
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
9
],{
266
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
a
=
r
(
401
),
s
=
r
(
334
);
for
(
var
i
in
s
)
"default"
!==
i
&&
function
(
e
){
r
.
d
(
t
,
e
,
function
(){
return
s
[
e
]})}(
i
);
r
(
381
);
var
c
=
r
(
3
),
o
=
Object
(
c
.
a
)(
s
.
default
,
a
.
a
,
a
.
b
,
!
1
,
null
,
"acb2378a"
,
null
);
o
.
options
.
__file
=
"chapterExam.vue"
,
t
.
default
=
o
.
exports
},
334
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
a
=
r
(
335
),
s
=
r
.
n
(
a
);
for
(
var
i
in
a
)
"default"
!==
i
&&
function
(
e
){
r
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
i
);
t
.
default
=
s
.
a
},
335
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
,
s
=
r
(
68
),
h
=
(
a
=
s
)
&&
a
.
__esModule
?
a
:{
default
:
a
};
t
.
default
=
{
props
:{
chapterId
:{
type
:
String
,
require
:
!
1
},
chapterName
:{
type
:
String
,
require
:
!
1
},
chapterExam
:{
type
:
Object
,
require
:
!
1
},
sid
:{
type
:
String
,
require
:
!
1
},
cid
:{
type
:
String
,
require
:
!
1
},
id
:{
type
:
String
,
require
:
!
1
}},
data
:
function
(){
return
{
exam
:{},
param
:{
course_id
:
""
,
chapter_id
:
""
,
work_id
:
""
,
semester_id
:
""
,
work_contents
:
""
,
duration
:
0
,
score
:
0
},
startTime
:
""
,
recordAll
:[],
setTime
:
null
,
radioCur
:
""
,
checkCur
:
""
}},
mounted
:
function
(){
this
.
loadAjax
()},
methods
:{
updateData
:
function
(
n
){
return
this
.
param
=
{
course_id
:
n
.
course_id
,
chapter_id
:
n
.
chapter_id
,
work_id
:
n
.
work_id
,
semester_id
:
n
.
semester_id
,
work_contents
:
""
,
duration
:
0
,
score
:
0
},
this
.
startTime
=
(
new
Date
).
getTime
(),{
id
:
n
.
id
,
semester_id
:
n
.
semester_id
,
title
:
n
.
work_title
,
score
:
n
.
score
||
""
,
work_contents
:
n
.
work_contents
||
""
,
group
:
n
.
questions
.
map
(
function
(
e
,
t
){
var
r
=
""
,
a
=
JSON
.
parse
(
e
.
question_options
);
a
.
forEach
(
function
(
e
,
t
){
if
(
e
.
checked
)
switch
(
t
){
case
0
:
r
+=
"A,"
;
break
;
case
1
:
r
+=
"B,"
;
break
;
case
2
:
r
+=
"C,"
;
break
;
case
3
:
r
+=
"D,"
}});
var
s
=
""
;
if
(
n
.
work_contents
){
for
(
var
i
=
JSON
.
parse
(
n
.
work_contents
),
c
=
0
;
c
<
i
.
length
;
c
++
)
if
(
i
[
c
].
question_id
===
e
.
id
){
a
=
i
[
c
].
options
;
break
}
if
(
1
===
e
.
question_type
)
for
(
var
o
=
0
;
o
<
a
.
length
;
o
++
)
if
(
a
[
o
].
selected
){
s
=
o
;
break
}}
return
{
id
:
e
.
id
,
type
:
e
.
question_type
,
title
:
e
.
question_content
,
arr
:
a
,
cur
:
n
.
work_contents
&&
r
.
substr
(
0
,
r
.
length
-
1
)
||
""
,
arrSel
:[],
sel
:
s
}})}},
loadAjax
:
function
(){
var
r
=
this
,
e
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
h
.
default
.
chapterAction
.
getExamDetail
(
this
.
sid
,
this
.
id
).
then
(
function
(
e
){
var
t
=
e
.
homework
;
r
.
exam
=
t
?(
t
.
score
=
e
.
score
,
t
.
work_contents
=
e
.
work_contents
,
r
.
updateData
(
t
)):{}}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
r
.
setTime
=
setInterval
(
function
(){
r
.
chapterExam
.
work_id
&&
r
.
chapterExam
.
work_id
===
r
.
id
&&
(
r
.
exam
.
id
||
(
r
.
exam
=
r
.
updateData
(
r
.
chapterExam
),
document
.
querySelector
(
".play-paper"
).
scrollTop
=
0
),
clearInterval
(
r
.
setTime
))},
50
),
e
.
close
()})},
radioClick
:
function
(
e
){
this
.
radioCur
=
e
.
currentTarget
.
dataset
.
index
},
radioChange
:
function
(
e
){
for
(
var
t
=
this
.
radioCur
,
r
=
this
.
exam
.
group
[
t
].
arr
,
a
=
e
,
s
=
0
;
s
<
r
.
length
;
s
++
)
r
[
s
].
selected
=
0
;
r
[
a
].
selected
=
1
,
this
.
exam
.
group
[
t
].
arr
=
r
,
this
.
recordAll
.
push
(
t
)},
checkboxClick
:
function
(
e
){
this
.
checkboxCur
=
e
.
currentTarget
.
dataset
.
index
},
checkboxChange
:
function
(
e
){
for
(
var
r
=
this
.
checkboxCur
,
t
=
this
.
exam
.
group
[
r
].
arr
,
a
=
e
,
s
=
0
;
s
<
t
.
length
;
s
++
)
t
[
s
].
selected
=
0
;
for
(
var
i
=
0
;
i
<
a
.
length
;
i
++
)
t
[
a
[
i
]].
selected
=
1
;
this
.
exam
.
group
[
r
].
arr
=
t
,
a
.
length
?
this
.
recordAll
.
push
(
r
):
this
.
recordAll
=
this
.
recordAll
.
filter
(
function
(
e
,
t
){
return
e
!==
r
})},
submitExam
:
function
(
e
){
var
r
=
this
;
if
(
e
.
currentTarget
.
dataset
.
submit
)
this
.
$message
.
error
(
"已做过,不能再提交"
);
else
{
this
.
param
.
duration
=
Math
.
floor
(((
new
Date
).
getTime
()
-
this
.
startTime
)
/
1
e3
);
for
(
var
t
=
this
.
exam
.
group
,
a
=
t
.
length
,
s
=
[],
i
=
0
,
c
=
0
,
o
=
0
;
o
<
a
;
o
++
){
for
(
var
n
=
0
;
n
<
this
.
recordAll
.
length
&&
this
.
recordAll
[
n
]
!==
o
+
""
;
n
++
);
if
(
n
===
this
.
recordAll
.
length
)
return
void
this
.
$message
.
error
(
"还有题目未做,不能提交"
)}
for
(
var
l
=
0
;
l
<
t
.
length
;
l
++
){
if
(
c
=
0
,
1
===
t
[
l
].
type
&&
t
[
l
].
arr
.
forEach
(
function
(
e
,
t
){
e
.
checked
&&
e
.
selected
&&
(
i
+=
c
=
1
)}),
2
===
t
[
l
].
type
){
var
u
=!
0
;
t
[
l
].
arr
.
forEach
(
function
(
e
,
t
){
e
.
checked
!==
e
.
selected
&&
(
u
=!
1
)}),
u
&&
(
i
+=
c
=
1
)}
s
.
push
({
question_id
:
t
[
l
].
id
,
is_correct
:
c
,
options
:
t
[
l
].
arr
})}
this
.
param
.
work_contents
=
JSON
.
stringify
(
s
),
this
.
param
.
score
=
(
i
/
a
*
100
).
toFixed
(
1
);
var
d
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
h
.
default
.
chapterAction
.
submitExamDetail
(
this
.
param
).
then
(
function
(
e
){
e
.
status
?
h
.
default
.
chapterAction
.
getExamDetail
(
r
.
sid
,
r
.
id
).
then
(
function
(
e
){
var
t
=
e
.
homework
;
t
&&
(
t
.
score
=
e
.
score
,
t
.
work_contents
=
e
.
work_contents
,
r
.
exam
=
r
.
updateData
(
t
))}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}):
r
.
$message
.
error
(
e
.
data
.
error
)}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
d
.
close
()})}}},
watch
:{
id
:{
handler
:
function
(){
this
.
loadAjax
()}}}}},
336
:
function
(
e
,
t
,
r
){},
381
:
function
(
e
,
t
,
r
){
"use strict"
;
var
a
=
r
(
336
);
r
.
n
(
a
).
a
},
401
:
function
(
e
,
t
,
r
){
"use strict"
;
var
a
=
function
(){
var
a
=
this
,
e
=
a
.
$createElement
,
s
=
a
.
_self
.
_c
||
e
;
return
s
(
"div"
,{
staticClass
:
"play-paper"
},[
s
(
"div"
,{
staticClass
:
"play-paper-body"
},[
s
(
"div"
,{
staticClass
:
"play-paper-title"
},[
s
(
"div"
,[
s
(
"h3"
,[
a
.
_v
(
a
.
_s
(
a
.
chapterName
))])])]),
a
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"play-paper-content play-chapter-exam"
},[
this
.
exam
.
id
?[
s
(
"div"
,{
staticClass
:
"exam"
},[
s
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
}},[
s
(
"div"
,{
staticClass
:
"topic"
},[
a
.
exam
.
score
?[
s
(
"div"
,{
staticClass
:
"cur"
},[
a
.
_v
(
"正确率:"
+
a
.
_s
(
a
.
exam
.
score
)
+
"%"
)])]:
a
.
_e
()],
2
)]),
a
.
_v
(
" "
),
s
(
"div"
,{},[
a
.
_l
(
a
.
exam
.
group
,
function
(
r
,
e
){
return
[
1
==
r
.
type
?[
s
(
"div"
,{
key
:
e
,
staticClass
:
"q-group"
,
attrs
:{
"data-index"
:
e
},
on
:{
click
:
a
.
radioClick
}},[
s
(
"div"
,{
staticClass
:
"q-num"
},[
a
.
_v
(
a
.
_s
(
e
+
1
)
+
"."
)]),
s
(
"div"
,{
staticClass
:
"q-title"
,
domProps
:{
innerHTML
:
a
.
_s
(
r
.
title
)}}),
s
(
"div"
,{
staticClass
:
"q-type"
},[
a
.
_v
(
"(单选题)"
)]),
a
.
_v
(
" "
),
s
(
"el-radio-group"
,{
staticClass
:
"radio-group"
,
on
:{
change
:
a
.
radioChange
},
model
:{
value
:
r
.
sel
,
callback
:
function
(
e
){
a
.
$set
(
r
,
"sel"
,
e
)},
expression
:
"item.sel"
}},[
a
.
_l
(
r
.
arr
,
function
(
e
,
t
){
return
[
s
(
"el-radio"
,{
key
:
t
,
class
:[
"radio"
,
r
.
cur
&&
e
.
checked
&&
"success"
,
r
.
cur
&&!
e
.
checked
&&
e
.
selected
&&
"error"
],
attrs
:{
label
:
t
,
disabled
:
!!
r
.
cur
}},[
a
.
_v
(
a
.
_s
(
0
==
t
?
"A"
:
1
==
t
?
"B"
:
2
==
t
?
"C"
:
3
==
t
?
"D"
:
4
==
t
?
"E"
:
5
==
t
?
"F"
:
"G"
)
+
". "
+
a
.
_s
(
e
.
option
))])]})],
2
),
a
.
_v
(
" "
),
r
.
cur
?[
s
(
"div"
,{
staticClass
:
"result"
},[
a
.
_v
(
"正确答案:"
+
a
.
_s
(
r
.
cur
))])]:
a
.
_e
()],
2
)]:
a
.
_e
(),
a
.
_v
(
" "
),
2
==
r
.
type
?[
s
(
"div"
,{
key
:
e
,
staticClass
:
"q-group"
,
attrs
:{
"data-index"
:
e
},
on
:{
click
:
a
.
checkboxClick
}},[
s
(
"div"
,{
staticClass
:
"q-num"
},[
a
.
_v
(
a
.
_s
(
e
+
1
)
+
"."
)]),
s
(
"div"
,{
staticClass
:
"q-title"
,
domProps
:{
innerHTML
:
a
.
_s
(
r
.
title
)}}),
s
(
"div"
,{
staticClass
:
"q-type"
},[
a
.
_v
(
"(多选题)"
)]),
a
.
_v
(
" "
),
s
(
"el-checkbox-group"
,{
staticClass
:
"checkbox-group"
,
on
:{
change
:
a
.
checkboxChange
},
model
:{
value
:
r
.
arrSel
,
callback
:
function
(
e
){
a
.
$set
(
r
,
"arrSel"
,
e
)},
expression
:
"item.arrSel"
}},[
a
.
_l
(
r
.
arr
,
function
(
e
,
t
){
return
[
s
(
"el-checkbox"
,{
key
:
e
.
id
,
class
:[
"checkbox"
,
r
.
cur
&&
e
.
checked
&&
"success"
,
r
.
cur
&&!
e
.
checked
&&
e
.
selected
&&
"error"
],
attrs
:{
label
:
t
,
checked
:
!!
e
.
selected
,
disabled
:
!!
r
.
cur
}},[
a
.
_v
(
a
.
_s
(
0
==
t
?
"A"
:
1
==
t
?
"B"
:
2
==
t
?
"C"
:
3
==
t
?
"D"
:
4
==
t
?
"E"
:
5
==
t
?
"F"
:
"G"
)
+
". "
+
a
.
_s
(
e
.
option
))])]})],
2
),
a
.
_v
(
" "
),
r
.
cur
?[
s
(
"div"
,{
staticClass
:
"result"
},[
a
.
_v
(
"正确答案:"
+
a
.
_s
(
r
.
cur
))])]:
a
.
_e
()],
2
)]:
a
.
_e
()]})],
2
),
a
.
_v
(
" "
),
s
(
"div"
,{
class
:[
"btn"
,
a
.
exam
.
work_contents
&&
"on"
],
attrs
:{
"data-submit"
:
!!
a
.
exam
.
work_contents
},
on
:{
click
:
a
.
submitExam
}},[
a
.
_v
(
a
.
_s
(
a
.
exam
.
work_contents
?
"已提交"
:
"提交"
))]),
a
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"care"
},[
a
.
_v
(
"(注意:测试只有一次提交机会)"
)])])]:
a
.
_e
()],
2
)])])},
s
=
[];
r
.
d
(
t
,
"a"
,
function
(){
return
a
}),
r
.
d
(
t
,
"b"
,
function
(){
return
s
})}}]);
\ No newline at end of file
client-dist/resources/9.
221e8f0bfadc
.css
→
client-dist/resources/9.
e676aa582c42
.css
浏览文件 @
f4dd7035
.play
.exam
[
data-v-acb2378a
]
{
padding
:
0
}
.play
.exam
.topic
[
data-v-acb2378a
]
{
display
:
inline-block
;
margin-bottom
:
.1rem
}
.play
.exam
.topic
.tit
[
data-v-acb2378a
]
{
margin
:
0
auto
;
padding
:
0
.2rem
;
text-align
:
center
;
font-size
:
.24rem
;
color
:
#313131
;
background
:
#fff
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
}
.play
.exam
.topic
.cur
[
data-v-acb2378a
]
{
text-align
:
center
;
font-size
:
.18rem
;
color
:
#313131
;
line-height
:
.4rem
}
.play
.exam
.q-group
[
data-v-acb2378a
]
{
padding
:
.1rem
;
border-bottom
:
1px
solid
hsla
(
0
,
0%
,
78.8%
,
.48
);
overflow
:
hidden
}
.play
.exam
.q-group
.q-num
[
data-v-acb2378a
]
{
float
:
left
;
margin-right
:
.1rem
;
font-size
:
.16rem
;
color
:
#676a6c
}
.play
.exam
.q-group
.q-title
[
data-v-acb2378a
]
{
float
:
left
;
width
:
90%
;
font-size
:
.16rem
;
color
:
#676a6c
;
text-align
:
justify
}
.play
.exam
.q-group
.q-type
[
data-v-acb2378a
]
{
float
:
right
;
font-size
:
.16rem
;
color
:
#676a6c
}
.play
.exam
.q-group
.radio-group
[
data-v-acb2378a
]
{
float
:
left
;
margin-top
:
.1rem
;
width
:
100%
}
.play
.exam
.q-group
.radio-group
.radio
[
data-v-acb2378a
]
{
display
:
block
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
line-height
:
.3rem
;
margin-bottom
:
.1rem
}
.play
.exam
.q-group
.checkbox-group
[
data-v-acb2378a
]
{
float
:
left
;
margin-top
:
.1rem
;
width
:
100%
}
.play
.exam
.q-group
.checkbox-group
.checkbox
[
data-v-acb2378a
]
{
display
:
block
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
line-height
:
.3rem
;
margin-bottom
:
.1rem
}
.play
.exam
.q-group
.checkbox-group
.checkbox.error
[
data-v-acb2378a
],
.play
.exam
.q-group
.radio-group
.radio.error
[
data-v-acb2378a
]
{
color
:
#d80000
}
.play
.exam
.q-group
.checkbox-group
.checkbox.success
[
data-v-acb2378a
],
.play
.exam
.q-group
.radio-group
.radio.success
[
data-v-acb2378a
]
{
color
:
#090
}
.play
.exam
.q-group
.result
[
data-v-acb2378a
]
{
float
:
right
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
margin-right
:
0
}
.play
.exam
.q-group
[
data-v-acb2378a
]
:last-child
{
border-bottom
:
none
}
.play
.exam
.btn
[
data-v-acb2378a
]
{
margin
:
.2rem
auto
;
width
:
60%
;
height
:
.5rem
;
line-height
:
.5rem
;
font-size
:
.16rem
;
text-align
:
center
;
font-weight
:
300
;
color
:
#fff
;
-webkit-border-radius
:
.1rem
;
-moz-border-radius
:
.1rem
;
border-radius
:
.1rem
;
background
:
#b49441
;
cursor
:
pointer
}
.play
.exam
.btn.on
[
data-v-acb2378a
]
{
opacity
:
.5
}
.play
.exam
.care
[
data-v-acb2378a
]
{
font-size
:
.16rem
;
color
:
#d80000
;
text-align
:
center
}
.play
.exam
[
data-v-3141ab78
]
{
padding
:
0
}
.play
.exam
.topic
[
data-v-3141ab78
]
{
display
:
inline-block
;
margin-bottom
:
.1rem
}
.play
.exam
.topic
.tit
[
data-v-3141ab78
]
{
margin
:
0
auto
;
padding
:
0
.2rem
;
text-align
:
center
;
font-size
:
.24rem
;
color
:
#313131
;
background
:
#fff
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
}
.play
.exam
.topic
.cur
[
data-v-3141ab78
]
{
text-align
:
center
;
font-size
:
.18rem
;
color
:
#313131
;
line-height
:
.4rem
}
.play
.exam
.q-group
[
data-v-3141ab78
]
{
padding
:
.1rem
;
border-bottom
:
1px
solid
hsla
(
0
,
0%
,
78.8%
,
.48
);
overflow
:
hidden
}
.play
.exam
.q-group
.q-num
[
data-v-3141ab78
]
{
float
:
left
;
margin-right
:
.1rem
;
font-size
:
.16rem
;
color
:
#676a6c
}
.play
.exam
.q-group
.q-title
[
data-v-3141ab78
]
{
float
:
left
;
width
:
90%
;
font-size
:
.16rem
;
color
:
#676a6c
;
text-align
:
justify
}
.play
.exam
.q-group
.q-type
[
data-v-3141ab78
]
{
float
:
right
;
font-size
:
.16rem
;
color
:
#676a6c
}
.play
.exam
.q-group
.radio-group
[
data-v-3141ab78
]
{
float
:
left
;
margin-top
:
.1rem
;
width
:
100%
}
.play
.exam
.q-group
.radio-group
.radio
[
data-v-3141ab78
]
{
display
:
block
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
line-height
:
.3rem
;
margin-bottom
:
.1rem
}
.play
.exam
.q-group
.checkbox-group
[
data-v-3141ab78
]
{
float
:
left
;
margin-top
:
.1rem
;
width
:
100%
}
.play
.exam
.q-group
.checkbox-group
.checkbox
[
data-v-3141ab78
]
{
display
:
block
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
line-height
:
.3rem
;
margin-bottom
:
.1rem
}
.play
.exam
.q-group
.checkbox-group
.checkbox.error
[
data-v-3141ab78
],
.play
.exam
.q-group
.radio-group
.radio.error
[
data-v-3141ab78
]
{
color
:
#d80000
}
.play
.exam
.q-group
.checkbox-group
.checkbox.success
[
data-v-3141ab78
],
.play
.exam
.q-group
.radio-group
.radio.success
[
data-v-3141ab78
]
{
color
:
#090
}
.play
.exam
.q-group
.result
[
data-v-3141ab78
]
{
float
:
right
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
margin-right
:
0
}
.play
.exam
.q-group
[
data-v-3141ab78
]
:last-child
{
border-bottom
:
none
}
.play
.exam
.btn
[
data-v-3141ab78
]
{
margin
:
.2rem
auto
;
width
:
60%
;
height
:
.5rem
;
line-height
:
.5rem
;
font-size
:
.16rem
;
text-align
:
center
;
font-weight
:
300
;
color
:
#fff
;
-webkit-border-radius
:
.1rem
;
-moz-border-radius
:
.1rem
;
border-radius
:
.1rem
;
background
:
#b49441
;
cursor
:
pointer
}
.play
.exam
.btn.on
[
data-v-3141ab78
]
{
opacity
:
.5
}
.play
.exam
.care
[
data-v-3141ab78
]
{
font-size
:
.16rem
;
color
:
#d80000
;
text-align
:
center
}
\ No newline at end of file
\ No newline at end of file
client-dist/resources/manifest.
44a28b22
.js
→
client-dist/resources/manifest.
be4b04ef
.js
浏览文件 @
f4dd7035
!
function
(
d
){
function
e
(
e
){
for
(
var
t
,
r
,
n
=
e
[
0
],
a
=
e
[
1
],
o
=
e
[
2
],
f
=
0
,
c
=
[];
f
<
n
.
length
;
f
++
)
r
=
n
[
f
],
s
[
r
]
&&
c
.
push
(
s
[
r
][
0
]),
s
[
r
]
=
0
;
for
(
t
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
t
)
&&
(
d
[
t
]
=
a
[
t
]);
for
(
b
&&
b
(
e
);
c
.
length
;)
c
.
shift
()();
return
i
.
push
.
apply
(
i
,
o
||
[]),
u
()}
function
u
(){
for
(
var
e
,
t
=
0
;
t
<
i
.
length
;
t
++
){
for
(
var
r
=
i
[
t
],
n
=!
0
,
a
=
1
;
a
<
r
.
length
;
a
++
){
var
o
=
r
[
a
];
0
!==
s
[
o
]
&&
(
n
=!
1
)}
n
&&
(
i
.
splice
(
t
--
,
1
),
e
=
p
(
p
.
s
=
r
[
0
]))}
return
e
}
var
r
=
{},
l
=
{
3
:
0
},
s
=
{
3
:
0
},
i
=
[];
function
p
(
e
){
if
(
r
[
e
])
return
r
[
e
].
exports
;
var
t
=
r
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
d
[
e
].
call
(
t
.
exports
,
t
,
t
.
exports
,
p
),
t
.
l
=!
0
,
t
.
exports
}
p
.
e
=
function
(
i
){
var
e
=
[];
l
[
i
]?
e
.
push
(
l
[
i
]):
0
!==
l
[
i
]
&&
{
0
:
1
,
5
:
1
,
6
:
1
,
7
:
1
,
8
:
1
,
9
:
1
,
10
:
1
,
11
:
1
,
12
:
1
,
13
:
1
,
14
:
1
,
15
:
1
,
16
:
1
,
17
:
1
}[
i
]
&&
e
.
push
(
l
[
i
]
=
new
Promise
(
function
(
e
,
n
){
for
(
var
t
=
"resources/"
+
({}[
i
]
||
i
)
+
"."
+
{
0
:
"b2e9413b6daa"
,
1
:
"31d6cfe0d16a"
,
5
:
"a95593c8fdac"
,
6
:
"43d52f794f94"
,
7
:
"99a37f54610a"
,
8
:
"eb5caf8d2af7"
,
9
:
"221e8f0bfadc"
,
10
:
"ecdbc84c1af7"
,
11
:
"81613c04b0b8"
,
12
:
"27ece10619a6"
,
13
:
"bea3197f71de"
,
14
:
"68638084c75e"
,
15
:
"43d7a69049a6"
,
16
:
"6585580b0bed"
,
17
:
"12c536f6abaf"
,
18
:
"31d6cfe0d16a"
,
19
:
"31d6cfe0d16a"
,
20
:
"31d6cfe0d16a"
,
21
:
"31d6cfe0d16a"
,
22
:
"31d6cfe0d16a"
,
23
:
"31d6cfe0d16a"
,
24
:
"31d6cfe0d16a"
,
25
:
"31d6cfe0d16a"
}[
i
]
+
".css"
,
a
=
p
.
p
+
t
,
r
=
document
.
getElementsByTagName
(
"link"
),
o
=
0
;
o
<
r
.
length
;
o
++
){
var
f
=
(
d
=
r
[
o
]).
getAttribute
(
"data-href"
)
||
d
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
d
.
rel
&&
(
f
===
t
||
f
===
a
))
return
e
()}
var
c
=
document
.
getElementsByTagName
(
"style"
);
for
(
o
=
0
;
o
<
c
.
length
;
o
++
){
var
d
;
if
((
f
=
(
d
=
c
[
o
]).
getAttribute
(
"data-href"
))
===
t
||
f
===
a
)
return
e
()}
var
u
=
document
.
createElement
(
"link"
);
u
.
rel
=
"stylesheet"
,
u
.
type
=
"text/css"
,
u
.
onload
=
e
,
u
.
onerror
=
function
(
e
){
var
t
=
e
&&
e
.
target
&&
e
.
target
.
src
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
i
+
" failed.
\
n("
+
t
+
")"
);
r
.
request
=
t
,
delete
l
[
i
],
u
.
parentNode
.
removeChild
(
u
),
n
(
r
)},
u
.
href
=
a
,
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
u
)}).
then
(
function
(){
l
[
i
]
=
0
}));
var
t
,
r
=
s
[
i
];
if
(
0
!==
r
)
if
(
r
)
e
.
push
(
r
[
2
]);
else
{
var
n
=
new
Promise
(
function
(
e
,
t
){
r
=
s
[
i
]
=
[
e
,
t
]});
e
.
push
(
r
[
2
]
=
n
);
var
a
,
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
f
=
document
.
createElement
(
"script"
);
f
.
charset
=
"utf-8"
,
f
.
timeout
=
120
,
p
.
nc
&&
f
.
setAttribute
(
"nonce"
,
p
.
nc
),
f
.
src
=
p
.
p
+
"resources/"
+
({}[
t
=
i
]
||
t
)
+
"."
+
{
0
:
"9641b40d"
,
1
:
"a27295f8"
,
5
:
"d2009a04"
,
6
:
"ba271931"
,
7
:
"f0cf55d3"
,
8
:
"88c86463"
,
9
:
"90951ba6"
,
10
:
"0ae75528"
,
11
:
"8d7fdf60"
,
12
:
"50ca032e"
,
13
:
"106a6f95"
,
14
:
"856b6f35"
,
15
:
"e515c5f2"
,
16
:
"3aaa6391"
,
17
:
"254069d0"
,
18
:
"5ccffa22"
,
19
:
"f49598d3"
,
20
:
"9461b05b"
,
21
:
"ff351d6d"
,
22
:
"0206642d"
,
23
:
"64947ca9"
,
24
:
"f7778c64"
,
25
:
"666eb870"
}[
t
]
+
".js"
,
a
=
function
(
e
){
f
.
onerror
=
f
.
onload
=
null
,
clearTimeout
(
c
);
var
t
=
s
[
i
];
if
(
0
!==
t
){
if
(
t
){
var
r
=
e
&&
(
"load"
===
e
.
type
?
"missing"
:
e
.
type
),
n
=
e
&&
e
.
target
&&
e
.
target
.
src
,
a
=
new
Error
(
"Loading chunk "
+
i
+
" failed.
\
n("
+
r
+
": "
+
n
+
")"
);
a
.
type
=
r
,
a
.
request
=
n
,
t
[
1
](
a
)}
s
[
i
]
=
void
0
}};
var
c
=
setTimeout
(
function
(){
a
({
type
:
"timeout"
,
target
:
f
})},
12
e4
);
f
.
onerror
=
f
.
onload
=
a
,
o
.
appendChild
(
f
)}
return
Promise
.
all
(
e
)},
p
.
m
=
d
,
p
.
c
=
r
,
p
.
d
=
function
(
e
,
t
,
r
){
p
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
r
})},
p
.
r
=
function
(
e
){
"undefined"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
p
.
t
=
function
(
t
,
e
){
if
(
1
&
e
&&
(
t
=
p
(
t
)),
8
&
e
)
return
t
;
if
(
4
&
e
&&
"object"
==
typeof
t
&&
t
&&
t
.
__esModule
)
return
t
;
var
r
=
Object
.
create
(
null
);
if
(
p
.
r
(
r
),
Object
.
defineProperty
(
r
,
"default"
,{
enumerable
:
!
0
,
value
:
t
}),
2
&
e
&&
"string"
!=
typeof
t
)
for
(
var
n
in
t
)
p
.
d
(
r
,
n
,
function
(
e
){
return
t
[
e
]}.
bind
(
null
,
n
));
return
r
},
p
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
p
.
d
(
t
,
"a"
,
t
),
t
},
p
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
p
.
p
=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/"
,
p
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
t
=
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[],
n
=
t
.
push
.
bind
(
t
);
t
.
push
=
e
,
t
=
t
.
slice
();
for
(
var
a
=
0
;
a
<
t
.
length
;
a
++
)
e
(
t
[
a
]);
var
b
=
n
;
u
()}([]);
!
function
(
d
){
function
e
(
e
){
for
(
var
t
,
r
,
n
=
e
[
0
],
a
=
e
[
1
],
o
=
e
[
2
],
c
=
0
,
f
=
[];
c
<
n
.
length
;
c
++
)
r
=
n
[
c
],
s
[
r
]
&&
f
.
push
(
s
[
r
][
0
]),
s
[
r
]
=
0
;
for
(
t
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
t
)
&&
(
d
[
t
]
=
a
[
t
]);
for
(
b
&&
b
(
e
);
f
.
length
;)
f
.
shift
()();
return
i
.
push
.
apply
(
i
,
o
||
[]),
u
()}
function
u
(){
for
(
var
e
,
t
=
0
;
t
<
i
.
length
;
t
++
){
for
(
var
r
=
i
[
t
],
n
=!
0
,
a
=
1
;
a
<
r
.
length
;
a
++
){
var
o
=
r
[
a
];
0
!==
s
[
o
]
&&
(
n
=!
1
)}
n
&&
(
i
.
splice
(
t
--
,
1
),
e
=
p
(
p
.
s
=
r
[
0
]))}
return
e
}
var
r
=
{},
l
=
{
3
:
0
},
s
=
{
3
:
0
},
i
=
[];
function
p
(
e
){
if
(
r
[
e
])
return
r
[
e
].
exports
;
var
t
=
r
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
d
[
e
].
call
(
t
.
exports
,
t
,
t
.
exports
,
p
),
t
.
l
=!
0
,
t
.
exports
}
p
.
e
=
function
(
i
){
var
e
=
[];
l
[
i
]?
e
.
push
(
l
[
i
]):
0
!==
l
[
i
]
&&
{
0
:
1
,
5
:
1
,
6
:
1
,
7
:
1
,
8
:
1
,
9
:
1
,
10
:
1
,
11
:
1
,
12
:
1
,
13
:
1
,
14
:
1
,
15
:
1
,
16
:
1
,
17
:
1
}[
i
]
&&
e
.
push
(
l
[
i
]
=
new
Promise
(
function
(
e
,
n
){
for
(
var
t
=
"resources/"
+
({}[
i
]
||
i
)
+
"."
+
{
0
:
"b2e9413b6daa"
,
1
:
"31d6cfe0d16a"
,
5
:
"a95593c8fdac"
,
6
:
"43d52f794f94"
,
7
:
"99a37f54610a"
,
8
:
"eb5caf8d2af7"
,
9
:
"e676aa582c42"
,
10
:
"ecdbc84c1af7"
,
11
:
"81613c04b0b8"
,
12
:
"27ece10619a6"
,
13
:
"bea3197f71de"
,
14
:
"68638084c75e"
,
15
:
"43d7a69049a6"
,
16
:
"6585580b0bed"
,
17
:
"12c536f6abaf"
,
18
:
"31d6cfe0d16a"
,
19
:
"31d6cfe0d16a"
,
20
:
"31d6cfe0d16a"
,
21
:
"31d6cfe0d16a"
,
22
:
"31d6cfe0d16a"
,
23
:
"31d6cfe0d16a"
,
24
:
"31d6cfe0d16a"
,
25
:
"31d6cfe0d16a"
}[
i
]
+
".css"
,
a
=
p
.
p
+
t
,
r
=
document
.
getElementsByTagName
(
"link"
),
o
=
0
;
o
<
r
.
length
;
o
++
){
var
c
=
(
d
=
r
[
o
]).
getAttribute
(
"data-href"
)
||
d
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
d
.
rel
&&
(
c
===
t
||
c
===
a
))
return
e
()}
var
f
=
document
.
getElementsByTagName
(
"style"
);
for
(
o
=
0
;
o
<
f
.
length
;
o
++
){
var
d
;
if
((
c
=
(
d
=
f
[
o
]).
getAttribute
(
"data-href"
))
===
t
||
c
===
a
)
return
e
()}
var
u
=
document
.
createElement
(
"link"
);
u
.
rel
=
"stylesheet"
,
u
.
type
=
"text/css"
,
u
.
onload
=
e
,
u
.
onerror
=
function
(
e
){
var
t
=
e
&&
e
.
target
&&
e
.
target
.
src
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
i
+
" failed.
\
n("
+
t
+
")"
);
r
.
request
=
t
,
delete
l
[
i
],
u
.
parentNode
.
removeChild
(
u
),
n
(
r
)},
u
.
href
=
a
,
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
u
)}).
then
(
function
(){
l
[
i
]
=
0
}));
var
t
,
r
=
s
[
i
];
if
(
0
!==
r
)
if
(
r
)
e
.
push
(
r
[
2
]);
else
{
var
n
=
new
Promise
(
function
(
e
,
t
){
r
=
s
[
i
]
=
[
e
,
t
]});
e
.
push
(
r
[
2
]
=
n
);
var
a
,
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
charset
=
"utf-8"
,
c
.
timeout
=
120
,
p
.
nc
&&
c
.
setAttribute
(
"nonce"
,
p
.
nc
),
c
.
src
=
p
.
p
+
"resources/"
+
({}[
t
=
i
]
||
t
)
+
"."
+
{
0
:
"9641b40d"
,
1
:
"a27295f8"
,
5
:
"d2009a04"
,
6
:
"ba271931"
,
7
:
"f0cf55d3"
,
8
:
"88c86463"
,
9
:
"5b9f6fc1"
,
10
:
"0ae75528"
,
11
:
"8d7fdf60"
,
12
:
"50ca032e"
,
13
:
"106a6f95"
,
14
:
"856b6f35"
,
15
:
"e515c5f2"
,
16
:
"3aaa6391"
,
17
:
"254069d0"
,
18
:
"5ccffa22"
,
19
:
"f49598d3"
,
20
:
"9461b05b"
,
21
:
"ff351d6d"
,
22
:
"0206642d"
,
23
:
"64947ca9"
,
24
:
"f7778c64"
,
25
:
"666eb870"
}[
t
]
+
".js"
,
a
=
function
(
e
){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
t
=
s
[
i
];
if
(
0
!==
t
){
if
(
t
){
var
r
=
e
&&
(
"load"
===
e
.
type
?
"missing"
:
e
.
type
),
n
=
e
&&
e
.
target
&&
e
.
target
.
src
,
a
=
new
Error
(
"Loading chunk "
+
i
+
" failed.
\
n("
+
r
+
": "
+
n
+
")"
);
a
.
type
=
r
,
a
.
request
=
n
,
t
[
1
](
a
)}
s
[
i
]
=
void
0
}};
var
f
=
setTimeout
(
function
(){
a
({
type
:
"timeout"
,
target
:
c
})},
12
e4
);
c
.
onerror
=
c
.
onload
=
a
,
o
.
appendChild
(
c
)}
return
Promise
.
all
(
e
)},
p
.
m
=
d
,
p
.
c
=
r
,
p
.
d
=
function
(
e
,
t
,
r
){
p
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
r
})},
p
.
r
=
function
(
e
){
"undefined"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
p
.
t
=
function
(
t
,
e
){
if
(
1
&
e
&&
(
t
=
p
(
t
)),
8
&
e
)
return
t
;
if
(
4
&
e
&&
"object"
==
typeof
t
&&
t
&&
t
.
__esModule
)
return
t
;
var
r
=
Object
.
create
(
null
);
if
(
p
.
r
(
r
),
Object
.
defineProperty
(
r
,
"default"
,{
enumerable
:
!
0
,
value
:
t
}),
2
&
e
&&
"string"
!=
typeof
t
)
for
(
var
n
in
t
)
p
.
d
(
r
,
n
,
function
(
e
){
return
t
[
e
]}.
bind
(
null
,
n
));
return
r
},
p
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
p
.
d
(
t
,
"a"
,
t
),
t
},
p
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
p
.
p
=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/"
,
p
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
t
=
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[],
n
=
t
.
push
.
bind
(
t
);
t
.
push
=
e
,
t
=
t
.
slice
();
for
(
var
a
=
0
;
a
<
t
.
length
;
a
++
)
e
(
t
[
a
]);
var
b
=
n
;
u
()}([]);
\ No newline at end of file
\ No newline at end of file
client/components/player/chapterExam/chapterExam.vue
浏览文件 @
f4dd7035
...
@@ -176,6 +176,65 @@ export default {
...
@@ -176,6 +176,65 @@ export default {
}
}
return
_data
return
_data
},
},
/**
* 将返回值 - 对照到对应 data上
* 增加这个的目的,由于循环改变data对象时,又由于 v-bind:key使用相同
* 导致,有些选项勾选状态不显示,所有在不改变对象引用的前提下,直接改值
* 所以 产生当前方法
* 直接 把数据值 赋值给 exam对象
*/
updateData1
(
json
)
{
this
.
exam
.
id
=
json
.
id
this
.
exam
.
semester_id
=
json
.
semester_id
this
.
exam
.
title
=
json
.
work_title
this
.
exam
.
score
=
json
.
score
||
''
this
.
exam
.
work_contents
=
json
.
work_contents
||
''
for
(
let
i
=
0
;
i
<
this
.
exam
.
group
.
length
;
i
++
)
{
let
str
=
''
let
_
=
json
.
questions
[
i
]
let
_json
=
JSON
.
parse
(
_
.
question_options
)
_json
.
forEach
(
function
(
__
,
j
)
{
if
(
__
.
checked
)
{
switch
(
j
)
{
case
0
:
str
+=
'A,'
;
break
case
1
:
str
+=
'B,'
;
break
case
2
:
str
+=
'C,'
;
break
case
3
:
str
+=
'D,'
;
break
}
}
})
let
sel
=
''
// 单选选中
/* 答过题目时 */
if
(
json
.
work_contents
)
{
let
a
=
JSON
.
parse
(
json
.
work_contents
)
for
(
let
i
=
0
;
i
<
a
.
length
;
i
++
)
{
if
(
a
[
i
].
question_id
===
_
.
id
)
{
_json
=
a
[
i
].
options
break
}
}
/* 单选选中 */
if
(
_
.
question_type
===
1
)
{
for
(
let
i
=
0
;
i
<
_json
.
length
;
i
++
)
{
if
(
_json
[
i
].
selected
)
{
sel
=
i
break
}
}
}
}
this
.
exam
.
group
[
i
].
id
=
_
.
id
this
.
exam
.
group
[
i
].
type
=
_
.
question_type
this
.
exam
.
group
[
i
].
title
=
_
.
question_content
this
.
exam
.
group
[
i
].
cur
=
(
json
.
work_contents
&&
str
.
substr
(
0
,
str
.
length
-
1
))
||
''
this
.
exam
.
group
[
i
].
arrSel
=
[]
this
.
exam
.
group
[
i
].
sel
=
sel
let
_arr
=
this
.
exam
.
group
[
i
].
arr
for
(
let
j
=
0
;
j
<
_arr
.
length
;
j
++
)
{
_arr
[
j
][
'selected'
]
=
_json
[
j
].
selected
}
}
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
...
@@ -290,7 +349,7 @@ export default {
...
@@ -290,7 +349,7 @@ export default {
if
(
group
[
i
].
type
===
2
)
{
// 多选的正确 判断
if
(
group
[
i
].
type
===
2
)
{
// 多选的正确 判断
let
flag
=
true
let
flag
=
true
group
[
i
].
arr
.
forEach
(
function
(
_
,
i
)
{
group
[
i
].
arr
.
forEach
(
function
(
_
,
i
)
{
if
(
_
.
checked
!==
_
.
selected
)
{
flag
=
false
}
if
(
_
.
checked
!==
!!
_
.
selected
)
{
flag
=
false
}
})
})
if
(
flag
)
{
correct
=
1
;
score
+=
1
}
if
(
flag
)
{
correct
=
1
;
score
+=
1
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论