index.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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="shortcut icon"/>
  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.min.css}" rel="stylesheet"/>
  15. <link th:href="@{/css/style.min.css}" rel="stylesheet"/>
  16. <link th:href="@{/css/skins.css}" rel="stylesheet"/>
  17. <link th:href="@{/ruoyi/css/ry-ui.css?v=4.6.2}" 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">光耀集中式风电功率预测系统</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="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}" th:onerror="this.src='img/profile.jpg'" 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 class="menuItem" th:href="@{/system/main}"><i class="fa fa-home"></i> <span class="nav-label">首页</span> </a>
  50. </li>
  51. <li th:each="menu : ${menus}">
  52. <a th:class="@{${!#strings.isEmpty(menu.url) && menu.url != '#'} ? ${menu.target}}" th:href="@{${#strings.isEmpty(menu.url)} ? |#| : ${menu.url}}" th:data-refresh="${menu.isRefresh == '0'}">
  53. <i class="fa fa-bar-chart-o" th:class="${menu.icon}"></i>
  54. <span class="nav-label" th:text="${menu.menuName}">一级菜单</span>
  55. <span th:class="${#strings.isEmpty(menu.url) || menu.url == '#'} ? |fa arrow|"></span>
  56. </a>
  57. <ul class="nav nav-second-level collapse">
  58. <li th:each="cmenu : ${menu.children}">
  59. <a th:if="${#lists.isEmpty(cmenu.children)}" th:class="${#strings.isEmpty(cmenu.target)} ? |menuItem| : ${cmenu.target}" th:utext="${cmenu.menuName}" th:href="@{${cmenu.url}}" th:data-refresh="${cmenu.isRefresh == '0'}">二级菜单</a>
  60. <a th:if="${not #lists.isEmpty(cmenu.children)}" href="#">[[${cmenu.menuName}]]<span class="fa arrow"></span></a>
  61. <ul th:if="${not #lists.isEmpty(cmenu.children)}" class="nav nav-third-level">
  62. <li th:each="emenu : ${cmenu.children}">
  63. <a th:if="${#lists.isEmpty(emenu.children)}" th:class="${#strings.isEmpty(emenu.target)} ? |menuItem| : ${emenu.target}" th:text="${emenu.menuName}" th:href="@{${emenu.url}}" th:data-refresh="${emenu.isRefresh == '0'}">三级菜单</a>
  64. <a th:if="${not #lists.isEmpty(emenu.children)}" href="#">[[${emenu.menuName}]]<span class="fa arrow"></span></a>
  65. <ul th:if="${not #lists.isEmpty(emenu.children)}" class="nav nav-four-level">
  66. <li th:each="fmenu : ${emenu.children}"><a th:if="${#lists.isEmpty(fmenu.children)}" th:class="${#strings.isEmpty(fmenu.target)} ? |menuItem| : ${fmenu.target}" th:text="${fmenu.menuName}" th:href="@{${fmenu.url}}" th:data-refresh="${fmenu.isRefresh == '0'}">四级菜单</a></li>
  67. </ul>
  68. </li>
  69. </ul>
  70. </li>
  71. </ul>
  72. </li>
  73. <li th:if="${demoEnabled}">
  74. <a href="#"><i class="fa fa-desktop"></i><span class="nav-label">实例演示</span><span class="fa arrow"></span></a>
  75. <ul class="nav nav-second-level collapse">
  76. <li> <a>表单<span class="fa arrow"></span></a>
  77. <ul class="nav nav-third-level">
  78. <li><a class="menuItem" th:href="@{/demo/form/button}">按钮</a></li>
  79. <li><a class="menuItem" th:href="@{/demo/form/grid}">栅格</a></li>
  80. <li><a class="menuItem" th:href="@{/demo/form/select}">下拉框</a></li>
  81. <li><a class="menuItem" th:href="@{/demo/form/timeline}">时间轴</a></li>
  82. <li><a class="menuItem" th:href="@{/demo/form/basic}">基本表单</a></li>
  83. <li><a class="menuItem" th:href="@{/demo/form/cards}">卡片列表</a></li>
  84. <li><a class="menuItem" th:href="@{/demo/form/jasny}">功能扩展</a></li>
  85. <li><a class="menuItem" th:href="@{/demo/form/sortable}">拖动排序</a></li>
  86. <li><a class="menuItem" th:href="@{/demo/form/invoice}">单据打印</a></li>
  87. <li><a class="menuItem" th:href="@{/demo/form/labels_tips}">标签 & 提示</a></li>
  88. <li><a class="menuItem" th:href="@{/demo/form/tabs_panels}">选项卡 & 面板</a></li>
  89. <li><a class="menuItem" th:href="@{/demo/form/validate}">表单校验</a></li>
  90. <li><a class="menuItem" th:href="@{/demo/form/wizard}">表单向导</a></li>
  91. <li><a class="menuItem" th:href="@{/demo/form/upload}">文件上传</a></li>
  92. <li><a class="menuItem" th:href="@{/demo/form/datetime}">日期和时间</a></li>
  93. <li><a class="menuItem" th:href="@{/demo/form/summernote}">富文本编辑器</a></li>
  94. <li><a class="menuItem" th:href="@{/demo/form/duallistbox}">左右互选组件</a></li>
  95. <li><a class="menuItem" th:href="@{/demo/form/autocomplete}">搜索自动补全</a></li>
  96. <li><a class="menuItem" th:href="@{/demo/form/cxselect}">多级联动下拉</a></li>
  97. <li><a class="menuItem" th:href="@{/demo/form/localrefresh}">Ajax局部刷新</a></li>
  98. </ul>
  99. </li>
  100. <li> <a>表格<span class="fa arrow"></span></a>
  101. <ul class="nav nav-third-level">
  102. <li><a class="menuItem" th:href="@{/demo/table/search}">查询条件</a></li>
  103. <li><a class="menuItem" th:href="@{/demo/table/footer}">数据汇总</a></li>
  104. <li><a class="menuItem" th:href="@{/demo/table/groupHeader}">组合表头</a></li>
  105. <li><a class="menuItem" th:href="@{/demo/table/export}">表格导出</a></li>
  106. <li><a class="menuItem" th:href="@{/demo/table/exportSelected}">导出选择列</a></li>
  107. <li><a class="menuItem" th:href="@{/demo/table/remember}">翻页记住选择</a></li>
  108. <li><a class="menuItem" th:href="@{/demo/table/pageGo}">跳转至指定页</a></li>
  109. <li><a class="menuItem" th:href="@{/demo/table/params}">自定义查询参数</a></li>
  110. <li><a class="menuItem" th:href="@{/demo/table/multi}">初始多表格</a></li>
  111. <li><a class="menuItem" th:href="@{/demo/table/button}">点击按钮加载表格</a></li>
  112. <li><a class="menuItem" th:href="@{/demo/table/data}">直接加载表格数据</a></li>
  113. <li><a class="menuItem" th:href="@{/demo/table/fixedColumns}">表格冻结列</a></li>
  114. <li><a class="menuItem" th:href="@{/demo/table/event}">自定义触发事件</a></li>
  115. <li><a class="menuItem" th:href="@{/demo/table/headerStyle}">表格标题格式化</a></li>
  116. <li><a class="menuItem" th:href="@{/demo/table/detail}">表格细节视图</a></li>
  117. <li><a class="menuItem" th:href="@{/demo/table/child}">表格父子视图</a></li>
  118. <li><a class="menuItem" th:href="@{/demo/table/image}">表格图片预览</a></li>
  119. <li><a class="menuItem" th:href="@{/demo/table/curd}">动态增删改查</a></li>
  120. <li><a class="menuItem" th:href="@{/demo/table/reorderRows}">表格行拖拽操作</a></li>
  121. <li><a class="menuItem" th:href="@{/demo/table/reorderColumns}">表格列拖拽操作</a></li>
  122. <li><a class="menuItem" th:href="@{/demo/table/resizable}">表格列宽拖动</a></li>
  123. <li><a class="menuItem" th:href="@{/demo/table/editable}">表格行内编辑</a></li>
  124. <li><a class="menuItem" th:href="@{/demo/table/subdata}">主子表提交</a></li>
  125. <li><a class="menuItem" th:href="@{/demo/table/refresh}">表格自动刷新</a></li>
  126. <li><a class="menuItem" th:href="@{/demo/table/print}">表格打印配置</a></li>
  127. <li><a class="menuItem" th:href="@{/demo/table/dynamicColumns}">表格动态列</a></li>
  128. <li><a class="menuItem" th:href="@{/demo/table/customView}">自定义视图分页</a></li>
  129. <li><a class="menuItem" th:href="@{/demo/table/other}">表格其他操作</a></li>
  130. </ul>
  131. </li>
  132. <li> <a>弹框<span class="fa arrow"></span></a>
  133. <ul class="nav nav-third-level">
  134. <li><a class="menuItem" th:href="@{/demo/modal/dialog}">模态窗口</a></li>
  135. <li><a class="menuItem" th:href="@{/demo/modal/layer}">弹层组件</a></li>
  136. <li><a class="menuItem" th:href="@{/demo/modal/table}">弹层表格</a></li>
  137. </ul>
  138. </li>
  139. <li> <a>操作<span class="fa arrow"></span></a>
  140. <ul class="nav nav-third-level">
  141. <li><a class="menuItem" th:href="@{/demo/operate/table}">表格</a></li>
  142. <li><a class="menuItem" th:href="@{/demo/operate/other}">其他</a></li>
  143. </ul>
  144. </li>
  145. <li> <a>报表<span class="fa arrow"></span></a>
  146. <ul class="nav nav-third-level">
  147. <li><a class="menuItem" th:href="@{/demo/report/echarts}">百度ECharts</a></li>
  148. <li><a class="menuItem" th:href="@{/demo/report/peity}">peity</a></li>
  149. <li><a class="menuItem" th:href="@{/demo/report/sparkline}">sparkline</a></li>
  150. <li><a class="menuItem" th:href="@{/demo/report/metrics}">图表组合</a></li>
  151. </ul>
  152. </li>
  153. <li> <a>图标<span class="fa arrow"></span></a>
  154. <ul class="nav nav-third-level">
  155. <li><a class="menuItem" th:href="@{/demo/icon/fontawesome}">Font Awesome</a></li>
  156. <li><a class="menuItem" th:href="@{/demo/icon/glyphicons}">Glyphicons</a></li>
  157. </ul>
  158. </li>
  159. <li>
  160. <a href="#"><i class="fa fa-sitemap"></i>四层菜单<span class="fa arrow"></span></a>
  161. <ul class="nav nav-third-level collapse">
  162. <li>
  163. <a href="#" id="damian">三级菜单1<span class="fa arrow"></span></a>
  164. <ul class="nav nav-third-level">
  165. <li>
  166. <a href="#">四级菜单1</a>
  167. </li>
  168. <li>
  169. <a href="#">四级菜单2</a>
  170. </li>
  171. </ul>
  172. </li>
  173. <li><a href="#">三级菜单2</a></li>
  174. </ul>
  175. </li>
  176. </ul>
  177. </li>
  178. </ul>
  179. </div>
  180. </nav>
  181. <!--左侧导航结束-->
  182. <!--右侧部分开始-->
  183. <div id="page-wrapper" class="gray-bg dashbard-1">
  184. <div class="row border-bottom">
  185. <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
  186. <div class="navbar-header">
  187. <a class="navbar-minimalize minimalize-styl-2" style="color:#FFF;" href="#" title="收起菜单">
  188. <i class="fa fa-bars"></i>
  189. </a>
  190. </div>
  191. <ul class="nav navbar-top-links navbar-right welcome-message">
  192. <!--<li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="开发文档" href="http://doc.ruoyi.vip/ruoyi" target="_blank"><i class="fa fa-question-circle"></i> 文档</a></li>-->
  193. <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="锁定屏幕" href="#" id="lockScreen"><i class="fa fa-lock"></i> 锁屏</a></li>
  194. <li><a data-toggle="tooltip" data-trigger="hover" data-placement="bottom" title="全屏显示" href="#" id="fullScreen"><i class="fa fa-arrows-alt"></i> 全屏</a></li>
  195. <li class="dropdown user-menu">
  196. <a href="javascript:void(0)" class="dropdown-toggle" data-hover="dropdown">
  197. <img th:src="(${#strings.isEmpty(user.avatar)}) ? @{/img/profile.jpg} : @{${user.avatar}}" th:onerror="this.src='img/profile.jpg'" class="user-image">
  198. <span class="hidden-xs">[[${#strings.defaultString(user.userName, '-')}]]</span>
  199. </a>
  200. <ul class="dropdown-menu">
  201. <li class="mt5">
  202. <a th:href="@{/system/user/profile}" class="menuItem noactive">
  203. <i class="fa fa-user"></i> 个人中心</a>
  204. </li>
  205. <li>
  206. <a onclick="resetPwd()">
  207. <i class="fa fa-key"></i> 修改密码</a>
  208. </li>
  209. <li>
  210. <a onclick="switchSkin()">
  211. <i class="fa fa-dashboard"></i> 切换主题</a>
  212. </li>
  213. <!--<li>
  214. <a onclick="toggleMenu()">
  215. <i class="fa fa-toggle-off"></i> 横向菜单</a>
  216. </li>-->
  217. <li class="divider"></li>
  218. <li>
  219. <a th:href="@{logout}">
  220. <i class="fa fa-sign-out"></i> 退出登录</a>
  221. </li>
  222. </ul>
  223. </li>
  224. </ul>
  225. </nav>
  226. </div>
  227. <div class="row content-tabs">
  228. <button class="roll-nav roll-left tabLeft">
  229. <i class="fa fa-backward"></i>
  230. </button>
  231. <nav class="page-tabs menuTabs">
  232. <div class="page-tabs-content">
  233. <a href="javascript:;" class="active menuTab" th:data-id="@{/system/main}">首页</a>
  234. </div>
  235. </nav>
  236. <button class="roll-nav roll-right tabRight">
  237. <i class="fa fa-forward"></i>
  238. </button>
  239. <a href="javascript:void(0);" class="roll-nav roll-right tabReload"><i class="fa fa-refresh"></i> 刷新</a>
  240. </div>
  241. <a id="ax_close_max" class="ax_close_max" href="#" title="关闭全屏"> <i class="fa fa-times-circle-o"></i> </a>
  242. <div class="row mainContent" id="content-main" th:style="${#bools.isFalse(ignoreFooter)} ? |height: calc(100% - 91px)|">
  243. <iframe class="RuoYi_iframe" name="iframe0" width="100%" height="100%" th:data-id="@{/system/main}"
  244. th:src="@{/system/main}" frameborder="0" seamless></iframe>
  245. </div>
  246. <!--<div th:if="${ignoreFooter}" class="footer">
  247. <div class="pull-right">© [[${copyrightYear}]] RuoYi Copyright </div>
  248. </div>-->
  249. </div>
  250. <!--右侧部分结束-->
  251. </div>
  252. <!-- 全局js -->
  253. <script th:src="@{/js/jquery.min.js}"></script>
  254. <script th:src="@{/js/bootstrap.min.js}"></script>
  255. <script th:src="@{/js/plugins/metisMenu/jquery.metisMenu.js}"></script>
  256. <script th:src="@{/js/plugins/slimscroll/jquery.slimscroll.min.js}"></script>
  257. <script th:src="@{/js/jquery.contextMenu.min.js}"></script>
  258. <script th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
  259. <script th:src="@{/ajax/libs/layer/layer.min.js}"></script>
  260. <script th:src="@{/ruoyi/js/ry-ui.js?v=4.6.2}"></script>
  261. <script th:src="@{/ruoyi/js/common.js?v=4.6.2}"></script>
  262. <script th:src="@{/ruoyi/index.js?v=20201208}"></script>
  263. <script th:src="@{/ajax/libs/fullscreen/jquery.fullscreen.js}"></script>
  264. <script th:inline="javascript">
  265. window.history.forward(1);
  266. var ctx = [[@{/}]];
  267. var lockscreen = [[${session.lockscreen}]];
  268. if(lockscreen){window.top.location=ctx+"lockscreen";}
  269. // 皮肤缓存
  270. var skin = storage.get("skin");
  271. // history(表示去掉地址的#)否则地址以"#"形式展示
  272. var mode = "history";
  273. // 历史访问路径缓存
  274. var historyPath = storage.get("historyPath");
  275. // 是否页签与菜单联动
  276. var isLinkage = true;
  277. // 本地主题优先,未设置取系统配置
  278. if($.common.isNotEmpty(skin)){
  279. $("body").addClass(skin.split('|')[0]);
  280. $("body").addClass(skin.split('|')[1]);
  281. } else {
  282. $("body").addClass([[${sideTheme}]]);
  283. $("body").addClass([[${skinName}]]);
  284. }
  285. /* 用户管理-重置密码 */
  286. function resetPwd() {
  287. var url = ctx + 'system/user/profile/resetPwd';
  288. $.modal.open("重置密码", url, '770', '380');
  289. }
  290. /* 切换主题 */
  291. function switchSkin() {
  292. layer.open({
  293. type : 2,
  294. shadeClose : true,
  295. title : "切换主题",
  296. area : ["530px", "386px"],
  297. content : [ctx + "system/switchSkin", 'no']
  298. })
  299. }
  300. /* 切换菜单 */
  301. function toggleMenu() {
  302. $.modal.confirm("确认要切换成横向菜单吗?", function() {
  303. $.get(ctx + 'system/menuStyle/topnav', function(result) {
  304. window.location.reload();
  305. });
  306. })
  307. }
  308. /** 刷新时访问路径页签 */
  309. function applyPath(url) {
  310. $('a[href$="' + decodeURI(url) + '"]').click();
  311. if (!$('a[href$="' + url + '"]').hasClass("noactive")) {
  312. $('a[href$="' + url + '"]').parent("li").addClass("selected").parents("li").addClass("active").end().parents("ul").addClass("in");
  313. }
  314. }
  315. $(function() {
  316. var lockPath = storage.get('lockPath');
  317. if($.common.equals("history", mode) && window.performance.navigation.type == 1) {
  318. var url = storage.get('publicPath');
  319. if ($.common.isNotEmpty(url)) {
  320. applyPath(url);
  321. }
  322. } else if($.common.isNotEmpty(lockPath)) {
  323. applyPath(lockPath);
  324. storage.remove('lockPath');
  325. } else {
  326. var hash = location.hash;
  327. if ($.common.isNotEmpty(hash)) {
  328. var url = hash.substring(1, hash.length);
  329. applyPath(url);
  330. } else {
  331. if($.common.equals("history", mode)) {
  332. storage.set('publicPath', "");
  333. }
  334. }
  335. }
  336. /* 初始密码提示 */
  337. if([[${isDefaultModifyPwd}]]) {
  338. layer.confirm("您的密码还是初始密码,请修改密码!", {
  339. icon: 0,
  340. title: "安全提示",
  341. btn: ['确认' , '取消'],
  342. offset: ['30%']
  343. }, function (index) {
  344. resetPwd();
  345. layer.close(index);
  346. });
  347. }
  348. /* 过期密码提示 */
  349. if([[${isPasswordExpired}]]) {
  350. layer.confirm("您的密码已过期,请尽快修改密码!", {
  351. icon: 0,
  352. title: "安全提示",
  353. btn: ['确认' , '取消'],
  354. offset: ['30%']
  355. }, function (index) {
  356. resetPwd();
  357. layer.close(index);
  358. });
  359. }
  360. $("[data-toggle='tooltip']").tooltip();
  361. });
  362. </script>
  363. </body>
  364. </html>