(window.webpackJsonpzcomps=window.webpackJsonpzcomps||[]).push([["chunk-17a0"],{"UuX/":function(t,e,n){"use strict";var s=n("oNN/");n.n(s).a},cBS6:function(t,e,n){"use strict";n.r(e);var s=n("gDS+"),i=n.n(s),a=n("QbLZ"),o=n.n(a),r=n("33yf"),u=n.n(r),l=n("L2JU"),c=n("Yfch"),m=n("bITd"),h={name:"MenuPage",components:{Item:n("ssOZ").a,AppLink:m.a},data:function(){return{info:[],newWindow:!1,dialogVisible:!1}},computed:o()({},Object(l.b)(["permission_routes","sidebar"]),{menuContent:function(){return this.$store.state.menuContent.menuContent}}),watch:{menuContent:{handler:function(t,e){this.setTitle(t)},deep:!0}},created:function(){var t=sessionStorage.getItem("menuContent")&&JSON.parse(sessionStorage.getItem("menuContent")).children;this.info=t},methods:{parentMenuToChild:function(t){this.$store.dispatch("setMenuContent",t),this.setTitle(t),sessionStorage.setItem("menuContent",i()(t)),window.location.href="#/menuPage"},sortPermission_routes:function(t){var e;return window.copy(t).filter(function(t){return!t.hidden&&"首页"!==t.label}).sort((e="sortNumber",function(t,n){var s=t[e],i=n[e];return isNaN(Number(s))||isNaN(Number(i))||(s=Number(s),i=Number(i)),s<i||!s?-1:s>i||!s?1:0}))},setTitle:function(t){var e=this.$store.state.tagsView.visitedViews.filter(function(t){return"/menuPage"===t.path});e.length>0&&(e[0].label=t.meta.title),e.length>0&&(e[0].title=t.meta.title);var n=this.$route.matched.filter(function(t){return"/menuPage"===t.path&&t.parent});n.length>0&&(n[0].meta.title=t.meta.title),document.title=t.meta&&t.meta.title},resolvePath:function(t){return Object(c.b)(t)?t:Object(c.b)(this.basePath)?this.basePath:u.a.resolve(this.basePath,t)}}},d=(n("UuX/"),n("KHd+")),p=Object(d.a)(h,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"menuPage-container"},[n("el-main",{staticClass:"elMain"},[n("el-row",{staticClass:"myRow",attrs:{gutter:60}},t._l(t.sortPermission_routes(t.permission_routes),function(e,s){return n("el-col",{key:s,staticClass:"myCol",class:{clear:s>0&&s%4==0},attrs:{push:(t.$isMobile(),3),span:t.$isMobile()?8:4}},[e.children&&e.children.length>0&&(!e.hidden||t.templateStatus&&e._id)?n("span",{staticClass:"menuContentLink",on:{click:function(n){t.parentMenuToChild(e)}}},[e.meta?n("item",{attrs:{icon:e.meta&&e.meta.icon}}):t._e(),n("span",[t._v(t._s(e.label))])],1):n("app-link",{staticClass:"menuContentLink",attrs:{"is-new-window":e.newWindow,to:t.resolvePath(e.path)}},[e.meta?n("item",{attrs:{icon:e.meta&&e.meta.icon}}):t._e(),n("span",[t._v(t._s(e.label))])],1)],1)}))],1)],1)},[],!1,null,"11660ede",null);p.options.__file="parentMenuPage.vue",e.default=p.exports},"oNN/":function(t,e,n){}}]);