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
b9910af1
Commit
b9910af1
authored
Jun 01, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复
parent
c2ec7be1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/modules/teach-tool/modal/MoveModal.jsx
+2
-2
src/modules/teach-tool/question-manage/components/QuestionList.jsx
+7
-2
No files found.
src/modules/teach-tool/modal/MoveModal.jsx
View file @
b9910af1
...
...
@@ -16,9 +16,9 @@ class MoveModal extends React.Component {
filterData
=
(
data
,
id
)
=>
{
let
newTreeData
=
data
.
map
((
item
)
=>
{
(
id
===
item
.
id
)
&&
(
item
.
disabled
=
true
)
;
item
.
disabled
=
id
===
item
.
id
;
if
(
item
.
children
)
{
item
.
children
=
this
.
filterData
(
item
.
children
);
item
.
children
=
this
.
filterData
(
item
.
children
,
id
);
}
return
item
;
});
...
...
src/modules/teach-tool/question-manage/components/QuestionList.jsx
View file @
b9910af1
...
...
@@ -427,15 +427,20 @@ class QuestionList extends Component {
AidToolService
.
deleteQuestion
(
params
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
message
.
success
(
"删除成功"
);
const
{
query
,
total
}
=
this
.
state
;
const
{
query
,
total
,
selectedRowKeys
}
=
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
(
selectedRowKeys
.
includes
(
record
.
id
))
{
data
.
selectedRowKeys
=
_
.
reject
(
selectedRowKeys
,
item
=>
item
===
record
.
id
);
}
this
.
setState
(
data
,
()
=>
{
this
.
queryQuestionPageList
();
Bus
.
trigger
(
"queryCategoryTree"
,
"remain"
);
});
...
...
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