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
ba8e83e7
Commit
ba8e83e7
authored
Jun 29, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:ssssssssssss
parent
84416698
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
0 deletions
+96
-0
src/modules/teach-tool/paper-manage/OperatePaper.jsx
+15
-0
src/modules/teach-tool/paper-manage/components/BatchGrade.less
+19
-0
src/modules/teach-tool/paper-manage/components/BatchGrade.tsx
+62
-0
No files found.
src/modules/teach-tool/paper-manage/OperatePaper.jsx
View file @
ba8e83e7
...
@@ -36,6 +36,7 @@ import _ from "underscore";
...
@@ -36,6 +36,7 @@ import _ from "underscore";
import
{
Route
,
withRouter
}
from
"react-router-dom"
;
import
{
Route
,
withRouter
}
from
"react-router-dom"
;
import
*
as
paperEmpty
from
'../../lottie/paperEmpty/data.json'
;
import
*
as
paperEmpty
from
'../../lottie/paperEmpty/data.json'
;
import
AddExam
from
"@/modules/teach-tool/examination-manager/AddExam"
;
import
AddExam
from
"@/modules/teach-tool/examination-manager/AddExam"
;
import
BatchGrade
from
"./components/BatchGrade"
;
const
questionTypeEnum
=
{
const
questionTypeEnum
=
{
SINGLE_CHOICE
:
"单选题"
,
SINGLE_CHOICE
:
"单选题"
,
...
@@ -74,6 +75,7 @@ class OperatePaper extends Component {
...
@@ -74,6 +75,7 @@ class OperatePaper extends Component {
selectQuestionModal
:
null
,
selectQuestionModal
:
null
,
paperPreviewModal
:
null
,
paperPreviewModal
:
null
,
quickSortModalVisible
:
false
,
// 快捷排序弹窗显隐
quickSortModalVisible
:
false
,
// 快捷排序弹窗显隐
batchSetGradeVisible
:
false
,
//批量设置题型分数
selectQuestionList
:
[],
selectQuestionList
:
[],
currentOperate
:
""
,
currentOperate
:
""
,
currentNav
:
""
,
currentNav
:
""
,
...
@@ -871,6 +873,16 @@ class OperatePaper extends Component {
...
@@ -871,6 +873,16 @@ class OperatePaper extends Component {
>
>
快捷排序
快捷排序
</
Button
>
</
Button
>
<
Button
className=
"choose-btn"
onClick=
{
()
=>
{
this
.
setState
({
batchSetGradeVisible
:
true
,
});
}
}
>
批量设置分数
</
Button
>
</
Space
>
</
Space
>
{
questionCnt
>
0
&&
(
{
questionCnt
>
0
&&
(
<
div
<
div
...
@@ -960,6 +972,9 @@ class OperatePaper extends Component {
...
@@ -960,6 +972,9 @@ class OperatePaper extends Component {
/>
/>
)
}
)
}
</
Modal
>
</
Modal
>
<
BatchGrade
visible=
{
this
.
state
.
batchSetGradeVisible
}
onClose=
{
()
=>
this
.
setState
({
batchSetGradeVisible
:
false
})
}
/>
</
div
>
</
div
>
<
Route
<
Route
path=
{
`${match.url}/exam-operate-page`
}
path=
{
`${match.url}/exam-operate-page`
}
...
...
src/modules/teach-tool/paper-manage/components/BatchGrade.less
0 → 100644
View file @
ba8e83e7
.batchgrade {
.content {
.item {
width: 512px;
height: 48px;
background: #F7F8F9;
font-size: 14px;
line-height: 48px;
font-weight: 400;
color: #333333;
padding-left: 16px;
}
.item:not(:last-of-type) {
margin-bottom: 8px;
}
}
}
\ No newline at end of file
src/modules/teach-tool/paper-manage/components/BatchGrade.tsx
0 → 100644
View file @
ba8e83e7
import
React
,
{
useState
}
from
"react"
;
import
{
Modal
,
Button
,
InputNumber
}
from
'antd'
;
import
"./BatchGrade.less"
interface
BatchGradeProps
{
visible
:
boolean
,
onClose
:
()
=>
void
,
}
export
default
function
BatchGrade
(
props
:
BatchGradeProps
)
{
if
(
!
props
.
visible
)
{
return
(
""
)
}
function
onOk
()
{
}
function
onCancel
()
{
props
.
onClose
()
}
const
inputNumberStyle
=
{
width
:
"57px"
,
margin
:
"0 8px"
}
return
(
<
Modal
className=
"batchgrade"
title=
"批量设置分数"
onCancel=
{
onCancel
}
onOk=
{
onOk
}
visible=
{
props
.
visible
}
maskClosable=
{
false
}
width=
{
560
}
>
<
div
className=
"content"
>
<
div
className=
"item"
>
【单选题】
<
span
>
每题
<
InputNumber
defaultValue=
{
2
}
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
<
div
className=
"item"
>
【多选题】
<
span
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
<
div
className=
"item"
>
【不定项选择题】
<
span
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
<
div
className=
"item"
>
【判断题】
<
span
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
<
div
className=
"item"
>
【填空题】
<
span
>
每题
<
InputNumber
style=
{
inputNumberStyle
}
/>
分
</
span
>
</
div
>
</
div
>
</
Modal
>
)
}
\ No newline at end of file
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