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
ad24ab22
Commit
ad24ab22
authored
Jun 09, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修正考试详情userId取值
parent
d6a89f21
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
24 deletions
+31
-24
src/modules/teach-tool/components/AnswerDescPage.jsx
+7
-7
src/modules/teach-tool/components/AnswerDescPage.less
+5
-0
src/modules/teach-tool/examination-manager/UserData.tsx
+2
-4
src/modules/teach-tool/examination-manager/dataAnalysic.less
+10
-13
src/modules/teach-tool/examination-manager/userData.less
+7
-0
No files found.
src/modules/teach-tool/components/AnswerDescPage.jsx
View file @
ad24ab22
...
@@ -59,7 +59,6 @@ function AnswerDescPage(props) {
...
@@ -59,7 +59,6 @@ function AnswerDescPage(props) {
const
[
showScanFile
,
setShowScanFile
]
=
useState
(
false
);
const
[
showScanFile
,
setShowScanFile
]
=
useState
(
false
);
const
[
scanFileAddress
,
setScanFileAddress
]
=
useState
(
false
);
const
[
scanFileAddress
,
setScanFileAddress
]
=
useState
(
false
);
const
[
scanFileType
,
setScanFileType
]
=
useState
(
false
);
const
[
scanFileType
,
setScanFileType
]
=
useState
(
false
);
const
questionTypeList
=
{
const
questionTypeList
=
{
SINGLE_CHOICE
:
'单选题'
,
SINGLE_CHOICE
:
'单选题'
,
MULTI_CHOICE
:
'多选题'
,
MULTI_CHOICE
:
'多选题'
,
...
@@ -79,7 +78,7 @@ function AnswerDescPage(props) {
...
@@ -79,7 +78,7 @@ function AnswerDescPage(props) {
renderer
:
'svg'
,
renderer
:
'svg'
,
loop
:
true
,
loop
:
true
,
autoplay
:
true
,
autoplay
:
true
,
container
:
document
.
getElementById
(
'
lottie
-box'
),
container
:
document
.
getElementById
(
'
empty-img
-box'
),
});
});
},
[]);
},
[]);
// 获取考试详情
// 获取考试详情
...
@@ -677,18 +676,19 @@ function AnswerDescPage(props) {
...
@@ -677,18 +676,19 @@ function AnswerDescPage(props) {
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
{
errorCount
===
0
&&
onlyError
?
(
<
div
className=
'empty'
>
<
div
className=
{
`empty ${errorCount === 0 && onlyError ? '' : 'empty-hide'}`
}
>
<
div
className=
'img-box'
>
<
div
className=
'img-box'
>
<
div
id=
'lottie
-box'
></
div
>
<
div
id=
'empty-img
-box'
></
div
>
</
div
>
</
div
>
<
div
className=
'empty-text'
>
本次考试无错题
</
div
>
<
div
className=
'empty-text'
>
本次考试无错题
</
div
>
</
div
>
</
div
>
)
:
(
<
If
condition=
{
!
(
errorCount
===
0
&&
onlyError
)
}
>
<
div
className=
'answer-desc-content'
>
<
div
className=
'answer-desc-content'
>
<
div
className=
'question-list-box'
>
{
handleRenderQuestionItem
()
}
</
div
>
<
div
className=
'question-list-box'
>
{
handleRenderQuestionItem
()
}
</
div
>
</
div
>
</
div
>
)
}
</
If
>
{
/* {renderFooterText()} */
}
{
/* {renderFooterText()} */
}
</
div
>
</
div
>
{
showScanFile
&&
(
{
showScanFile
&&
(
...
...
src/modules/teach-tool/components/AnswerDescPage.less
View file @
ad24ab22
...
@@ -412,4 +412,9 @@
...
@@ -412,4 +412,9 @@
margin: 0 auto;
margin: 0 auto;
text-align: center;
text-align: center;
}
}
&.empty-hide {
position: absolute;
left: -9999px;
top: -9999px;
}
}
}
src/modules/teach-tool/examination-manager/UserData.tsx
View file @
ad24ab22
...
@@ -175,8 +175,6 @@ function DataAnalysic(props: any) {
...
@@ -175,8 +175,6 @@ function DataAnalysic(props: any) {
title
:
'操作'
,
title
:
'操作'
,
key
:
''
,
key
:
''
,
dataIndex
:
'edit'
,
dataIndex
:
'edit'
,
width
:
'30%'
,
align
:
'right'
,
render
:
(
value
:
any
,
record
:
any
)
=>
{
render
:
(
value
:
any
,
record
:
any
)
=>
{
return
(
return
(
<
Choose
>
<
Choose
>
...
@@ -344,8 +342,8 @@ function DataAnalysic(props: any) {
...
@@ -344,8 +342,8 @@ function DataAnalysic(props: any) {
</
Button
>
</
Button
>
)
}
)
}
<
div
className=
'content'
>
<
div
className=
'content
analysic-content
'
>
<
Table
bordered
size=
'small'
columns=
{
columns
}
dataSource=
{
list
}
onChange=
{
onChange
}
pagination=
{
false
}
></
Table
>
<
Table
bordered
size=
'small'
rowClassName=
'analysic-content-row'
columns=
{
columns
}
dataSource=
{
list
}
onChange=
{
onChange
}
pagination=
{
false
}
></
Table
>
{
total
>
0
&&
(
{
total
>
0
&&
(
<
PageControl
<
PageControl
size=
'small'
size=
'small'
...
...
src/modules/teach-tool/examination-manager/dataAnalysic.less
View file @
ad24ab22
.dataAnalysic{
.dataAnalysic
{
.titleBox
{
.titleBox
{
position: relative;
position: relative;
padding-left: 28px;
font-size: 19px;
font-size: 19px;
font-family: PingFangSC-Medium, PingFang SC;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
font-weight: 500;
color: #333333;
color: #333333;
line-height: 26px;
line-height: 26px;
background: #FFFFFF;
background: #ffffff;
&::before{
&::before {
width:4px;
width: 4px;
height:12px;
height: 12px;
content:'';
content: '';
background-image: linear-gradient(#2966FF 83.5%, #0ACCA4 16.5%);
background-image: linear-gradient(#2966ff 83.5%, #0acca4 16.5%);
display:inline-block;
display: inline-block;
position: absolute;
margin-right: 8px;
left:16px;
top:7px;
}
}
}
}
.ant-tabs-content-holder {
.ant-tabs-content-holder {
...
...
src/modules/teach-tool/examination-manager/userData.less
View file @
ad24ab22
...
@@ -81,3 +81,10 @@
...
@@ -81,3 +81,10 @@
.answer-detail {
.answer-detail {
color: rgb(35, 143, 255);
color: rgb(35, 143, 255);
}
}
.analysic-content {
.ant-table-bordered .ant-table-tbody tr {
&.analysic-content-row {
height: 50px;
}
}
}
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