Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
8467b7e6
Commit
8467b7e6
authored
Aug 01, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TreeTable优化
parent
336faf6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js
+4
-3
No files found.
src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js
View file @
8467b7e6
...
...
@@ -105,6 +105,7 @@
var
td
=
$
(
'<td title="'
+
item
[
column
.
field
]
+
'" name="'
+
column
.
field
+
'" style="text-align:'
+
column
.
align
+
';'
+
((
column
.
width
)?(
'width:'
+
column
.
width
):
''
)
+
'"></td>'
);
// 增加formatter渲染
if
(
column
.
formatter
)
{
td
=
$
(
'<td style="text-align:'
+
column
.
align
+
';'
+
((
column
.
width
)?(
'width:'
+
column
.
width
):
''
)
+
'"></td>'
);
td
.
html
(
column
.
formatter
.
call
(
this
,
item
[
column
.
field
],
item
,
index
));
}
else
{
td
.
text
(
item
[
column
.
field
]);
...
...
@@ -137,9 +138,9 @@
// 判断有没有选择列
if
(
i
==
0
&&
item
.
field
==
'selectItem'
){
hasSelectItem
=
true
;
th
=
$
(
'<th style="
text-align:'
+
item
.
valign
+
';
width:36px"></th>'
);
th
=
$
(
'<th style="width:36px"></th>'
);
}
else
{
th
=
$
(
'<th style="
text-align:'
+
item
.
valign
+
';padding:10px;
'
+
((
item
.
width
)?(
'width:'
+
item
.
width
):
''
)
+
'"></th>'
);
th
=
$
(
'<th style="'
+
((
item
.
width
)?(
'width:'
+
item
.
width
):
''
)
+
'"></th>'
);
}
th
.
text
(
item
.
title
);
thr
.
append
(
th
);
...
...
@@ -308,7 +309,7 @@
type
:
"GET"
,
// 请求数据的ajax类型
url
:
null
,
// 请求数据的ajax的url
ajaxParams
:
{},
// 请求数据的ajax的data属性
expandColumn
:
1
,
// 在哪一列上面显示展开按钮
expandColumn
:
0
,
// 在哪一列上面显示展开按钮
expandAll
:
false
,
// 是否全部展开
expandFirst
:
true
,
// 是否默认第一级展开--expandAll为false时生效
striped
:
false
,
// 是否各行渐变色
...
...
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