Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
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
gechengyang
nouiWithSpringMVC
Commits
1c79e22b
Commit
1c79e22b
authored
Sep 22, 2020
by
lvxinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单弹出支持
parent
6fed128f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletions
+27
-1
Menu.java
src/main/java/org/sss/presentation/noui/api/model/Menu.java
+18
-0
LoginController.java
...org/sss/presentation/noui/controller/LoginController.java
+9
-1
commons-logging-1.2.jar
src/main/webapp/WEB-INF/lib/commons-logging-1.2.jar
+0
-0
test.jar
src/main/webapp/WEB-INF/lib/test.jar
+0
-0
No files found.
src/main/java/org/sss/presentation/noui/api/model/Menu.java
View file @
1c79e22b
...
...
@@ -14,6 +14,24 @@ public class Menu implements Serializable {
private
String
label
;
private
String
value
;
private
String
icon
;
private
String
negflg
;
private
String
url
;
public
String
getNegflg
()
{
return
negflg
;
}
public
void
setNegflg
(
String
negflg
)
{
this
.
negflg
=
negflg
;
}
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
String
getIcon
()
{
return
icon
;
}
...
...
src/main/java/org/sss/presentation/noui/controller/LoginController.java
View file @
1c79e22b
...
...
@@ -14,6 +14,7 @@ import log.Log;
import
log.LogFactory
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
...
...
@@ -125,7 +126,14 @@ public class LoginController {
menu
.
setValue
(
item
.
getValue
());
menu
.
setLabel
(
item
.
getLabel
());
log
.
info
(
"image :"
+
item
.
getImage
());
menu
.
setIcon
(
item
.
getImage
());
String
other
=
item
.
getImage
();
//为解决menu新增字段但无接口源码问题,后续所有字段使用,拼接
String
others
[]
=
new
String
[]{
""
,
""
,
""
};
if
(!
StringUtils
.
isEmpty
(
other
))
{
others
=
other
.
split
(
","
);
}
menu
.
setIcon
(
others
[
0
]);
menu
.
setNegflg
(
others
[
1
]);
menu
.
setUrl
(
others
[
2
]);
menuList
.
add
(
menu
);
List
<
Menu
>
subMenuList
=
menu
.
getSubMenu
();
getMenus
(
item
,
subMenuList
);
...
...
src/main/webapp/WEB-INF/lib/commons-logging-1.2.jar
0 → 100644
View file @
1c79e22b
File added
src/main/webapp/WEB-INF/lib/test.jar
0 → 100644
View file @
1c79e22b
File added
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