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
175bba09
Commit
175bba09
authored
Jul 01, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:sasdasdasdasdas
parent
83db1f02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
36 deletions
+35
-36
src/modules/teach-tool/paper-manage/OperatePaper.jsx
+3
-0
src/modules/teach-tool/paper-manage/components/BatchScore.tsx
+32
-36
No files found.
src/modules/teach-tool/paper-manage/OperatePaper.jsx
View file @
175bba09
...
...
@@ -658,6 +658,7 @@ class OperatePaper extends Component {
max=
{
100
}
value=
{
record
.
score
||
2
}
onChange=
{
(
value
)
=>
{
value
=
Math
.
round
(
value
)
const
_selectQuestionList
=
[...
selectQuestionList
];
this
.
setState
(
{
...
...
@@ -694,6 +695,7 @@ class OperatePaper extends Component {
max=
{
record
.
score
-
1
}
value=
{
record
.
portionScore
||
0
}
onChange=
{
(
value
)
=>
{
value
=
Math
.
round
(
value
)
const
_selectQuestionList
=
[...
selectQuestionList
];
this
.
setState
(
{
...
...
@@ -956,6 +958,7 @@ class OperatePaper extends Component {
max=
{
100
}
value=
{
passRate
}
onChange=
{
(
value
)
=>
{
value
=
Math
.
round
(
value
)
this
.
setState
(
{
formData
:
{
...
...
src/modules/teach-tool/paper-manage/components/BatchScore.tsx
View file @
175bba09
...
...
@@ -114,7 +114,7 @@ export default function BatchScore(props:BatchScoreProps) {
<
InputNumber
min=
{
0
}
max=
{
rules
[
3
].
score
}
defaultValue=
{
0
}
defaultValue=
{
rules
[
3
].
portionScore
}
style=
{
inputNumberStyle
}
onChange=
{
(
v
)
=>
{
v
=
Math
.
round
(
v
)
...
...
@@ -131,29 +131,27 @@ export default function BatchScore(props:BatchScoreProps) {
<
span
className=
"score"
>
每题
<
InputNumber
min=
{
0
}
defaultValue=
{
_
.
find
(
rules
,(
it
)
=>
{
return
it
.
typeKey
===
"INDEFINITE_CHOICE"
})?.
score
}
defaultValue=
{
rules
[
1
].
score
}
value=
{
rules
[
1
].
score
}
style=
{
inputNumberStyle
}
onChange=
{
(
v
)
=>
{
setRules
(
_
.
map
(
rules
,(
item
)
=>
{
if
(
item
.
typeKey
===
"INDEFINITE_CHOICE"
)
{
item
.
score
=
Number
(
v
)
}
return
item
}))
v
=
Math
.
round
(
v
)
let
_r
=
[...
rules
]
_r
[
1
].
score
=
v
setRules
(
_r
)
}
}
/>
分,漏选得
<
InputNumber
min=
{
0
}
defaultValue=
{
1
}
defaultValue=
{
rules
[
1
].
portionScore
}
value=
{
rules
[
1
].
score
}
style=
{
inputNumberStyle
}
onChange=
{
(
v
)
=>
{
setRules
(
_
.
map
(
rules
,(
item
)
=>
{
if
(
item
.
typeKey
===
"INDEFINITE_CHOICE"
)
{
item
.
portionScore
=
Number
(
v
)
}
return
item
}))
v
=
Math
.
round
(
v
)
let
_r
=
[...
rules
]
_r
[
1
].
portionScore
=
v
setRules
(
_r
)
}
}
/>
分
</
span
>
<
span
className=
"total"
>
共
<
span
style=
{
{
color
:
"#2966FF"
}
}
>
{
judgeCount
[
0
]
}
</
span
>
题,合计
<
span
style=
{
{
color
:
"#2966FF"
}
}
>
{
judgeCount
[
1
]
}
</
span
>
分
</
span
>
...
...
@@ -163,15 +161,14 @@ export default function BatchScore(props:BatchScoreProps) {
<
span
className=
"score"
>
每题
<
InputNumber
min=
{
0
}
defaultValue=
{
_
.
find
(
rules
,(
it
)
=>
{
return
it
.
typeKey
===
"JUDGE"
})?.
score
}
defaultValue=
{
rules
[
2
].
score
}
value=
{
rules
[
2
].
score
}
style=
{
inputNumberStyle
}
onChange=
{
(
v
)
=>
{
setRules
(
_
.
map
(
rules
,(
item
)
=>
{
if
(
item
.
typeKey
===
"JUDGE"
)
{
item
.
score
=
Number
(
v
)
}
return
item
}))
v
=
Math
.
round
(
v
)
let
_r
=
[...
rules
]
_r
[
2
].
score
=
v
setRules
(
_r
)
}
}
/>
分
</
span
>
...
...
@@ -182,28 +179,27 @@ export default function BatchScore(props:BatchScoreProps) {
<
span
className=
"score"
>
每题
<
InputNumber
min=
{
0
}
defaultValue=
{
_
.
find
(
rules
,(
it
)
=>
{
return
it
.
typeKey
===
"GAP_FILLING"
})?.
score
}
defaultValue=
{
rules
[
0
].
score
}
value=
{
rules
[
0
].
score
}
style=
{
inputNumberStyle
}
onChange=
{
(
v
)
=>
{
setRules
(
_
.
map
(
rules
,(
item
)
=>
{
if
(
item
.
typeKey
===
"GAP_FILLING"
)
{
item
.
score
=
Number
(
v
)
}
return
item
}))
v
=
Math
.
round
(
v
)
let
_r
=
[...
rules
]
_r
[
0
].
score
=
v
setRules
(
_r
)
}
}
/>
分,半对得
<
InputNumber
min=
{
0
}
defaultValue=
{
1
}
max=
{
rules
[
0
].
score
}
defaultValue=
{
rules
[
0
].
portionScore
}
value=
{
rules
[
0
].
portionScore
}
style=
{
inputNumberStyle
}
onChange=
{
(
v
)
=>
{
setRules
(
_
.
map
(
rules
,(
item
)
=>
{
if
(
item
.
typeKey
===
"GAP_FILLING"
)
{
item
.
portionScore
=
Number
(
v
)
}
return
item
}))
v
=
Math
.
round
(
v
)
let
_r
=
[...
rules
]
_r
[
0
].
portionScore
=
v
setRules
(
_r
)
}
}
/>
分
</
span
>
...
...
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