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
889d8daf
Commit
889d8daf
authored
Apr 15, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'fix'
parent
c1e89385
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
7 deletions
+24
-7
src/modules/teach-tool/examination-manager/SelectPaperModal.tsx
+4
-1
src/modules/teach-tool/paper-manage/PaperContent.jsx
+3
-3
src/modules/teach-tool/paper-manage/PaperContent.less
+11
-0
src/modules/teach-tool/paper-manage/components/PaperList.jsx
+2
-0
src/modules/teach-tool/paper-manage/modal/SelectQuestionModal.jsx
+3
-3
src/modules/teach-tool/paper-manage/modal/SelectQuestionModal.less
+1
-0
No files found.
src/modules/teach-tool/examination-manager/SelectPaperModal.tsx
View file @
889d8daf
...
...
@@ -26,7 +26,10 @@ function SelectPaperModal(props: any) {
}
onCancel=
{
()
=>
{
props
.
close
()
}
}
>
<
PaperContent
paperId=
{
item
.
paperId
}
onSelect=
{
(
item
:
any
)
=>
{
setItem
(
item
)
}
}
type=
'modal-select'
></
PaperContent
>
<
div
style=
{
{
maxHeight
:
500
}
}
>
<
PaperContent
paperId=
{
item
.
paperId
}
onSelect=
{
(
item
:
any
)
=>
{
setItem
(
item
)
}
}
type=
'modal-select'
></
PaperContent
>
</
div
>
</
Modal
>
}
...
...
src/modules/teach-tool/paper-manage/PaperContent.jsx
View file @
889d8daf
...
...
@@ -19,18 +19,18 @@ class PaperContent extends Component {
render
()
{
return
(
<
div
className=
"paper-content-page"
>
<
div
className=
{
this
.
props
.
type
==
"modal-select"
?
"paper-content-page paper-content-modal"
:
"paper-content-page"
}
>
<
div
style=
{
{
borderRight
:
"0.5px solid #EEEEEE"
,
paddingRight
:
"4px"
}
}
>
<
div
className=
"sider"
>
<
div
className=
"sider"
>
<
CourseCategorySiderTree
type=
{
this
.
props
.
type
}
fromModule=
"PAPER_INDEX"
/>
</
div
>
</
div
>
<
div
className=
"content"
>
<
div
className=
"content"
>
<
PaperList
type=
{
this
.
props
.
type
}
paperId=
{
this
.
props
.
paperId
}
...
...
src/modules/teach-tool/paper-manage/PaperContent.less
View file @
889d8daf
.paper-content-page {
display: flex;
&.paper-content-modal{
max-height: 500px;
.sider,.content{
max-height: 100%;
overflow: auto;
}
.content{
height: auto;
overflow: auto;
}
}
.sider {
min-width: 244px;
}
...
...
src/modules/teach-tool/paper-manage/components/PaperList.jsx
View file @
889d8daf
...
...
@@ -447,6 +447,7 @@ class PaperList extends Component {
<
Table
rowKey=
{
(
record
)
=>
record
.
id
}
dataSource=
{
dataSource
}
size=
{
this
.
props
.
type
==
"modal-select"
?
'small'
:
'middle'
}
rowKey=
{
(
item
)
=>
{
return
item
.
paperId
;
}
}
...
...
@@ -465,6 +466,7 @@ class PaperList extends Component {
current=
{
current
-
1
}
pageSize=
{
size
}
total=
{
total
}
size=
{
this
.
props
.
type
==
"modal-select"
?
'small'
:
'middle'
}
toPage=
{
(
page
)
=>
{
const
_query
=
{
...
query
,
current
:
page
+
1
};
this
.
setState
({
query
:
_query
},
()
=>
...
...
src/modules/teach-tool/paper-manage/modal/SelectQuestionModal.jsx
View file @
889d8daf
...
...
@@ -58,15 +58,15 @@ class SelectQuestionModal extends Component {
}
}
onCancel=
{
this
.
props
.
close
}
>
<
div
className=
"box content-body"
>
<
div
className=
"box content-body"
style=
{
{
maxHeight
:
500
}
}
>
<
div
style=
{
{
borderRight
:
"0.5px solid #EEEEEE"
,
paddingRight
:
"4px"
}
}
style=
{
{
borderRight
:
"0.5px solid #EEEEEE"
,
paddingRight
:
"4px"
,
overflowY
:
'auto'
,
overflowX
:
'hidden'
}
}
>
<
div
className=
"sider"
>
<
CourseCategorySiderTree
fromModule=
"QUESTION_MODAL"
/>
</
div
>
</
div
>
<
div
className=
"content"
>
<
div
className=
"content"
style=
{
{
height
:
'auto'
,
overflowY
:
'auto'
}
}
>
<
SelectQuestionList
ref=
{
this
.
listRef
}
/>
</
div
>
</
div
>
...
...
src/modules/teach-tool/paper-manage/modal/SelectQuestionModal.less
View file @
889d8daf
.select-question-modal {
.content-body {
display: flex;
height: calc(~'100% - 48px');
.sider {
min-width: 244px;
}
...
...
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