You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
309 lines
14 KiB
Plaintext
309 lines
14 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>驰骋BPM</title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<script src="../../WF/Scripts/jquery-1.11.0.min.js"></script>
|
|
<!--layui-->
|
|
<link href="../layuiadmin/layui/css/layui.css" rel="stylesheet" type="text/css" />
|
|
<link href="../layuiadmin/style/admin.css" rel="stylesheet" type="text/css" />
|
|
<script src="../layuiadmin/layui/layui.js" type="text/javascript"></script>
|
|
<link href="../layuiadmin/layui/css/modules/layer/default/layer.css" rel="stylesheet" />
|
|
<script src="../layuiadmin/layui/lay/modules/layer.js"></script>
|
|
<!-- 引用通用的js文件. -->
|
|
<script src="../../WF/Scripts/QueryString.js" type="text/javascript"></script>
|
|
<script src="../../WF/Scripts/config.js?v=1.0" type="text/javascript"></script>
|
|
<script src="../../WF/Comm/Gener.js?v=1.0" type="text/javascript"></script>
|
|
|
|
<!-- 处理多语言 -->
|
|
<script src="../../WF/Data/lang/load.js" type="text/javascript"></script>
|
|
<script src="../../WF/Data/lang/lang.js" type="text/javascript"></script>
|
|
<script src="../../WF/Data/lang/js/zh-cn.js" type="text/javascript"></script>
|
|
<script type="text/javascript" language="javascript">
|
|
layui.config({
|
|
base: '../layuiadmin/' //静态资源所在路径
|
|
}).extend({
|
|
index: 'lib/index' //主入口模块
|
|
}).use('index');
|
|
//页面启动函数.
|
|
$(function () {
|
|
|
|
var webuser = new WebUser();
|
|
|
|
$("#OrgWX").hide();
|
|
|
|
// if (webuser.IsAdmin == "0")
|
|
// $("#OrgWX").hide();
|
|
|
|
//修改微信的名字,因为使用接口获取不到名字.
|
|
var webUser = new WebUser();
|
|
if (webUser.No === webUser.Name || webUser.Name == "") {
|
|
while (true) {
|
|
if (webuser.No == "admin")
|
|
break;
|
|
|
|
var val = promptGener('初次登陆,您的姓名:', webUser.No);
|
|
if (val == null || val == undefined || val == webUser.Name) {
|
|
continue;
|
|
}
|
|
|
|
var handler = new HttpHandler("BP.Cloud.HttpHandler.CCMobilePortal");
|
|
handler.AddPara("Name", val);
|
|
var data = handler.DoMethodReturnString("Home_EditUserName");
|
|
webUser.Name = val;
|
|
break;
|
|
}
|
|
}
|
|
|
|
//修改部门名称.
|
|
if (webUser.FK_DeptName == webUser.FK_Dept || webUser.FK_DeptName == '' || webUser.FK_DeptName == null) {
|
|
while (true) {
|
|
|
|
var val = promptGener('初次登陆,您的部门/科室名字:', "xx部/科");
|
|
if (val == null || val == undefined || val == "xx部/科") {
|
|
continue;
|
|
}
|
|
|
|
var handler = new HttpHandler("BP.Cloud.HttpHandler.CCMobilePortal");
|
|
handler.AddPara("Name", val);
|
|
var data = handler.DoMethodReturnString("Home_EditDeptName");
|
|
webUser.FK_DeptName = val;
|
|
break;
|
|
}
|
|
}
|
|
|
|
//组织名称.
|
|
$("#OrgLog").html("<span>" + webuser.OrgName + "</span>");
|
|
//登陆用户名
|
|
$("#username1").html(webuser.Name);
|
|
|
|
// if (webuser.OrgName)
|
|
// {
|
|
$("#proInfo").hide();
|
|
//}
|
|
|
|
//获取菜单数据
|
|
var handler = new HttpHandler("BP.Cloud.HttpHandler.App_Portal");
|
|
var data = handler.DoMethodReturnString("Home_Menu");
|
|
if (data.indexOf("err@") == 0) {
|
|
layer.alert(data);
|
|
console.log(data);
|
|
return;
|
|
}
|
|
|
|
data = JSON.parse(data);
|
|
|
|
var sid = GetQueryString("Token");
|
|
|
|
var sorts = data.Sorts;
|
|
var menus = data.Menus;
|
|
var _html = "";
|
|
for (var i = 0; i < sorts.length; i++) {
|
|
var sort = sorts[i];
|
|
_html += '<li data-name="' + sort.No + '" class="layui-nav-item layui-nav-itemed">';
|
|
_html += '<a href="javascript:;" lay-tips="' + sort.Name + '" lay-direction="2">';
|
|
_html += "<img src='./MenuImg/" + sort.ICON + "' onerror=\"javascript:this.src = './MenuImg/DefaultDir.png';\" style='width:24px;height:24px;position: absolute;top:60%;left: 20px;margin-top:-19px;filter:contrast(10%) brightness(180%)'/>";
|
|
_html += '<cite>' + sort.Name + '</cite>';
|
|
_html += '</a>';
|
|
_html += '<dl class="layui-nav-child">'
|
|
$.each(menus, function (indx, item) {
|
|
if (item.SortNo == sort.No) {
|
|
_html += '<dd data-name="' + item.No + '">';
|
|
if (item.Url.indexOf('?') == -1)
|
|
_html += "<a lay-href='" + item.Url + "?Token" + sid + "'><img src='./MenuImg/" + item.ICON + "' onerror=\"javascript:this.src = './MenuImg/Default.png';\" style='width:16px;height:16px;padding-right:5px;filter:contrast(10%) brightness(180%)'/>" + item.Name + "</a>";
|
|
else
|
|
_html += "<a lay-href='" + item.Url + "&Token=" + sid + "'><img src='./MenuImg/" + item.ICON + "' onerror=\"javascript:this.src = './MenuImg/Default.png';\" style='width:16px;height:16px;padding-right:5px;filter:contrast(10%) brightness(180%)'/>" + item.Name + "</a>";
|
|
|
|
|
|
_html += '</dd>';
|
|
}
|
|
});
|
|
_html += '</dl>';
|
|
_html += '</li>';
|
|
}
|
|
|
|
/**
|
|
* <label class="label label-warning pull-right" id="Todolist_EmpWorks" style="
|
|
background-color: #f0ad4e;
|
|
color: #FFF;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
padding: 3px 8px;
|
|
text-shadow: none;
|
|
text-align: right;
|
|
margin-left: 70px;
|
|
">0</label>
|
|
*/
|
|
|
|
$("#LAY-system-side-menu").html(_html);
|
|
|
|
handler = new HttpHandler("BP.Cloud.HttpHandler.App_Portal");
|
|
data = handler.DoMethodReturnString("Home_Init");
|
|
if (data.indexOf("err@") == 0) {
|
|
layer.alert(data);
|
|
console.log(data);
|
|
return;
|
|
}
|
|
|
|
data = JSON.parse(data);
|
|
$("#TodoList_Num").html(data.Todolist_EmpWorks);
|
|
|
|
});
|
|
|
|
|
|
function logOut() {
|
|
|
|
var orgNo = GetQueryString("OrgNo");
|
|
if (orgNo == null) {
|
|
var webUser = new WebUser();
|
|
orgNo = webUser.OrgNo;
|
|
}
|
|
|
|
//window.location.href = "/Default.htm?OrgNo=" + orgNo;
|
|
SetHref( "/LoginWebSite.htm?OrgNo=" + orgNo);
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body class="layui-layout-body">
|
|
<div id="LAY_app">
|
|
<div class="layui-layout layui-layout-admin">
|
|
<div class="layui-header">
|
|
<!-- 头部区域 -->
|
|
<ul class="layui-nav layui-layout-left">
|
|
<li class="layui-nav-item layadmin-flexible" lay-unselect>
|
|
<a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
|
|
<i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
|
|
</a>
|
|
</li>
|
|
<!--<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
|
<a href="http://www.layui.com/admin/" target="_blank" title="前台">
|
|
<i class="layui-icon layui-icon-website"></i>
|
|
</a>
|
|
</li>-->
|
|
<li class="layui-nav-item" lay-unselect>
|
|
<a href="javascript:;" layadmin-event="refresh" title="刷新">
|
|
<i class="layui-icon layui-icon-refresh-3"></i>
|
|
</a>
|
|
</li>
|
|
<!--<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
|
<input type="text" placeholder="搜索..." autocomplete="off" class="layui-input layui-input-search" layadmin-event="serach" lay-action="template/search.html?keywords=">
|
|
</li>-->
|
|
</ul>
|
|
<ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
|
|
|
|
<li class="layui-nav-item" lay-unselect id="OrgWX">
|
|
<a lay-href="/App/Org/OrganizationWeiXin.htm" layadmin-event="orgNo" lay-text="组织结构" title="组织结构">
|
|
<i class="layui-icon layui-icon-group"></i>
|
|
</a>
|
|
</li>
|
|
|
|
<!--<li class="layui-nav-item" lay-unselect>
|
|
<a lay-href="/App/Apps.htm" layadmin-event="yingyong" lay-text="流程应用" title="流程应用">
|
|
<i class="layui-icon layui-icon-template-1"></i>
|
|
|
|
</a>
|
|
</li>-->
|
|
|
|
<li class="layui-nav-item" lay-unselect>
|
|
<a lay-href="/App/Todolist.htm" layadmin-event="message" lay-text="待办" title="待办">
|
|
<i class="layui-icon layui-icon-notice"></i>
|
|
<!-- 如果有新消息,则显示小圆点 -->
|
|
<span class="layui-badge-dot"></span>
|
|
</a>
|
|
</li>
|
|
<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
|
<a href="javascript:;" layadmin-event="theme">
|
|
<i class="layui-icon layui-icon-theme"></i>
|
|
</a>
|
|
</li>
|
|
<!--<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
|
<a href="javascript:;" layadmin-event="note">
|
|
<i class="layui-icon layui-icon-note"></i>
|
|
</a>
|
|
</li>-->
|
|
<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
|
<a href="javascript:;" layadmin-event="fullscreen">
|
|
<i class="layui-icon layui-icon-screen-full"></i>
|
|
</a>
|
|
</li>
|
|
<li class="layui-nav-item" lay-unselect style="margin-right:20px;">
|
|
<a href="javascript:;">
|
|
<cite id="username1">用户</cite>
|
|
</a>
|
|
<dl class="layui-nav-child" id="proInfo">
|
|
|
|
<dd><a lay-href="../../WF/Setting/Default.htm">基本资料</a></dd>
|
|
<dd><a lay-href="../../WF/Setting/ChangePassword.htm">修改密码</a></dd>
|
|
<dd><a href="../../CCMobilePortal/Home.htm" target="_parent" >手机端</a></dd>
|
|
|
|
<!--<hr>-->
|
|
<dd layadmin-event="logout" style="text-align: center;"><a href="javascript:;" onclick="logOut()">退出</a></dd>
|
|
</dl>
|
|
</li>
|
|
|
|
<!--<li class="layui-nav-item layui-hide-xs" lay-unselect>
|
|
<a href="javascript:;" layadmin-event="about"><i class="layui-icon layui-icon-more-vertical"></i></a>
|
|
</li>
|
|
<li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>
|
|
<a href="javascript:;" layadmin-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>
|
|
</li>-->
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- 侧边菜单 -->
|
|
<div class="layui-side layui-side-menu">
|
|
<div class="layui-side-scroll">
|
|
<div class="layui-logo" lay-href="./Main.htm" id="OrgLog">
|
|
<span>CCFlow</span>
|
|
</div>
|
|
|
|
<ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 页面标签 -->
|
|
<div class="layadmin-pagetabs" id="">
|
|
<div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
|
|
<div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
|
|
<div class="layui-icon layadmin-tabs-control layui-icon-down">
|
|
<ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
|
|
<li class="layui-nav-item" lay-unselect>
|
|
<a href="javascript:;"></a>
|
|
<dl class="layui-nav-child layui-anim-fadein">
|
|
<dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
|
|
<dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
|
|
<dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
|
|
<ul class="layui-tab-title" id="LAY_app_tabsheader">
|
|
<li lay-id="./Main.htm" lay-attr="./Main.htm" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 主体内容 -->
|
|
<div class="layui-body" id="LAY_app_body">
|
|
<div class="layadmin-tabsbody-item layui-show">
|
|
<iframe src="./Main.htm" frameborder="0" class="layadmin-iframe" height="100%"></iframe>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 辅助元素,一般用于移动设备下遮罩 -->
|
|
<div class="layadmin-body-shade" layadmin-event="shade"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
|
|
</html>
|