zhuguifei
2026-03-10 58402bd5e762361363a0f7d7907153c77dbb819f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<title>显示个人信息(基本信息,机构,角色)</title>
<jsp:include page="../../../initlib/initAll.jsp"></jsp:include>
<script type="text/javascript">
    $(function() {
         $('#organization').tree({
            checkbox:true,
            parentField : 'pid',
            data : $.parseJSON('${sessionInfo.organizations}'),
            toggleOnClick: true,
            animate: true,
            enableContextMenu: false
        }); 
        $('#resources').tree({
            checkbox:true,
            animate: true,
            parentField : 'pid',
            data : $.parseJSON('${sessionInfo.resources}'),
            toggleOnClick: true,
            enableContextMenu: false
 
        });
        console.info(JSON.stringify($.parseJSON('${sessionInfo.resources}')));
    });
</script>
</head>
<body class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',fit:true,border:false">
        <table style="width: 100%;">
            <tr>
                <td><fieldset>
                        <legend>基本信息</legend>
                        <table class="table" style="width: 100%;">
                            <tr>
                                <th>姓名</th>
                                <td>${sessionInfo.user.name}</td>
                                <th>工号</th>
                                <td>${sessionInfo.user.eno}</td>
                                
                            </tr>
                            <tr>
                                <th>登录名</th>
                                <td>${sessionInfo.user.loginName}</td>
                                <th>当前IP</th>
                                <td>${sessionInfo.ip}</td>
                            </tr>
                            <tr>
                                <th>性别</th>
                                <td>
                                <c:choose>
                                   <c:when test="${sessionInfo.user.gender==0}">女</c:when>
                                   <c:otherwise>男</c:otherwise>
                                </c:choose>
                                </td>
                                <th>手机</th>
                                <td>${sessionInfo.user.phone}</td>
                            </tr>
                            <tr>
                                <th>电话</th>
                                <td>${sessionInfo.user.tel}</td>
                                <th>邮箱</th>
                                <td>${sessionInfo.user.email}</td>
                            </tr>
                            <tr>
                                <th>创建时间</th>
                                <td>${sessionInfo.user.createDatetime}</td>
                                <th>最后修改时间</th>
                                <td>${sessionInfo.user.modifyDatetime}</td>
                            </tr>
                        </table>
                    </fieldset>
                    </td>
            </tr>
            <tr>
                <td>
                    <fieldset>
                        <legend>权限信息</legend>
                        <table class="table" style="width: 100%;">
                            <thead>
                                <tr>
                                    <th>所属角色</th>
                                    <th>所属机构</th>
                                    <th>拥有权限</th>
                                </tr>
                            </thead>
                            <tr>
                                <td valign="top">
                                    <ul style="list-style: none;">
                                    <c:forEach  items="${sessionInfo.roles}" var="role">
                                    <c:if test="${role.checked==true}">
                                        <li style="margin-left:-30px"><span><c:out value="${role.name}"/></span></li>
                                    </c:if>    
                                    </c:forEach>
                                    </ul>                                    
                                </td>
                                <td valign="top">
                                    <ul id="organization">
                                    
                                    </ul>
                                </td>
                                <td valign="top">
                                    <ul id="resources">
                                    </ul>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </td>
            </tr>
        </table>
    </div>
</body>
</html>