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
09945e7e
Commit
09945e7e
authored
Feb 23, 2019
by
fengshuonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加展开所有 折叠所有
parent
6ced5d45
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/main/webapp/assets/modular/system/menu/menu.js
+6
-0
src/main/webapp/pages/modular/system/menu/menu.html
+2
-0
No files found.
src/main/webapp/assets/modular/system/menu/menu.js
View file @
09945e7e
...
@@ -144,6 +144,12 @@ layui.use(['layer', 'form', 'ztree', 'laydate', 'admin', 'ax', 'table', 'treetab
...
@@ -144,6 +144,12 @@ layui.use(['layer', 'form', 'ztree', 'laydate', 'admin', 'ax', 'table', 'treetab
// 渲染表格
// 渲染表格
var
tableResult
=
Menu
.
initTable
(
Menu
.
tableId
);
var
tableResult
=
Menu
.
initTable
(
Menu
.
tableId
);
$
(
'#expandAll'
).
click
(
function
()
{
treetable
.
expandAll
(
'#'
+
Menu
.
tableId
);
});
$
(
'#foldAll'
).
click
(
function
()
{
treetable
.
foldAll
(
'#'
+
Menu
.
tableId
);
});
//渲染时间选择框
//渲染时间选择框
laydate
.
render
({
laydate
.
render
({
...
...
src/main/webapp/pages/modular/system/menu/menu.html
View file @
09945e7e
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
<button
id=
"btnAdd"
class=
"layui-btn icon-btn"
><i
class=
"layui-icon"
>

</i>
添加
</button>
<button
id=
"btnAdd"
class=
"layui-btn icon-btn"
><i
class=
"layui-icon"
>

</i>
添加
</button>
@}
@}
<button
id=
"btnExp"
class=
"layui-btn icon-btn"
><i
class=
"layui-icon"
>

</i>
导出
</button>
<button
id=
"btnExp"
class=
"layui-btn icon-btn"
><i
class=
"layui-icon"
>

</i>
导出
</button>
<button
id=
"expandAll"
class=
"layui-btn icon-btn"
><i
class=
"layui-icon"
>

</i>
展开所有
</button>
<button
id=
"foldAll"
class=
"layui-btn icon-btn"
><i
class=
"layui-icon"
>

</i>
折叠所有
</button>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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