| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="keywords" content="dongke,mes,ibossmes">
- <meta name="description" content="制造企业生产过程执行管理系统">
- <meta name="author" content="xuwei">
- <title>东科软件</title>
- <script src="/plugins/xeasyui/xeasyui.js"></script>
- </head>
- <body class="easyui-layout">
- <!--页头-->
- <div data-options="region:'north'" style="height:50px;background-image:url('/img/top_bg_blue.png');background-position-y:center;">
- <div style="display:flex;">
- <div style="">
- <img src="/img/hegii2.png" style="height:20px;position:absolute;top:15px;left:10px;" />
- <span style="font-size:20px;position:absolute;top:12px;left:170px;font-weight:600"> MES-BI </span>
- </div>
- <div style="margin-left:auto;padding:5px;">
- <!--<a href="javascript:$('#tree').layout();">测试</a>-->
- <a href="javascript:void(0)" id="tbExit" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-redo'" onclick="exit()">退出登录</a>
- </div>
- </div>
- </div>
- <!--左边栏-->
- <div id="tree" data-options="region:'west',split:true,title:'导航菜单'" style="width:260px;padding:4px;">
- <!--左侧菜单-->
- <div id="menu" ></div>
- </div>
- <!--主体-->
- <div data-options="region:'center',plain:true">
- <div id="tabs" class="easyui-tabs" data-options="fit:true,border:false,plain:false"></div>
- </div>
- <!--右边栏-->
- <!--<div data - options="region:'east',split:true" title = "East" style = "width:200px;" ></div> -->
- <!--页尾-->
- <div data-options="region:'south'" style="height:30px;text-align:center;background-color:#444;">
- <div style="padding-top:3px; color:lightgray">版权所有:© 2019-2020 沈阳东科云信软件有限公司 <a href="http://www.dongkesoft.com" target="_blank">http://www.dongkesoft.com</a></div>
- </div>
- <script>
- $(function () {
- //加载登录用户
- $.get('sessionget.ashx?r=' + Math.random(), function (data) {
- var json = JSON.parse(data);
- if (json['success'] == true) {
- $('#tbExit').linkbutton({
- text: json['rows'][0]['userCode'] + ' 退出登录'
- });
- }
- else {
- $('#tbExit').linkbutton({
- text: ' 退出登录'
- });
- //$.messager.alert('用户登录', json['message'], 'error');
- $.messager.confirm('用户登录', json['message'] + '\n 点击确定重新登录!', function (r) {
- if (r) {
- if (request("client") == "web")
- window.location.href = "/mes";
- else
- window.location.href = "http://172.18.32.33/?port=9000";
- }
- });
- }
- });
- //加载导航菜单
- $('#menu').treeLoad({
- url: 'tree.ashx?r=' + Math.random()
- });
- //打开首页看板
- $('#tabs').tabsOpen({
- title: '欢迎',
- url: 'blank.html?r=' + Math.random(),
- closable: false
- });
- //接收url(通常是从winform过来的url)
- if (request('go') != '') {
- $('#tabs').tabsOpen({
- title: request('title'),
- url: request('go') + '?r=' + Math.random(),
- closable: true
- });
- }
- })
- //退出登录
- function exit() {
- $.messager.confirm('退出系统', '您确定退出系统吗?', function (r) {
- if (r) {
- $.get('logout.ashx?r=' + Math.random(), function (data) {
- var json = JSON.parse(data);
- if (json['success'] == true) {
- window.location.href = 'index.html';
- }
- else {
- $.messager.alert('退出登录', '退出操作失败!', 'error');
- }
- });
- }
- });
- }
- </script>
- </body>
- </html>
|