You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1017 lines
26 KiB

<%@page import="org.wdk.core.util.uString"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="org.wdk.WDKConstant"%>
<%@page import="org.wdk.WDKCore"%>
<%@page import="org.wdk.WDK"%>
<%@page import="com.noblelift.imp.platform.module.portal.source.SessionUser"%>
<%@page import="java.io.File"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
SessionUser su = (SessionUser)WDK.getSessionUser(request, response);
if(null==su){
response.sendRedirect(basePath);
return;
}
String WDK_ROOT = WDKCore.WDK_ROOT;
String RSS_ROOT = WDK_ROOT + "/"+WDKConstant.Theme+"/"+WDKCore.THEME;
String tip_sleep = WDK.getProperties("cfg.msg_tip_sleep");
int tipSleepVal = 5;//默认5秒
if(uString.isNotBlank(tip_sleep)){
tipSleepVal = Integer.parseInt(tip_sleep);
}
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>" target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name=”renderer” content=”webkit”>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>立信中山自动仓储管理系统</title>
<% WDK.writeMenu(out, su);WDK.writeSessionUser(out, su);%>
<script type="text/javascript">
window.__isTop=true;
</script>
<script type="text/javascript" src="<%=RSS_ROOT%>/core/js/wdk.js?201805041000"></script>
<script type="text/javascript" src="<%=WDK_ROOT%>/theme/je/frame/default/js/wdk.tip.js"></script>
<style type="text/css">
.tip-container{
/*height:18px;
filter:alpha(Opacity=50);
-moz-opacity:0.5;
opacity: 0.5;
border: #a6b4cf 1px solid;*/
background-color: #f7f7f7;
z-index:999990;
-moz-box-shadow:5px 5px 15px #ddd;
-webkit-box-shadow:5px 5px 15px #ddd;
box-shadow:-5px -5px 15px #ddd;
/*padding-top:5px;*/
}
.tip-container>.tip-title{
font-size: 12px;
color: #0f2c8c;
/*margin-right:5px;*/
cursor:pointer;
width:100%;
height:25px;
background-color: #666;
}
.tip-container>.tip-title span{
line-height:25px;
color:#FFF;
padding-right:6px;
}
.tip-item{
z-index:999999;
border:1px solid #e5e5e5;
background-color: #fff;
}
.tip-item .tip-item-title{
height:50px;
width:100%;
}
.tip-item-title .tip-icon{
height: 30px;
width:30px;
margin:10px;
line-height: 30px;
text-align: center;
color:#FFF;
float: left!important;
}
.tip-item-title .tip-close{
padding-right:5px;
font-size: 20px;
color:#c9c9c9;
cursor:pointer;
float: right!important;
}
.tip-item-title .tip-title-main{
padding-top:8px;
color:#333;
font-weight: bold;
display: block;
font-size:15px;
line-height: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tip-item-title .tip-title-extra{
color:#999;
font-size:12px;
display: block;
line-height: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tip-item-title .tip-icon.info{
background-color: #F1C40F;
}
.tip-item-title .tip-icon.message{
background-color: #659BE0;
}
.tip-item .tip-item-content{
height:58px;
margin:10px;
margin-top:1px;
overflow: hidden;
}
.tip-item .tip-item-content span{
display: -webkit-box;
display: -moz-box;
font-size: 14px;
color:#666;
line-height:18px;
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
-webkit-box-orient: vertical;
-webkit-line-clamp:3;
}
.sys-top{
height:63px;background-color:#0063A9;border:0px;border-top:3px solid #007356;
overflow:hidden;
}
.sys-logo{
float:left;
line-height:50px;
height:50px;
color:#fff;
padding-left:10px;
padding-top:10px;
}
.smi-over{
background-color:#007356;
}
.smti-over{
background-color:#008c6e;
color:#fff;
}
.sys-logo img{
float:left;
height:40px;
}
.sys-logo div{
font-size:16px;
float:left;
height:30px;
line-height:30px;
border-left:1px solid #777777;
margin-top:5px;
margin-left:10px;
padding-left:10px;
}
.sys-help{
float:right;
width:60px;
height:60px;
font-size:30px;
line-height:60px;
color:#fff;
text-align:center;
border-left:1px solid #777777;
}
.sys-nav-info{
float:right;
padding:10px;
}
.sys-nav-info table{
color:#fff;
border-spacing:0px;
}
.sys-nav-info table td{
padding:0 10px;
}
.search-group{
height:26px;
line-height:26px;
padding:0px 10px;
}
.search-group:hover{
border-radius:13px;
border:1px solid transparent;
background-color:#666666;
}
.search-group:hover input{
display:inline;
}
.search-group input{
border:0px;
height:100%;
width:150px;
color:#fff;
display:none;
padding-left:5px;
background-color:transparent;
}
.search-group input:focus{
outline:0;
}
.sec-message-tip-count,.search-group i,.sys-message-tip i,.sys-account{
cursor:pointer;
}
.sys-message-tip{
position:relative;
}
.search-group i,.sys-message-tip i{
font-size:20px;
}
.sys-message-tip-count{
color: #fff;
border-radius: 50%;
background-color: #ee5a3e;
font-family: Arial;
position: absolute;
top: -15px;
text-align: center;
line-height: 25px;
right: -15px;
width: 22px;
height: 22px;
}
.sec-message-tip-count{
color:#fff;
border-radius: 50%;
background-color: #ee5a3e;
padding:0 5px;
position: absolute;
top: 6px;
right: 0px;
}
.sys-account{
display: table;
height:40px;
/*position:relative;*/
}
.sys-account span,.sys-account i,.sys-account img{
display: table-cell;
vertical-align:middle;
margin:0 4px;
}
.sys-account img{
width:40px;
height:40px;
border-radius:50%;
display:none;
}
.account-dropdown{
display:none
}
.account-dropdown>hr{
border-color:#777777;
}
.sys-account:hover .account-dropdown{
display:block;
text-align:center;
font-size:14px;
color:#fff;
position:fixed;
right:70px;
top:53px;
z-index:2;
width:auto;
min-width:120px;
background-color:#444444;
padding:10px;
line-height:30px;
}
.sec-menu{
position:fixed;
top:66px;
right:0px;
bottom:0px;
}
.sec-menu,.sec-menu-container{
background-color:#666666;
text-align:center;
border:0px;
overflow:hidden;
}
.sec-menu-container{
display:none;
height:100%;
}
.sec-menu:focus .sec-menu-container{
display:block;
}
.sec-menu:focus .sec-menu-switch{
display:none;
}
.sec-menu-items{
overflow:hidden;
padding:0 10px;
float:left;
width:40px;
}
.sec-menu-content{
display:none;
float:left;
width:150px;
background-color:#888888;
height:100%;
}
.sec-menu-item{
height:45px;
padding-top:15px;
position: relative;
text-align: center;
border-bottom:1px solid #777777;
}
.sec-menu-item>i{
font-size:30px;
color:#fff;
}
.sec-menu-switch{
position:fixed;
cursor:pointer;
top:50%;
font-size:30px;
right:-5px;
}
.sys-menu,.sys-menu-container{
background-color:#f6f6f6;
width:60px;
border:0px;
overflow:hidden;
}
.sys-menu-items{
overflow:hidden;
}
.sys-menu-item{
height:54px;
text-align: center;
border-bottom:1px solid #e5e5e5;
}
.sys-menu-item>i{
margin-top: 14px;
font-size:26px;
color:#5c5b5b;
}
.sys-menu-text{
display:none;
width:130px;
position:fixed;
left:60px;
top:66px;
text-align: center;
line-height: 60px;
background-color:#fff;
border-right:1px solid #e5e5e5;
}
.sys-menu-container:hover .sys-menu-text{
display:block;
}
.sys-menu-text-item{
height:54px;
border-bottom:1px solid #e5e5e5;
}
.sys-menu-text-item>span{
font-size:14px;
color:#333333;
}
.sys-menu-text-item>i{
float:right;
margin-top: 23px;
font-size: 14px;
margin-right: 10px;
}
.sys-menu-sub{
display:none;
width:600px;
position:fixed;
left:190px;
padding:10px;
text-align: left;
margin-top:-62px;
line-height: 30px;
background-color:#fff;
border:1px solid #e5e5e5;
}
.sys-menu-text-item:hover .sys-menu-sub{
display:block;
}
.sys-menu-level2{
font-size:14px;
font-weight:700;
color:#333333;
clear:both;
}
.sys-menu-level3{
clear:both;
table-layout: fixed;
width: 578px;
}
.sys-menu-level3 td{
/*margin-right:20px;
float:left;*/
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width:142px;
font-size:14px;
color:#666666;
cursor:pointer;
}
.sys-menu-level3 td:hover{
color:#007356;
}
.sys-submenu-split{
margin:5px 0px;
border-top:1px solid #eeeeee;
width:100%;
clear:both;
}
.menu-iframe{
border:0px;
width:100%;
height:100%;
}
#main-tabs .panel-body{
overflow:hidden;
}
.smti-over>span,.smti-over>i{
color:#fff;
}
.smi-over>span,.smi-over>i{
color:#fff;
}
.layout-panel-center{
z-index:-2;
}
.menu-exchange{
cursor:pointer;
}
.menu-mask{
display:none;
position:absolute;
z-index:-1;
filter:alpha(opacity=15); /* ie 有效*/
-moz-opacity:0.15; /* Firefox 有效*/
opacity: 0.15; /* 通用,其他浏览器 有效*/
background-color:#000;
top:60px;
left:60px;
right:0;
bottom:0;
}
</style>
<script type="text/javascript">
var currentmenu=1;
function exchange(){
if(currentmenu==1){
currentmenu=2;
rendermenu(_menus.anal_menus);
}else{
currentmenu=1;
rendermenu(_menus.menus);
}
}
/**
* [alertMsgTip 显示消息提醒tip]
* @param {[type]} title [标题]
* @param {[type]} content [内容]
* @param {[type]} closeTime [自动关闭时间:秒,0代表不关闭]
* @return {[type]} [无]
*/
function showMsgTip(title,content,closeTime){
var isautoclose = closeTime?true:false;
$.toastrNotify.showTip({
msg_uuid:$.getUUID(),
msg_title:title,
content:content,
msg_type:'0',
isCallback:false,
isAutomaticClose:isautoclose,
automaticCloseTime:closeTime * 1000,
syscreatedate:new Date().format()
});
}
var tip_timeout = <%=tipSleepVal * 1000%>;
function getNotices(){
return false;
$.cuajax({
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+ new Date().getTime(),
method:"post",
timeout:WDK_Timeout,
onTimeout:function(){
if(tip_timeout > 0){
setTimeout(function(){getNotices()},tip_timeout);
}
},
data:{
_SRVNAME : 'service.pf.sysmsg', //统一为小写
_SRVMETHOD :'pageQureyMsgListToPush',
_DATA : $.json2str({
user_info:{
account_id:$.getSessionUser().account_id,
personuuid:$.getSessionUser().personuuid,
manageunituuid:$.getSessionUser().manageunituuid
},
msg_type:'',
limit_hours:'',
result_fields:'msg_uuid,msg_title,msg_type,sender_name,content,syscreatedate',
order_field:'syscreatedate asc'
}),
rows:'10',//获取最早的10个消息
page:'1',
_RSFIELD:'resultset',
},
success:function(result) {
var jparam = $.str2json(result);
if(jparam && jparam.rows && jparam.rows.length > 0){
for(var i=0;i<jparam.rows.length;i++){
$.toastrNotify.showTip(jparam.rows[i]);
}
}
if(tip_timeout > 0){
setTimeout(function(){getNotices()},tip_timeout);
}
},
error:function(result){
if(tip_timeout > 0){
setTimeout(function(){getNotices()},tip_timeout);
}
}
});
}
function getMsgUnReadCount(){
$.cuajax({
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+ new Date().getTime(),
method:"post",
timeout:WDK_Timeout,
onTimeout:function(){
if(tip_timeout > 0){
setTimeout(function(){getMsgUnReadCount()},tip_timeout);
}
},
data:{
_SRVNAME : 'service.pf.sysmsg', //统一为小写
_SRVMETHOD :'unReadCount',
_DATA : $.json2str({
user_info:{
account_id:$.getSessionUser().account_id,
personuuid:$.getSessionUser().personuuid,
manageunituuid:$.getSessionUser().manageunituuid
}
})
},
success:function(result) {
var jparam = $.str2json(result);
//console.log(jparam.total_count);
if(jparam && jparam.total_count){
if(!isNaN(jparam.total_count)){
var cntStr = '';
var cnt = parseInt(jparam.total_count);
$('.sys-message-tip>sup').css("display","");
if(cnt>99){
cntStr = cnt+'+';
}else if(cnt == 0){
cntStr = '';
$('.sys-message-tip>sup').css("display","none");
}else{
cntStr = cnt+'';
}
$('.sys-message-tip>sup').text(cntStr);
}
}
if(tip_timeout > 0){
setTimeout(function(){getMsgUnReadCount()},tip_timeout);
}
},
error:function(result){
if(tip_timeout > 0){
setTimeout(function(){getMsgUnReadCount()},tip_timeout);
}
}
});
}
$(function(){
/* $.toastrNotify.messageFields = {
uuid:'msg_uuid',
title:'msg_title',
sender:'sender_name',
content:'content',
type:'msg_type',
date:'syscreatedate'
};
$.toastrNotify.ajaxCallbackFunc = function(uuids){
if(uuids){
$.cuajax({
url:'wdk?action=wdk.pub&method=call_service&ajaxparam='+ new Date().getTime(),
method:"post",
timeout:WDK_Timeout,
data:{
_SRVNAME : 'service.pf.sysmsg', //统一为小写
_SRVMETHOD :'setPushed',
_DATA : $.json2str({
user_info:{
account_id:$.getSessionUser().account_id,
personuuid:$.getSessionUser().personuuid,
manageunituuid:$.getSessionUser().manageunituuid
},
msg_uuid:uuids
})
},
success:function(result) {
},
error:function(result){
}
});
}
}; */
//开始执行监听
//getNotices();
//getMsgUnReadCount();
$(".sec-menu-item").click(function(){
$(".sec-menu-content").show();
});
$(".sec-menu").blur(function(){
$(".sec-menu-content").hide();
});
$(".sys-menu-container").on("mousewheel DOMMouseScroll",function(event, delta, deltaX, deltaY){
event.preventDefault();
stopEvent(event);
var value = event.originalEvent.wheelDelta || -event.originalEvent.detail;
var delta = Math.max(-1, Math.min(1, value));
var top=$(this).css("margin-top");
$(this).css("margin-top",(parseInt(top)+delta*10)+"px");
top=$(this).css("margin-top");
if(parseInt(top)<0 && parseInt(top)+$(this).height()<$(this).parent().height()){
$(this).css("margin-top",($(this).parent().height()-$(this).height())+"px");
}
if(parseInt(top)>0 || $(this).parent().height()-$(this).height()>0){
$(this).css("margin-top","0px");
}
$(this).find(".sys-menu-text").css("margin-top",$(this).css("margin-top"));
//event.preventDefault();
return false;
});
$("#main-tabs").tabs({
onBeforeClose:function(title,index){
var tab=$("#main-tabs").tabs("getTab",index);
try{
if(tab.find("iframe")[0].contentWindow.onbeforeunload){
tab.find("iframe")[0].contentWindow.onbeforeunload();
}
tab.find("iframe").contents().find("body").empty();
}catch(e){}
var obc=$(tab).data("onBeforeClose");
if(obc){
return obc.call(this,title,index);
}
},
onClose:function(title,index){
var tab=$("#main-tabs").tabs("getTab",index);
var obc=$(tab).data("onClose");
if(obc){
return obc.call(this,title,index);
}
}
});
rendermenu(_menus.menus);
$(".sys-menu-container").hover(function(e){
$(".menu-mask").show();
stopEvent(e);
},function(e){
$(".menu-mask").hide();
stopEvent(e);
});
//用户信息
$.cuajax({
url:'wdk?action=portal.menu&method=accountInfo&ajaxparam='+new Date().getTime()
,method:"post"
,timeout:WDK_Timeout
,data:{}
,success:function(result) {
$.wait_close();
var userinfo_ul = $(".account-dropdown");
userinfo_ul.empty();
var jres = $.str2json(result);
var title
//当前登录部门
var logindeptuuid = jres.logindeptuuid;
//任职部门
if(jres.depart){
if(logindeptuuid==jres.depart.depart_uuid){
title = "» 主职部门:";
userinfo_ul.append("<div style='min-width:100px' >"+title+jres.depart.depart_uuidname+"</div>");
}else{
title = "主职部门:";
userinfo_ul.append("<div style='min-width:100px' onclick='switchDept(\""+jres.depart.depart_uuid+"\");'>"+title+jres.depart.depart_uuidname+"</div>");
}
}
//兼职部门
if(jres.deptex){
for(var i=0;i<jres.deptex.length;i++){
userinfo_ul.append("<hr>");
if(logindeptuuid==jres.deptex[i].depart_uuid){
title = "» 兼职部门:";
userinfo_ul.append("<div style='min-width:100px' >"+title+jres.deptex[i].depart_uuidname+"</div>");
}else{
title = "兼职部门:";
userinfo_ul.append("<div style='min-width:100px' onclick='switchDept(\""+jres.deptex[i].depart_uuid+"\");'>"+title+jres.deptex[i].depart_uuidname+"</div>");
}
}
}
userinfo_ul.append("<hr><div onclick='logout();'>退出</div>");
}
,error:function(result){
$.wait_close();
alert('网络错误!result='+result);
}
});
});
function openmenu(menuid,title,url){
var index=$("#main-tabs").tabs("getTabIndex",$("#"+menuid));
if(index>=0){
$("#main-tabs").tabs("select",index);
}else{
if(url=="" || url==null){
return;
}
$('#main-tabs').tabs('add',{
id:menuid,
title: title,
content: '<iframe class="menu-iframe" frameborder="0" src="'+url+'"></iframe>',
closable: true
});
}
$(".sys-menu-text").css("display","none");
setTimeout(function(){
$(".sys-menu-text").css("display","");
},1000);
}
//部门切换
function switchDept(dept_uuid){
window.location.href='<%=basePath%>wdk?action=access.login&method=switchDept&depart_uuid='+dept_uuid+'&ajaxparam='+new Date().getTime();
/* $.cuajax({
//"<%=basePath%>wdk?action=access.login&method=logout&ajaxparam="+new Date().getTime();
//wdk?action=portal.menu&method=switchDept&ajaxparam=
url:'<%=basePath%>wdk?action=access.login&method=switchDept&ajaxparam='+new Date().getTime()
,method:"post"
,timeout:WDK_Timeout
,data:{depart_uuid:dept_uuid}
,success:function(result) {
$.wait_close();
var jres = $.str2json(result);
if(jres.code=="1"){
window.location.href = window.location.href;
}else{
alert(jres.desc);
}
}
,error:function(result){
$.wait_close();
alert('网络错误!result='+result);
}
});*/
}
function rendermenu(data){
try{
$(".sys-menu-items").empty();
$(".sys-menu-text").empty();
$('<div class="sys-menu-item"><i class="iconfont icon-shu menu-exchange" onclick="exchange();" aria-hidden="true"></i></div>').appendTo($(".sys-menu-items"));
$('<div class="sys-menu-text-item"><span style="cursor:pointer" onclick="openmenu(\''+(currentmenu==1?"menu00":"menu01")+'\',\''+(currentmenu==1?"系统首页":"数据分析")+'\',\'\');">'+(currentmenu==1?"系统首页":"数据分析")+'</span></div>').appendTo($(".sys-menu-text"));
for(var i=0;i<data.length;i++){
var smi = $('<div class="sys-menu-item"><i class="iconfont icon-xi2 " aria-hidden="true"></i></div>').appendTo($(".sys-menu-items"));
if(data[i].iconCls!=""){
smi.find("i").attr("class",data[i].iconCls);
}
var menu=$('<div class="sys-menu-text-item"><span></span><i class="fa fa-angle-right" aria-hidden="true"></i></div>').appendTo($(".sys-menu-text"));
menu.find(">span").text(data[i].menuname);
menu.find(">span").data("data",data[i]);
if(data[i].attributes.menuurl!=""){
menu.find(">span").css("cursor","pointer");
menu.find(">span").click(function(){
var d = $(this).data("data");
openmenu(d.menucode,d.menuname,d.attributes.menuurl);
});
}
var children=data[i].children;
if(children && children.length>0){
var sub=$('<div class="sys-menu-sub"></div>').appendTo(menu);
for(var m=0;m<children.length;m++){
var c=children[m];
var l2=$('<div class="sys-menu-level2"></div>').appendTo(sub);
l2.text(c.text);
l2.data("data",c);
if(c.attributes.menuurl!=""){
l2.css("cursor","pointer");
l2.click(function(){
var d = $(this).data("data");
openmenu(d.menucode,d.menuname,d.attributes.menuurl);
});
}
var cc=c.children;
if(cc && cc.length>0){
var l3=$('<table class="sys-menu-level3"></table>').appendTo(sub);
var l3divcount = Math.ceil(cc.length/4);
for(var n=0;n<l3divcount;n++){
$("<tr></tr>").appendTo(l3);
}
for(var n=0;n<cc.length;n++){
var l3divindex = Math.floor(n/4);
var mi=$("<td></td>").appendTo($(l3.find("tr")[l3divindex]));
mi.text(cc[n].text);
mi.attr("title",cc[n].text);
mi.data("data",cc[n]);
mi.click(function(){
var d = $(this).data("data");
openmenu(d.menucode,d.menuname,d.attributes.menuurl);
});
if(n==cc.length-1){
var remaining = 4-$(l3.find("tr")[l3divindex]).find("td").length;
for(var k=0;k<remaining;k++){
$("<td></td>").appendTo($(l3.find("tr")[l3divindex]));
}
}
}
}
if(m!=children.length-1){
$('<div class="sys-submenu-split"></div>').appendTo(sub);
}
}
}
}
$(".sys-menu-item,.sys-menu-text-item").on("mouseover",function(event){
var len=$(this).prevAll().length;
$($(".sys-menu-text-item")[len]).addClass("smti-over");
$($(".sys-menu-item")[len]).addClass("smi-over");
var smti=$($(".sys-menu-text-item")[len]);
var sms = smti.find(".sys-menu-sub");
/* if(sms.length>0){
if(sms.offset().top+sms.outerHeight()>$(window).height()){
var mt = parseInt(sms.css("margin-top"));
mt = mt+$(window).height()-(sms.offset().top+sms.outerHeight());
sms.css("margin-top",mt+"px");
}else if(sms.offset().top+sms.outerHeight()<$(window).height()){
// TODO xujianwei 原先默认只有 sms.css("margin-top","-62px");
if(len == 9 || len == 8){
var mt = parseInt(sms.css("margin-top"));
mt = mt+$(window).height()-(sms.offset().top+sms.outerHeight());
sms.css("margin-top",mt+"px");
}else{
sms.css("margin-top","-62px");
}
}
} */
if(sms.length>0){
if(sms.offset().top+sms.outerHeight()>$(window).height()){
var mt = parseInt(sms.css("margin-top"));
mt = mt+$(window).height()-(sms.offset().top+sms.outerHeight());
sms.css("margin-top",mt+"px");
}else if(sms.offset().top+sms.outerHeight()<$(window).height()){
// TODO xujianwei 原先默认只有 sms.css("margin-top","-62px");
if(len == 9 || len == 8){
var mt = parseInt(sms.css("margin-top"));
mt = mt+$(window).height()-(sms.offset().top+sms.outerHeight());
sms.css("margin-top",mt+"px");
}else{
sms.css("margin-top","-62px");
}
}
}
event.preventDefault();
});
$(".sys-menu-item,.sys-menu-text-item").on("mouseout",function(event){
var len=$(this).prevAll().length;
$($(".sys-menu-text-item")[len]).removeClass("smti-over");
$($(".sys-menu-item")[len]).removeClass("smi-over");
event.preventDefault();
});
}catch(e){
}
}
function logout(){
<%-- var r=window.confirm("是否确认退出系统?");
if (r==true){
$.getRoot().location.href = "<%=basePath%>wdk?action=access.login&method=logout&ajaxparam="+new Date().getTime();
} --%>
confirmDialog('是否确认退出系统?',function(){
$.getRoot().location.href = "<%=basePath%>wdk?action=access.login&method=logout&ajaxparam="+new Date().getTime();
},function(){});
}
function changePwd(account_uuid,user_uuid) {
$.openWin({
id : $.getUUID(),
title : '修改密码',
height : 300,
width : 700,
url : 'platform/uum/uum_account_change_pwd.jsp',
queryParams : {
account_uuid : account_uuid,
user_uuid:user_uuid
}
});
}
</script>
</head>
<body class="easyui-layout" id="mainlayout">
<div class="menu-mask"></div>
<div data-options="region:'north',border:false" class="sys-top">
<div class="sys-logo">
<img src="wdk/theme/je/frame/default/images/logo.png"/>
<div style="font-size:28px">立信中山自动仓储管理系统</div>
</div>
<div class="sys-help">
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
</div>
<div class="sys-nav-info">
<table style="border:0;">
<tr>
<td>
<div class="search-group">
<input id="search-text" placeholder="请输入搜索的内容...">
<i class="fa fa-search" aria-hidden="true"></i>
</div>
</td>
<!--<td>
<div class="sys-message-tip">
<i class="fa fa-volume-up" aria-hidden="true"></i>
<sup class="sys-message-tip-count">98+</sup>
</div>
</td> -->
<td>
<div class="sys-account">
<span onclick="changePwd('<%=su.getAccount_id()%>','<%=su.getPersonuuid()%>')" title="<%=su.getRealname() %>"><%=su.getRealname() %> </span>
&nbsp;
<i class="fa fa-caret-down" aria-hidden="true"></i>
<div class="account-dropdown" >
<!-- <div>个人中心</div>
<hr>
<div onclick="logout();">退出</div> -->
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
<div data-options="region:'west',border:false" class="sys-menu">
<div class="sys-menu-container">
<div class="sys-menu-items">
<div class="sys-menu-item">
<i class="iconfont icon-shu" onclick="exchange();" aria-hidden="true"></i>
</div>
</div>
<div class="sys-menu-text">
<div class="sys-menu-text-item">
<span style="cursor:pointer" onclick="openmenu('menu00','系统首页','');">系统首页</span>
</div>
</div>
</div>
</div>
<div data-options="region:'center',border:false">
<div id="main-tabs" class="easyui-tabs" data-options="fit:true,tabHeight:35">
<div id="menu00" title="系统首页">
<iframe class="menu-iframe" frameborder="0" src="platform/personhome/index.jsp"></iframe>
</div>
</div>
</div>
<!--<div class="sec-menu" tabindex="1">
<div class="sec-menu-switch">
<i class="fa fa-chevron-circle-left" aria-hidden="true"></i>
</div>
<div class="sec-menu-container">
<div class="sec-menu-items">
<div class="sec-menu-item">
<i class="fa fa-bar-chart" aria-hidden="true"></i>
</div>
<div class="sec-menu-item">
<sup class="sec-message-tip-count">99+</sup>
<i class="fa fa-bell" aria-hidden="true"></i>
</div>
</div>
<div class="sec-menu-content">
</div>
</div>
</div>-->
</body>
</html>