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
e7248da6
Commit
e7248da6
authored
Jun 02, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复树表对imageView和tooltip方法无效问题。
parent
05638550
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js
+5
-0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+3
-1
No files found.
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-treetable/bootstrap-treetable.js
View file @
e7248da6
...
...
@@ -167,6 +167,7 @@
success
:
function
(
data
,
textStatus
,
jqXHR
)
{
data
=
calculateObjectValue
(
options
,
options
.
responseHandler
,
[
data
],
data
);
renderTable
(
data
);
calculateObjectValue
(
options
,
options
.
onLoadSuccess
,
[
data
],
data
);
},
error
:
function
(
xhr
,
textStatus
)
{
var
_errorMsg
=
'<tr><td colspan="'
+
options
.
columns
.
length
+
'"><div style="display: block;text-align: center;">'
+
xhr
.
responseText
+
'</div></td></tr>'
...
...
@@ -738,6 +739,9 @@
expanderCollapsedClass
:
'glyphicon glyphicon-chevron-right'
,
// 缩起的按钮的图标
responseHandler
:
function
(
res
)
{
return
false
;
},
onLoadSuccess
:
function
(
res
)
{
return
false
;
}
};
})(
jQuery
);
\ No newline at end of file
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
e7248da6
...
...
@@ -542,6 +542,7 @@ var table = {
var
options
=
$
.
extend
(
defaults
,
options
);
table
.
options
=
options
;
table
.
config
[
options
.
id
]
=
options
;
$
.
table
.
initEvent
();
$
.
bttTable
=
$
(
'#'
+
options
.
id
).
bootstrapTreeTable
({
code
:
options
.
code
,
// 用于设置父子关系
parentCode
:
options
.
parentCode
,
// 用于设置父子关系
...
...
@@ -561,7 +562,8 @@ var table = {
expandAll
:
options
.
expandAll
,
// 是否全部展开
expandFirst
:
options
.
expandFirst
,
// 是否默认第一级展开--expandAll为false时生效
columns
:
options
.
columns
,
// 显示列信息(*)
responseHandler
:
$
.
treeTable
.
responseHandler
// 当所有数据被加载时触发处理函数
responseHandler
:
$
.
treeTable
.
responseHandler
,
// 在加载服务器发送来的数据之前处理函数
onLoadSuccess
:
$
.
table
.
onLoadSuccess
// 当所有数据被加载时触发处理函数
});
},
// 条件查询
...
...
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