main.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>单仓档案管理系统</title>
  6. <!-- <link rel="stylesheet" type="text/css" href="/themes/default/easyui.css"> -->
  7. <link rel="stylesheet" type="text/css" href="/themes/metro/easyui.css">
  8. <link rel="stylesheet" type="text/css" href="/themes/icon.css">
  9. <link rel="stylesheet" type="text/css" href="/themes/style.css">
  10. <script type="text/javascript" src="/src/jquery.min.js"></script>
  11. <script type="text/javascript" src="/src/jquery.easyui.min.js"></script>
  12. <script type="text/javascript" src="/locale/easyui-lang-zh_CN.js"></script>
  13. </head>
  14. <body class="easyui-layout">
  15. <div data-options="region:'north',split:true,border:false" class='north'>
  16. <div class="north-w">
  17. <div class="north-left">
  18. <a href="/">
  19. <img src="/img/u25.png" alt="档案管理单仓系统">
  20. </a>
  21. <span>单仓档案管理系统</span>
  22. </div>
  23. <div class="north-right">
  24. <p><span>刘同</span>欢迎您!</p>
  25. <p><a href="#">个人中心</a>|<a href="/admin/sys/logout">安全退出</a></p>
  26. </div>
  27. </div>
  28. <div class="north-b">
  29. <ul>
  30. <li class="active">首页</li><li>单仓档案</li><li>工作平台</li><li>单仓设备集成平台</li><li>单仓业务分析系统</li><li>手持移动端管理</li><li>用户管理</li><li>基础参数管理</li><li>站点平台</li></ul>
  31. </div>
  32. </div>
  33. <div data-options="region:'west',split:true,title:'导航菜单'" style="width:165px;">
  34. <div class="easyui-accordion" data-options="border:false,fit:true">
  35. <div title="日常管理档案" data-options="iconCls:'icon-detcycle'" style="padding:5px;">
  36. <ul class="easyui-tree wu-side-tree">
  37. <li iconCls="icon-sketch">
  38. <a href="javascript:void(0)" data-icon="icon-sketch" data-link="pages/systemset/svg.html" iframe="0">保管员移交记录</a>
  39. </li>
  40. <li iconCls="icon-cyclesetting">
  41. <a href="javascript:void(0)" data-icon="icon-cyclesetting" data-link="pages/periodmanage/periodsetting.html" iframe="0">日常查仓档案</a>
  42. </li>
  43. <li iconCls="icon-cyclesetting">
  44. <a href="javascript:void(0)" data-icon="icon-cyclesetting" data-link="pages/periodmanage/periodsetting.html" iframe="0">日常粮情档案</a>
  45. </li>
  46. <li iconCls="icon-cyclesetting">
  47. <a href="javascript:void(0)" data-icon="icon-cyclesetting" data-link="pages/periodmanage/periodsetting.html" iframe="0">日常虫害档案</a>
  48. </li>
  49. <li iconCls="icon-cyclesetting">
  50. <a href="javascript:void(0)" data-icon="icon-cyclesetting" data-link="pages/periodmanage/periodsetting.html" iframe="0">日常通风档案</a>
  51. </li>
  52. <li iconCls="icon-cyclesetting">
  53. <a href="javascript:void(0)" data-icon="icon-cyclesetting" data-link="pages/periodmanage/periodsetting.html" iframe="0">熏蒸档案</a>
  54. </li>
  55. <li iconCls="icon-cyclesetting">
  56. <a href="javascript:void(0)" data-icon="icon-cyclesetting" data-link="pages/periodmanage/periodsetting.html" iframe="0">空调运行档案</a>
  57. </li>
  58. <li iconCls="icon-cyclesetting">
  59. <a href="javascript:void(0)" data-icon="icon-cyclesetting" data-link="pages/periodmanage/periodsetting.html" iframe="0">内环流档案</a>
  60. </li>
  61. <li iconCls="icon-cyclesetting">
  62. <a href="javascript:void(0)" data-icon="icon-cyclesetting" data-link="pages/periodmanage/periodsetting.html" iframe="0">粮食入仓档案</a>
  63. </li>
  64. </ul>
  65. </div>
  66. <div title="责任人员档案" data-options="iconCls:'icon-det-sur'" style="padding:5px;">
  67. <ul class="easyui-tree wu-side-tree">
  68. <li iconCls="application_view_gallery">
  69. <a href="javascript:void(0)" data-icon="application_view_gallery" data-link="/pages/originaldata/originaldata2c.html" iframe="0">责任人员档案</a>
  70. </li>
  71. </ul>
  72. </div>
  73. <div title="仓房信息档案" data-options="iconCls:'icon-def-data'" style="padding:5px;">
  74. <ul class="easyui-tree wu-side-tree">
  75. <li iconCls="application_osx_error">
  76. <a href="javascript:void(0)" data-icon="application_osx_error" data-link="/pages/errordata/error1c.html" iframe="0">仓房基本信息</a>
  77. </li>
  78. <li iconCls="application_osx_error">
  79. <a href="javascript:void(0)" data-icon="application_osx_error" data-link="/pages/errordata/error2c.html" iframe="0">门窗更换记录</a>
  80. </li>
  81. <li iconCls="application_osx_error">
  82. <a href="javascript:void(0)" data-icon="application_osx_error" data-link="/pages/errordata/error3c.html" iframe="0">外墙粉刷记录</a>
  83. </li>
  84. </ul>
  85. </div>
  86. <div title="监督检查档案" data-options="iconCls:'icon-def_map'" style="padding:5px;">
  87. <ul class="easyui-tree wu-side-tree">
  88. <li iconCls="icon-def-show">
  89. <a href="javascript:void(0)" data-icon="icon-def-show" data-link="/pages/errormanage/showerror.html" iframe="0">粮库监督检查情况</a>
  90. </li>
  91. <li iconCls="icon-def-show">
  92. <a href="javascript:void(0)" data-icon="icon-def-show" data-link="/pages/errormanage/showerror.html" iframe="0">分公司检查情况</a>
  93. </li>
  94. <li iconCls="icon-def-show">
  95. <a href="javascript:void(0)" data-icon="icon-def-show" data-link="/pages/errormanage/showerror.html" iframe="0">总公司监督检查情况</a>
  96. </li>
  97. </ul>
  98. </div>
  99. <div title="粮食数量档案" data-options="iconCls:'icon-count'" style="padding:5px;">
  100. <ul class="easyui-tree wu-side-tree">
  101. <li iconCls="chart_pie">
  102. <a href="javascript:void(0)" data-icon="chart_pie" data-link="/pages/statisticalanalysis/sa1c.html" iframe="0">粮食数量档案</a>
  103. </li>
  104. </ul>
  105. </div>
  106. <div title="设备器材档案" data-options="iconCls:'icon-chart-curve'" style="padding:5px;">
  107. <ul class="easyui-tree wu-side-tree">
  108. <li iconCls="icon-line"><a href="javascript:void(0)" data-icon="icon-line" data-link="/pages/basedata/linemanage.html" iframe="0">设备档案</a></li>
  109. <li iconCls="icon-workshop"><a href="javascript:void(0)" data-icon="icon-workshop" data-link="/pages/basedata/stationmanage.html" iframe="0">器材档案</a></li>
  110. <li iconCls="icon-org_per"><a href="javascript:void(0)" data-icon="icon-org_per" data-link="/pages/basedata/duringmanage.html" iframe="0">药品档案</li>
  111. </ul>
  112. </div>
  113. <div title="粮食质量档案" data-options="iconCls:'icon-data_import'" style="padding:5px;">
  114. <ul class="easyui-tree wu-side-tree">
  115. <li iconCls="icon-serverget">
  116. <a href="javascript:void(0)" data-icon="icon-serverget" data-link="/pages/dataimport/dataimportfromserver.html" iframe="0" >质量变化曲线</a>
  117. </li>
  118. <li iconCls="icon-artificial"><a href="javascript:void(0)" data-icon="icon-artificial" data-link="/pages/dataimport/importbyperson.html" iframe="0">初验质量记录</a></li>
  119. <li iconCls="icon-artificial"><a href="javascript:void(0)" data-icon="icon-artificial" data-link="/pages/dataimport/dataimport1c.html" iframe="0">验收质量记录</a></li>
  120. <li iconCls="icon-artificial"><a href="javascript:void(0)" data-icon="icon-artificial" data-link="/pages/dataimport/dataimport1c.html" iframe="0">春秋普查记录</a></li>
  121. <li iconCls="icon-artificial"><a href="javascript:void(0)" data-icon="icon-artificial" data-link="/pages/dataimport/dataimport1c.html" iframe="0">入库扦样质量记录</a></li>
  122. <li iconCls="icon-artificial"><a href="javascript:void(0)" data-icon="icon-artificial" data-link="/pages/dataimport/dataimport1c.html" iframe="0">出库质量检查记录</a></li>
  123. </ul>
  124. </div>
  125. <div title="安全档案" data-options="iconCls:'icon-wrench'" style="padding:5px;">
  126. <ul class="easyui-tree wu-side-tree">
  127. <li iconCls="user"><a href="javascript:void(0)" data-icon="user" data-link="pages/systemset/usermanage.html" iframe="0">安全档案</a></li>
  128. </ul>
  129. </div>
  130. <div title="费用档案" data-options="iconCls:'icon-wrench'" style="padding:5px;">
  131. <ul class="easyui-tree wu-side-tree">
  132. <li iconCls="user">
  133. <a href="javascript:void(0)" data-icon="user" data-link="pages/systemset/usermanage.html" iframe="0">单仓费用记录</a>
  134. </li>
  135. <li iconCls="user">
  136. <a href="javascript:void(0)" data-icon="user" data-link="pages/systemset/usermanage.html" iframe="0">单仓费用统计</a>
  137. </li>
  138. </ul>
  139. </div>
  140. </div>
  141. </div>
  142. <div data-options="region:'south',split:true,border:false" class="south" style="height: 30px;">
  143. &copy; 2018 中储粮-单仓档案管理系统 版权所有
  144. </div>
  145. <div data-options="region:'center'" id="tab" class='easyui-tabs' data-options="fit:true">
  146. <div title="首页" data-options="href:'pages/systemset/svg.html',closable:false,iconCls:'icon-tip',cls:'pd3',fit:'true'"></div>
  147. </div>
  148. <div class="p-tools">
  149. <a href="javascript:void(0)" class="icon-mini-refresh"></a>
  150. </div>
  151. <!--右键菜单-->
  152. <div id="right-menu" class="easyui-menu" style="width:120px;">
  153. <div class="close-other">关闭其他</div>
  154. <div class="close-all">关闭所有</div>
  155. </div>
  156. <!--END-->
  157. <script style='text/javascript'>
  158. $(function(){
  159. window.conf = {
  160. 'baseUrl':"http://wiki100.net"
  161. // 'baseUrl':"http://101.36.160.140:21043"
  162. // 'baseUrl': 'http://114.215.138.135:8080'
  163. // 'baseUrl': 'http://192.168.1.110:8080'
  164. // 'baseUrl': 'http://192.168.1.102:8080'
  165. // baseUrl: 'http://192.168.1.112:8080'
  166. };
  167. // setInterval(function(){
  168. // $.get(conf.baseUrl+"/admin/sys/checkstate",function(data){
  169. // if(data.code==-1){
  170. // location.href="/index.html";
  171. // }
  172. // },"json");
  173. // },3000);
  174. $('.wu-side-tree a').bind("click",function(){
  175. var title = $(this).text();
  176. var url = $(this).attr('data-link');
  177. var iconCls = $(this).attr('data-icon');
  178. var iframe = $(this).attr('iframe')==1?true:false;
  179. addTab(title,url,iconCls,iframe);
  180. });
  181. function addTab(title, href, iconCls, iframe){
  182. var tabPanel = $('#tab');
  183. if(!tabPanel.tabs('exists',title)){
  184. var content = '<iframe scrolling="auto" frameborder="0" src="'+ href +'" style="width:100%;height:100%;"></iframe>';
  185. if(iframe){
  186. tabPanel.tabs('add',{
  187. title:title,
  188. content:content,
  189. iconCls:iconCls,
  190. fit:true,
  191. cls:'pd3',
  192. closable:true,
  193. tools: [{
  194. iconCls:'icon-refresh',
  195. handler: refresh
  196. }]
  197. });
  198. }
  199. else{
  200. tabPanel.tabs('add',{
  201. title:title,
  202. href:href,
  203. iconCls:iconCls,
  204. fit:true,
  205. cls:'pd3',
  206. closable:true,
  207. tools: [{
  208. iconCls:'icon-refresh',
  209. handler:refresh
  210. }]
  211. });
  212. }
  213. }
  214. else
  215. {
  216. tabPanel.tabs('select',title);
  217. }
  218. refresh();
  219. }
  220. //刷新页面
  221. function refresh() {
  222. $('.icon-refresh').on('click', function() {
  223. $('#tab').tabs('getSelected').panel('refresh');
  224. });
  225. }
  226. $(document).bind('contextmenu', function(e) {
  227. e.preventDefault();
  228. $('#right-menu').menu('show', {
  229. left: e.pageX,
  230. top: e.pageY
  231. });
  232. });
  233. $('.close-other').on('click', function() {
  234. var title = $('#tab .tabs-selected').text();
  235. console.log('--'+title+'--');
  236. $(".tabs li").each(function(index, obj) {
  237. var tab = $(".tabs-closable", this).text();
  238. if (tab !== title) {
  239. $(".easyui-tabs").tabs('close', tab);
  240. }
  241. $('.easyui-tabs').tabs('select', title);
  242. });
  243. });
  244. $('.close-all').on('click', function() {
  245. $(".tabs li").each(function(index, obj) {
  246. var tab = $(".tabs-closable", this).text();
  247. $(".easyui-tabs").tabs('close', tab);
  248. });
  249. });
  250. });
  251. </script>
  252. </body>
  253. </html>