Commit 1c79e22b by lvxinyong

菜单弹出支持

parent 6fed128f
......@@ -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;
}
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment