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
ce1ef9ef
Commit
ce1ef9ef
authored
May 31, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复
parent
c0fdfc4b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
4 deletions
+22
-4
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
+1
-0
src/modules/knowledge-base/components/KnowledgeBaseOpt.jsx
+1
-0
src/modules/teach-tool/examination-manager/Index.tsx
+2
-2
src/modules/teach-tool/modal/MoveModal.jsx
+14
-2
src/modules/teach-tool/paper-manage/components/PaperList.jsx
+2
-0
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+2
-0
No files found.
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
View file @
ce1ef9ef
...
@@ -554,6 +554,7 @@ class KnowledgeBaseList extends React.Component {
...
@@ -554,6 +554,7 @@ class KnowledgeBaseList extends React.Component {
const
{
current
,
size
}
=
query
;
const
{
current
,
size
}
=
query
;
const
rowSelection
=
{
const
rowSelection
=
{
selectedRowKeys
,
selectedRowKeys
,
preserveSelectedRowKeys
:
true
,
onChange
:
onSelectChange
,
onChange
:
onSelectChange
,
}
}
return
(
return
(
...
...
src/modules/knowledge-base/components/KnowledgeBaseOpt.jsx
View file @
ce1ef9ef
...
@@ -236,6 +236,7 @@ export default function KnowledgeBaseOpt({
...
@@ -236,6 +236,7 @@ export default function KnowledgeBaseOpt({
visible=
{
openMoveModal
}
visible=
{
openMoveModal
}
title=
"知识"
title=
"知识"
data=
{
data
}
data=
{
data
}
categoryId=
{
categoryId
}
length=
{
selectedRowKeys
.
length
}
length=
{
selectedRowKeys
.
length
}
onCancel=
{
()
=>
setOpenMoveModal
(
false
)
}
onCancel=
{
()
=>
setOpenMoveModal
(
false
)
}
onOk=
{
(
categoryId
)
=>
{
onOk=
{
(
categoryId
)
=>
{
...
...
src/modules/teach-tool/examination-manager/Index.tsx
View file @
ce1ef9ef
...
@@ -55,7 +55,7 @@ function ExaminationManager(props: any) {
...
@@ -55,7 +55,7 @@ function ExaminationManager(props: any) {
const
[
modal
,
setModal
]
=
useState
(
null
);
const
[
modal
,
setModal
]
=
useState
(
null
);
const
[
questionCntSort
,
setQuestionCntSort
]
=
useState
(
sortState
)
const
[
questionCntSort
,
setQuestionCntSort
]
=
useState
(
sortState
)
const
[
openPreviewModal
,
setOpenPreviewModal
]
=
useState
(
false
);
const
[
openPreviewModal
,
setOpenPreviewModal
]
=
useState
(
false
);
const
[
info
,
setInfo
]
=
useState
({});
const
[
info
,
setInfo
]
=
useState
({
examDuration
:
0
});
const
queryRef
=
useRef
({});
const
queryRef
=
useRef
({});
const
orderEnum
=
{
const
orderEnum
=
{
...
@@ -430,7 +430,7 @@ function ExaminationManager(props: any) {
...
@@ -430,7 +430,7 @@ function ExaminationManager(props: any) {
</
div
>
</
div
>
{
openPreviewModal
&&
{
openPreviewModal
&&
<
PreviewModal
<
PreviewModal
info=
{
info
}
info=
{
{
...
info
,
examDuration
:
(
info
.
examDuration
||
0
)
/
60000
}
}
onClose=
{
()
=>
{
setOpenPreviewModal
(
false
)
}
}
onClose=
{
()
=>
{
setOpenPreviewModal
(
false
)
}
}
/>
/>
}
}
...
...
src/modules/teach-tool/modal/MoveModal.jsx
View file @
ce1ef9ef
...
@@ -14,9 +14,21 @@ class MoveModal extends React.Component {
...
@@ -14,9 +14,21 @@ class MoveModal extends React.Component {
this
.
setState
({
categoryId
:
value
,
categoryName
:
label
[
0
]
});
this
.
setState
({
categoryId
:
value
,
categoryName
:
label
[
0
]
});
};
};
filterData
=
(
data
,
id
)
=>
{
let
newTreeData
=
data
.
map
((
item
)
=>
{
(
id
===
item
.
id
)
&&
(
item
.
disabled
=
true
);
if
(
item
.
sonCategoryList
)
{
item
.
children
=
this
.
filterData
(
item
.
sonCategoryList
);
}
return
item
;
});
return
newTreeData
;
}
render
()
{
render
()
{
const
{
visible
,
title
,
onCancel
,
onOk
,
data
,
length
}
=
this
.
props
;
const
{
visible
,
title
,
onCancel
,
onOk
,
data
,
length
,
categoryId
:
id
}
=
this
.
props
;
const
{
categoryId
}
=
this
.
state
;
const
{
categoryId
}
=
this
.
state
;
const
moveData
=
this
.
filterData
(
data
,
id
);
return
(
return
(
<
Modal
<
Modal
title=
{
`移动${title}`
}
title=
{
`移动${title}`
}
...
@@ -37,7 +49,7 @@ class MoveModal extends React.Component {
...
@@ -37,7 +49,7 @@ class MoveModal extends React.Component {
treeNodeFilterProp=
"title"
treeNodeFilterProp=
"title"
style=
{
{
width
:
240
}
}
style=
{
{
width
:
240
}
}
dropdownStyle=
{
{
maxHeight
:
220
}
}
dropdownStyle=
{
{
maxHeight
:
220
}
}
treeData=
{
d
ata
}
treeData=
{
moveD
ata
}
placeholder=
"请选择分类"
placeholder=
"请选择分类"
allowClear
allowClear
value=
{
categoryId
}
value=
{
categoryId
}
...
...
src/modules/teach-tool/paper-manage/components/PaperList.jsx
View file @
ce1ef9ef
...
@@ -519,6 +519,7 @@ class PaperList extends Component {
...
@@ -519,6 +519,7 @@ class PaperList extends Component {
const
{
current
,
size
,
categoryId
,
paperName
}
=
query
;
const
{
current
,
size
,
categoryId
,
paperName
}
=
query
;
const
paperRowSelection
=
{
const
paperRowSelection
=
{
selectedRowKeys
:
selectedPaperKeys
,
selectedRowKeys
:
selectedPaperKeys
,
preserveSelectedRowKeys
:
true
,
onChange
:
this
.
onSelectPaper
,
onChange
:
this
.
onSelectPaper
,
}
}
const
rowSelection
=
{
const
rowSelection
=
{
...
@@ -651,6 +652,7 @@ class PaperList extends Component {
...
@@ -651,6 +652,7 @@ class PaperList extends Component {
visible=
{
openMoveModal
}
visible=
{
openMoveModal
}
title=
"试卷"
title=
"试卷"
data=
{
paperData
}
data=
{
paperData
}
categoryId=
{
query
.
categoryId
}
length=
{
selectedRowKeys
.
length
}
length=
{
selectedRowKeys
.
length
}
onCancel=
{
()
=>
this
.
setState
({
openMoveModal
:
false
})
}
onCancel=
{
()
=>
this
.
setState
({
openMoveModal
:
false
})
}
onOk=
{
(
categoryId
)
=>
{
onOk=
{
(
categoryId
)
=>
{
...
...
src/modules/teach-tool/question-manage/components/QuestionList.jsx
View file @
ce1ef9ef
...
@@ -593,6 +593,7 @@ class QuestionList extends Component {
...
@@ -593,6 +593,7 @@ class QuestionList extends Component {
const
{
match
}
=
this
.
props
;
const
{
match
}
=
this
.
props
;
const
rowSelection
=
{
const
rowSelection
=
{
selectedRowKeys
,
selectedRowKeys
,
preserveSelectedRowKeys
:
true
,
onChange
:
this
.
onSelectChange
,
onChange
:
this
.
onSelectChange
,
};
};
return
(
return
(
...
@@ -745,6 +746,7 @@ class QuestionList extends Component {
...
@@ -745,6 +746,7 @@ class QuestionList extends Component {
visible=
{
openMoveModal
}
visible=
{
openMoveModal
}
title=
"题目"
title=
"题目"
data=
{
questionData
}
data=
{
questionData
}
categoryId=
{
query
.
categoryId
}
length=
{
selectedRowKeys
.
length
}
length=
{
selectedRowKeys
.
length
}
onCancel=
{
()
=>
this
.
setState
({
openMoveModal
:
false
})
}
onCancel=
{
()
=>
this
.
setState
({
openMoveModal
:
false
})
}
onOk=
{
(
categoryId
)
=>
{
onOk=
{
(
categoryId
)
=>
{
...
...
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