Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
鲁鑫
topsun-bpm
Commits
576490cb
Commit
576490cb
authored
Nov 24, 2023
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资源删除控制
parent
eac39b97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
jquery.commonTree.js
huigou-xt/src/main/webapp/lib/jquery/jquery.commonTree.js
+7
-0
No files found.
huigou-xt/src/main/webapp/lib/jquery/jquery.commonTree.js
View file @
576490cb
...
...
@@ -523,8 +523,15 @@
_self
.
id
=
null
;
var
node
=
_self
.
treeManager
.
getSelected
();
if
(
node
)
{
var
hasChildren
=
node
.
data
.
hasChildren
;
if
(
hasChildren
>
0
){
Public
.
tip
(
"先删除子节点数据!"
);
return
false
}
var
parentId
=
node
.
data
[
opt
.
parentIDFieldName
];
if
(
parentId
==
opt
.
parentId
)
{
//删除的是根节点
Public
.
tip
(
"不能删除根节点数据!"
);
return
false
_self
.
reload
();
}
else
{
_self
.
_refreshNode
(
parentId
);
...
...
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