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
57a0bc6a
Commit
57a0bc6a
authored
Jun 29, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:........
parent
ba8e83e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
12 deletions
+52
-12
src/modules/teach-tool/paper-manage/OperatePaper.jsx
+32
-0
src/modules/teach-tool/paper-manage/components/BatchGrade.less
+9
-1
src/modules/teach-tool/paper-manage/components/BatchGrade.tsx
+11
-11
No files found.
src/modules/teach-tool/paper-manage/OperatePaper.jsx
View file @
57a0bc6a
...
...
@@ -107,6 +107,38 @@ class OperatePaper extends Component {
typeKey
:
"INDEFINITE_CHOICE"
,
},
],
gradeRule
:
[
{
typeKey
:
"SINGLE_CHOICE"
,
grade
:
2
,
halfGrade
:
1
,
totalQuestion
:
0
,
},
{
typeKey
:
"MULTI_CHOICE"
,
grade
:
2
,
halfGrade
:
1
,
totalQuestion
:
0
,
},
{
typeKey
:
"JUDGE"
,
grade
:
2
,
halfGrade
:
1
,
totalQuestion
:
0
,
},
{
typeKey
:
"GAP_FILLING"
,
grade
:
2
,
halfGrade
:
1
,
totalQuestion
:
0
,
},
{
typeKey
:
"INDEFINITE_CHOICE"
,
grade
:
2
,
halfGrade
:
1
,
totalQuestion
:
0
,
},
]
};
}
...
...
src/modules/teach-tool/paper-manage/components/BatchGrade.less
View file @
57a0bc6a
.batchgrade {
.content {
.item {
width: 512px;
display: flex;
width: 612px;
height: 48px;
background: #F7F8F9;
font-size: 14px;
...
...
@@ -9,6 +10,13 @@
font-weight: 400;
color: #333333;
padding-left: 16px;
.type {
width: 112px;
}
.grade {
margin-left: 8px;
margin-right: 29px;
}
}
.item:not(:last-of-type) {
margin-bottom: 8px;
...
...
src/modules/teach-tool/paper-manage/components/BatchGrade.tsx
View file @
57a0bc6a
...
...
@@ -30,28 +30,28 @@ export default function BatchGrade(props:BatchGradeProps) {
onOk=
{
onOk
}
visible=
{
props
.
visible
}
maskClosable=
{
false
}
width=
{
5
60
}
width=
{
6
60
}
>
<
div
className=
"content"
>
<
div
className=
"item"
>
【单选题】
<
span
>
每题
<
InputNumber
defaultValue=
{
2
}
style=
{
inputNumberStyle
}
/>
分
</
span
>
<
span
className=
"type"
>
【单选题】
</
span
>
<
span
className=
"grade"
>
每题
<
InputNumber
defaultValue=
{
2
}
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
<
div
className=
"item"
>
【多选题】
<
span
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分
</
span
>
<
span
className=
"type"
>
【多选题】
</
span
>
<
span
className=
"grade"
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分,漏选得
<
InputNumber
defaultValue=
{
1
}
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
<
div
className=
"item"
>
【不定项选择题】
<
span
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分
</
span
>
<
span
className=
"type"
>
【不定项选择题】
</
span
>
<
span
className=
"grade"
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分,漏选得
<
InputNumber
defaultValue=
{
1
}
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
<
div
className=
"item"
>
【判断题】
<
span
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分
</
span
>
<
span
className=
"type"
>
【判断题】
</
span
>
<
span
className=
"grade"
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
<
div
className=
"item"
>
【填空题】
<
span
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分
</
span
>
<
span
className=
"type"
>
【填空题】
</
span
>
<
span
className=
"grade"
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分,半对得
<
InputNumber
defaultValue=
{
1
}
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
</
div
>
...
...
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