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
9d2c761c
Commit
9d2c761c
authored
Jun 03, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门管理改为树形
parent
fa741273
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/main/webapp/static/modular/system/dept/dept.js
+9
-5
No files found.
src/main/webapp/static/modular/system/dept/dept.js
View file @
9d2c761c
...
...
@@ -15,7 +15,6 @@ Dept.initColumn = function () {
return
[
{
field
:
'selectItem'
,
radio
:
true
},
{
title
:
'id'
,
field
:
'id'
,
align
:
'center'
,
valign
:
'middle'
},
{
title
:
'父级部门'
,
field
:
'pName'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'部门简称'
,
field
:
'simplename'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'部门全称'
,
field
:
'fullname'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
{
title
:
'排序'
,
field
:
'num'
,
align
:
'center'
,
valign
:
'middle'
,
sortable
:
true
},
...
...
@@ -26,7 +25,7 @@ Dept.initColumn = function () {
* 检查是否选中
*/
Dept
.
check
=
function
()
{
var
selected
=
$
(
'#'
+
this
.
id
).
bootstrapTable
(
'getSelections'
);
var
selected
=
$
(
'#'
+
this
.
id
).
treegridData
(
'getSelections'
);
if
(
selected
.
length
==
0
){
Feng
.
info
(
"请先选中表格中的某一记录!"
);
return
false
;
...
...
@@ -95,7 +94,12 @@ Dept.search = function () {
$
(
function
()
{
var
defaultColunms
=
Dept
.
initColumn
();
var
table
=
new
BSTable
(
Dept
.
id
,
"/dept/list"
,
defaultColunms
);
table
.
setPaginationType
(
"client"
);
Dept
.
table
=
table
.
init
();
var
table
=
new
BSTreeTable
(
Dept
.
id
,
"/dept/list"
,
defaultColunms
);
table
.
setExpandColumn
(
2
);
table
.
setIdField
(
"id"
);
table
.
setCodeField
(
"id"
);
table
.
setParentCodeField
(
"pid"
);
table
.
setExpandAll
(
true
);
table
.
init
();
Dept
.
table
=
table
;
});
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