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
897ce6e3
Commit
897ce6e3
authored
Apr 21, 2020
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表格添加显示/隐藏所有列方法 showAllColumns/hideAllColumns
parent
2bba8c7b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletions
+11
-1
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.js
+0
-0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+10
-0
ruoyi-admin/src/main/resources/templates/include.html
+1
-1
No files found.
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/bootstrap-table.min.js
View file @
897ce6e3
This diff is collapsed.
Click to expand it.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
897ce6e3
...
...
@@ -504,6 +504,16 @@ var table = {
hideColumn
:
function
(
column
,
tableId
)
{
var
currentId
=
$
.
common
.
isEmpty
(
tableId
)
?
table
.
options
.
id
:
tableId
;
$
(
"#"
+
currentId
).
bootstrapTable
(
'hideColumn'
,
column
);
},
// 显示所有表格列
showAllColumns
:
function
(
tableId
)
{
var
currentId
=
$
.
common
.
isEmpty
(
tableId
)
?
table
.
options
.
id
:
tableId
;
$
(
"#"
+
currentId
).
bootstrapTable
(
'showAllColumns'
);
},
// 隐藏所有表格列
hideAllColumns
:
function
(
tableId
)
{
var
currentId
=
$
.
common
.
isEmpty
(
tableId
)
?
table
.
options
.
id
:
tableId
;
$
(
"#"
+
currentId
).
bootstrapTable
(
'hideAllColumns'
);
}
},
// 表格树封装处理
...
...
ruoyi-admin/src/main/resources/templates/include.html
View file @
897ce6e3
...
...
@@ -22,7 +22,7 @@
<script
th:src=
"@{/js/jquery.min.js}"
></script>
<script
th:src=
"@{/js/bootstrap.min.js}"
></script>
<!-- bootstrap-table 表格插件 -->
<script
th:src=
"@{/ajax/libs/bootstrap-table/bootstrap-table.min.js?v=20
191219
}"
></script>
<script
th:src=
"@{/ajax/libs/bootstrap-table/bootstrap-table.min.js?v=20
200421
}"
></script>
<script
th:src=
"@{/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"
></script>
<script
th:src=
"@{/ajax/libs/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js}"
></script>
<script
th:src=
"@{/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js}"
></script>
...
...
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