旧版报表、仓库
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.
 
 
 
 
 

1744 lines
81 KiB

@{
Layout = "";
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>HMES 2.0</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="~/3rd/AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="~/3rd/AdminLTE/bower_components/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="~/3rd/AdminLTE/bower_components/Ionicons/css/ionicons.min.css">
<!-- jvectormap -->
<link rel="stylesheet" href="~/3rd/AdminLTE/bower_components/jvectormap/jquery-jvectormap.css">
<!-- Theme style -->
<link rel="stylesheet" href="~/3rd/AdminLTE/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="~/3rd/AdminLTE/dist/css/skins/_all-skins.min.css">
<link href="~/3rd/toastr/build/toastr.min.css" rel="stylesheet" />
<link href="~/CSS/mycss.css?v=9" rel="stylesheet" />
<link rel="stylesheet" href="/3rd/AdminLTE/plugins/iCheck/square/blue.css">
<link rel="icon" href="~/3rd/AdminLTE/plugins/iCheck/square/hllogo.ico" type="image/x-icon" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
@*<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">*@
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="index2.html" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>H</b>L</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>HuLi</b>MES</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- Messages: style can be found in dropdown.less-->
@*<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-envelope-o"></i>
<span class="label label-success">4</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have 4 messages</li>
<li>*@
<!-- inner menu: contains the actual data -->
@*<ul class="menu">
<li>*@
<!-- start message -->
@*<a href="#">
<div class="pull-left">
<img src="~/3rd/AdminLTE/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
</div>
<h4>
Support Team
<small><i class="fa fa-clock-o"></i> 5 mins</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>*@
<!-- end message -->
@*<li>
<a href="#">
<div class="pull-left">
<img src="~/3rd/AdminLTE/dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
</div>
<h4>
AdminLTE Design Team
<small><i class="fa fa-clock-o"></i> 2 hours</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<li>
<a href="#">
<div class="pull-left">
<img src="~/3rd/AdminLTE/dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
</div>
<h4>
Developers
<small><i class="fa fa-clock-o"></i> Today</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<li>
<a href="#">
<div class="pull-left">
<img src="~/3rd/AdminLTE/dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
</div>
<h4>
Sales Department
<small><i class="fa fa-clock-o"></i> Yesterday</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>
<li>
<a href="#">
<div class="pull-left">
<img src="~/3rd/AdminLTE/dist/img/user4-128x128.jpg" class="img-circle" alt="User Image">
</div>
<h4>
Reviewers
<small><i class="fa fa-clock-o"></i> 2 days</small>
</h4>
<p>Why not buy a new awesome theme?</p>
</a>
</li>
</ul>
</li>
<li class="footer"><a href="#">See All Messages</a></li>
</ul>
</li>*@
<!-- Notifications: style can be found in dropdown.less -->
@*<li class="dropdown notifications-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-bell-o"></i>
<span class="label label-warning">10</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have 10 notifications</li>
<li>*@
<!-- inner menu: contains the actual data -->
@*<ul class="menu">
<li>
<a href="#">
<i class="fa fa-users text-aqua"></i> 5 new members joined today
</a>
</li>
<li>
<a href="#">
<i class="fa fa-warning text-yellow"></i> Very long description here that may not fit into the
page and may cause design problems
</a>
</li>
<li>
<a href="#">
<i class="fa fa-users text-red"></i> 5 new members joined
</a>
</li>
<li>
<a href="#">
<i class="fa fa-shopping-cart text-green"></i> 25 sales made
</a>
</li>
<li>
<a href="#">
<i class="fa fa-user text-red"></i> You changed your username
</a>
</li>
</ul>
</li>
<li class="footer"><a href="#">View all</a></li>
</ul>
</li>*@
<!-- Tasks: style can be found in dropdown.less -->
@*<li class="dropdown tasks-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-flag-o"></i>
<span class="label label-danger">9</span>
</a>
<ul class="dropdown-menu">
<li class="header">You have 9 tasks</li>
<li>*@
<!-- inner menu: contains the actual data -->
@*<ul class="menu">
<li>*@
<!-- Task item -->
@*<a href="#">
<h3>
Design some buttons
<small class="pull-right">20%</small>
</h3>
<div class="progress xs">
<div class="progress-bar progress-bar-aqua" style="width: 20%" role="progressbar"
aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
<span class="sr-only">20% Complete</span>
</div>
</div>
</a>
</li>*@
<!-- end task item -->
@*<li>*@
<!-- Task item -->
@*<a href="#">
<h3>
Create a nice theme
<small class="pull-right">40%</small>
</h3>
<div class="progress xs">
<div class="progress-bar progress-bar-green" style="width: 40%" role="progressbar"
aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
<span class="sr-only">40% Complete</span>
</div>
</div>
</a>
</li>*@
<!-- end task item -->
@*<li>*@
<!-- Task item -->
@*<a href="#">
<h3>
Some task I need to do
<small class="pull-right">60%</small>
</h3>
<div class="progress xs">
<div class="progress-bar progress-bar-red" style="width: 60%" role="progressbar"
aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
<span class="sr-only">60% Complete</span>
</div>
</div>
</a>
</li>*@
<!-- end task item -->
@*<li>*@
<!-- Task item -->
@*<a href="#">
<h3>
Make beautiful transitions
<small class="pull-right">80%</small>
</h3>
<div class="progress xs">
<div class="progress-bar progress-bar-yellow" style="width: 80%" role="progressbar"
aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">
<span class="sr-only">80% Complete</span>
</div>
</div>
</a>
</li>*@
<!-- end task item -->
@*</ul>
</li>
<li class="footer">
<a href="#">View all tasks</a>
</li>
</ul>
</li>*@
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="~/3rd/AdminLTE/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
<span class="hidden-xs" id="userName1">HuLi-MES</span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
<img src="~/3rd/AdminLTE/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
<p>
@*Alexander Pierce - Web Developer
<small>Member since Nov. 2012</small>*@
<span id="userName2">HuLi-MES</span>
</p>
</li>
<!-- Menu Body -->
@*<li class="user-body">*@
@*<div class="row">
<div class="col-xs-4 text-center">
<a href="#">Followers</a>
</div>
<div class="col-xs-4 text-center">
<a href="#">Sales</a>
</div>
<div class="col-xs-4 text-center">
<a href="#">Friends</a>
</div>
</div>*@
<!-- /.row -->
@*</li>*@
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-left">
<a href="#" class="btn btn-default btn-flat">Profile</a>
</div>
<div class="pull-right">
<a href="#" class="btn btn-default btn-flat" id="btnSignout">Sign out</a>
</div>
</li>
</ul>
</li>
<!-- Control Sidebar Toggle Button -->
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
</li>
</ul>
</div>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<img src="~/3rd/AdminLTE/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
</div>
<div class="pull-left info">
@*<p>Alexander Pierce</p>*@
<P id="userName3">HuLi-MES</P>
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
</div>
</div>
<!-- search form -->
<form action="#" method="get" class="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search...">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul class="sidebar-menu" data-widget="tree"></ul>
</section>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper" id="content-wrapper" style="min-height: 421px;">
<!--bootstrap tab风格 多标签页-->
<div class="content-tabs">
<button class="roll-nav roll-left tabLeft" onclick="scrollTabLeft()">
<i class="fa fa-backward"></i>
</button>
<nav class="page-tabs menuTabs tab-ui-menu" id="tab-menu">
<div class="page-tabs-content" style="margin-left: 0px;">
</div>
</nav>
<button class="roll-nav roll-right tabRight" onclick="scrollTabRight()">
<i class="fa fa-forward" style="margin-left: 3px;"></i>
</button>
<div class="btn-group roll-nav roll-right">
<button class="dropdown tabClose" data-toggle="dropdown">
页签操作<i class="fa fa-caret-down" style="padding-left: 3px;"></i>
</button>
<ul class="dropdown-menu dropdown-menu-right" style="min-width: 128px;">
<li><a class="tabReload" href="javascript:refreshTab();">刷新当前</a></li>
<li><a class="tabCloseCurrent" href="javascript:closeCurrentTab();">关闭当前</a></li>
<li><a class="tabCloseAll" href="javascript:closeOtherTabs(true);">全部关闭</a></li>
<li><a class="tabCloseOther" href="javascript:closeOtherTabs();">除此之外全部关闭</a></li>
</ul>
</div>
<button class="roll-nav roll-right fullscreen" onclick="App.handleFullScreen()">
<i class="fa fa-arrows-alt"></i>
</button>
</div>
<div class="content-iframe " style="background-color: #ffffff; ">
<div class="tab-content " id="tab-content">
</div>
</div>
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> 2.4.0
</div>
<strong>Copyright &copy; 2014-2016 <a href="">HuLi Tech</a>.</strong> All rights
reserved.
</footer>
<!-- Modal -->
<div class="modal fade" id="RoleModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="box box-primary ">
<div class="box-header with-border">
<div class="box-tools pull-right">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div>
<h3 class="box-title" id="myModalLabel">身份确认</h3>
</div>
<div class="box-body">
<div class="form-group">
<label for="Email">用户名</label>
<input type="text" class="form-control" id="Email" placeholder="用户名">
</div>
<div class="form-group">
<label for="Password">密码</label>
<input type="password" class="form-control" id="Password" placeholder="密码">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="btnSave">确定</button>
</div>
</div>
</div>
</div>
<!-- Control Sidebar -->
@*<aside class="control-sidebar control-sidebar-dark">
<!-- Create the tabs -->
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
<li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
<li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<!-- Home tab content -->
<div class="tab-pane" id="control-sidebar-home-tab">
<h3 class="control-sidebar-heading">Recent Activity</h3>
<ul class="control-sidebar-menu">
<li>
<a href="javascript:void(0)">
<i class="menu-icon fa fa-birthday-cake bg-red"></i>
<div class="menu-info">
<h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
<p>Will be 23 on April 24th</p>
</div>
</a>
</li>
<li>
<a href="javascript:void(0)">
<i class="menu-icon fa fa-user bg-yellow"></i>
<div class="menu-info">
<h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
<p>New phone +1(800)555-1234</p>
</div>
</a>
</li>
<li>
<a href="javascript:void(0)">
<i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
<div class="menu-info">
<h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
<p>nora@example.com</p>
</div>
</a>
</li>
<li>
<a href="javascript:void(0)">
<i class="menu-icon fa fa-file-code-o bg-green"></i>
<div class="menu-info">
<h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
<p>Execution time 5 seconds</p>
</div>
</a>
</li>
</ul>
<!-- /.control-sidebar-menu -->
<h3 class="control-sidebar-heading">Tasks Progress</h3>
<ul class="control-sidebar-menu">
<li>
<a href="javascript:void(0)">
<h4 class="control-sidebar-subheading">
Custom Template Design
<span class="label label-danger pull-right">70%</span>
</h4>
<div class="progress progress-xxs">
<div class="progress-bar progress-bar-danger" style="width: 70%"></div>
</div>
</a>
</li>
<li>
<a href="javascript:void(0)">
<h4 class="control-sidebar-subheading">
Update Resume
<span class="label label-success pull-right">95%</span>
</h4>
<div class="progress progress-xxs">
<div class="progress-bar progress-bar-success" style="width: 95%"></div>
</div>
</a>
</li>
<li>
<a href="javascript:void(0)">
<h4 class="control-sidebar-subheading">
Laravel Integration
<span class="label label-warning pull-right">50%</span>
</h4>
<div class="progress progress-xxs">
<div class="progress-bar progress-bar-warning" style="width: 50%"></div>
</div>
</a>
</li>
<li>
<a href="javascript:void(0)">
<h4 class="control-sidebar-subheading">
Back End Framework
<span class="label label-primary pull-right">68%</span>
</h4>
<div class="progress progress-xxs">
<div class="progress-bar progress-bar-primary" style="width: 68%"></div>
</div>
</a>
</li>
</ul>
<!-- /.control-sidebar-menu -->
</div>
<!-- /.tab-pane -->
<!-- Settings tab content -->
<div class="tab-pane" id="control-sidebar-settings-tab">
<form method="post">
<h3 class="control-sidebar-heading">General Settings</h3>
<div class="form-group">
<label class="control-sidebar-subheading">
Report panel usage
<input type="checkbox" class="pull-right" checked>
</label>
<p>
Some information about this general settings option
</p>
</div>
<!-- /.form-group -->
<div class="form-group">
<label class="control-sidebar-subheading">
Allow mail redirect
<input type="checkbox" class="pull-right" checked>
</label>
<p>
Other sets of options are available
</p>
</div>
<!-- /.form-group -->
<div class="form-group">
<label class="control-sidebar-subheading">
Expose author name in posts
<input type="checkbox" class="pull-right" checked>
</label>
<p>
Allow the user to show his name in blog posts
</p>
</div>
<!-- /.form-group -->
<h3 class="control-sidebar-heading">Chat Settings</h3>
<div class="form-group">
<label class="control-sidebar-subheading">
Show me as online
<input type="checkbox" class="pull-right" checked>
</label>
</div>
<!-- /.form-group -->
<div class="form-group">
<label class="control-sidebar-subheading">
Turn off notifications
<input type="checkbox" class="pull-right">
</label>
</div>
<!-- /.form-group -->
<div class="form-group">
<label class="control-sidebar-subheading">
Delete chat history
<a href="javascript:void(0)" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
</label>
</div>
<!-- /.form-group -->
</form>
</div>
<!-- /.tab-pane -->
</div>
</aside>*@
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
@*<div class="control-sidebar-bg"></div>*@
</div>
<!-- ./wrapper -->
<script src="~/3rd/jQuery/jquery.min.js"></script>
<!-- jQuery 3 -->
<script src="~/3rd/AdminLTE/bower_components/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="~/3rd/AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="~/3rd/AdminLTE/bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
@*<script src="~/3rd/AdminLTE/dist/js/adminlte.min.js"></script>*@
<script src="~/3rd/AdminLTE/dist/js/adminlte.js?v=4"></script>
<!-- Sparkline -->
<script src="~/3rd/AdminLTE/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="~/3rd/AdminLTE/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="~/3rd/AdminLTE/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- SlimScroll -->
<script src="~/3rd/AdminLTE/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- ChartJS -->
<script src="~/3rd/AdminLTE/bower_components/chart.js/Chart.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
@*<script src="~/3rd/AdminLTE/dist/js/pages/dashboard2.js"></script>*@
<!-- AdminLTE for demo purposes -->
@*<script src="~/3rd/AdminLTE/dist/js/demo.js"></script>*@
<script src="~/3rd/node_modules/es6-shim/es6-shim.min.js"></script>
<script src="~/3rd/whatwg-fetch/dist/fetch.umd.js"></script>
<script src="~/3rd/iframe/app_iframe.js?n=19"></script>
<script src="~/3rd/toastr/build/toastr.min.js"></script>
<script src="~/3rd/jQuery_cookie/jquery.cookie.js"></script>
<script>
$(function () {
//add by NingYuQi 显示用户名
var userid = $.cookie('userid');
console.log(userid);
$.ajax({
url: "/api/Account/GetUserName",
type: "Post",
dataType: "json",
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ userid: userid }),
async: false,
success: function (resdata) {
console.log(resdata);
$('#userName1').text(resdata.UserName);
$('#userName2').text(resdata.UserName);
$('#userName3').text(resdata.UserName);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
}
})
// console.log(window.location);
//App.setbasePath("../");
//App.setGlobalImgPath("dist/img/");
addTabs({
id: '10008',
title: '欢迎页',
close: false,
url: '',
urlType: "abosulte"
});
//App.fixIframeCotent();
//初始化iframe内容页高度
var handleIframeContent = function () {
var ht = $(window).height();//获取浏览器窗口的整体高度;
var $footer = $(".main-footer");
var $header = $(".main-header");
var $tabs = $(".content-tabs");
var height = App.getViewPort().height - $footer.outerHeight() - $header.outerHeight();
if ($tabs.is(":visible")) {
height = height - $tabs.outerHeight(true) - 5;
}
height = height - 1;
$(".tab_iframe").css({
height: height,
width: "100%"
});
//var width = App.getViewPort().width- $(".page-sidebar-menu").width();
/*$(".tab_iframe").css({
});*/
};
//初始化内容页layout组件高度
var handleIframeLayoutHeight = function () {
var height = App.getViewPort().height - $('.page-footer').outerHeight() - $('.page-header').outerHeight() - $(".content-tabs").height();
// $("#layout").css({ "height": height });
return height;
};
handleIframeContent();
handleIframeLayoutHeight()
/*addTabs({
id: '10009',
title: '404',
close: true,
url: 'UI/buttons_iframe2.html'
});*/
/*
<li class="treeview">
<a href="#">
<i class="fa fa-edit"></i> <span>Forms</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li><a href="forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
<li><a href="forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
<li><a href="forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
</ul>
</li>
*/
var header = {
id: "9000",
text: "header",
icon: "",
isHeader: true
};
var menus = [
//{
// id: "9001",
// text: "UI Elements",
// icon: "fa fa-laptop",
// children: [
// {
// id: "90011",
// text: "buttons",
// icon: "fa fa-circle-o",
// url: "UI/buttons_iframe.html",
// targetType: "iframe-tab"
// },
// {
// id: "90012",
// text: "icons",
// url: "UI/icons_iframe.html",
// targetType: "iframe-tab",
// icon: "fa fa-circle-o"
// },
// {
// id: "90013",
// text: "general",
// url: "UI/general_iframe.html",
// targetType: "iframe-tab",
// icon: "fa fa-circle-o"
// },
// {
// id: "90014",
// text: "modals",
// url: "UI/modals_iframe.html",
// targetType: "iframe-tab",
// icon: "fa fa-circle-o"
// },
// {
// id: "90015",
// text: "sliders",
// url: "UI/sliders_iframe.html",
// targetType: "iframe-tab",
// icon: "fa fa-circle-o"
// },
// {
// id: "90016",
// text: "timeline",
// url: "UI/timeline_iframe.html",
// targetType: "iframe-tab",
// icon: "fa fa-circle-o"
// }
// ]
//},
{
id: "9001",
text: "报表",
icon: "fa fa-bar-chart",
children: [{
id: "90010",
text: "看板",
icon: "fa fa-circle-o",
children: [{
id: "9001001",
text: "各站产出",
url: "/Report/Dashboard/SiteCapacity",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001002",
text: "订单良率",
url: "/Report/Dashboard/SpecifiedChanLiangrate",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001003",
text: "综合良率",
url: "/Report/Dashboard/ComprehensiveYield",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "90010010",
text: "echarts视图",
url: "/Report/Dashboard/EchartsView",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001004",
text: "站点产能看板",
url: "/Report/Dashboard/StationClassYield",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001005",
text: "前道产能看板",
url: "/Report/Dashboard/BeforeCapacity",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001006",
text: "后道产能看板",
url: "/Report/Dashboard/AfterCapacity",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001007",
text: "包装产能看板",
url: "/Report/Dashboard/TotalCapacity",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001008",
text: "一次碎片率",
url: "/Report/Dashboard/FragmentationRate",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
]
}, {
id: "90011",
text: "分选房报表",
icon: "fa fa-circle-o",
children: [{
id: "9001101",
text: "工单条码登记",
url: "/Report/Dashboard/WorkOrderLotQty",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
,
{
id: "9001102",
text: "破片率报表",
url: "/Report/Dashboard/FragmentRegister",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
]
},
{
id: "90012",
text: "生产报表",
icon: "fa fa-circle-o",
children: [{
id: "9001201",
text: "最终功率测试",
url: "/Report/Dashboard/TestDataDetail",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001202",
text: "最终功率测试(衰减数据)",
url: "/Report/Dashboard/TestDataDetailFake",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001203",
text: "多次功率测试",
url: "/Report/Dashboard/MultipleTestDetail",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001204",
text: "包装信息查询",
url: "/Report/Dashboard/PackOutput",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001205",
text: "包装删除记录",
url: "/Report/Dashboard/PackDelHistory",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001206",
text: "工单达成情况",
url: "/Report/Dashboard/WOFinishStatus",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001207",
text: "工单各站点在制",
url: "/Report/Dashboard/WOprocess",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001208",
text: "工单状态",
url: "/Report/Dashboard/WOStatus",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001209",
text: "生产在制报表",
url: "/Report/Dashboard/ProduincReport",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001210",
text: "订单符合率",
url: "/Report/Dashboard/BarCodeAndQualityRate",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001211",
text: "工单结批率",
url: "/Report/Dashboard/BatchRate",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001212",
text: "线边仓物料损耗",
url: "/Report/Dashboard/SuppliesConsumed",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001213",
text: "电池片结批率",
url: "/Report/Dashboard/BatchDataOfCell",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
, {
id: "9001214",
text: "产量报表",
url: "/Report/Dashboard/YieldForm",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
, {
id: "9001215",
text: "包装产能统计",
url: "/Report/Dashboard/PackCapacity",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
, {
id: "9001216",
text: "每日投产包装完成率",
url: "/Report/Dashboard/DayPackComplete",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
, {
id: "9001217",
text: "生码未包装组件查询",
url: "/Report/Dashboard/UnPackComponent",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
, {
id: "9001218",
text: "材料批号查询",
url: "/Report/Dashboard/MaterialBatchNumber",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
, {
id: "9001219",
text: "本月每天各工位产能",
url: "/Report/Dashboard/CurEverydayStationCapacity",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
, {
id: "9001220",
text: "永臻晶科报表",
url: "/Report/Dashboard/YongzhenJinke",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001221",
text: "数据查询",
url: "/Report/Dashboard/DataQuery",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001222",
text: "上档率",
url: "/Report/Dashboard/UpshiftRate",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001223",
text: "在制品",
url: "/Report/Dashboard/WIPStatistics",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001224",
text: "条码补打报表",
url: "/Report/Dashboard/BarcodeReprint",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001225",
text: "一次成型率",
url: "/Report/Dashboard/OnceMoldingRate",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001226",
text: "包装详细信息",
url: "/Report/Dashboard/PackOutputDetail",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001227",
text: "组件班组产量",
url: "/Report/Dashboard/ShiftProduction",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001228",
text: "分档机组件查询",
url: "/Report/Dashboard/StepperComponents",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001229",
text: "CTM数据报表",
url: "/Report/Dashboard/CTMReport",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001230",
text: "材料用量报表",
url: "/Report/Dashboard/MaterialLotReport",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
]
}, {
id: "90013",
text: "质量报表",
icon: "fa fa-circle-o",
children: [{
id: "9001301",
text: "扣留历史",
url: "/Report/Dashboard/QC",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001302",
text: "材料追溯",
url: "/Report/Dashboard/MaterialTraceability",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
//{
// id: "9001303",
// text: "CTM报表",
// url: "/Report/Dashboard/FinalTestRoomData",
// targetType: "iframe-tab",
// icon: "fa fa-circle-o",
// urlType: 'abosulte'
//},
{
id: "9001304",
text: "返修报表",
url: "/Report/Dashboard/Repair",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001305",
text: "车间质量问题统计",
url: "/Report/Dashboard/QualityStatistics",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "9001306",
text: "耐压报表",
url: "/Report/Dashboard/PressureResistant",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
]
}, {
id: "90014",
text: "仓库报表",
icon: "fa fa-circle-o",
children: [{
id: "9001401",
text: "入库报表",
url: "/Report/Dashboard/DOgownentry",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001402",
text: "成品库存报表",
url: "/Report/Dashboard/INventory",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001403",
text: "出货报表",
url: "/Report/Dashboard/ShipmentsReport",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}, {
id: "9001405",
text: "车间成品线边仓",
url: "/Report/Dashboard/FinishProductLinePositions",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
//, {
//id: "900142",
//text: "收发存报表",
//url: "/Report/Dashboard/ReceivedAndDepositController",
//targetType: "iframe-tab",
//icon: "fa fa-circle-o",
//urlType: 'abosulte'
//}
]
}]
},
{
id: "9002",
text: "仓库",
icon: "fa fa-edit",
children: [
{
id: "900201",
text: "拼柜",
url: "/Warehouse/LCL",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900202",
text: "入库",
url: "/Warehouse/StockIn",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900203",
text: "出货",
url: "/Warehouse/Shipment",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900204",
text: "退库",
url: "/Warehouse/ReturnStock",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900205",
text: "删柜",
url: "/Warehouse/DelContainer",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900206",
text: "托盘替换",
url: "/Warehouse/PalletChange",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900207",
text: "监装出货",
url: "/Warehouse/InspectionShipment",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900208",
text: "OBA托盘扣留/释放",
url: "/Warehouse/OBAdetain",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
]
},
//{
// id: "9004",
// text: "备料模块",
// icon: "fa fa-desktop",
// children: [
// {
// id: "90041",
// text: "产品信息",
// url: "/Report/Dashboard/Products",
// targetType: "iframe-tab",
// icon: "fa fa-circle-o",
// urlType: 'abosulte'
// }]
//},
//{
// id: "9005",
// text: "原料仓",
// icon: "fa fa-desktop",
// children: [
// {
// id: "90051",
// text: "收货",
// url: "/Report/Dashboard/Receiving",
// targetType: "iframe-tab",
// icon: "fa fa-circle-o",
// urlType: 'abosulte'
// }]
//},
{
id: "9003",
text: "系统管理",
icon: "fa fa-desktop",
children: [
{
id: "900301",
text: "用户管理",
url: "/Administration/User",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900302",
text: "角色管理",
url: "/Administration/Role",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900303",
text: "报检权限管理",
url: "/Administration/QCConfig",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900304",
text: "卡关条件设置",
url: "/Administration/CloseCondition",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
,
{
id: "900305",
text: "产量计划",
url: "/Administration/ProductionPlan",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
,
{
id: "900306",
text: "站点产能标准设置",
url: "/Administration/SiteCapacityStand",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900307",
text: "仓库&库位增加设置",
url: "/Administration/AddLocation",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
},
{
id: "900308",
text: "工单设定",
url: "/Administration/WorkorderSetting",
targetType: "iframe-tab",
icon: "fa fa-circle-o",
urlType: 'abosulte'
}
]
}
];
var menusTexts = new Array();
for (let i = 0; i < menus.length; i++) {
menusTexts[i] = [];
if (menus[i].children !== undefined) {
for (let j = 0; j < menus[i].children.length; j++) {
if (menus[i].children[j].children !== undefined) {
menusTexts[i][j] = [];
for (let z = 0; z < menus[i].children[j].children.length; z++) {
menusTexts[i][j].push(menus[i].children[j].children[z].text);
}
} else {
if (i == 3) {
console.log(j);
}
menusTexts[i].push(menus[i].children[j].text);
}
}
}
}
console.log(menusTexts);
var allPages = new Array();
function flatten(arr) { return [].concat(...arr.map(x => Array.isArray(x) ? flatten(x) : x)) }
allPages = flatten(menusTexts);
console.log(allPages);
function array_diff(a, b) {
for (var i = 0; i < b.length; i++) {
for (var j = 0; j < a.length; j++) {
if (a[j] == b[i].PermissionName) {
a.splice(j, 1);
j = j - 1;
}
}
}
return a;
}
//获取权限组
console.log(typeof (userid) + '```' + userid);
var permissionsPage = new Array();
$.ajax({
url: "/api/Account/Permissions",
type: "Post",
dataType: "json",
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ userid: userid }),
async: false,
success: function (resdata) {
console.log(resdata);
permissionsPage = resdata;
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
console.log('获取权限组失败');
alert(errorThrown);
}
})
console.log(permissionsPage.length);
array_diff(allPages, permissionsPage);
console.log(allPages);
console.log(menusTexts);
if (allPages.length != 0) {
console.log(allPages);
for (var i = 0; i < allPages.length; i++) {
values(allPages[i]);
}
}
var record = 0;
var j, z;
var wipeOff = 'menusTexts'
var judge = new Array();
function ifArrVal(arr, value) {//多维数组判断是否存在某值
for (var i = 0; i < arr.length; i++) {
if (arr[i] instanceof Array) {//判断是否为多维数组
//record++;
//console.log(record);
//if (record == 1) {
// wipeOff += '['+i+']';
//}
//if (record == 2) {
// //j = i;
// wipeOff+= '.children['+i+']';
//}
return ifArrVal(arr[i], value);
} else {
if (arr[i] == value) {
//console.log(i);
//wipeOff += '.children[' + i + ']';
//console.log(wipeOff);
return 1;//存在
} else {
continue;
}
}
}
return -1;//不存在
}
function values(value) {
for (let i = 0; i < menusTexts.length; i++) {
for (let j = 0; j < menusTexts[i].length; j++) {
console.log(ifArrVal(menusTexts[i][j], value));
if (i == 0) {
if (ifArrVal(menusTexts[i][j], value) == 1) {
var index = menusTexts[i][j].indexOf(value);
console.log(index);
console.log(menus[i].children[j]);
console.log(menus);
menus[i].children[j].children.splice(index, 1);
menusTexts[i][j].splice(index, 1);
}
} else {
if (ifArrVal(menusTexts[i], value) == 1) {
var index = menusTexts[i].indexOf(value);
console.log(index + '单数组');
console.log(menus[i]);
menus[i].children.splice(index, 1);
menusTexts[i].splice(index, 1);
}
}
}
}
}
//values('订单良率');
//console.log(ifArrVal(menusTexts[0][1], '工单条码登记'));
console.log(menus);
for (let i = 0; i < menus.length; i++) {
console.log('测试 ');
console.log(i + '---' + menus[i].children.length + '---' + menus[i].text);
//if (menus[i].children.length == 0) {
// menus.splice(i, 1);
// i--;
//}
if (i == 0) {
for (let j = 0; j < menus[i].children.length; j++) {
if (menus[i].children[j].children.length == 0) {
menus[i].children.splice(j, 1);
j--;
}
}
if (menus[i].children.length == 0) {
menus.splice(i, 1);
}
} else {
if (menus[i].children.length == 0) {
menus.splice(i, 1);
i--;
}
}
}
menus.unshift(header);
$('.sidebar-menu').sidebarMenu({ data: menus });
// 动态创建菜单后,可以重新计算 SlimScroll
// $.AdminLTE.layout.fixSidebar();
/*if ($.AdminLTE.options.sidebarSlimScroll) {
if (typeof $.fn.slimScroll != 'undefined') {
//Destroy if it exists
var $sidebar = $(".sidebar");
$sidebar.slimScroll({destroy: true}).height("auto");
//Add slimscroll
$sidebar.slimscroll({
height: ($(window).height() - $(".main-header").height()) + "px",
color: "rgba(0,0,0,0.2)",
size: "3px"
});
}
}*/
});
var btnLogin = document.getElementById("btnSignout");
btnLogin.onclick = function () {
//alert('clicked');//api/Account/Login
fetch("../Account/Signout", {
method: "post",
headers: {
"Accept": "application/json, text/plain, */*",
'Content-Type': 'application/json'
},
body: JSON.stringify({ locationid: "" })
}).then(function (res) {
return res;//res.json();
}).then(function (res) {
console.log("注销成功");
window.location.href = "/";
}).catch(function (ex) {
console.log('request failed', ex);
})
}
//防止页面超时
//setInterval(function () {
// fetch("/api/Account/Permissions", {
// method: "post",
// headers: {
// "Accept": "application/json, text/plain, */*",
// 'Content-Type': 'application/json'
// },
// body: JSON.stringify({})
// }).then(function (res) {
// return res.json();
// }).then(function (res) {
// console.log('测试成功');
// }).catch(function (ex) {
// //$('#mainboxbody').next().remove();
// //toastr.error(ex, '', { progressBar: true });
// console.log('request failed', ex);
// })
//}, 60000)
//查询用户名
function searchUase(userId) {
fetch("/api/Account/SearchUserName", {
method: "post",
headers: {
"Accept": "application/json, text/plain, */*",
'Content-Type': 'application/json'
},
body: JSON.stringify({ userId: userId })
}).then(function (res) {
return res.json();
}).then(function (res) {
var userName = res.info;
console.log(userName);
$('#Email').val(userName);
$('#Email').attr('disabled', 'true');
$('#Password').focus();
}).catch(function (ex) {
//$('#mainboxbody').next().remove();
//toastr.error(ex, '', { progressBar: true });
console.log('request failed', ex);
})
}
$("#Password").keypress(function (event) {
if (event.which == 13 || event.KeyCode == 13) {
event.preventDefault();
$('#btnSave').click();
}
})
function timeUserFun() {
var objTime = {
init: 0,
time: function () {
objTime.init += 1;
if (objTime.init == 20) {
$('#RoleModal').modal({ backdrop: 'static', keyboard: false });
var userId = $.cookie('userid');
searchUase(userId);
//clearInterval(testUser);
//确定按钮
$('#btnSave').off('click');
$('#btnSave').click(function () {
if ($('#Password').val() == '') {
toastr.warning('请输入密码', '', { progressBar: true });
return;
}
fetch("/api/LCL/AffirmInfo", {
method: "post",
headers: {
"Accept": "application/json, text/plain, */*",
'Content-Type': 'application/json'
},
body: JSON.stringify({ Email: $('#Email').val(), Password: $('#Password').val() })
}).then(function (res) {
return res.json();
}).then(function (res) {
console.log(res);
if (res.result == 'success') {
toastr.success('已解除限制', '', { progressBar: true });
$('#RoleModal').modal('hide');
$('#Email').val('');
$('#Password').val('');
}
if (res.result == 'fail') {
toastr.warning(res.info, '', { progressBar: true });
$('#Password').val('');
}
}).catch(function (ex) {
//$('#mainboxbody').next().remove();
//toastr.error(ex, '', { progressBar: true });
console.log('request failed', ex);
})
})
}
console.log(objTime.init);
if (objTime.init == 30) {
fetch("../Account/Signout", {
method: "post",
headers: {
"Accept": "application/json, text/plain, */*",
'Content-Type': 'application/json'
},
body: JSON.stringify({ locationid: "" })
}).then(function (res) {
return res;//res.json();
}).then(function (res) {
console.log("注销成功");
window.location.href = "/";
}).catch(function (ex) {
console.log('request failed', ex);
})
}
},
eventFun: function () {
clearInterval(testUser);
objTime.init = 0;
testUser = setInterval(objTime.time, 60000);
}
}
var testUser = setInterval(objTime.time, 60000);
var body = document.querySelector('html');
body.addEventListener("click", objTime.eventFun);
body.addEventListener("keydown", objTime.eventFun);
body.addEventListener("mousemove", objTime.eventFun);
body.addEventListener("mousewheel", objTime.eventFun);
}
timeUserFun();
</script>
</body>
</html>