启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-44adc9bc.6275745b.js

1 lines
5.1 KiB

(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}))},setColumnsMenuHighlight:function(e){var t=this,s=this.columnsAsideList.find((function(t){return t.path===e}));if(!s)return!1;setTimeout((function(){t.onColumnsAsideDown(s.k)}),0)}},watch:{"$store.state":{handler:function(e){if("columnsRound"===e.themeConfig.themeConfig.columnsAsideStyle?this.difference=3:this.difference=0,e.user.menuList.length===this.columnsAsideList.length)return!1},deep:!0},$route:{handler:function(e){this.setColumnsMenuHighlight(e.path);var t=Object(h["d"])(e,this.columnsAsideList),s=Object(h["e"])(this.columnsAsideList,t)[0].children,i=this.setSendChildren(t);i.item?(this.onColumnsAsideDown(i.item[0].k),this.bus.$emit("oneCatName",i.item[0].title)):this.onColumnsAsideDown(0),this.$store.commit("user/childMenuList",s||[])},deep:!0}}},C=f,p=(s("3718"),s("2877")),g=Object(p["a"])(C,r,c,!1,null,"672e4028",null),b=g.exports,A={name:"layoutColumns",components:{Asides:o["a"],Headers:u["a"],Mains:l["default"],ColumnsAside:b},computed:{isFixedHeader:function(){return this.$store.state.themeConfig.themeConfig.isFixedHeader}}},v=A,$=Object(p["a"])(v,i,n,!1,null,null,null);t["default"]=$.exports}}]);