| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867 |
- <%@ page import="cn.com.lzt.tools.ServerType" %>
- <%@ page contentType="text/html;charset=UTF-8" language="java" %>
- <%@include file="/context/mytags.jsp"%>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="renderer" content="webkit">
- <%-- <title><t:mutiLang langKey="jeect.platform"/></title> --%>
- <title>美都管理平台</title>
- <meta name="keywords" content="">
- <meta name="description" content="">
- <link rel="shortcut icon" href="images/favicon.ico">
- <link href="plug-in-ui/hplus/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
- <link href="plug-in-ui/hplus/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
- <link rel="stylesheet" href="plug-in/ace/assets/css/font-awesome.min.css" />
- <!--[if IE 7]>
- <link rel="stylesheet" href="plug-in/ace/assets/css/font-awesome-ie7.min.css" />
- <![endif]-->
- <!-- Sweet Alert -->
- <link href="plug-in-ui/hplus/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
- <link href="plug-in-ui/hplus/css/animate.css" rel="stylesheet">
- <link href="plug-in-ui/hplus/css/style.css?v=4.1.0" rel="stylesheet">
- <!--右键菜单-->
- <link href="plug-in/hplus/smartMenu.css" rel="stylesheet">
- <!-- update-begain--Author: zhoujf Date:20170309 for: TASK #975 【首页提醒】我的任务 -->
- <style type="text/css">
- .nav.navbar-right > li > a {
- color: #1AB394;
- }
- </style>
- <!-- update-end--Author: zhoujf Date:20170309 for: TASK #975 【首页提醒】我的任务 -->
- </head>
- <body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
- <div id="wrapper">
- <!--左侧导航开始-->
- <nav class="navbar-default navbar-static-side" role="navigation" style="z-index: 1991;">
- <div class="nav-close">
- <i class="fa fa-times-circle"></i>
- </div>
- <div class="sidebar-collapse">
- <ul class="nav" id="side-menu">
- <li class="nav-header">
- <div class="dropdown profile-element">
- <a data-toggle="dropdown" class="dropdown-toggle" href="#">
- <span class="clear" style="background-color:#3275C6;width:200px;height:60px;">
- <c:choose>
- <c:when test="${photoUrl != ''}">
- <%-- <img alt="image" width="48" height="48" src="tSysFileController/showOrDownByurl.do?dbPath=${photoUrl}" style="float:left;display:inline-block;margin:6px 0 6px 30px;border-radius:30px" /> --%>
- <img alt="image" width="48" height="48" src="${photoUrl}" style="float:left;display:inline-block;margin:6px 0 6px 30px;border-radius:30px" />
- </c:when>
- <c:otherwise>
- <img alt="image" width="48" height="48" src="images/userDefaultPhoto.jpg" style="float:left;display:inline-block;margin:6px 0 6px 30px;border-radius:30px" />
- </c:otherwise>
- </c:choose>
- <span class="block m-t-xs" style="float:left;display:inline-block;width:80px;font-weight:bold;color:#fff;line-height:20px;margin:10px 0 0 16px;"><strong class="font-bold">${realName }</strong></span>
- <span class="text-muted text-xs block" style="float:left;display:inline-block;margin-left:16px;color:#c8c8c8;" >${roleName }<b class="caret"></b></span>
- </span>
- </a>
- <ul class="dropdown-menu animated fadeInRight m-t-xs">
- <li>
- <a href="javascript:add('<t:mutiLang langKey="common.change.password"/>','userController.do?changepassword','',550,200)">
- <t:mutiLang langKey="common.change.password"/>
- </a>
- </li>
- <li><a href="javascript:openwindow('<t:mutiLang langKey="common.profile"/>','userController.do?userinfo')"><t:mutiLang langKey="common.profile"/></a></li>
- <li><a href="javascript:openwindow('<t:mutiLang langKey="common.ssms.getSysInfos"/>','tSSmsController.do?getSysInfos')"><t:mutiLang langKey="common.ssms.getSysInfos"/></a></li>
- </ul>
- </div>
- <div class="dropdown profile-element">
- <span class="clear" style="background-color:#12447D;width:200px;height:40px;text-align:center;line-height:40px;">
- <strong style="color:#fff;font-size: 14px;">导 航 菜 单</strong>
- </span>
- </div>
- <div class="logo-element" style="font-size: 14px;background-color:#12447D;height:60px;text-align:center;">
- <span>导航菜单</span>
- </div>
- </li>
- <t:menu style="hplus" menuFun="${menuMap}"></t:menu>
- </ul>
- </div>
- </nav>
- <!--左侧导航结束-->
- <!--右侧部分开始-->
- <div id="page-wrapper" class="gray-bg dashbard-1">
- <div class="row border-bottom">
- <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
- <div class="navbar-header" style="height: 60px;">
- <div class="form-group" style="margin: 10px auto auto 20px;">
- <img src="images/LOGO.png" />
- <%-- <img src="images/logob.png" />--%>
- <%
- Boolean isTest = ServerType.isTest();
- pageContext.setAttribute("isTest", isTest);
- %>
- <c:if test="${isTest}">
- <span style="color: red;font-size:25px;margin-left:30px;letter-spacing:20px;font-weight: bold">
- </span>
- </c:if>
- </div>
- </div>
- <ul class="nav navbar-top-links navbar-right" >
- <li class="dropdown" onfocus="bindFrameClick()">
- <img alt="image" width="18" height="18" src="plug-in/index/images/time.png" />
- <span id="_timer"></span>
- <!--
- <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
- <span ><strong class="font-bold">${userName }</strong></span>
- <span >${roleName }<b class="caret"></b></span>
- </a>
- <ul class="dropdown-menu dropdown-alerts">
- <li>
- <a href="javascript:add('<t:mutiLang langKey="common.change.password"/>','userController.do?changepassword','',550,200)">
- <t:mutiLang langKey="common.change.password"/>
- </a>
- </li>
- <li><a href="javascript:openwindow('<t:mutiLang langKey="common.profile"/>','userController.do?userinfo')"><t:mutiLang langKey="common.profile"/></a></li>
- <li><a href="javascript:openwindow('<t:mutiLang langKey="common.ssms.getSysInfos"/>','tSSmsController.do?getSysInfos')"><t:mutiLang langKey="common.ssms.getSysInfos"/></a></li>
- <li><a href="javascript:add('<t:mutiLang langKey="common.change.style"/>','userController.do?changestyle','',550,250)"><t:mutiLang langKey="common.my.style"/></a></li>
- <li><a href="javascript:clearLocalstorage()"><t:mutiLang langKey="common.clear.localstorage"/></a></li>
- <li><a href="javascript:toJeecgYun()">云应用中心</a></li>
-
- <li><a href="http://yun.jeecg.org" target="_blank">云应用中心</li>
- <li class="divider"></li>
- <li><a href="javascript:logout()">注销</a></li>
- </ul>
- -->
- </li>
- <!-- //update-end--Author: chenj Date:20160726 for: TASK #1207 [改造]h+风格下,去掉logo下面的内容,迁移位置到右上角,主题位置 -->
-
- <!-- update-begain--Author: zhoujf Date:20170309 for: TASK #975 【首页提醒】我的任务 -->
- <%--<li > del-刘梦祥-2022年7月19日13:13:58(美都环卫没有这些功能)
- <a href="javascript:addOneTab('预警提醒', 'attendanceWarnMsgController.do?list', 'default');">
- <img alt="image" width="20" height="20" src="plug-in/index/images/ding.png" /><!-- (<span id="taskCount">0</span>) -->
- </a>
- </li>--%>
- <!-- update-end--Author: zhoujf Date:20170309 for: TASK #975 【首页提醒】我的任务 -->
-
- <%--<li > del-刘梦祥-2022年7月19日13:13:58(美都环卫没有这些功能)
- <a href="javascript:addOneTab('我的任务', 'taskController.do?goTaskListTab', 'default');">
- <img alt="image" width="20" height="20" src="plug-in/index/images/notice.png" /><!-- (<span id="taskCount">0</span>) -->
- </a>
- </li>
- <li >
- <a href="javascript:addOneTab('我的消息', 'sysMsgController.do?myMsgList', 'default');">
- <img alt="image" width="20" height="20" src="plug-in/index/images/info.png" /><!-- (<span id="taskCount">0</span>) -->
- </a>
- </li>--%>
- <%--add-刘梦祥-2022年7月19日13:14:38(添加提示按钮tag,同时修改我的消息页面。暂时展示信息接收人的提醒数据。)--%>
- <li >
- <a href="javascript:addOneTab('我的消息', 'sysMsgController.do?myMsgList', 'default');" style="position: relative;">
- <img alt="image" width="20" height="20" src="plug-in/index/images/info.png" />
- <div id="tagMsgCountBox">
- <div id="tagMsgCount">0</div>
- </div>
- </a>
- </li>
- <li class="dropdown">
- <a href="javascript:logout()" ><img alt="image" width="20" height="20" src="plug-in/index/images/exit.png" /></a>
- </li>
- </ul>
- </nav>
- </div>
- <div class="row content-tabs">
- <span class="navbar-minimalize roll-nav roll-left" onclick="setZhankai()">
- <img id="zhankai" src="plug-in/index/images/zhankai.png" style="margin-top:14px;"/>
- </span>
- <button class="roll-nav roll-left J_tabLeft" style="left:40"><i class="fa fa-backward"></i>
- </button>
- <nav class="page-tabs J_menuTabs" style="margin-left:80px;">
- <div class="page-tabs-content">
- <a href="javascript:;" class="active J_menuTab" data-id="homepageController.do?homepage">首页</a>
- </div>
- </nav>
- <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
- </button>
- <div class="btn-group roll-nav roll-right">
- <button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>
- </button>
- <ul role="menu" class="dropdown-menu dropdown-menu-right">
- <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
- </li>
- <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
- </li>
- </ul>
- </div>
- </div>
- <!-- update-begin--Author:zhoujf Date:20170710 for:TASK #2003 【UI改进】列表加载慢的时候会出现白板 -->
- <style type="text/css">
- <!--
- .proccess{display:none;border:0px solid;border-color:#009900;height:100%;line-height:600px;background-color:#fff;width:100%;text-align:center;margin:100px;position:absolute;top:0;left:0;}
- .proccess b{vertical-align:middle;background:url("plug-in/layer/skin/default/loading-0.gif") no-repeat 0 center;padding-left:55px;display:inline-block;}
- -->
- </style>
- <div class="row J_mainContent" id="content-main" style="margin-left:-13px;">
- <div class="proccess" id="panelloadingDiv"><b> </b></div>
- <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="homepageController.do?homepage" frameborder="0" data-id="homepageController.do?homepage" seamless></iframe>
- </div>
- <!-- update-end--Author:zhoujf Date:20170710 for:TASK #2003 【UI改进】列表加载慢的时候会出现白板 -->
- <!-- update-begin--Author:xuelin Date:20170611 for:TASK #2100 【列表样式美化】【样式专题】Jeecg平台任务 --1下面这条线,变明朗点-------------------- -->
-
- <div class="footer" style="border-top:none;text-align:center;">上海美都环卫服务有限公司</div>
-
- <!-- update-end--Author:xuelin Date:20170611 for:TASK #2100 【列表样式美化】【样式专题】Jeecg平台任务 --1下面这条线,变明朗点---------------------- -->
- </div>
- <!--右侧部分结束-->
- <!--右侧边栏开始
- <div id="right-sidebar">
- <div class="sidebar-container">
- <ul class="nav nav-tabs navs-3">
- <li class="active">
- <a data-toggle="tab" href="#tab-1">
- <i class="fa fa-gear"></i> 主题
- </a>
- </li>
- <li class=""><a data-toggle="tab" href="#tab-2">
- <i class="fa fa-comments-o" aria-hidden="true"></i>通知
- </a>
- </li>
- <li><a data-toggle="tab" href="#tab-3">
- <i class="fa fa-info-circle" aria-hidden="true"></i>公告
- </a>
- </li>
- </ul>
- <div class="tab-content">
- <div id="tab-1" class="tab-pane active">
- <div class="sidebar-title">
- <h3> <i class="fa fa-comments-o"></i> 主题设置</h3>
- <small><i class="fa fa-tim"></i> 你可以从这里选择和预览主题的布局和样式,这些设置会被保存在本地,下次打开的时候会直接应用这些设置。</small>
- </div>
- <div class="skin-setttings">
- <div class="title">主题设置</div>
- <div class="setings-item">
- <span>收起左侧菜单</span>
- <div class="switch">
- <div class="onoffswitch">
- <input type="checkbox" name="collapsemenu" class="onoffswitch-checkbox" id="collapsemenu">
- <label class="onoffswitch-label" for="collapsemenu">
- <span class="onoffswitch-inner"></span>
- <span class="onoffswitch-switch"></span>
- </label>
- </div>
- </div>
- </div>
- <div class="setings-item">
- <span>固定顶部</span>
- <div class="switch">
- <div class="onoffswitch">
- <input type="checkbox" name="fixednavbar" class="onoffswitch-checkbox" id="fixednavbar">
- <label class="onoffswitch-label" for="fixednavbar">
- <span class="onoffswitch-inner"></span>
- <span class="onoffswitch-switch"></span>
- </label>
- </div>
- </div>
- </div>
- <div class="setings-item">
- <span>
- 固定宽度
- </span>
- <div class="switch">
- <div class="onoffswitch">
- <input type="checkbox" name="boxedlayout" class="onoffswitch-checkbox" id="boxedlayout">
- <label class="onoffswitch-label" for="boxedlayout">
- <span class="onoffswitch-inner"></span>
- <span class="onoffswitch-switch"></span>
- </label>
- </div>
- </div>
- </div>
- <div class="title">皮肤选择</div>
- <div class="setings-item default-skin nb">
- <span class="skin-name ">
- <a href="#" class="s-skin-0">
- 默认皮肤
- </a>
- </span>
- </div>
- <div class="setings-item blue-skin nb">
- <span class="skin-name ">
- <a href="#" class="s-skin-1">
- 蓝色主题
- </a>
- </span>
- </div>
- <div class="setings-item yellow-skin nb">
- <span class="skin-name ">
- <a href="#" class="s-skin-3">
- 黄色/紫色主题
- </a>
- </span>
- </div>
- </div>
- </div>
- <div id="tab-2" class="tab-pane">
- <div class="sidebar-title">
- <h3> <i class="fa fa-comments-o"></i> 最新通知<small id="messageCount"><i class="fa fa-tim"></i> 您当前有0条未读通知</small></h3>
- </div>
- <ul class="sidebar-list">
- <li id="messageContent">
- </li>
- <li>
- <a href="javascript:goAllMessage();" id="messageFooter">
- 查看全部
- <i class="icon-arrow-right"></i>
- </a>
- </li>
- </ul>
- </div>
- <div id="tab-3" class="tab-pane">
- <div class="sidebar-title">
- <h3> <i class="fa fa-cube"></i> 最新公告<small id="noticeCount"><i class="fa fa-tim"></i> 您当前有0个公告</small></h3>
- </div>
- <ul class="sidebar-list">
- <li id="noticeContent">
- </li>
- <li>
- <a href="javascript:goAllNotice();" id="noticeFooter">
- 查看所有公告
- <i class="icon-arrow-right"></i>
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- -->
- <!--右侧边栏结束-->
- <!--mini聊天窗口开始
- <%--<div class="small-chat-box fadeInRight animated">
- <div class="heading" draggable="true">
- <small class="chat-date pull-right">
- 2015.9.1
- </small> 与 Beau-zihan 聊天中
- </div>
- <div class="content">
- <div class="left">
- <div class="author-name">
- Beau-zihan <small class="chat-date">
- 10:02
- </small>
- </div>
- <div class="chat-message active">
- 你好
- </div>
- </div>
- <div class="right">
- <div class="author-name">
- 游客
- <small class="chat-date">
- 11:24
- </small>
- </div>
- <div class="chat-message">
- 你好,请问H+有帮助文档吗?
- </div>
- </div>
- <div class="left">
- <div class="author-name">
- Beau-zihan
- <small class="chat-date">
- 08:45
- </small>
- </div>
- <div class="chat-message active">
- 有,购买的H+源码包中有帮助文档,位于docs文件夹下
- </div>
- </div>
- <div class="right">
- <div class="author-name">
- 游客
- <small class="chat-date">
- 11:24
- </small>
- </div>
- <div class="chat-message">
- 那除了帮助文档还提供什么样的服务?
- </div>
- </div>
- <div class="left">
- <div class="author-name">
- Beau-zihan
- <small class="chat-date">
- 08:45
- </small>
- </div>
- <div class="chat-message active">
- 1.所有源码(未压缩、带注释版本);
- <br> 2.说明文档;
- <br> 3.终身免费升级服务;
- <br> 4.必要的技术支持;
- <br> 5.付费二次开发服务;
- <br> 6.授权许可;
- <br> ……
- <br>
- </div>
- </div>
- </div>
- <div class="form-chat">
- <div class="input-group input-group-sm">
- <input type="text" class="form-control"> <span class="input-group-btn"> <button
- class="btn btn-primary" type="button">发送
- </button> </span>
- </div>
- </div>
- </div>--%>
- <%--<div id="small-chat">
- <span class="badge badge-warning pull-right">5</span>
- <a class="open-small-chat">
- <i class="fa fa-comments"></i>
- </a>
- </div>--%>
- -->
- <!--mini聊天窗口结束-->
- </div>
- <!-- 全局js -->
- <script src="plug-in-ui/hplus/js/jquery.min.js?v=2.1.4"></script>
- <script src="plug-in-ui/hplus/js/bootstrap.min.js?v=3.3.6"></script>
- <script src="plug-in-ui/hplus/js/plugins/metisMenu/jquery.metisMenu.js"></script>
- <script src="plug-in-ui/hplus/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
- <script src="plug-in-ui/hplus/js/plugins/layer/layer.min.js"></script>
- <!-- 自定义js -->
- <script src="plug-in-ui/hplus/js/hplus.js?v=4.1.0"></script>
- <!--右键菜单-->
- <script type="text/javascript" src="plug-in/hplus/jquery-smartMenu.js"></script>
- <script type="text/javascript" src="plug-in/hplus/contabs.js"></script>
- <t:base type="tools"></t:base>
- <!-- 第三方插件 -->
- <script src="plug-in-ui/hplus/js/plugins/pace/pace.min.js"></script>
- <!-- Sweet alert -->
- <script src="plug-in-ui/hplus/js/plugins/sweetalert/sweetalert.min.js"></script>
- <script src="plug-in/jquery-plugs/storage/jquery.storageapi.min.js"></script>
- <!-- 弹出TAB -->
- <script type="text/javascript" src="plug-in/hplus/hplus-tab.js"></script>
- <!-- 在线聊天 -->
- <%--@include file="/context/layui.jsp"--%>
- <script>
- <%-- 定义定时器序号 --%>
- let IntervalIndex = 0;
- window.onload=getTime;
- var flg = true;
- function setZhankai(){
- if(flg) {
- document.getElementById("zhankai").src = "plug-in/index/images/shouqi.png";
- flg = false;
- } else {
- document.getElementById("zhankai").src = "plug-in/index/images/zhankai.png";
- flg = true;
- }
-
- }
-
- /**
- * 获取服务器时间
- **/
- function ajax(callback){
- if(typeof callback!='function') return;
- var ajaxObject;
- try{
- ajaxObject=new XMLHttpRequest();
- }catch(e){
- try{
- ajaxObject=new ActiveXObject('Microsoft.XMLHTTP');
- }catch(e){
- }
- }
- if(!ajaxObject) return;
- if(ajaxObject.overrideMimeType){
- ajaxObject.overrideMimeType('text/html');
- }
- //location.href可以换成其他url,但必须是同一个站点的链接,并且文件存在
- ajaxObject.open('get',location.href);
- ajaxObject.send(null);
- ajaxObject.onreadystatechange=function(){
- if(ajaxObject.readyState==4){
- if(ajaxObject.status==200){
- callback(ajaxObject);
- }
- }
- };
- }
-
- /**
- * 动态刷新
- **/
- function getTime(){
- ajax(
- function(ao){
- //只需要AJAX一次,将服务器时间获取后以毫秒为单位保存到一个变量中
- _timestamp=Date.parse(ao.getResponseHeader('Date'));
- _timestamp=_timestamp.toString().match(/^\d$/)?_timestamp:new Date().getTime();
- //设置定时器每过一秒动态刷新一次时间
- setInterval(
- function(){
- IntervalIndex ++;
- if(IntervalIndex % 10 === 0){
- getMyMsgCount();
- }
- let tagMsgCount = window.sessionStorage.getItem("tagMsgCount");
- if(tagMsgCount > 0){
- if(tagMsgCount > 99){
- $("#tagMsgCount").html("99+");
- }else{
- $("#tagMsgCount").html(tagMsgCount);
- }
- }
- //这里可以自定义时间显示格式
- document.getElementById('_timer').innerHTML=new Date(_timestamp).Format("yyyy-MM-dd hh:mm:ss");
- _timestamp+=1000;
- },
- 1000
- );
- }
- );
- }
- /**
- *对Date的扩展,将 Date 转化为指定格式的String
- *月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
- *年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
- *例子:
- *(new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
- *(new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
- **/
- Date.prototype.Format = function (fmt) { //author: meizz
- var o = {
- "M+": this.getMonth() + 1, //月份
- "d+": this.getDate(), //日
- "h+": this.getHours(), //小时
- "m+": this.getMinutes(), //分
- "s+": this.getSeconds(), //秒
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
- "S": this.getMilliseconds() //毫秒
- };
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
- for (var k in o)
- if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
- return fmt;
- }
- function logout(){
- /*bootbox.confirm("<t:mutiLang langKey="common.exit.confirm"/>", function(result) {
- if(result)
- location.href="loginController.do?logout";
- });*/
- /*swal({
- title: "您确定要注销吗?",
- text: "注销后需要重新登录!",
- type: "warning",
- showCancelButton: true,
- confirmButtonColor: "#DD6B55",
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- closeOnConfirm: false,
- closeOnCancel: true
- },
- function (isConfirm) {
- if (isConfirm) {
- //swal("注销成功!", "您已经成功注销。", "success");
- location.href="loginController.do?logout";
- } else {
- return false;
- }
- });*/
- layer.confirm('您确定要注销吗?', {
- btn: ['确定','取消'], //按钮
- shade: false //不显示遮罩
- }, function(){
- location.href="loginController.do?logout";
- }, function(){
- return;
- });
- }
- function clearLocalstorage(){
- var storage=$.localStorage;
- if(!storage)
- storage=$.cookieStorage;
- storage.removeAll();
- //bootbox.alert( "浏览器缓存清除成功!");
- layer.msg("浏览器缓存清除成功!");
- }
- function toJeecgYun(){
- window.open("http://yun.jeecg.org","_blank");
- }
- $(document).ready(function(){
- //加载公告
- // var url = "noticeController.do?getNoticeList";
- // jQuery.ajax({
- // url:url,
- // type:"GET",
- // dataType:"JSON",
- // async: false,
- // success:function(data){
- // if(data.success){
- // var noticeList = data.attributes.noticeList;
- // var noticeCount = data.obj;
- // //加载公告条数
- // if(noticeCount>99){
- // $("#noticeCount").html("99+");
- // }else{
- // $("#noticeCount").html(noticeCount);
- // }
- // //加载公告提示
- // var noticeTip = "";
- // noticeTip += "<i class='icon-warning-sign'></i>";
- // noticeTip += noticeCount+" "+data.attributes.tip;
- // $("#noticeTip").html(noticeTip);
- //
- // //加载公告条目
- // var noticeContent = "";
- // if(noticeList.length > 0){
- // for(var i=0;i<noticeList.length;i++){
- // noticeContent +="<li><a href='javascript:goNotice(""+noticeList[i].id+"")' ";
- // noticeContent +="style='word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;'>";
- // noticeContent +="<i class='btn btn-xs btn-primary fa fa-user'></i>";
- // noticeContent +=" "+noticeList[i].noticeTitle + "</a></li></ul></li>";
- // }
- // }
- // //alert(noticeContent);
- // $("#noticeContent").html(noticeContent);
- //
- // //加载公告底部文字
- // var noticeSeeAll = data.attributes.seeAll +"<i class='ace-icon fa fa-arrow-right'></i>";
- // $("#noticeFooter").html(noticeSeeAll);
- // }
- // }
- // });
- //加载消息
- // var url = "tSSmsController.do?getMessageList";
- // $.ajax({
- // url:url,
- // type:"GET",
- // dataType:"JSON",
- // async: false,
- // success:function(data){
- // if(data.success){
- // var messageList = data.attributes.messageList;
- // var messageCount = data.obj;
- // //加载消息条数
- // if(messageCount>99){
- // $("#messageCount").html("99+");
- // }else{
- // $("#messageCount").html(messageCount);
- // }
- // //加载消息tip提示
- // var messageTip = "";
- // messageTip += "<i class='ace-icon fa fa-envelope-o'></i>";
- // messageTip += messageCount+" "+data.attributes.tip;
- // $("#messageTip").html(messageTip);
- //
- // //加载消息条目(有限)
- // var messageContent = "";
- // if(messageList.length > 0){
- // for(var i=0;i<messageList.length;i++){
- // messageContent +="<li><a href='javascript:goMessage(""+messageList[i].id+"")' class='clearfix'>";
- // messageContent +="<img src='plug-in/ace/avatars/avatar3.png' class='msg-photo' alt='Alex’s Avatar' />";
- // messageContent +="<span class='msg-body'><span class='msg-title'>";
- // messageContent +="<span class='blue'>"+messageList[i].esSender+":</span>";
- // messageContent += messageList[i].esTitle + "</span>";
- // messageContent +="<span class='msg-time'><i class='ace-icon fa fa-clock-o'></i><span>"+messageList[i].esSendtimeTxt+"</span></span>";
- // messageContent +="</span></a><input id='"+messageList[i].id+"_title' type='hidden' value='"+messageList[i].esTitle+"'>";
- // messageContent +="<input id='"+messageList[i].id+"_status' type='hidden' value='"+messageList[i].esStatus+"'>";
- // messageContent +="<input id='"+messageList[i].id+"_content' type='hidden' value='"+messageList[i].esContent+"'></li>";
- // }
- // }
- // $("#messageContent").html(messageContent);
- //
- // //加载消息底部文字
- // var messageSeeAll = data.attributes.seeAll +"<i class='ace-icon fa fa-arrow-right'></i>";
- // $("#messageFooter").html(messageSeeAll);
- // }
- // }
- // });
-
- //update-begin--Author:zhoujf Date:20170309 for:TASK #975 【首页提醒】我的任务
- //加载待办任务
- // del-刘梦祥-2022年8月2日13:20:51(暂时删除无用请求)
- // var url = "taskController.do?getTaskCount";
- // jQuery.ajax({
- // url:url,
- // type:"GET",
- // dataType:"JSON",
- // async: false,
- // success:function(data){
- // if(data.success){
- // var taskCount = data.obj;
- // //加载待办任务条数
- // if(taskCount > 0){
- // if(taskCount>99){
- // $("#tagMsgCount").html("99+");
- // }else{
- // $("#tagMsgCount").html(taskCount);
- // }
- // document.getElementById('tagMsgCountBox').style.display = "block";
- // }else{
- // document.getElementById('tagMsgCountBox').style.display = "none";
- // }
- // }
- // }
- // });
- //update-begin--Author:zhoujf Date:20170309 for:TASK #975 【首页提醒】我的任务
- getMyMsgCount();
- });
- function getMyMsgCount(){
- var url = "sysMsgController.do?getMyMsgCount";
- jQuery.ajax({
- url:url,
- type:"GET",
- dataType:"JSON",
- async: false,
- success:function(data){
- if(data && data > 0){
- window.sessionStorage.setItem("tagMsgCount",data)
- if(data>99){
- $("#tagMsgCount").html("99+");
- }else{
- $("#tagMsgCount").html(data);
- }
- document.getElementById('tagMsgCountBox').style.display = "block";
- }else{
- window.sessionStorage.setItem("tagMsgCount",0)
- hideTag();
- }
- }
- });
- };
- function hideTag(){
- // add-刘梦祥-2022年8月2日17:13:41(添加操作,隐藏tag标记)
- document.getElementById('tagMsgCountBox').style.display = "none";
- };
- function goAllNotice(){
- var addurl = "noticeController.do?noticeList";
- createdetailwindow("公告", addurl, 800, 400);
- }
- function goNotice(id){
- var addurl = "noticeController.do?goNotice&id="+id;
- createdetailwindow("通知公告详情", addurl, 750, 600);
- }
- function goAllMessage(){
- var addurl = "tSSmsController.do?getSysInfos";
- createdetailwindow("通知", addurl, 800, 400);
- }
- function goMessage(id){
- var title = $("#"+id+"_title").val();
- var content = $("#"+id+"_content").val();
- $("#msgId").val(id);
- $("#msgTitle").html(title);
- $("#msgContent").html(content);
- var status = $("#"+id+"_status").val();
- if(status==1){
- $("#msgStatus").html("未读");
- }else{
- $("#msgStatus").html("已读");
- }
- $('.theme-popover-mask').fadeIn(100);
- $('.theme-popover').slideDown(200);
- }
- function readMessage(){
- var msgId = $("#msgId").val();
- var url = "tSSmsController.do?readMessage";
- $.ajax({
- url:url,
- type:"GET",
- dataType:"JSON",
- data:{
- messageId:msgId
- },
- success:function(data){
- if(data.success){
- $("#msgStatus").html("已读");
- $("#"+msgId+"_status").val('2');
- }
- }
- });
- }
- //update-begin--Author:xuelin Date:20170328 for:[#1820]顶部个人信息弹出层不回缩现象--------------------
- //个人信息弹出层回缩
- function frameBodyClick(){
- $(".count-info").attr("aria-expanded","false").parent().removeClass("open");
- }
- //新增iframe中绑定click事件回调父级函数
- function bindFrameClick(){
- $(".J_iframe").contents().find("body").attr("onclick", "parent.frameBodyClick()");
- }
- //update-end--Author:xuelin Date:20170328 for:[#1820]顶部个人信息弹出层不回缩现象----------------------
- /* $(function(){
- console.log(3);
- }); */
- </script>
- </body>
- <style>
- #tagMsgCountBox{
- position: absolute;
- top: 0.5rem;
- right: 0;
- border-radius: 2rem;
- background-color: #F56C6CCC;
- text-align: center;
- color: #FFFFFFFF;
- border: 1px solid #F56C6C;
- display: none;
- animation-name: tagAnimation;
- animation-duration: 5s;
- animation-iteration-count: infinite;
- }
- #tagMsgCount{
- display: flex;
- align-content: center;
- justify-content: center;
- align-items: center;
- padding: 0 0.65rem;
- }
- @keyframes tagAnimation {
- 0% {top: 0.5rem;}
- 3% {top: 0rem;}
- 6% {top: 0.5rem;}
- 9% {top: 0.3rem;}
- 12% {top: 0.5rem;}
- 100% {top: 0.5rem;}
- }
- </style>
- </html>
|