1 line
3.7 KiB
JavaScript
1 line
3.7 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-02d152a0"],{"009e":function(t,e,n){"use strict";n.r(e);var s=[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"right"},[e("a",{staticClass:"closeBtn",attrs:{href:"javascript:window.opener=null;window.close();"}},[e("img",{attrs:{src:n("6c99"),alt:""}})])])}],i=(n("4160"),n("c975"),n("159b"),{data:function(){return{moduleList:[{menuList:[{menuList:[{menuList:[]}]}]}]}},watch:{$route:function(t,e){}},mounted:function(){var t=this.$store.state.userInfo.menuAuthority.moduleList,e=[];t.forEach((function(t){2==t.moduleType&&e.push(t)})),this.moduleList=e},methods:{hasSubMenu:function(t){var e=!1;return t&&t.length>0&&t.forEach((function(t){t.menuName&&(e=!0)})),e},selectSecondMenu:function(t,e){this.$store.commit("changeSecondMenuIndex",t);var n="";e.path?n=e.path:-1!=e.menuList[0].path.indexOf("/")&&""!=e.menuList[0].path?n=e.menuList[0].path:""!=e.menuList[0].menuList[0].path&&-1!=e.menuList[0].menuList[0].path.indexOf("/")&&(n=e.menuList[0].menuList[0].path),-1!=n.indexOf("http")?(routeUrl=n,window.open(routeUrl,"_blank")):-1!=n.indexOf("/")&&this.$router.push(n)}}}),u=(n("d22d"),n("2877")),a=Object(u.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fullHeight jyjzPage"},[n("div",{staticClass:"headerBox"},[n("div",{staticClass:"left fullHeight"},[n("h1",[t._v("安全管理")]),n("div",{staticClass:"topMenuBox"},[n("ul",t._l(t.moduleList[t.$store.state.mouduleIndex].menuList,(function(e,s){return n("li",{key:e.menuId,class:t.$store.state.secondMenuIndex==s?"active":"",on:{click:function(n){return t.selectSecondMenu(s,e)}}},[n("span",[t._v(t._s(e.menuName))])])})),0)])]),t._m(0)]),n("div",{staticClass:"jyjzPageContent"},[n("div",{staticClass:"leftMenu fullHeight"},[n("el-menu",{ref:"menu",staticClass:"el-menu-vertical",attrs:{"default-active":t.$route.path,"text-color":"#fff","background-color":"transparent","active-text-color":"#88E7F0",router:""}},[t._l(t.moduleList[t.$store.state.mouduleIndex].menuList[t.$store.state.secondMenuIndex].menuList,(function(e,s){return[t.hasSubMenu(e.menuList)?n("el-submenu",{key:s,attrs:{index:e.path}},[n("template",{slot:"title"},[n("i",{staticClass:"icon-arrow"}),t._v(t._s(e.menuName))]),t._l(e.menuList,(function(e,s){return n("el-menu-item",{key:s+"child",attrs:{index:e.path,route:e.path}},[t._v(t._s(e.menuName))])}))],2):n("el-menu-item",{key:s,attrs:{index:e.path,route:t.data.path}},[n("i",{staticClass:"icon-arrow"}),t._v(t._s(e.menuName)+" ")])]}))],2)],1),n("div",{staticClass:"jyjzDataContent"},[n("router-view")],1)])])}),s,!1,null,"8c26490c",null);e.default=a.exports},"259e":function(t,e,n){},"6c99":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAASCAYAAAC9+TVUAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAEaADAAQAAAABAAAAEgAAAADJM+nRAAACSUlEQVQ4EY1TQWsTQRR+b3aTNClpWi0asbSIiD9CqAdvnixFUETw5E3RKrRCPamQREGI9eBdPYg/wEsUBQ8Fj570GMWN0pCNMWndzj6/t7hhm4TQgWTefu/7vjczb4ZozHgmkir9aL1/6PWOjaGRGZf0G7+fIL9oZeftON6QSeWnfyIWiMhnIt5mpk6MJfMxtsek5PnV0MoXzBeUIEZsTNS53Gif+5+vJvG+CYT3SOiqJlloNkmKY4e5GcUi1ype60WMRyYVz79IIutQO8TmzuqRwkZMSM63D+U/EPN9xURoKdIhNti3EaINZtRnrq0Vp0pJ4WC8VizcBfcjiqVg9FQ7aB55nUUYpUh4O5czlwdF+o0i2SSenTRLAAOs3G17nVPGGnuSiVwQ69fz+V9JMox9WExAcDyJKw+F68Bd1RsEM9hHxnD4LUnUGEt/ifaus1uYGsyRg6Mg1gIzLjH5CHaF+egQEcBqcfrBKByrt8K6JfJNypgaAqKQ58tb3blRgkFMeRLSAhNb1ZuV2fxX7DsQkgwFwZt3Iu6gKPkd5cFDh9KoTKo3UWsNn8dJd3G4C5ueH1S3ZPgM4KT4ptduoOCcSNgVw8uq141Eo9zwL0koz7HEvyD9YcfcJMetTR/INlrN3mGyu2fEho9xnyex8rTrOKejywd130Sd8LjOhpZeoSMOPh20MQAlA9GO5jEm8OvB4AoMXkcI/vaYKBgdWhCsMMkybqR2DE+GLe75d8Sf3HT6xq2Dubpy9zX0EEvN3jxW1H+oo4T/ADBQAVw9gsZJAAAAAElFTkSuQmCC"},d22d:function(t,e,n){"use strict";var s=n("259e");n.n(s).a}}]); |