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
f946fc86
Commit
f946fc86
authored
Jul 01, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix://////
parent
48c8ebd6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/modules/teach-tool/paper-manage/components/BatchScore.tsx
+10
-4
No files found.
src/modules/teach-tool/paper-manage/components/BatchScore.tsx
View file @
f946fc86
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
{
Modal
,
Button
,
InputNumber
}
from
'antd'
;
import
{
Modal
,
Button
,
InputNumber
,
message
}
from
'antd'
;
import
"./BatchScore.less"
import
_
from
"underscore"
;
...
...
@@ -56,6 +56,12 @@ export default function BatchScore(props:BatchScoreProps) {
}
function
onOk
()
{
for
(
let
i
=
0
;
i
<
rules
.
length
;
++
i
)
{
if
(
rules
[
i
].
score
<=
0
||
rules
[
i
].
score
>
100
)
{
message
.
error
(
"分值设置错误"
)
return
;
}
}
props
.
onOK
(
rules
)
}
...
...
@@ -113,7 +119,7 @@ export default function BatchScore(props:BatchScoreProps) {
分,漏选得
<
InputNumber
min=
{
0
}
max=
{
rules
[
3
].
score
-
1
}
max=
{
rules
[
3
].
score
<=
0
?
0
:
rules
[
3
].
score
-
1
}
defaultValue=
{
rules
[
3
].
portionScore
}
value=
{
rules
[
3
].
portionScore
}
style=
{
inputNumberStyle
}
...
...
@@ -146,7 +152,7 @@ export default function BatchScore(props:BatchScoreProps) {
分,漏选得
<
InputNumber
min=
{
0
}
max=
{
rules
[
1
].
score
-
1
}
max=
{
rules
[
1
].
score
<=
0
?
0
:
rules
[
1
].
score
-
1
}
defaultValue=
{
rules
[
1
].
portionScore
}
value=
{
rules
[
1
].
portionScore
}
style=
{
inputNumberStyle
}
...
...
@@ -196,7 +202,7 @@ export default function BatchScore(props:BatchScoreProps) {
/>
分,半对得
<
InputNumber
min=
{
0
}
max=
{
rules
[
0
].
score
-
1
}
max=
{
rules
[
0
].
score
<=
0
?
0
:
rules
[
0
].
score
-
1
}
defaultValue=
{
rules
[
0
].
portionScore
}
value=
{
rules
[
0
].
portionScore
}
style=
{
inputNumberStyle
}
...
...
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