index.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="renderer" content="webkit">
  7. <title>若依系统首页</title>
  8. <!-- 避免IE使用兼容模式 -->
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <link th:href="@{favicon.ico}" rel="stylesheet"/>
  11. <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
  12. <link th:href="@{/css/jquery.contextMenu.min.css}" rel="stylesheet"/>
  13. <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
  14. <link th:href="@{/css/animate.css}" rel="stylesheet"/>
  15. <link th:href="@{/css/style.css}" rel="stylesheet"/>
  16. <link th:href="@{/css/skins.css}" rel="stylesheet"/>
  17. <link th:href="@{/ruoyi/css/ry-ui.css?v=4.2.0}" rel="stylesheet"/>
  18. </head>
  19. <body class="fixed-sidebar full-height-layout gray-bg" style="overflow: hidden">
  20. <div id="wrapper">
  21. <!--左侧导航开始-->
  22. <nav class="navbar-default navbar-static-side" role="navigation">
  23. <div class="nav-close">
  24. <i class="fa fa-times-circle"></i>
  25. </div>
  26. <a th:href="@{/index}">
  27. <li class="logo hidden-xs">
  28. <span class="logo-lg">RuoYi</span>
  29. </li>
  30. </a>
  31. <div class="sidebar-collapse">
  32. <ul class="nav" id="side-menu">
  33. <li>
  34. <div class="user-panel">
  35. <a class="menuItem noactive" title="个人中心" th:href="@{/system/user/profile}">
  36. <div class="hide" th:text="个人中心"></div>
  37. <div class="pull-left image">
  38. <img th:src="(${user.avatar} == '') ? @{/img/profile.jpg} : @{${user.avatar}}" class="img-circle" alt="User Image">
  39. </div>
  40. </a>
  41. <div class="pull-left info">
  42. <p>[[${user.loginName}]]</p>
  43. <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
  44. <a th:href="@{logout}" style="padding-left:5px;"><i class="fa fa-sign-out text-danger"></i> 注销</a>
  45. </div>
  46. </div>
  47. </li>
  48. <li>
  49. <a href="#"><i class="fa fa-home"></i> <span class="nav-label">主页</span> <span class="fa arrow"></span></a>
  50. <ul class="nav nav-second-level">
  51. <li><a class="menuItem" th:href="@{/system/main}">了解若依</a></li>
  52. </ul>
  53. </li>
  54. <li th:each="menu : ${menus}">
  55. <a th:class="@{${menu.url != '' && menu.url != '#'} ? ${menu.target}}" th:href="@{${menu.url == ''} ? |#| : ${menu.url}}">
  56. <i class="fa fa-bar-chart-o" th:class="${menu.icon}"></i>
  57. <span class="nav-label" th:text="${menu.menuName}">一级菜单</span>
  58. <span th:class="${menu.url == '' || menu.url == '#'} ? |fa arrow|"></span>
  59. </a>
  60. <ul class="nav nav-second-level collapse">
  61. <li th:each="cmenu : ${menu.children}">
  62. <a th:if="${#lists.isEmpty(cmenu.children)}" th:class="${cmenu.target == ''} ? |menuItem| : ${cmenu.target}" th:utext="${cmenu.menuName}" th:href="@{${cmenu.url}}">二级菜单</a>
  63. <a th:if="${not #lists.isEmpty(cmenu.children)}" href="#">[[${cmenu.menuName}]]<span class="fa arrow"></span></a>
  64. <ul th:if="${not #lists.isEmpty(cmenu.children)}" class="nav nav-third-level">
  65. <li th:each="emenu : ${cmenu.children}">
  66. <a th:if="${#lists.isEmpty(emenu.children)}" th:class="${emenu.target == ''} ? |menuItem| : ${emenu.target}" th:text="${emenu.menuName}" th:href="@{${emenu.url}}">三级菜单</a>
  67. <a th:if="${not #lists.isEmpty(emenu.children)}" href="#">[[${emenu.menuName}]]<span class="fa arrow"></span></a>
  68. <ul th:if="${not #lists.isEmpty(emenu.children)}" class="nav nav-four-level">
  69. <li th:each="fmenu : ${emenu.children}"><a th:if="${#lists.isEmpty(fmenu.children)}" th:class="${fmenu.target == ''} ? |menuItem| : ${fmenu.target}" th:text="${fmenu.menuName}" th:href="@{${fmenu.url}}">四级菜单</a></li>
  70. </ul>
  71. </li>
  72. </ul>
  73. </li>
  74. </ul>
  75. </li>
  76. <li th:if="${demoEnabled}">
  77. <a href="#"><i class="fa fa-desktop"></i><span class="nav-label">实例演示</span><span class="fa arrow"></span></a>
  78. <ul class="nav nav-second-level collapse">
  79. <li> <a>表单<span class="fa arrow"></span></a>
  80. <ul class="nav nav-third-level">
  81. <li><a class="menuItem" th:href="@{/demo/form/button}">按钮</a></li>
  82. <li><a class="menuItem" th:href="@{/demo/form/grid}">栅格</a></li>
  83. <li><a class="menuItem" th:href="@{/demo/form/select}">下拉框</a></li>
  84. <li><a class="menuItem" th:href="@{/demo/form/timeline}">时间轴</a></li>
  85. <li><a class="menuItem" th:href="@{/demo/form/basic}">基本表单</a></li>
  86. <li><a class="menuItem" th:href="@{/demo/form/cards}">卡片列表</a></li>
  87. <li><a class="menuItem" th:href="@{/demo/form/jasny}">功能扩展</a></li>
  88. <li><a class="menuItem" th:href="@{/demo/form/sortable}">拖动排序</a></li>
  89. <li><a class="menuItem" th:href="@{/demo/form/tabs_panels}">选项卡 & 面板</a></li>
  90. <li><a class="menuItem" th:href="@{/demo/form/validate}">表单校验</a></li>
  91. <li><a class="menuItem" th:href="@{/demo/form/wizard}">表单向导</a></li>
  92. <li><a class="menuItem" th:href="@{/demo/form/upload}">文件上传</a></li>
  93. <li><a class="menuItem" th:href="@{/demo/form/datetime}">日期和时间</a></li>
  94. <li><a class="menuItem" th:href="@{/demo/form/summernote}">富文本编辑器</a></li>
  95. <li><a class="menuItem" th:href="@{/demo/form/duallistbox}">左右互选组件</a></li>
  96. <li><a class="menuItem" th:href="@{/demo/form/autocomplete}">搜索自动补全</a></li>
  97. </ul>
  98. </li>
  99. <li> <a>表格<span class="fa arrow"></span></a>
  100. <ul class="nav nav-third-level">
  101. <li><a class="menuItem" th:href="@{/demo/table/search}">查询条件</a></li>
  102. <li><a class="menuItem" th:href="@{/demo/table/footer}">数据汇总</a></li>
  103. <li><a class="menuItem" th:href="@{/demo/table/groupHeader}">组合表头</a></li>
  104. <li><a class="menuItem" th:href="@{/demo/table/export}">表格导出</a></li>
  105. <li><a class="menuItem" th:href="@{/demo/table/remember}">翻页记住选择</a></li>
  106. <li><a class="menuItem" th:href="@{/demo/table/pageGo}">跳转至指定页</a></li>
  107. <li><a class="menuItem" th:href="@{/demo/table/params}">自定义查询参数</a></li>
  108. <li><a class="menuItem" th:href="@{/demo/table/multi}">初始多表格</a></li>
  109. <li><a class="menuItem" th:href="@{/demo/table/button}">点击按钮加载表格</a></li>
  110. <li><a class="menuItem" th:href="@{/demo/table/data}">直接加载表格数据</a></li>
  111. <li><a class="menuItem" th:href="@{/demo/table/fixedColumns}">表格冻结列</a></li>
  112. <li><a class="menuItem" th:href="@{/demo/table/event}">自定义触发事件</a></li>
  113. <li><a class="menuItem" th:href="@{/demo/table/detail}">表格细节视图</a></li>
  114. <li><a class="menuItem" th:href="@{/demo/table/child}">表格父子视图</a></li>
  115. <li><a class="menuItem" th:href="@{/demo/table/image}">表格图片预览</a></li>
  116. <li><a class="menuItem" th:href="@{/demo/table/curd}">动态增删改查</a></li>
  117. <li><a class="menuItem" th:href="@{/demo/table/reorder}">表格拖拽操作</a></li>
  118. <li><a class="menuItem" th:href="@{/demo/table/editable}">表格行内编辑</a></li>
  119. <li><a class="menuItem" th:href="@{/demo/table/other}">表格其他操作</a></li>
  120. </ul>
  121. </li>
  122. <li> <a>弹框<span class="fa arrow"></span></a>
  123. <ul class="nav nav-third-level">
  124. <li><a class="menuItem" th:href="@{/demo/modal/dialog}">模态窗口</a></li>
  125. <li><a class="menuItem" th:href="@{/demo/modal/layer}">弹层组件</a></li>
  126. <li><a class="menuItem" th:href="@{/demo/modal/table}">弹层表格</a></li>
  127. </ul>
  128. </li>
  129. <li> <a>操作<span class="fa arrow"></span></a>
  130. <ul class="nav nav-third-level">
  131. <li><a class="menuItem" th:href="@{/demo/operate/table}">表格</a></li>
  132. <li><a class="menuItem" th:href="@{/demo/operate/other}">其他</a></li>
  133. </ul>
  134. </li>
  135. <li> <a>报表<span class="fa arrow"></span></a>
  136. <ul class="nav nav-third-level">
  137. <li><a class="menuItem" th:href="@{/demo/report/echarts}">百度ECharts</a></li>
  138. <li><a class="menuItem" th:href="@{/demo/report/peity}">peity</a></li>
  139. <li><a class="menuItem" th:href="@{/demo/report/sparkline}">sparkline</a></li>
  140. <li><a class="menuItem" th:href="@{/demo/report/metrics}">图表组合</a></li>
  141. </ul>
  142. </li>
  143. <li> <a>图标<span class="fa arrow"></span></a>
  144. <ul class="nav nav-third-level">
  145. <li><a class="menuItem" th:href="@{/demo/icon/fontawesome}">Font Awesome</a></li>
  146. <li><a class="menuItem" th:href="@{/demo/icon/glyphicons}">Glyphicons</a></li>
  147. </ul>
  148. </li>
  149. <li>
  150. <a href="#"><i class="fa fa-sitemap"></i>四层菜单<span class="fa arrow"></span></a>
  151. <ul class="nav nav-third-level collapse">
  152. <li>
  153. <a href="#" id="damian">三级菜单1<span class="fa arrow"></span></a>
  154. <ul class="nav nav-third-level">
  155. <li>
  156. <a href="#">四级菜单1</a>
  157. </li>
  158. <li>
  159. <a href="#">四级菜单2</a>
  160. </li>
  161. </ul>
  162. </li>
  163. <li><a href="#">三级菜单2</a></li>
  164. </ul>
  165. </li>
  166. </ul>
  167. </li>
  168. </ul>
  169. </div>
  170. </nav>
  171. <!--左侧导航结束-->
  172. <!--右侧部分开始-->
  173. <div id="page-wrapper" class="gray-bg dashbard-1">
  174. <div class="row border-bottom">
  175. <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
  176. <div class="navbar-header">
  177. <a class="navbar-minimalize minimalize-styl-2" style="color:#FFF;" href="#" title="收起菜单">
  178. <i class="fa fa-bars"></i>
  179. </a>
  180. </div>
  181. <ul class="nav navbar-top-links navbar-right welcome-message">
  182. <li><a title="视频教程" href="http://doc.ruoyi.vip/ruoyi/document/spjc.html" target="_blank"><i class="fa fa-video-camera"></i> 视频教程</a></li>
  183. <li><a title="开发文档" href="http://doc.ruoyi.vip" target="_blank"><i class="fa fa-question-circle"></i> 开发文档</a></li>
  184. <li><a title="全屏显示" href="javascript:void(0)" id="fullScreen"><i class="fa fa-arrows-alt"></i> 全屏显示</a></li>
  185. <li class="dropdown user-menu">
  186. <a href="javascript:void(0)" class="dropdown-toggle" data-hover="dropdown">
  187. <img th:src="(${user.avatar} == '') ? @{/img/profile.jpg} : @{${user.avatar}}" class="user-image">
  188. <span class="hidden-xs">[[${#strings.defaultString(user.userName, '-')}]]</span>
  189. </a>
  190. <ul class="dropdown-menu">
  191. <li class="mt5">
  192. <a th:href="@{/system/user/profile}" class="menuItem">
  193. <i class="fa fa-user"></i> 个人中心</a>
  194. </li>
  195. <li>
  196. <a onclick="resetPwd()">
  197. <i class="fa fa-key"></i> 修改密码</a>
  198. </li>
  199. <li>
  200. <a onclick="switchSkin()">
  201. <i class="fa fa-dashboard"></i> 切换主题</a>
  202. </li>
  203. <li class="divider"></li>
  204. <li>
  205. <a th:href="@{logout}">
  206. <i class="fa fa-sign-out"></i> 退出登录</a>
  207. </li>
  208. </ul>
  209. </li>
  210. </ul>
  211. </nav>
  212. </div>
  213. <div class="row content-tabs">
  214. <button class="roll-nav roll-left tabLeft">
  215. <i class="fa fa-backward"></i>
  216. </button>
  217. <nav class="page-tabs menuTabs">
  218. <div class="page-tabs-content">
  219. <a href="javascript:;" class="active menuTab" data-id="/system/main">首页</a>
  220. </div>
  221. </nav>
  222. <button class="roll-nav roll-right tabRight">
  223. <i class="fa fa-forward"></i>
  224. </button>
  225. <a href="javascript:void(0);" class="roll-nav roll-right tabReload"><i class="fa fa-refresh"></i> 刷新</a>
  226. </div>
  227. <a id="ax_close_max" class="ax_close_max" href="#" title="关闭全屏"> <i class="fa fa-times-circle-o"></i> </a>
  228. <div class="row mainContent" id="content-main">
  229. <iframe class="RuoYi_iframe" name="iframe0" width="100%" height="100%" data-id="/system/main"
  230. th:src="@{/system/main}" frameborder="0" seamless></iframe>
  231. </div>
  232. <div class="footer">
  233. <div class="pull-right">© [[${copyrightYear}]] RuoYi Copyright </div>
  234. </div>
  235. </div>
  236. <!--右侧部分结束-->
  237. </div>
  238. <!-- 全局js -->
  239. <script th:src="@{/js/jquery.min.js}"></script>
  240. <script th:src="@{/js/bootstrap.min.js}"></script>
  241. <script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
  242. <script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
  243. <script th:src="@{/js/jquery.contextMenu.min.js}"></script>
  244. <script th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
  245. <script th:src="@{/ajax/libs/layer/layer.min.js}"></script>
  246. <script th:src="@{/ruoyi/js/ry-ui.js?v=4.2.0}"></script>
  247. <script th:src="@{/ruoyi/js/common.js?v=4.2.0}"></script>
  248. <script th:src="@{/ruoyi/index.js}"></script>
  249. <script th:src="@{/ajax/libs/fullscreen/jquery.fullscreen.js}"></script>
  250. <script th:inline="javascript">
  251. var ctx = [[@{/}]];
  252. // 皮肤缓存
  253. var skin = storage.get("skin");
  254. // history(表示去掉地址的#)否则地址以"#"形式展示
  255. var mode = "history";
  256. // 历史访问路径缓存
  257. var historyPath = storage.get("historyPath");
  258. // 本地主题优先,未设置取系统配置
  259. if($.common.isNotEmpty(skin)){
  260. $("body").addClass(skin.split('|')[0]);
  261. $("body").addClass(skin.split('|')[1]);
  262. } else {
  263. $("body").addClass([[${sideTheme}]]);
  264. $("body").addClass([[${skinName}]]);
  265. }
  266. /* 用户管理-重置密码 */
  267. function resetPwd() {
  268. var url = ctx + 'system/user/profile/resetPwd';
  269. $.modal.open("重置密码", url, '770', '380');
  270. }
  271. /* 切换主题 */
  272. function switchSkin() {
  273. layer.open({
  274. type : 2,
  275. shadeClose : true,
  276. title : "切换主题",
  277. area : ["530px", "386px"],
  278. content : [ctx + "system/switchSkin", 'no']
  279. })
  280. }
  281. /** 刷新时访问路径页签 */
  282. function applyPath(url) {
  283. $('a[href$="' + decodeURI(url) + '"]').click();
  284. if (!$('a[href$="' + url + '"]').hasClass("noactive")) {
  285. $('a[href$="' + url + '"]').parent("li").addClass("selected").parents("li").addClass("active").end().parents("ul").addClass("in");
  286. }
  287. }
  288. $(function() {
  289. if($.common.equals("history", mode) && window.performance.navigation.type == 1) {
  290. var url = storage.get('publicPath');
  291. if ($.common.isNotEmpty(url)) {
  292. applyPath(url);
  293. }
  294. } else {
  295. var hash = location.hash;
  296. if ($.common.isNotEmpty(hash)) {
  297. var url = hash.substring(1, hash.length);
  298. applyPath(url);
  299. }
  300. }
  301. });
  302. </script>
  303. </body>
  304. </html>