回顾

一个后台有很多的菜单,每一个人看到的菜单是不一样的,现在我们就需要实现这样的功能,不同权限的用户登录之后,看到的菜单就是不一样的。

权限

左边的菜单写死,有好多,我们需要做的就是根据不同的权限展示不同的菜单,所以变成jsp页面

<c:if test="${sessionScope.emp.empType==2}">

</c:if>

echarts 图表的使用

1 官网下载js

2 代码里面引入


3 后端返回json

   protected void  incomeB(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
   

        resp.setContentType("text/html;charset=utf-8");
        List<VN> list = inComes.findMore2();

        String json = new Gson().toJson(list);

        resp.getWriter().print(json);


    }