Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
593e59d0
Commit
593e59d0
authored
Jun 09, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:关闭答题详情B端查看限制。
parent
a00933ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
76 deletions
+63
-76
src/modules/teach-tool/examination-manager/TestDetailPage.jsx
+63
-76
No files found.
src/modules/teach-tool/examination-manager/TestDetailPage.jsx
View file @
593e59d0
...
@@ -157,88 +157,75 @@ function TestDetailPage(props) {
...
@@ -157,88 +157,75 @@ function TestDetailPage(props) {
}
}
function
renderResultInfo
()
{
function
renderResultInfo
()
{
console
.
log
(
'userExamState====>'
,
userExamState
);
return
(
if
(
userExamState
!==
'INIT'
)
{
<
div
>
if
(
userExamState
===
'FINISH_EXAM'
)
{
<
div
className=
'exam-info'
>
if
(
resultShow
===
'IMMEDIATELY'
||
(
resultShow
===
'AFTER_EXAM_END'
&&
Date
.
now
()
>
examEndTime
))
{
{
[
'PASS_AND_SCORE'
,
'ONLY_SCORE'
].
includes
(
resultContent
)
&&
(
return
(
<
div
className=
'info-score item'
>
<
div
>
<
div
className=
'current-score'
>
<
div
className=
'exam-info'
>
{
userScore
}
{
[
'PASS_AND_SCORE'
,
'ONLY_SCORE'
].
includes
(
resultContent
)
&&
(
<
img
src=
'https://image.xiaomaiketang.com/xm/TsaApiPyxA.png'
/>
<
div
className=
'info-score item'
>
</
div
>
<
div
className=
'current-score'
>
<
div
className=
'origin-data'
>
总分
{
totalScore
}
</
div
>
{
userScore
}
</
div
>
<
img
src=
'https://image.xiaomaiketang.com/xm/TsaApiPyxA.png'
/>
)
}
</
div
>
<
div
className=
'origin-data'
>
总分
{
totalScore
}
</
div
>
</
div
>
)
}
{
[
'PASS_AND_SCORE'
,
'ONLY_PASS'
].
includes
(
resultContent
)
&&
(
{
[
'PASS_AND_SCORE'
,
'ONLY_PASS'
].
includes
(
resultContent
)
&&
(
<
div
className=
'info-level item'
>
<
div
className=
'info-level item'
>
<
div
className=
'current-level'
>
{
userScore
<
passScore
?
'不及格'
:
'及格'
}
</
div
>
<
div
className=
'current-level'
>
{
userScore
<
passScore
?
'不及格'
:
'及格'
}
</
div
>
<
div
className=
'origin-data'
>
及格分
{
passScore
}
</
div
>
<
div
className=
'origin-data'
>
及格分
{
passScore
}
</
div
>
</
div
>
</
div
>
)
}
)
}
<
div
className=
'info-correct item'
>
<
div
className=
'info-correct item'
>
<
div
className=
'current-correct'
>
<
div
className=
'current-correct'
>
{
userCorrectQuestion
}
{
userCorrectQuestion
}
<
div
className=
'text'
>
答对题数
</
div
>
<
div
className=
'text'
>
答对题数
</
div
>
</
div
>
</
div
>
<
div
className=
'origin-data'
>
共
{
totalQuestionCount
}
题
</
div
>
<
div
className=
'origin-data'
>
共
{
totalQuestionCount
}
题
</
div
>
</
div
>
</
div
>
<
div
className=
'info-time item'
>
<
div
className=
'info-time item'
>
<
div
className=
'current-time'
>
<
div
className=
'current-time'
>
{
formatTime
(
Number
(
userExamDuration
>
examDuration
?
examDuration
:
userExamDuration
||
0
))
}
{
formatTime
(
Number
(
userExamDuration
>
examDuration
?
examDuration
:
userExamDuration
||
0
))
}
<
div
className=
'text'
>
用时
</
div
>
<
div
className=
'text'
>
用时
</
div
>
</
div
>
</
div
>
<
div
className=
'origin-data'
>
考试时长
{
(
examDuration
||
0
)
/
60
/
1000
}
分钟
</
div
>
<
div
className=
'origin-data'
>
考试时长
{
(
examDuration
||
0
)
/
60
/
1000
}
分钟
</
div
>
</
div
>
</
div
>
</
div
>
{
[
'ANALYSE_AND_RIGHT_OR_WRONG'
,
'RIGHT_OR_WRONG'
].
includes
(
answerAnalysis
)
&&
(
<
div
className=
'exam-result'
>
<
div
className=
'result-title'
>
<
div
className=
'left-title'
>
答题情况
</
div
>
<
div
className=
'right-tip'
>
<
span
className=
'correct-num'
>
{
userCorrectQuestion
}
</
span
>
<
span
className=
'incorrect-num'
>
/
{
totalQuestionCount
}
</
span
>
道正确
</
div
>
</
div
>
{
[
'ANALYSE_AND_RIGHT_OR_WRONG'
,
'RIGHT_OR_WRONG'
].
includes
(
answerAnalysis
)
&&
(
</
div
>
<
div
className=
'exam-result'
>
<
div
className=
'result-content'
>
<
div
className=
'result-title'
>
{
sortedAnswerList
.
map
((
item
,
index
)
=>
{
<
div
className=
'left-title'
>
答题情况
</
div
>
return
(
<
div
className=
'right-tip'
>
<
div
<
span
className=
'correct-num'
>
{
userCorrectQuestion
}
</
span
>
className=
'result-content__item'
<
span
className=
'incorrect-num'
>
/
{
totalQuestionCount
}
</
span
>
onClick=
{
()
=>
{
道正确
console
.
log
(
'item'
,
item
);
</
div
>
handleQuickActiveQuestion
(
item
.
questionId
);
</
div
>
}
}
>
<
div
className=
'result-content'
>
<
img
{
sortedAnswerList
.
map
((
item
,
index
)
=>
{
className=
'icon'
return
(
src=
{
item
.
isCorrect
===
1
?
'https://image.xiaomaiketang.com/xm/FwZa2Kaypc.png'
:
'https://image.xiaomaiketang.com/xm/7tRHDf6ysA.png'
}
<
div
/>
className=
'result-content__item'
<
div
className=
'result-content-box'
>
{
index
+
1
}
</
div
>
onClick=
{
()
=>
{
console
.
log
(
'item'
,
item
);
handleQuickActiveQuestion
(
item
.
questionId
);
}
}
>
<
img
className=
'icon'
src=
{
item
.
isCorrect
===
1
?
'https://image.xiaomaiketang.com/xm/FwZa2Kaypc.png'
:
'https://image.xiaomaiketang.com/xm/7tRHDf6ysA.png'
}
/>
<
div
className=
'result-content-box'
>
{
index
+
1
}
</
div
>
</
div
>
);
})
}
</
div
>
</
div
>
</
div
>
);
)
}
})
}
<
AnswerDescPage
/>
</
div
>
</
div
>
);
</
div
>
}
else
if
(
resultShow
===
'AFTER_EXAM_END'
)
{
)
}
return
customizeRenderEmpty
(
'after'
);
<
AnswerDescPage
/>
}
</
div
>
}
else
{
);
return
customizeRenderEmpty
(
'lack'
);
}
}
}
}
function
customizeRenderEmpty
(
status
)
{
function
customizeRenderEmpty
(
status
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment