leftMenu.jsp 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8" %>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  5. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  6. <!-- 左侧导航区域 -->
  7. <div id="leftMenu">
  8. <!-- <div class="top_menu" @click="changeSide" v-if="collapse"></div> -->
  9. <div class="layui-side left_menu" :class="{close: collapse}">
  10. <!-- <div :class="['top_menu', {collapse}]" @click="changeSide" v-if="!collapse"></div> -->
  11. <div class="layui-side-scroll" style="width: 200px">
  12. <ul class="layui-nav layui-nav-tree" style="width: 200px" lay-filter="test">
  13. <li :class="['layui-nav-item', {'layui-nav-itemed layui-nav-itemed-hand': active === index}]"
  14. v-for="(item, index) in navLs" :key="index" v-if="menuCode.indexOf(item.code) >= 0"
  15. >
  16. <a :title="item.txt" @click="onSelectItem(index)" class='icon' style="color: #ffffff !important;"
  17. :class="active === index? item.activeIcon :item.icon" href="javascript:;">{{item.txt}}</a>
  18. <!-- <a v-else :title="item.txt" @click="onSelectItem(index)" :class="['icon', ]" href="javascript:;">{{item.txt}}</a> -->
  19. <dl class="layui-nav-child" v-if="item.child != null">
  20. <dd v-for="(it,ind) in item.child" :key="ind" v-if="menuCode.indexOf(it.code) >= 0">
  21. <a :title="it.txt" href="javascript:;" :class="['icon', it.icon]"
  22. style="font-size: 12px;text-indent: 1rem" @click="onSelectItem(index,ind)">{{it.txt}}</a>
  23. </dd>
  24. </dl>
  25. </li>
  26. </ul>
  27. </div>
  28. </div>
  29. <!-- 内容区域 -->
  30. <div class="layui-body">
  31. <iframe id="rightContent"></iframe>
  32. </div>
  33. </div>
  34. <script type="text/javascript">
  35. var year = new Date().getFullYear();
  36. new Vue({
  37. el: "#leftMenu",
  38. data: {
  39. winH: 0,
  40. collapse: false,
  41. tabActive: 1,
  42. isDialog: '${isDialog}',
  43. active: 0, // 左侧菜单选中项
  44. buttonActive: 1,
  45. buttonActive2: 1,
  46. menuCode: "${menuCode}".split(","),
  47. navLs: [
  48. /* {icon: 'icon_big_screen_active',activeIcon:'icon_big_screen_active', code: '101', txt: '分析大屏',url: 'statics/analysisScreen'}, */
  49. {
  50. icon: 'icon_big_screen_active',
  51. activeIcon: 'icon_big_screen_active',
  52. code: '101',
  53. txt: '智慧分析大屏',
  54. url: 'statics/analysisScreenTwo'
  55. },
  56. {
  57. icon: 'icon_work_bench_active',
  58. activeIcon: 'icon_work_bench_active',
  59. code: '201',
  60. txt: '互动工作台',
  61. url: 'workBench/zrWorkBench',
  62. kind: ["1", "4"]
  63. },
  64. {
  65. icon: 'icon_project_active',
  66. activeIcon: 'icon_project_active',
  67. code: '4',
  68. txt: '固定资产投资项目四库',
  69. child: [
  70. {
  71. txt: '储备项目库',
  72. code: '402',
  73. url: 'subject/subInfo/projTz?type=3',
  74. before: function () {
  75. window.localStorage.removeItem("TzQueryParam_cb_${loginUserId}")
  76. }
  77. },
  78. {
  79. txt: '新建项目库',
  80. code: '408',
  81. url: 'subject/subInfo/projTz?type=0',
  82. before: function () {
  83. window.localStorage.removeItem("TzQueryParam_xj_${loginUserId}")
  84. }
  85. },
  86. {
  87. txt: '在建项目库',
  88. code: '401',
  89. url: 'subject/subInfo/projTz?type=1',
  90. before: function () {
  91. window.localStorage.removeItem("TzQueryParam_main_${loginUserId}")
  92. }
  93. },
  94. {
  95. txt: '竣工项目库',
  96. code: '403',
  97. url: 'subject/subInfo/projTz?type=4',
  98. before: function () {
  99. window.localStorage.removeItem("TzQueryParam_end_${loginUserId}")
  100. }
  101. }
  102. ]
  103. },
  104. {
  105. icon: 'icon_project_active',
  106. activeIcon: 'icon_project_active',
  107. code: '1999',
  108. txt: '重点项目调度',
  109. child: [
  110. {
  111. txt: '储备项目',
  112. code: '1103',
  113. url: 'subject/subInfo/projTz?type=yearReserve',
  114. before: function () {
  115. window.localStorage.removeItem("TzQueryParam_yearReserve_${loginUserId}")
  116. }
  117. },
  118. {
  119. txt: '新建项目',
  120. code: '1101',
  121. url: 'subject/subInfo/projTz?type=yearNew',
  122. before: function () {
  123. window.localStorage.removeItem("TzQueryParam_yearNew_${loginUserId}")
  124. }
  125. },
  126. {
  127. txt: '在建项目',
  128. code: '1102',
  129. url: 'subject/subInfo/projTz?type=yearExtend',
  130. before: function () {
  131. window.localStorage.removeItem("TzQueryParam_yearExtend_${loginUserId}")
  132. }
  133. },
  134. {
  135. txt: '投产项目',
  136. code: '1101',
  137. url: 'subject/subInfo/projTz?type=yearSum',
  138. before: function () {
  139. window.localStorage.removeItem("TzQueryParam_yearSum_${loginUserId}")
  140. }
  141. },
  142. <%-- <c:forEach items="${zjlyList}" var="li" varStatus="lis">--%>
  143. <%-- {--%>
  144. <%-- txt: '${li.title}',--%>
  145. <%-- code: '${li.code}',--%>
  146. <%-- url: 'subject/subInfo/projZj?code=${li.code}&title=${li.title}',--%>
  147. <%-- },--%>
  148. <%-- </c:forEach>--%>
  149. <c:forEach items="${zjlyList}" var="li" varStatus="lis">
  150. <c:choose>
  151. <c:when test="${li.code == '1999' && li.title == '重点投资项目'}">
  152. {
  153. txt: '重点投资项目',
  154. code: '1999',
  155. url: 'subject/subInfo/projTz?type=major',
  156. },
  157. </c:when>
  158. <c:when test="${li.code == '104' && li.title == '援疆资金'}">
  159. {
  160. txt: '${li.title}',
  161. code: '${li.code}',
  162. url: 'non/fixed/investment/yjzj',
  163. },
  164. </c:when>
  165. <c:otherwise>
  166. {
  167. txt: '${li.title}',
  168. code: '${li.code}',
  169. /* url: 'subject/subInfo/projZjTab?code=${li.code}&title=${li.title}',*/
  170. url: 'subject/subInfo/projZjTab?code=${li.code}&title=${li.title}&statusZj=1',
  171. },
  172. </c:otherwise>
  173. </c:choose>
  174. </c:forEach>
  175. /* {
  176. txt: '重点投资项目',
  177. code: '404',
  178. url: 'subject/subInfo/projTz?type=major',
  179. },*/
  180. /* {
  181. txt: '中央预算内资金项目',
  182. code: '404',
  183. url: 'subject/subInfo/projTz?type=6',
  184. },
  185. {
  186. txt: '援疆资金项目',
  187. code: '405',
  188. url: 'subject/subInfo/projTz?type=7',
  189. },
  190. {
  191. txt: '总投资10亿元以上项目',
  192. code: '1001',
  193. url: 'subject/subInfo/projTz?type=9',
  194. },
  195. {
  196. txt: '以工代赈项目',
  197. code: '1002',
  198. url: 'subject/subInfo/projTz?type=10',
  199. },/!*, {
  200. txt: (year-1)+'年增发国债',
  201. code: '1003',
  202. url: 'subject/subInfo/projTz?type=11',
  203. },*!/
  204. {
  205. txt: year+'年超长期国债',
  206. code: '1004',
  207. url: 'subject/subInfo/projTz?type=12',
  208. }
  209. ,
  210. {
  211. txt: '地方政府专项债资金',
  212. code: '1005',
  213. url: 'subject/subInfo/projTz?type=13',
  214. }*/
  215. ]
  216. },
  217. {
  218. icon: 'icon_organ_manage_active',
  219. activeIcon: 'icon_organ_manage_active',
  220. code: '3',
  221. txt: '项目前期管理',
  222. child: [
  223. {
  224. txt: '项目信息申报',
  225. code: '301',
  226. url: 'subject/subInfo/report'
  227. },
  228. {
  229. txt: '项目审核',
  230. code: '302',
  231. url: 'subject/apply/spList'/* ?type=qx */
  232. },
  233. {
  234. code: '304',
  235. txt: '前期手续办理情况评价',
  236. url: 'subject/subInfo/projTz?type=prePj',
  237. },
  238. {
  239. txt: '前期手续办理情况',
  240. code: '303',
  241. url: 'subject/subInfo/pre'/* ?type=qx */
  242. }
  243. ]
  244. },
  245. {
  246. icon: 'icon_project_active',
  247. activeIcon: 'icon_project_active',
  248. code: '11',
  249. txt: '年度固定资产项目库',
  250. child: [
  251. {
  252. txt: '汇总项目',
  253. code: '1101',
  254. url: 'subject/subInfo/projTz?type=yearSum',
  255. before: function () {
  256. window.localStorage.removeItem("TzQueryParam_yearSum_${loginUserId}")
  257. }
  258. },
  259. {
  260. txt: '新建项目',
  261. code: '1101',
  262. url: 'subject/subInfo/projTz?type=yearNew',
  263. before: function () {
  264. window.localStorage.removeItem("TzQueryParam_yearNew_${loginUserId}")
  265. }
  266. },
  267. {
  268. txt: '续建项目',
  269. code: '1102',
  270. url: 'subject/subInfo/projTz?type=yearExtend',
  271. before: function () {
  272. window.localStorage.removeItem("TzQueryParam_yearExtend_${loginUserId}")
  273. }
  274. },
  275. {
  276. txt: '储备项目',
  277. code: '1103',
  278. url: 'subject/subInfo/projTz?type=yearReserve',
  279. before: function () {
  280. window.localStorage.removeItem("TzQueryParam_yearReserve_${loginUserId}")
  281. }
  282. }
  283. ]
  284. },
  285. {
  286. icon: 'icon_over_time_active',
  287. activeIcon: 'icon_over_time_active',
  288. code: '2000',
  289. txt: '竣工验收及项目后评价',
  290. url: 'subject/subInfo/projTz?type=8',
  291. },
  292. /* {
  293. icon: 'icon_over_time_active', activeIcon: 'icon_over_time_active',
  294. code: '5',
  295. txt: '重点投资项目',
  296. url: 'subject/subInfo/projTz?type=major',
  297. },*/
  298. {
  299. icon: 'icon_over_time_active', activeIcon: 'icon_over_time_active',
  300. code: '5',
  301. txt: '统计分析',
  302. url: 'tjfx/index'
  303. },
  304. {
  305. icon: 'icon_over_time_active',
  306. activeIcon: 'icon_over_time_active',
  307. code: '6',
  308. txt: '预警问题督办',
  309. child: [
  310. {
  311. txt: '问题统计分析',
  312. code: '602',
  313. //icon: 'icon_question_gz',
  314. url: 'problem/info/index'
  315. },
  316. {
  317. txt: '问题推送处理',
  318. code: '603',
  319. url: "problemtrack/index"
  320. }
  321. ]
  322. },
  323. {
  324. icon: 'icon_zjfwk_active',
  325. activeIcon: 'icon_zjfwk_active',
  326. txt: '智联工地',
  327. code: '7',
  328. child: [
  329. /* {
  330. code: '701',
  331. txt: '智慧工地总览',
  332. url: 'smart/index'
  333. }, */
  334. {
  335. code: '702',
  336. txt: '项目地图',
  337. url: 'smart/query'
  338. },
  339. {
  340. code: '703',
  341. txt: '实时视频',
  342. url: 'smart/vedio'
  343. },
  344. {
  345. txt: '周调度图片',
  346. code: '706',
  347. url: 'graphicProgress/list'
  348. },
  349. {
  350. txt: '月航拍全景',
  351. code: '707',
  352. url: 'aerial/list'
  353. }
  354. ]
  355. },
  356. {
  357. icon: 'icon_project_active',
  358. activeIcon: 'icon_project_active',
  359. code: '8',
  360. txt: '产业链共享服务',
  361. url: 'intermediary/list'
  362. /* child: [
  363. {
  364. txt: '产业链服务库列表',
  365. code: '801',
  366. url: 'intermediary/list'
  367. },{
  368. txt: '产业链服务库统计',
  369. code: '802',
  370. url: 'intermediary/statics'
  371. },
  372. ] */
  373. },
  374. // ,{
  375. // icon: 'icon_project_zjfwk_active',
  376. // activeIcon:'icon_project_zjfwk_active',
  377. // txt: '产业链服务库',
  378. // code: '11',
  379. // url: 'intermediary/list'
  380. // },
  381. // {
  382. // icon: 'icon_project_active',
  383. // activeIcon:'icon_project_active',
  384. // code: '5',
  385. // txt: '项目申报管理',
  386. // child: [
  387. // {
  388. // txt: '项目信息申报',
  389. // code: '501',
  390. // url: 'subject/subInfo/report'
  391. // },
  392. // /* {
  393. // txt: '项目申报',
  394. // code: '502',
  395. // url: 'subject/subPre/records_list'
  396. // }, */
  397. // /* {
  398. // txt: '分配审核单位',
  399. // code: '502',
  400. // url: 'subject/subInfo/manage'
  401. // }, */
  402. // {
  403. // txt: '项目手续办理',
  404. // code: '503',
  405. // url: '/subPreNew/index'
  406. // },
  407. // {
  408. // txt: '项目审核',
  409. // code: '504',
  410. // url: 'subject/apply/spList'/* ?type=qx */
  411. // },
  412. // /* {
  413. // txt: '项目审核-市发改委',
  414. // code: '505',
  415. // url: 'subject/apply/spList?type=sj'
  416. // }, */
  417. // /* {
  418. // txt: '项目核准备案',
  419. // code: '505',
  420. // url: 'subject/hzba/list'
  421. // }, */
  422. // ]
  423. // },
  424. {
  425. icon: 'icon_project_xtgl_active',
  426. activeIcon: 'icon_project_xtgl_active',
  427. code: '9',
  428. txt: '系统管理',
  429. child: [
  430. {
  431. txt: '角色管理',
  432. code: '901',
  433. url: "Rolemeun/view"
  434. },
  435. {
  436. txt: '用户管理',
  437. code: '902',
  438. url: "user/view"
  439. },
  440. {
  441. txt: '用户管理-项目单位',
  442. code: '903',
  443. url: "userapply/view"
  444. },
  445. {
  446. txt: '项目单位信息',
  447. code: '904',
  448. url: 'register/query'
  449. }, {
  450. txt: '审核项目单位信息',
  451. code: '905',
  452. url: 'register/queryCheck'
  453. },
  454. {
  455. txt: '行业部门信息',
  456. code: '906',
  457. url: 'junit/index'
  458. },
  459. {
  460. txt: '部门科室信息',
  461. code: '907',
  462. url: 'jdepart/index'
  463. }
  464. ,
  465. {
  466. txt: '监管单位设置',
  467. code: '908',
  468. url: 'mainjunit/index'
  469. },
  470. {
  471. txt: '字典管理',
  472. code: '909',
  473. url: 'dicsystable/index',
  474. },
  475. /* {
  476. txt: 'APP轮播图设置',
  477. code: '607',
  478. url: 'picture/index'
  479. }, */
  480. /* {
  481. txt: '项目文档的单位设置',
  482. code: '608',
  483. url: 'approvalUnit/index'
  484. }, */
  485. {
  486. txt: '公告管理',
  487. code: '910',
  488. url: 'notice/index'
  489. },
  490. {
  491. txt: '系统参数设置',
  492. code: '911',
  493. url: 'sysTable/index'
  494. },
  495. {
  496. txt: '项目前期批复单位设置',
  497. code: '912',
  498. url: 'subPreFlow/setUnit'
  499. },
  500. {
  501. txt: '同步日志查询',
  502. code: '913',
  503. url: 'syncLog/index'
  504. },
  505. {
  506. txt: '项目日志查询',
  507. code: '913',
  508. url: 'subDataLog/index'
  509. },
  510. {
  511. txt: '登录日志',
  512. code: '911',
  513. url: 'loginlog/index'
  514. },
  515. {
  516. code: '914',
  517. txt: '政策文件分类',
  518. url: 'policy/column/index'
  519. },
  520. // {
  521. // code: '1002',
  522. // txt: '文件内容',
  523. // url: 'policy/document/index'
  524. // },
  525. // {
  526. // txt: '项目删除',
  527. // code: '515',
  528. // url: 'subject/subInfo/delView'
  529. // },
  530. {
  531. txt: '短信日志查询',
  532. code: '915',
  533. url: 'msgLog/index'
  534. },
  535. {
  536. txt: '项目总库',
  537. code: '916',
  538. url: 'subject/subInfo/projTz?type=5',
  539. before: function () {
  540. window.localStorage.removeItem("TzQueryParam_zk_${loginUserId}")
  541. }
  542. },
  543. {
  544. code: '917',
  545. txt: '项目年度计划',
  546. url: 'annualPlan/index'
  547. },
  548. {
  549. txt: '项目周报',
  550. code: '406',
  551. url: 'weekReport/view'
  552. },
  553. {
  554. txt: '项目月报',
  555. code: '407',
  556. url: 'monthReport/view'
  557. },
  558. {
  559. txt: '逾期项目',
  560. code: '601',
  561. url: 'overdue/view?overStatus=1'
  562. },
  563. {
  564. code: '604',
  565. txt: '重大事件记录专栏',
  566. url: 'meetingRecords/list'
  567. },
  568. {
  569. txt: '经纬度设置',
  570. code: '704',
  571. url: 'subject/subInfo/latitudeAndLongitude'
  572. },
  573. {
  574. txt: '摄像头绑定',
  575. code: '705',
  576. url: 'camera/index'
  577. },
  578. ]
  579. }
  580. // ,{
  581. // icon: 'icon_big_screen_active',
  582. // activeIcon:'icon_big_screen_active',
  583. // code: '8',
  584. // txt: '统计分析',
  585. // child: [
  586. // /* {
  587. // code: '811',
  588. // txt: '项目预测分析',
  589. // url: 'prediction/index',
  590. // }, */{
  591. // code: '812',
  592. // txt: '同比',
  593. // url: 'yoy/index'
  594. //
  595. // },{
  596. // code: '813',
  597. // txt: '环比',
  598. // url: 'qoq/view'
  599. // },{
  600. // code: '814',
  601. // txt: '年度投资分析',
  602. // url: 'yoy/tjfx'
  603. // }
  604. // ]
  605. // }
  606. // {
  607. // icon: 'icon_big_screen_active',
  608. // activeIcon:'icon_big_screen_active',
  609. // txt: '政策文件管理',
  610. // code: '10',
  611. // child: [
  612. // {
  613. // code: '1001',
  614. // txt: '政策文件分类',
  615. // url: 'policy/column/index'
  616. // },
  617. // {
  618. // code: '1002',
  619. // txt: '文件内容',
  620. // url: 'policy/document/index'
  621. // }
  622. // ]
  623. // }
  624. ],
  625. imgLs: 10
  626. },
  627. mounted: function () {
  628. this.init();
  629. window.addEventListener("message", e => {
  630. this.changeSide(e.data.collapse)
  631. });
  632. window.toWorkBench = this.toWorkBench;
  633. window.toTask = this.toTask;
  634. },
  635. methods: {
  636. init: function () {
  637. if (this.isDialog === '1') {
  638. this.toTask();
  639. }
  640. const $ = layui.jquery
  641. // $('#rightContent').width(document.body.clientWidth - 190).height(document.body.clientHeight - 50);
  642. window.addEventListener('resize', function () {
  643. // $('#rightContent').height(document.body.clientHeight - 50);
  644. })
  645. //通过hash值的索引定位应该加载哪个页面
  646. var href = window.location.href;
  647. var toUrl = href.replace(App.getUrl("index"), "");
  648. if (toUrl.indexOf("#") == 0 && toUrl.length >= 2) {
  649. var hashIndex = toUrl.replace("#", "").split("_");
  650. for (var i = 0; i < hashIndex.length; i++) {
  651. if (!isNumber(hashIndex[i])) {
  652. return;
  653. }
  654. }
  655. if (hashIndex.length > 1) {
  656. this.onSelectItem(hashIndex[0], hashIndex[1]);
  657. } else {
  658. this.onSelectItem(hashIndex[0]);
  659. }
  660. //页面选中
  661. /* for(var i =0;i<this.navLs.length;i++){
  662. if (this.navLs[i].child != null){
  663. //再次循环
  664. for (var j=0;j<this.navLs[i].child.length;j++){
  665. if(toUrl.indexOf(this.navLs[i].child[j].url) >= 0){
  666. $("#rightContent").attr("src",App.getUrl(toUrl.substring(2,toUrl.length)));
  667. this.active = i;
  668. break;
  669. }
  670. }
  671. }else{
  672. if(toUrl.indexOf(this.navLs[i].url) >= 0){
  673. $("#rightContent").attr("src",App.getUrl(toUrl.substring(2,toUrl.length)));
  674. this.active = i;
  675. break;
  676. }
  677. }
  678. } */
  679. } else {
  680. //初始化选中第一个菜单
  681. for (var i = 0; i < this.navLs.length; i++) {
  682. if (this.menuCode.indexOf(this.navLs[i].code) >= 0) {
  683. if (this.navLs[i].child) {
  684. var child = this.navLs[i].child;
  685. for (var j = 0; j < child.length; j++) {
  686. if (this.menuCode.indexOf(child[j].code) >= 0) {
  687. this.onSelectItem(i, j);
  688. return;
  689. }
  690. }
  691. } else {
  692. this.onSelectItem(i);
  693. return;
  694. }
  695. }
  696. }
  697. }
  698. },
  699. changeSide: function (status = true) {
  700. this.collapse = !status
  701. if (this.collapse) {
  702. $("#rightContent").parent().addClass("close");
  703. } else {
  704. $("#rightContent").parent().removeClass("close");
  705. }
  706. $("#rightContent").width("100%");
  707. },
  708. toWorkBench: function () {
  709. var index = this.navLs.findIndex(item => {
  710. return item.txt === '工作台';
  711. });
  712. this.onSelectItem(index)
  713. },
  714. toTask: function () {
  715. /* top.App.openLayer({
  716. title : "项目调度情况",
  717. content : App.getUrl("meetingRecords/show"),
  718. height : "700",
  719. width : "90%"
  720. });*/
  721. //详情
  722. var index = top.layer.open({
  723. type: 2,
  724. area: ['95%', '100%'],
  725. content: App.getUrl("taskRecords/show"),
  726. shade: 0.5,
  727. shadeClose: true
  728. });
  729. //top.layer.full(index);
  730. },
  731. onSelectItem: function (index, ind) {
  732. this.active = index;
  733. if (ind != undefined) {
  734. var chooseNode = this.navLs[index]["child"][ind];
  735. if (chooseNode.url) {
  736. if (chooseNode.before && typeof (chooseNode.before) == 'function') {
  737. chooseNode.before();
  738. }
  739. window.location.hash = index + "_" + ind;
  740. var parentNodeText = this.navLs[index].txt;
  741. var arrowHtml = '<div class="top-arrow-html"></div>';
  742. $("#rightContent").attr("src", App.getUrl(chooseNode.url));
  743. $(".top-breadcrumb").html(parentNodeText + arrowHtml + chooseNode.txt);
  744. } else {
  745. App.msg.warn("正在建设中");
  746. }
  747. } else if (this.navLs[index].url) {
  748. var chooseNode = this.navLs[index];
  749. if (chooseNode.before && typeof (chooseNode.before) == 'function') {
  750. chooseNode.before();
  751. }
  752. window.location.hash = index;
  753. $("#rightContent").attr("src", App.getUrl(this.navLs[index].url));
  754. $(".top-breadcrumb").text(this.navLs[index].txt);
  755. }
  756. },
  757. onChangeActive: function (index) {
  758. this.tabActive = index
  759. },
  760. onButtonActive: function (index) {
  761. this.buttonActive = index
  762. },
  763. onView: function () {
  764. const $ = layui.jquery
  765. layer.open({
  766. type: 1,
  767. title: '确认信息',
  768. skin: 'pop_info_class',
  769. id: 'layerPop1', //防止重复弹出
  770. content: $('#popInfo'),
  771. btn: ['取消', '提交'],
  772. btnAlign: 'c', //按钮居中
  773. yes: function () {
  774. layer.closeAll();
  775. },
  776. btn2: function () {
  777. },
  778. cancel: function () {
  779. layer.closeAll();
  780. }
  781. })
  782. }
  783. }
  784. });
  785. window.onresize = function () {
  786. $("#rightContent").css("width", "100%");
  787. }
  788. </script>
  789. <style>
  790. #rightContent {
  791. width: 100%;
  792. border: none;
  793. height: calc(100% - 6px);
  794. }
  795. .left_menu {
  796. width: 200px;
  797. }
  798. </style>