(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-05a3b661","chunk-2d0aeedb"],{"0bc6":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.item.showingChildren?i("el-submenu",{attrs:{index:e.item.meta.name,route:e.item}},[i("template",{slot:"title"},[e.item.meta.icon?i("i",{staticClass:"iconfont icon",class:"icon-"+e.item.meta.icon}):e._e(),e.isCollapse?e._e():i("span",[e._v(e._s(e.$t("home."+e.item.meta.name)))])]),i("el-menu-item-group",e._l(e.item.children,(function(e){return i("SidebarItem",{key:e.permissionId,attrs:{index:e.meta.name,item:e}})})),1)],2):[i("el-menu-item",{attrs:{index:e.item.meta.name,route:e.item}},[e.item.meta.icon?i("i",{staticClass:"iconfont icon",class:"icon-"+e.item.meta.icon}):e._e(),i("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.$t("home."+e.item.meta.name)))])])]],2)},n=[],o={name:"SidebarItem",props:{item:{type:Object,required:!0}},computed:{isCollapse:{get:function(){return this.$store.state.app.isCollapse}}}},a=o,r=i("2877"),l=Object(r["a"])(a,s,n,!1,null,null,null);t["default"]=l.exports},"77eb":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"leftbar"},[i("div",{staticClass:"bar"},[i("el-menu",{staticClass:"leftbar-menu",attrs:{"default-active":e.$route.meta.name,collapse:e.isCollapse,"collapse-transition":!1,"unique-opened":""},on:{select:e.btn}},e._l(this.Permission_routes,(function(t){return i("SidebarItem",{key:t.permissionId,attrs:{item:t,isCollapse:e.isCollapse}})})),1)],1),i("div",{staticClass:"collapse",on:{click:e.changeCollapse}},[i("i",{staticClass:"iconfont icon-daohangsuofang navbg"}),i("i",{staticClass:"iconfont icon-xia arrow"})])])},n=[],o=i("5530"),a=(i("b0c0"),i("4de4"),i("d3b7"),i("d81d"),i("2f62")),r=i("0bc6"),l={name:"NavbarList",components:{SidebarItem:r["default"]},data:function(){return{paths:"",routes:[],isAdmin:!1,routeName:"",routeChange:!0,Permission_routes:[]}},computed:Object(o["a"])(Object(o["a"])({},Object(a["b"])(["permission_routes","admin_routes"])),{},{isCollapse:{get:function(){return this.$store.state.app.isCollapse}}}),mounted:function(){this.routeName=this.$route.matched[0].meta.name,this.isAdmin="admin"==this.$route.matched[0].meta.name,this.getRoutes()},watch:{$route:function(){this.routeName!=this.$route.matched[0].meta.name&&(this.routeName=this.$route.matched[0].meta.name,this.isAdmin="admin"==this.$route.matched[0].meta.name,this.getRoutes())},isCollapse:function(){},permission_routes:function(){this.getRoutes()}},methods:{reload:function(){var e=this;this.isRouterAlive=!1,this.$nextTick((function(){return e.isRouterAlive=!0}))},changeCollapse:function(){this.$store.dispatch("toggleSideBar")},getRoutes:function(){console.log(this.isAdmin," this.$store.state.app.isCollapse"),this.isAdmin?this.Permission_routes=this.admin_routes.filter((function(e){return e.children&&e.children.length>1?e.showingChildren=!0:e.showingChildren=!1,e})):(this.Permission_routes=this.permission_routes.filter((function(e){return!e.hidden&&"admin"!=e.meta.name})),this.Permission_routes=this.Permission_routes.map((function(e){return e.children&&e.children.length>1?e.showingChildren=!0:(e=e.children&&e.children[0]||e,e.showingChildren=!1),e})))},btn:function(e,t,i){this.paths=e,console.log(e,t,i,i.route),this.$router.push({name:e})},handleOpen:function(e,t){console.log(e,t,"----------------1-----------")},handleClose:function(e,t){console.log(e,t,"----------------3-----------")}}},m=l,u=i("2877"),c=Object(u["a"])(m,s,n,!1,null,null,null);t["default"]=c.exports}}]); //# sourceMappingURL=chunk-05a3b661.e68e79bf.js.map