Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
chenjunxiong
guns-vip
Commits
e0f04149
Commit
e0f04149
authored
Apr 25, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门管理列表添加父级id
parent
67296204
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/main/java/com/stylefeng/guns/modular/system/controller/DeptController.java
+3
-1
src/main/webapp/static/modular/system/dept/dept.js
+2
-1
No files found.
src/main/java/com/stylefeng/guns/modular/system/controller/DeptController.java
View file @
e0f04149
...
...
@@ -72,7 +72,9 @@ public class DeptController extends BaseController {
@RequestMapping
(
value
=
"/tree"
)
@ResponseBody
public
List
<
ZTreeNode
>
tree
()
{
return
this
.
deptDao
.
tree
();
List
<
ZTreeNode
>
tree
=
this
.
deptDao
.
tree
();
tree
.
add
(
ZTreeNode
.
createParent
());
return
tree
;
}
/**
...
...
src/main/webapp/static/modular/system/dept/dept.js
View file @
e0f04149
...
...
@@ -14,7 +14,8 @@ var Dept = {
Dept
.
initColumn
=
function
()
{
return
[
{
field
:
'selectItem'
,
radio
:
true
},
{
title
:
'id'
,
field
:
'id'
,
visible
:
true
,
align
:
'center'
,
valign
:
'middle'
},
{
title
:
'id'
,
field
:
'id'
,
align
:
'center'
,
valign
:
'middle'
},
{
title
:
'父级id'
,
field
:
'pid'
,
align
:
'center'
,
valign
:
'middle'
},
{
title
:
'部门简称'
,
field
:
'simplename'
,
align
:
'center'
,
valign
:
'middle'
},
{
title
:
'部门全称'
,
field
:
'fullname'
,
align
:
'center'
,
valign
:
'middle'
},
{
title
:
'排序'
,
field
:
'num'
,
align
:
'center'
,
valign
:
'middle'
},
...
...
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