Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5a5b9c9f
authored
2018-04-11 15:36:17 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
网点
1 parent
b54a14ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
application/views/perm/branch.php
application/views/perm/branch.php
View file @
5a5b9c9
...
...
@@ -158,14 +158,12 @@
sObj
.
after
(
addStr
);
var
btn
=
$
(
"#addBtn_"
+
treeNode
.
tId
);
if
(
btn
)
btn
.
bind
(
"click"
,
function
(){
var
zTree
=
$
.
fn
.
zTree
.
getZTreeObj
(
"tree"
);
var
newNodes
=
zTree
.
addNodes
(
treeNode
,
{
id
:(
100
+
newCount
),
pId
:
treeNode
.
id
,
name
:
"new node"
+
(
newCount
++
)});
zTree
.
updateNode
(
treeNode
);
var
data
=
{
name
:
'new node'
,
parentId
:
treeNode
.
id
}
var
targetUrl1
=
'department/add'
;
$
.
ajax
({
type
:
'post'
,
...
...
@@ -180,13 +178,10 @@
}
else
if
(
data
.
code
!=
0
)
{
layer
.
alert
(
'操作失败'
);
}
else
{
layer
.
msg
(
'操作成功'
);
}
setTimeout
(
function
()
{
if
(
!
data
.
code
)
{
layer_close
();
var
zTree
=
$
.
fn
.
zTree
.
getZTreeObj
(
"tree"
);
var
newNodes
=
zTree
.
addNodes
(
treeNode
,
{
id
:
data
.
data
.
id
,
pId
:
data
.
data
.
parentId
,
name
:
data
.
data
.
name
});
zTree
.
editName
(
newNodes
[
0
]);
}
},
500
);
},
error
:
function
()
{
layer
.
alert
(
"操作失败"
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment