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
27318560
Commit
27318560
authored
Jun 01, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Plain Diff
fix:merge
parents
6bea225f
68369a22
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
+7
-3
src/modules/teach-tool/modal/MoveModal.jsx
+0
-1
src/modules/teach-tool/paper-manage/components/PaperList.jsx
+8
-2
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+2
-0
No files found.
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
View file @
27318560
...
...
@@ -464,9 +464,13 @@ class KnowledgeBaseList extends React.Component {
}
KnowledgeAPI
.
delKnowledge
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
message
.
success
(
"移出成功"
)
this
.
props
.
onChange
()
this
.
props
.
updateCategoryTree
()
const
{
onChange
,
updateCategoryTree
,
selectedRowKeys
,
onSelectChange
}
=
this
.
props
;
message
.
success
(
"移出成功"
);
onChange
();
updateCategoryTree
();
if
(
selectedRowKeys
.
includes
(
item
.
id
))
{
onSelectChange
(
_
.
reject
(
selectedRowKeys
,
value
=>
value
===
item
.
id
));
}
}
})
}
...
...
src/modules/teach-tool/modal/MoveModal.jsx
View file @
27318560
...
...
@@ -48,7 +48,6 @@ class MoveModal extends React.Component {
showSearch
treeNodeFilterProp=
"title"
style=
{
{
width
:
240
}
}
dropdownStyle=
{
{
maxHeight
:
220
}
}
treeData=
{
moveData
}
placeholder=
"请选择分类"
allowClear
...
...
src/modules/teach-tool/paper-manage/components/PaperList.jsx
View file @
27318560
...
...
@@ -200,15 +200,21 @@ class PaperList extends Component {
AidToolService
.
deletePaper
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
message
.
success
(
"删除成功"
);
const
{
query
,
total
}
=
this
.
state
;
const
{
query
,
total
,
selectedPaperKeys
}
=
this
.
state
;
const
{
size
,
current
}
=
query
;
const
_query
=
query
;
let
data
=
{};
if
(
total
/
size
<
current
)
{
if
(
total
%
size
===
1
)
{
_query
.
current
=
1
;
}
}
this
.
setState
({
query
:
_query
},
()
=>
{
data
.
query
=
_query
;
if
(
selectedPaperKeys
.
includes
(
record
.
paperId
))
{
data
.
selectedPaperKeys
=
_
.
reject
(
selectedPaperKeys
,
item
=>
item
===
record
.
paperId
);
}
this
.
setState
(
data
,
()
=>
{
this
.
queryPaperPageList
();
Bus
.
trigger
(
"queryCategoryTree"
,
"remain"
);
});
...
...
src/modules/teach-tool/question-manage/components/QuestionList.jsx
View file @
27318560
...
...
@@ -177,6 +177,8 @@ class QuestionList extends Component {
order
:
"UPDATED_DESC"
,
// 排序规则
questionName
:
null
,
// 题目名称
questionType
:
null
,
// 题目类型
updateDateStart
:
null
,
updateDateEnd
:
null
,
};
this
.
setState
({
query
:
_query
},
()
=>
{
this
.
queryQuestionPageList
();
...
...
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