多单位版国产化地质资料管理系统
zs
2025-12-18 4f0d9bde31a80f6279e26466250da7716eec627f
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String path = request.getContextPath();
            String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
                    + path + "/";
%>
 
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>个人信息</title>
<link href="static/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="static/styles/material-teal.css" type="text/css">
<link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
<link rel="stylesheet" href="static/styles/common.css" type="text/css">
<link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
<link rel="stylesheet" href="static/plugins/webuploader/webuploader.css" type="text/css">
 
<script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="static/scripts/easyuiExtend.js"></script>
<script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
<script type="text/javascript" src="static/plugins/layer/layer.js"></script>
<script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="static/plugins/webuploader/webuploader.js"></script>
 
<script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
<script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
<script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
 
<script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
 
<!--[if lt IE 9]>
<script type="text/javascript" src="static/plugins/json2.js"></script>
<![endif]-->
<style>
html {
    overflow: hidden;
}
 
html, body {
    height: 100%;
}
 
.modifyavatar {
    width: 240px;
    position: absolute;
    top: 240px;
    text-align: center;
}
 
.modifyavatar button {
    margin: 20px auto 0;
}
 
.modifyavatar .webuploader-container {
    border: none;
    background: none;
    padding: 0px;
}
 
.modifyavatar .webuploader-container  div {
    width: 93px !important;
    height: 37px !important;
}
</style>
 
</head>
 
<body>
    <div class="margin-lr">
        <div class="pt-main-top2" style="height:80px">
            <span class="pt-title-icon pt-title-icon2">
                <i class="fa fa-user-circle"></i>
            </span>
            <h4>个人中心</h4>
        </div>
        <div class="pt-nav-tab2 easyui-tabs" style="width:100%;" data-options="plain:true">
            <div title="应用设置" class="pt-nav-list">
                <div class="personnel-tab clear">
<%--                    <div class="personnel-desktop">--%>
<%--                        <div class="personnel-border">--%>
<%--                            <h3>--%>
<%--                                <i class="fa fa-sliders"></i>--%>
<%--                            </h3>--%>
<%--                            <h5>应用设置</h5>--%>
<%--                            <div class="personnel-btn">--%>
<%--                                <a href="javascript:;">代理人设置</a>--%>
<%--                                <a href="javascript:;">个人模板设置</a>--%>
<%--                                <a href="javascript:;">消息提醒设置</a>--%>
<%--                            </div>--%>
<%--                        </div>--%>
<%--                    </div>--%>
                    <div class="personnel-desktop">
                        <div class="personnel-border">
                            <h3>
                                <i class="fa fa-edge"></i>
                            </h3>
                            <h5>门户设计</h5>
                            <div class="personnel-btn">
                                <a href="javascript:editPersonal();">个人门户设置</a>
                            </div>
                        </div>
                    </div>
                    <div class="personnel-desktop">
                        <div class="personnel-border">
                            <h3>
                                <i class="fa fa-drivers-license-o"></i>
                            </h3>
                            <h5>密码和账户管理</h5>
                            <div class="personnel-btn">
                                <a href="javascript:updatePassword();">登录密码修改</a>
                                <a href="javascript:;">个人用户绑定</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div title="个人信息" class="pt-nav-list">
                <div class="personnel-tab clear">
                    <div class="personnel-img">
                        <div>
                            <span>${user.trueName}</span>
                            <img id="avatar" alt="${user.trueName}" class="img-circle" src="${user.userAvatarUrl}" />
                        </div>
                    </div>
                    <div class="modifyavatar">
                        <button id="picker">上传头像</button>
                    </div>
                    <div class="pt-form personnel-info">
                        <form id="formUserInfo">
                            <table style="width: 500px;">
                                <tr>
                                    <td class="tbtitle">姓名:</td>
                                    <td>
                                        <input id="trueName" name="trueName" class="easyui-textbox" data-options="required:true,editable:false" type="text" style="width:100%" value="${user.trueName}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tbtitle">人员编号:</td>
                                    <td>
                                        <input id="eeNum" name="employeeNum" class="easyui-textbox" type="text"  data-options="editable:false" style="width:100%" value="${user.employeeNum}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tbtitle">办公电话:</td>
                                    <td>
                                        <input id="telphone" name="telphone" class="easyui-textbox" type="text" style="width:100%" value="${user.telphone}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tbtitle">手机号码:</td>
                                    <td>
                                        <input id="mobilePhone" name="mobilePhone" class="easyui-textbox" type="text" style="width:100%" value="${user.mobilePhone}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="tbtitle">电子邮箱:</td>
                                    <td>
                                        <input id="email" name="email" class="easyui-textbox" type="text" style="width:100%" value="${user.email}" />
                                        <input type="hidden" id="userAvatarUrl" name="userAvatarUrl" value="${user.userAvatarUrl}" />
                                    </td>
                                </tr>
                            </table>
                        </form>
                        <button type="button" class="pt-btn pt-btn-primary" onclick="saveUserInfo();">保存</button>
                    </div>
                </div>
            </div>
            <div title="组织信息" class="pt-nav-list">
                <div class="personnel-tab">
                    <div class="personnel-role">
                        <div class="personnel-role-unit">部门岗位信息</div>
                        <p class="post-info">
                            <span>部门:${user.deptName}</span> 
                        </p>
                    </div>
                    <div class="personnel-role">
                        <div class="personnel-role-unit">我的组织信息架构图</div>
                        <div class="clear">
                            <div class="pt-framework">
                                <c:forEach items="${deptTree}" var="dept">
                                    <p>
                                        <c:choose>
                                            <c:when test="${dept.icon=='fa fa-institution'}">
                                                <h1>${dept.deptName}</h1>
                                            </c:when>
                                            <c:when test="${dept.icon=='fa fa fa-home'}">
                                                <h2>${dept.deptName}</h2>
                                            </c:when>
                                            <c:when test="${dept.icon=='fa fa-sitemap'}">
                                                <h3>${dept.deptName}</h3>
                                            </c:when>
                                            <c:when test="${dept.icon=='fa fa-address-card'}">
                                                <h4>${dept.deptName}</h4>
                                            </c:when>
                                            <c:otherwise>
                                                <h5>${dept.deptName}</h5>
                                            </c:otherwise>
                                        </c:choose>
                                    </p>
                                </c:forEach>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div title="角色权限" class="pt-nav-list">
                <div class="personnel-tab">
                    <div class="personnel-role">
                        <div class="personnel-role-unit">我的角色</div>
                        <div class="personnel-btn">
                            <c:forEach items="${roles}" var="roleName">
                                <a href="javascript:;">${roleName}</a>
                            </c:forEach>
                        </div>
                    </div>
                </div>
            </div>
            <div title="流程权限" class="pt-nav-list">
                <div class="personnel-tab">
                    <div class="personnel-role">
                        <div class="personnel-role-unit">我的流程权限</div>
                        <div class="personnel-btn">
                           <c:forEach var="flow" items="${deList}">
                               <a href="javascript:addFlow('${flow.formId}','${flow.moduleId}','${flow.flowId}','${flow.flowName}');">${flow.flowName}</a>
                           </c:forEach>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
    <script>
        $(function() {
            new ResizeScroll({
                "id" : ".pt-nav-list",
                fun : function() {
                    var wHight = $(window).height();
                    var tabHeight = wHight - 20 - 10; //20表示标题 10表示paddingtop
                    $("iframe").height(tabHeight - 32); //32表示tab的标题 
                    return (tabHeight - 32);
                }
            });
    
    
            $("#avatar").error(function() {
                $("#avatar").hide();
            })
    
            var imgFileExtensions = 'gif,jpg,jpeg,bmp,png';
            var uploader = WebUploader.create({
                swf : 'static/plugins/webuploader/Uploader.swf',
                server : 'management/user/uploadUserAvatar',
                pick : {
                    id : "#picker",
                    multiple : false
                },
                accept : {
                    title : 'Images',
                    extensions : imgFileExtensions,
                    mimeTypes : 'image/*'
                },
                thumb : {
                    width : 200,
                    height : 200,
                    crop : true
                },
                auto : true
            });
            uploader.on("uploadSuccess", function(file, response) { //上传成功事件
                var $img = $("#avatar");
                var thumbnailWidth = 200,
                    thumbnailHeight = 200;
                //console.log(response);
                $("#userAvatarUrl").val(response.result.fileName);
                uploader.makeThumb(file, function(error, src) {
                    if (error) {
                        wcp.message.error("转换缩略图失败,请重新选择!", "错误");
                        return;
                    }
                    $img.attr("src", src);
                    $img.show();
                //$img.Jcrop();
                }, thumbnailWidth, thumbnailHeight);
            });
            uploader.on("uploadError", function(file, reason) { //上传失败
                wcp.message.error("上传失败:" + reason, "错误");
            });
            uploader.on("beforeFileQueued", function(file) {
                var ext = file.ext;
                if (imgFileExtensions.indexOf(ext.toLowerCase()) == -1) {
                    wcp.message.error("请选择图片文件!", "错误");
                    return false;
                }
            });
        })
    
        //修改密码
        function updatePassword() {
            var url = "management/user/updatePasswordIndex";
            top.layer.open({
                title : "修改密码",
                type : 2,
                area : [ "500px", "400px" ],
                fixed : false,
                content : url,
                success : function(layero, index) {
                    var body = window.top.layer.getChildFrame('body', index);
                    var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
    
                }
            });
    
        }
        //个人桌面设置
        function editPersonal(){
            var url = "config/desktopLayout/editPersonalLayout";
            top.layer.open({
                title : "个人门户设置",
                type : 2,
                area : [ "800px", "550px" ],
                fixed : false,
                content : url,
                success : function(layero, index) {
                    var body = window.top.layer.getChildFrame('body', index);
                    var iframeWin = window.top[layero.find('iframe')[0]['name']]; //得到iframe页的窗口对象
    
                }
            });
        }
    
        function saveUserInfo() {
            //验证表单信息
            var isValid = $('#formUserInfo').form('validate');
            if (!isValid) {
                wcp.notify.warn('表单验证有误,请检查表单输入项!');
                return false;
            }
    
            var obj = $("#formUserInfo").serializeObject();
    
            wcp.ui.setBusy("body", wcp.ajax({
                url : "management/user/saveCurrentUserInfo",
                data : JSON.stringify(obj),
            }).done(function(result) {
                wcp.notify.success("保存成功!");
            }));
        }
 
        //新建流程
        function addFlow(formId, moduleId, flowDefinitionId, flowDefinitionName) {
            var url = "general/editFormData?formId=" +formId+"&moduleId="+moduleId+"&flowDefinitionId=" + flowDefinitionId +"&keyId=0";
            var title = "新增" + flowDefinitionName + "流程";
            top.addPanel(url,title);
            var curTabWin = null;
            var curTab = top.$('#tt').tabs('getSelected');
            if (curTab && curTab.find('iframe').length > 0) {
                curTabWin = curTab.find('iframe')[0].contentWindow;
                //将回调函数传给子页面
                $(curTabWin).load(function(){
 
                });
            }
 
        }
    </script>
</body>
</html>