index-topnav.html 21 KB

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