You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
5.1 KiB
1 line
5.1 KiB
9 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44adc9bc"],{3718:function(e,t,s){"use strict";s("edbb")},edbb:function(e,t,s){},fdcf:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-container",{staticClass:"layout-container"},[s("ColumnsAside"),e._v(" "),s("div",{staticClass:"layout-columns-warp"},[s("Asides"),e._v(" "),s("el-container",{staticClass:"flex-center layout-backtop"},[e.isFixedHeader?s("Headers"):e._e(),e._v(" "),s("el-scrollbar",[e.isFixedHeader?e._e():s("Headers"),e._v(" "),s("Mains")],1)],1)],1),e._v(" "),s("el-backtop",{attrs:{target:".layout-backtop .el-scrollbar__wrap"}})],1)},n=[],o=s("5da5"),u=s("bb39"),l=s("3eeb"),r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"layout-columns-aside"},[s("el-scrollbar",[s("Logo"),e._v(" "),s("ul",[e._l(e.columnsAsideList,(function(t,i){return s("li",{key:i,ref:"columnsAsideOffsetTopRefs",refInFor:!0,staticClass:"layout-columns",class:{"layout-columns-active":t.k===e.liIndex},attrs:{title:t.title},on:{click:function(s){return e.onColumnsAsideMenuClick(t)}}},[s("div",{class:e.setColumnsAsidelayout},[s("i",{class:"el-icon-"+t.icon}),e._v(" "),s("div",{staticClass:"font13"},[e._v("\n "+e._s(t.title&&t.title.length>=4?t.title.substr(0,"columns-vertical"===e.setColumnsAsidelayout?4:3):t.title)+"\n ")])])])})),e._v(" "),s("div",{ref:"columnsAsideActiveRef",class:e.setColumnsAsideStyle})],2)],1)],1)},c=[],a=(s("7514"),s("db72")),h=s("74bb"),d=s("6376"),m=s("2f62"),f={name:"layoutColumnsAside",components:{Logo:d["a"]},data:function(){return{columnsAsideList:[],liIndex:0,difference:0,routeSplit:[]}},computed:Object(a["a"])({setColumnsAsideStyle:function(){return this.$store.state.themeConfig.themeConfig.columnsAsideStyle},setColumnsAsidelayout:function(){return this.$store.state.themeConfig.themeConfig.columnsAsideLayout},Layout:function(){return this.$store.state.themeConfig.themeConfig.Layout},routesList:function(){this.$store.state.user.menuList}},Object(m["d"])("menu",["activePath"])),beforeDestroy:function(){this.bus.$off("routesListChange")},mounted:function(){var e=this;this.bus.$on("routesListChange",(function(){e.setFilterRoutes()})),this.$store.dispatch("user/getMenus",{that:this}).then((function(t){e.setFilterRoutes()}))},methods:{setColumnsAsideMove:function(e){if(void 0===e)return!1;var t=this.$refs.columnsAsideOffsetTopRefs;this.liIndex=e,this.$refs.columnsAsideActiveRef.style.top="".concat(t[e].offsetTop+this.difference,"px")},onColumnsAsideMenuClick:function(e){var t=e.path;e.redirect;e.children?this.$router.push(Object(h["a"])(e.children).path):this.$router.push(t),!e.children||e.children.length<=1?this.$store.state.themeConfig.themeConfig.isCollapse=!0:e.children.length>1&&(this.$store.state.themeConfig.themeConfig.isCollapse=!1)},onColumnsAsideDown:function(e){var t=this;this.$nextTick((function(){t.setColumnsAsideMove(e)}))},setFilterRoutes:function(){if(this.$store.state.user.menuList.length<=0)return!1;this.columnsAsideList=this.filterRoutesFun(this.$store.state.user.menuList);var e=this.setSendChildren(Object(h["d"])(this.$route,this.columnsAsideList));if(!e.children)return this.bus.$emit("setSendColumnsChildren",[]),this.$store.commit("user/childMenuList",[]),this.$store.state.themeConfig.themeConfig.isCollapse=!0,!1;this.bus.$emit("oneCatName",e.item[0].title),this.onColumnsAsideDown(e.item[0].k),e.children.length>0?this.$store.state.themeConfig.themeConfig.isCollapse=!1:this.$store.state.themeConfig.themeConfig.isCollapse=!0,this.bus.$emit("setSendColumnsChildren",e.children||[]),this.$store.commit("user/childMenuList",e.children||[])},setSendChildren:function(e){var t={};return this.columnsAsideList.map((function(s,i){s["k"]=i,s.path===e&&(t["item"]=[Object(a["a"])({},s)],s.children&&(t["children"]=s.children))})),t},filterRoutesFun:function(e){var t=this;return e.filter((function(e){return e.path})).map((function(e){return e=Object.assign({},e),e.children&&(e.children=t.filterRoutesFun(e.children)),e}))},setCol
|