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
0f9fe0c3
Commit
0f9fe0c3
authored
Jun 15, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Plain Diff
fix:解决合并分类拖拽修复冲突
parents
a0f441ed
56b67270
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
src/modules/teach-tool/components/CourseCategoryManage.jsx
+1
-3
No files found.
src/modules/teach-tool/components/CourseCategoryManage.jsx
View file @
0f9fe0c3
...
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-02-23 18:28:50
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-06-15 15:
21:59
* @LastEditTime: 2021-06-15 15:
33:00
* @Description: 助学工具-课程分类
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -379,13 +379,11 @@ class CourseCategoryManage extends Component {
let
targetParentId
=
info
.
dropToGap
?
info
.
node
.
parentId
:
info
.
node
.
id
;
let
relatedNodes
=
this
.
getRelatedNodes
(
targetParentId
);
if
(
!
((
info
.
dropToGap
&&
info
.
node
.
parentId
===
info
.
dragNode
.
parentId
)
||
(
!
info
.
dropToGap
&&
info
.
node
.
id
===
info
.
dragNode
.
parentId
)))
{
console
.
log
(
'this.state.treeMap[targetParentId].categoryLevel'
,
this
.
state
.
treeMap
[
targetParentId
].
categoryLevel
);
if
(
this
.
state
.
treeMap
[
targetParentId
].
categoryLevel
>=
4
)
{
return
message
.
info
(
'最多支持5级分类'
);
}
else
{
let
nodesArr
=
this
.
getDragNodesLevel
(
this
.
state
.
treeMap
[
info
.
dragNode
.
id
]);
let
parentArr
=
this
.
getParentDragNodesLevel
(
this
.
state
.
treeMap
[
targetParentId
]);
console
.
log
(
nodesArr
.
length
,
parentArr
.
length
);
if
(
nodesArr
.
length
+
parentArr
.
length
>
4
)
{
return
message
.
info
(
'最多支持5级分类'
);
}
...
...
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