chunk-2d3ca166.1e4014c8.js 30 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2d3ca166"],{"02dc":function(t,e,s){},"0d5c":function(t,e,s){},"0f3c":function(t,e,s){},"495f":function(t,e,s){"use strict";var i=s("98ff");s.n(i).a},"55a2":function(t,e,s){"use strict";var i=s("8b98");s.n(i).a},"55fd":function(t,e,s){},"59a5":function(t,e,s){},"62f1":function(t,e,s){"use strict";var i=s("8cdf");s.n(i).a},6376:function(t,e,s){"use strict";var i=s("2934"),n={name:"layoutLogo",data:function(){return{minLogo:"",maxLogo:""}},computed:{getThemeConfig:function(){return this.$store.state.themeConfig.themeConfig},setShowLogo:function(){var t=this.$store.state.themeConfig.themeConfig,e=t.isCollapse;t=t.layout;return!e||"classic"===t||document.body.clientWidth<1e3}},mounted:function(){this.getLogo()},methods:{onThemeConfigChange:function(){if("columns"!=this.$store.state.themeConfig.themeConfig.layout||this.$store.state.menus.childMenuList.length||!this.$store.state.themeConfig.themeConfig.isCollapse)return"transverse"!==this.$store.state.themeConfig.themeConfig.layout&&void(this.$store.state.themeConfig.themeConfig.isCollapse=!this.$store.state.themeConfig.themeConfig.isCollapse)},getLogo:function(){var t=this;Object(i.c)().then((function(e){t.minLogo=e.data.logo_square,t.maxLogo=e.data.logo}))}}};s("bb5d"),s=s("2877"),s=Object(s.a)(n,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return"columns"===t.$store.state.themeConfig.themeConfig.layout||t.$store.state.themeConfig.themeConfig.isCollapse?e("div",{staticClass:"layout-logo-size",on:{click:t.onThemeConfigChange}},[t.minLogo?e("img",{staticClass:"layout-logo-size-img",attrs:{src:t.minLogo}}):t._e()]):e("div",{staticClass:"layout-logo",on:{click:t.onThemeConfigChange}},[t.maxLogo?e("img",{staticClass:"layout-logo-medium-img",attrs:{src:t.maxLogo}}):t._e()])}),[],!1,null,"068a374d",null);e.a=s.exports},6746:function(t,e,s){"use strict";var i=s("02dc");s.n(i).a},7686:function(t,e,s){"use strict";var i={name:"subItem",props:{chil:{type:Array,default:function(){return[]}}}};s=s("2877"),s=Object(s.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t._l(t.chil,(function(e){return[!e.is_show_path&&e.children&&0<e.children.length?s("el-submenu",{key:e.path,attrs:{index:e.path}},[s("template",{slot:"title"},[s("i",{staticClass:"ivu-icon",class:e.icon}),s("span",[t._v(t._s(t.$t(e.title)))])]),s("sub-item",{attrs:{chil:e.children}})],2):e.is_show_path?t._e():[s("el-menu-item",{key:e.path,attrs:{index:e.path}},[!e.isLink||e.isLink&&e.isIframe?[s("i",{staticClass:"ivu-icon",class:e.icon||""}),s("span",[t._v(t._s(t.$t(e.title)))])]:[s("a",{attrs:{href:e.isLink,target:"_blank"}},[s("i",{staticClass:"ivu-icon",class:e.icon||""}),t._v("\n "+t._s(t.$t(e.title))+"\n ")])]],2)]]}))],2)}),[],!1,null,null,null);e.a=s.exports},8289:function(t,e,s){"use strict";var i=s("59a5");s.n(i).a},"869f":function(t,e,s){"use strict";var i=s("55fd");s.n(i).a},"8b98":function(t,e,s){},"8cdf":function(t,e,s){},"98ff":function(t,e,s){},"9c62":function(t,e,s){"use strict";var i=s("0d5c");s.n(i).a},a28a:function(t,e,s){"use strict";var i=s("b861");s.n(i).a},b861:function(t,e,s){},bb39:function(t,e,s){"use strict";s("d81d"),s("4de4"),s("d3b7"),s("159b");var i=s("5d2d"),n=s("c276"),o={name:"layoutBreadcrumb",data:function(){return{breadcrumbList:[],routeSplit:[],routeSplitFirst:"",routeSplitIndex:1}},computed:{breadCrumbList:function(){var t=this.$store.state.menus.menusName,e=Object(n.e)(this.$route,t),s=Object(n.a)(t,[]),i=[];return 0<s.length&&e.forEach((function(t){s.forEach((function(e){t===e.path&&i.push(e)}))})),i},crumbPast:function(){var t=this,e=t.$store.state.menus.menusName,s=(e=Object(n.a)(e,[]),[]);return 0<e.length&&e.forEach((function(e){t.$route.path===e.path&&s.push(e)})),s},getThemeConfig:function(){return this.$store.state.themeConfig.themeConfig},isShowBreadcrumb:function(){var t=this.$store.state.themeConfig.themeConfig,e=t.layout;t=t.isBreadcrumb;return"transverse"!==e&&t?"":"none"}},mounted:function(){this.initRouteSplit(this.$route.path)},methods:{onBreadcrumbClick:function(t){var e=t.redirect;t=t.path;e?this.$router.push(e):this.$router.push(t)},onThemeConfigChange:function(){"columns"==this.$store.state.themeConfig.themeConfig.layout&&!this.$store.state.menus.childMenuList.length&&this.$store.state.themeConfig.themeConfig.isCollapse||(this.$store.state.themeConfig.themeConfig.isCollapse=!this.$store.state.themeConfig.themeConfig.isCollapse,this.setLocalThemeConfig())},setLocalThemeConfig:function(){i.a.remove("themeConfigPrev"),i.a.set("themeConfigPrev",this.$store.state.themeConfig.themeConfig)},getBreadcrumbList:function(t){var e=this;t.map((function(t){e.routeSplit.map((function(s,i,n){e.routeSplitFirst===t.path&&(e.routeSplitFirst+="/".concat(n[e.routeSplitIndex]),e.breadcrumbList.push(t),e.routeSplitIndex++,t.children&&e.getBreadcrumbList(t.children))}))}))},initRouteSplit:function(t){this.breadcrumbList=[{path:"/",meta:{title:this.$store.state.routesList.routesList[0].title,icon:this.$store.state.routesList.routesList[0].icon}}],this.routeSplitFirst=t,this.routeSplitIndex=1,this.getBreadcrumbList(this.$store.state.routesList.routesList)}},watch:{$route:{handler:function(t){var e=this.$store.state.menus.menusName,s=(t=Object(n.e)(t,e),Object(n.a)(e,[])),i=[];0<s.length&&t.forEach((function(t){s.forEach((function(e){t===e.path&&i.push(e)}))}))},deep:!0}}},a=(s("f44d"),s("2877")),r=(o=Object(a.a)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"layout-navbars-breadcrumb"},[s("i",{staticClass:"layout-navbars-breadcrumb-icon",class:t.getThemeConfig.isCollapse?"el-icon-s-unfold":"el-icon-s-fold",on:{click:t.onThemeConfigChange}}),s("el-breadcrumb",{staticClass:"layout-navbars-breadcrumb-hide",style:{display:t.isShowBreadcrumb}},[s("transition-group",{attrs:{name:"breadcrumb",mode:"out-in"}},t._l(t.breadCrumbList.concat(t.crumbPast),(function(e,i){return s("el-breadcrumb-item",{key:e.path},[1==i?s("span",{staticClass:"layout-navbars-breadcrumb-span"},[t.getThemeConfig.isBreadcrumbIcon?s("Icon",{staticClass:"ivu-icon layout-navbars-breadcrumb-iconfont",attrs:{type:e.icon}}):t._e(),t._v(t._s(t.$t(e.title))+"\n ")],1):s("a",{on:{click:function(s){return s.preventDefault(),t.onBreadcrumbClick(e)}}},[t.getThemeConfig.isBreadcrumbIcon?s("Icon",{staticClass:"ivu-icon layout-navbars-breadcrumb-iconfont",attrs:{type:e.icon}}):t._e(),t._v(t._s(t.$t(e.title))+"\n ")],1)])})),1)],1)],1)}),[],!1,null,"36a5955d",null).exports,s("ac1f"),s("5319"),s("93bf")),u=s.n(r),c=s("5723"),l=s("2934"),h=s("49ea"),f=new Audio(s("d635")),d=(r={name:"layoutBreadcrumbUserNews",data:function(){return{newsList:[{label:"关于版本发布的通知",value:"基于 vue2.x + element ui,正式发布时间:2020年11月15日!",time:"2020-11-15"},{label:"关于学习交流的通知",value:"QQ群号码 665452019,欢迎小伙伴入群学习交流探讨!",time:"2020-11-15"}],newOrderAudioLink:null}},mounted:function(){var t=this;this.getNotict(),this.newOrderAudioLink=f,h.b.then((function(e){e.send({type:"login",data:Object(n.c)("token")});var s=t;e.$on("ADMIN_NEW_PUSH",(function(t){s.getNotict()})),e.$on("NEW_ORDER",(function(t){s.$Notice.info({title:"新订单",duration:8,desc:"您有一个新的订单,ID为("+t.order_id+"),请注意查看"}),this.newOrderAudioLink&&this.newOrderAudioLink.play(),s.messageList.push({title:"新订单提醒",icon:"md-bulb",iconColor:"#87d068",time:0,read:0})})),e.$on("NEW_REFUND_ORDER",(function(t){s.$Notice.warning({title:"退款订单提醒",duration:8,desc:"您有一个订单申请退款,ID为("+t.order_id+"),请注意查看"}),window.newOrderAudioLink&&this.newOrderAudioLink.play(),s.messageList.push({title:"退款订单提醒",icon:"md-information",iconColor:"#fe5c57",time:0,read:0})})),e.$on("WITHDRAW",(function(t){s.$Notice.warning({title:"提现提醒",duration:8,desc:"有用户申请提现,编号为("+t.id+"),请注意查看"}),s.messageList.push({title:"退款订单提醒",icon:"md-people",iconColor:"#f06292",time:0,read:0})})),e.$on("STORE_STOCK",(function(t){s.$Notice.warning({title:"库存预警",duration:8,desc:"商品ID为("+t.id+")的库存不足啦,请注意查看~"}),s.messageList.push({title:"库存预警",icon:"md-information",iconColor:"#fe5c57",time:0,read:0})})),e.$on("PAY_SMS_SUCCESS",(function(t){s.$Notice.info({title:"短信充值成功",duration:8,desc:"恭喜您充值"+t.price+"元,获得"+t.number+"条短信"}),s.messageList.push({title:"短信充值成功",icon:"md-bulb",iconColor:"#87d068",time:0,read:0})}))}))},filters:{msgType:function(t){var e;switch(t){case 1:e="待发货订单提醒";break;case 2:case 3:case 4:e="库存报警";break;default:e="其它"}return e}},methods:{onAllReadClick:function(){this.newsList=[]},onGoToGiteeClick:function(){},getNotict:function(){var t=this;Object(l.d)().then((function(e){t.newsList=e.data||[]})).catch((function(){}))},jumpUrl:function(t){this.$router.push({path:t})}}},r=(s("55a2"),Object(a.a)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"layout-navbars-breadcrumb-user-news"},[s("div",{staticClass:"head-box"},[s("div",{staticClass:"head-box-title"},[t._v(t._s(t.$t("message.user.newTitle")))]),0<t.newsList.length?s("div",{staticClass:"head-box-btn",on:{click:t.onAllReadClick}},[t._v(t._s(t.$t("message.user.newBtn")))]):t._e()]),s("div",{staticClass:"content-box"},[0<t.newsList.length?t._l(t.newsList,(function(e,i){return s("div",{key:i,staticClass:"content-box-item"},[s("div",[t._v(t._s(t._f("msgType")(e.type)))]),s("div",{staticClass:"content-box-msg"},[t._v("\n "+t._s(e.title)+"\n ")])])})):s("div",{staticClass:"content-box-empty"},[s("div",{staticClass:"content-box-empty-margin"},[s("i",{staticClass:"el-icon-s-promotion"}),s("div",{staticClass:"mt15"},[t._v(t._s(t.$t("message.user.newDesc")))])])])],2)])}),[],!1,null,"92d13734",null).exports),s("6987")),m={name:"layoutBreadcrumbSearch",data:function(){return{isShowSearch:!1,menuQuery:"",tagsViewList:[]}},methods:{openSearch:function(){var t=this;this.menuQuery="",this.isShowSearch=!0,this.initTageView(),this.$nextTick((function(){t.$refs.layoutMenuAutocompleteRef.focus()}))},closeSearch:function(){var t=this;setTimeout((function(){t.isShowSearch=!1}),150)},menuSearch:function(t,e){e(t?this.tagsViewList.filter(this.createFilter(t)):this.tagsViewList)},createFilter:function(t){var e=this;return function(s){return-1<s.path.toLowerCase().indexOf(t.toLowerCase())||-1<s.title.toLowerCase().indexOf(t.toLowerCase())||-1<e.$t(s.title).toLowerCase().indexOf(t.toLowerCase())}},initTageView:function(){if(0<this.tagsViewList.length)return!1;this.tagsViewList=Object(d.c)(this.$store.state.routesList.routesList)},onHandleSelect:function(t){var e=t.path,s=t.redirect;t.isLink&&!t.isIframe?window.open(t.isLink):s?this.$router.push(s):this.$router.push(e),this.closeSearch()},onSearchBlur:function(){this.closeSearch()}}},g=(m=(s("495f"),Object(a.a)(m,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"layout-search-dialog"},[s("el-dialog",{attrs:{visible:t.isShowSearch,width:"300px","destroy-on-close":"",modal:!1,fullscreen:"","show-close":!1},on:{"update:visible":function(e){t.isShowSearch=e}}},[s("el-autocomplete",{ref:"layoutMenuAutocompleteRef",attrs:{"fetch-suggestions":t.menuSearch,placeholder:t.$t("message.user.searchPlaceholder"),"prefix-icon":"el-icon-search"},on:{select:t.onHandleSelect,blur:t.onSearchBlur},scopedSlots:t._u([{key:"default",fn:function(e){return e=e.item,[s("div",[s("i",{staticClass:"mr10",class:e.icon}),t._v(t._s(t.$t(e.title)))])]}}]),model:{value:t.menuQuery,callback:function(e){t.menuQuery=e},expression:"menuQuery"}})],1)],1)}),[],!1,null,"44b62996",null).exports),s("d708")),p=(r={name:"layoutBreadcrumbUser",components:{UserNews:r,Search:m},data:function(){return{isScreenfull:!1,isShowUserNewsPopover:!1,disabledI18n:"zh-cn",disabledSize:"",homePath:"".concat(g.a.routePre,"/home")}},computed:{getUserInfos:function(){return this.$store.state.userInfo.userInfo},layoutUserFlexNum:function(){var t=this.$store.state.themeConfig.themeConfig,e=t.layout;t=t.isClassicSplitMenu;return"defaults"===e||"classic"===e&&!t||"columns"===e?1:null}},mounted:function(){i.a.get("themeConfigPrev")&&(this.initI18n(),this.initComponentSize())},methods:{onSearchClick:function(){this.$refs.searchRef.openSearch()},onLayoutSetingClick:function(){this.bus.$emit("openSetingsDrawer")},onScreenfullClick:function(){var t=this;if(!u.a.isEnabled)return this.$message.warning("暂不不支持全屏"),!1;u.a.toggle(),u.a.on("change",(function(){u.a.isFullscreen?t.isScreenfull=!0:t.isScreenfull=!1})),this.bus.$emit("updateElScrollBar")},onComponentSizeChange:function(t){i.a.remove("themeConfigPrev"),this.$store.state.themeConfig.themeConfig.globalComponentSize=t,i.a.set("themeConfigPrev",this.$store.state.themeConfig.themeConfig),this.$ELEMENT.size=t,this.initComponentSize(),window.location.reload()},onLanguageChange:function(t){i.a.remove("themeConfigPrev"),this.$store.state.themeConfig.themeConfig.globalI18n=t,i.a.set("themeConfigPrev",this.$store.state.themeConfig.themeConfig),this.$i18n.locale=t,this.initI18n()},initI18n:function(){switch(i.a.get("themeConfigPrev").globalI18n){case"zh-cn":this.disabledI18n="zh-cn";break;case"en":this.disabledI18n="en";break;case"zh-tw":this.disabledI18n="zh-tw"}},initComponentSize:function(){switch(i.a.get("themeConfigPrev").globalComponentSize){case"":this.disabledSize="";break;case"medium":this.disabledSize="medium";break;case"small":this.disabledSize="small";break;case"mini":this.disabledSize="mini"}},onDropdownCommand:function(t){var e=this;"logOut"===t?setTimeout((function(){e.$msgbox({closeOnClickModal:!1,closeOnPressEscape:!1,title:e.$t("message.user.logOutTitle"),message:e.$t("message.user.logOutMessage"),showCancelButton:!0,confirmButtonText:e.$t("message.user.logOutConfirm"),cancelButtonText:e.$t("message.user.logOutCancel"),beforeClose:function(t,s,i){"confirm"===t?(s.confirmButtonLoading=!0,s.confirmButtonText=e.$t("message.user.logOutExit"),Object(c.b)().then((function(t){e.$Message.success("您已成功退出"),e.$router.replace({path:"".concat(g.a.routePre,"/login")}),Object(n.l)("token"),Object(n.l)("expires_time"),Object(n.l)("uuid"),i(),setTimeout((function(){s.confirmButtonLoading=!1}),300)}))):i()}}).then((function(){i.b.clear(),window.location.reload()})).catch((function(){}))}),150):"wareHouse"!==t&&this.$router.push(t)}}},m=(s("a28a"),Object(a.a)(r,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"layout-navbars-breadcrumb-user",style:{flex:t.layoutUserFlexNum}},[e("div",{staticClass:"layout-navbars-breadcrumb-user-icon",on:{click:t.onSearchClick}},[e("i",{staticClass:"el-icon-search",attrs:{title:t.$t("message.user.title2")}})]),e("div",{staticClass:"layout-navbars-breadcrumb-user-icon",on:{click:t.onLayoutSetingClick}},[e("i",{staticClass:"el-icon-star-off",attrs:{title:t.$t("message.user.title3")}})]),e("div",{staticClass:"layout-navbars-breadcrumb-user-icon"},[e("el-popover",{attrs:{placement:"bottom",trigger:"click",width:300,"popper-class":"el-popover-pupop-user-news"},model:{value:t.isShowUserNewsPopover,callback:function(e){t.isShowUserNewsPopover=e},expression:"isShowUserNewsPopover"}},[e("el-badge",{attrs:{slot:"reference","is-dot":!0},on:{click:function(e){e.stopPropagation(),t.isShowUserNewsPopover=!t.isShowUserNewsPopover}},slot:"reference"},[e("i",{staticClass:"el-icon-bell",attrs:{title:t.$t("message.user.title4")}})]),e("transition",{attrs:{name:"el-zoom-in-top"}},[e("UserNews",{directives:[{name:"show",rawName:"v-show",value:t.isShowUserNewsPopover,expression:"isShowUserNewsPopover"}]})],1)],1)],1),e("div",{staticClass:"layout-navbars-breadcrumb-user-icon mr10",on:{click:t.onScreenfullClick}},[e("i",{class:t.isScreenfull?"el-icon-crop":"el-icon-full-screen",attrs:{title:t.isScreenfull?t.$t("message.user.title6"):t.$t("message.user.title5")}})]),e("el-dropdown",{attrs:{"show-timeout":70,"hide-timeout":50},on:{command:t.onDropdownCommand}},[e("span",{staticClass:"layout-navbars-breadcrumb-user-link"},[t._v("\n "+t._s(""===t.getUserInfos.account?"test":t.getUserInfos.account)+"\n "),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{attrs:{command:t.homePath}},[t._v(t._s(t.$t("message.user.dropdown1")))]),e("el-dropdown-item",{attrs:{divided:"",command:"logOut"}},[t._v(t._s(t.$t("message.user.dropdown5")))])],1)],1),e("Search",{ref:"searchRef"})],1)}),[],!1,null,"3084ba33",null).exports),r=s("6376"),s("f3f3")),C=s("7686"),w=s("2f62");C={name:"navMenuHorizontal",components:{SubItem:C.a},props:{menuList:{type:Array,default:function(){return[]}}},computed:Object(p.a)({},Object(w.d)("menu",["activePath"])),data:function(){return{defaultActive:null}},mounted:function(){this.initElMenuOffsetLeft(),this.setCurrentRouterHighlight(this.$route.path)},methods:{onElMenuHorizontalScroll:function(t){t=t.wheelDelta||40*-t.deltaY,this.$refs.elMenuHorizontalScrollRef.$refs.wrap.scrollLeft=this.$refs.elMenuHorizontalScrollRef.$refs.wrap.scrollLeft+t/4},initElMenuOffsetLeft:function(){var t=this;this.$nextTick((function(){var e=document.querySelector(".el-menu.el-menu--horizontal li.is-active");if(!e)return!1;t.$refs.elMenuHorizontalScrollRef.$refs.wrap.scrollLeft=e.offsetLeft}))},filterRoutesFun:function(t){var e=this;return t.filter((function(t){return!t.isHide})).map((function(t){return(t=Object.assign({},t)).children&&(t.children=e.filterRoutesFun(t.children)),t}))},setSendClassicChildren:function(t){var e=t.split("/"),s={};return this.filterRoutesFun(this.$store.state.routesList.routesList).map((function(t,i){t.path==="/".concat(e[1])&&(t.k=i,s.item=[Object(p.a)({},t)],s.children=[Object(p.a)({},t)],t.children&&(s.children=t.children))})),s},onHorizontalSelect:function(t){this.bus.$emit("setSendClassicChildren",this.setSendClassicChildren(t))},setCurrentRouterHighlight:function(t){var e=t.split("/");"classic"===this.$store.state.themeConfig.themeConfig.layout?this.defaultActive="/".concat(e[1]):this.defaultActive=t}},watch:{$route:{handler:function(t){this.setCurrentRouterHighlight(t.path)},deep:!0}}},s("9c62"),w=Object(a.a)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"el-menu-horizontal-warp"},[s("el-scrollbar",{ref:"elMenuHorizontalScrollRef",nativeOn:{wheel:function(e){return e.preventDefault(),t.onElMenuHorizontalScroll(e)}}},[s("el-menu",{attrs:{router:"","default-active":t.activePath||t.defaultActive,"background-color":"transparent",mode:"horizontal"},on:{select:t.onHorizontalSelect}},[t._l(t.menuList,(function(e){return[e.children&&0<e.children.length?s("el-submenu",{key:e.path,attrs:{index:e.path}},[s("template",{slot:"title"},[s("Icon",{attrs:{type:e.icon||""}}),s("span",[t._v(t._s(t.$t(e.title)))])],1),s("SubItem",{attrs:{chil:e.children}})],2):[s("el-menu-item",{key:e.path,attrs:{index:e.path}},[!e.isLink||e.isLink&&e.isIframe?s("template",{slot:"title"},[s("Icon",{attrs:{type:e.icon||""}}),t._v("\n "+t._s(t.$t(e.title))+"\n ")],1):s("template",{slot:"title"},[s("a",{attrs:{href:e.isLink,target:"_blank"}},[s("Icon",{attrs:{type:e.icon||""}}),t._v("\n "+t._s(t.$t(e.title))+"\n ")],1)])],2)]]}))],2)],1)],1)}),[],!1,null,"3fe6e3f6",null).exports,C={name:"layoutNavBars",components:{Breadcrumb:o,User:m,Logo:r.a,Horizontal:w},data:function(){return{menuList:[]}},computed:{setIsShowLogo:function(){var t=this.$store.state.themeConfig.themeConfig,e=t.isShowLogo;t=t.layout;return e&&"classic"===t||e&&"transverse"===t},isLayoutTransverse:function(){var t=this.$store.state.themeConfig.themeConfig,e=t.layout;t=t.isClassicSplitMenu;return"transverse"===e||t&&"classic"===e}},mounted:function(){this.setFilterRoutes()},methods:{setFilterRoutes:function(){this.menuList=this.filterRoutesFun(this.$store.state.routesList.routesList)},filterRoutesFun:function(t){var e=this;return t.filter((function(t){return t.path})).map((function(t){return(t=Object.assign({},t)).children&&(t.children=e.filterRoutesFun(t.children)),t}))}},watch:{"$store.state":{handler:function(t){if(t.routesList.routesList.length===this.menuList.length)return!1;this.setFilterRoutes()},deep:!0}}},s("6746"),o={name:"layoutNavBars",components:{BreadcrumbIndex:Object(a.a)(C,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"layout-navbars-breadcrumb-index"},[t.setIsShowLogo?e("Logo"):t._e(),e("Breadcrumb"),t.isLayoutTransverse?e("Horizontal",{attrs:{menuList:t.menuList}}):t._e(),e("User")],1)}),[],!1,null,"e6a04abc",null).exports,TagsView:s("cd49").a},data:function(){return{}},computed:{setShowTagsView:function(){var t=this.$store.state.themeConfig.themeConfig,e=t.layout;t=t.isTagsview;return"classic"!==e&&t}}},s("869f"),m={name:"layoutHeader",components:{NavBarsIndex:Object(a.a)(o,(function(){var t=this.$createElement;t=this._self._c||t;return t("div",{staticClass:"layout-navbars-container"},[t("BreadcrumbIndex"),this.setShowTagsView?t("TagsView"):this._e()],1)}),[],!1,null,"2cd49684",null).exports},data:function(){return{}},computed:{setHeaderHeight:function(){var t=this.$store.state.themeConfig.themeConfig,e=t.isTagsview;t=t.layout;return e&&"classic"!==t?"84px":"50px"}}},r=Object(a.a)(m,(function(){var t=this.$createElement;t=this._self._c||t;return t("el-header",{staticClass:"layout-header",attrs:{height:this.setHeaderHeight}},[t("NavBarsIndex")],1)}),[],!1,null,null,null);e.a=r.exports},bb5d:function(t,e,s){"use strict";var i=s("0f3c");s.n(i).a},cd49:function(t,e,s){"use strict";var i=s("f3f3"),n=(s("c740"),s("d81d"),s("d3b7"),s("7db0"),s("a434"),{name:"layoutTagsViewContextmenu",props:{dropdown:{type:Object}},data:function(){return{isShow:!1,dropdownList:[{id:0,txt:"message.tagsView.refresh",affix:!1,icon:"el-icon-refresh-right"},{id:1,txt:"message.tagsView.close",affix:!1,icon:"el-icon-close"},{id:2,txt:"message.tagsView.closeOther",affix:!1,icon:"el-icon-circle-close"},{id:3,txt:"message.tagsView.closeAll",affix:!1,icon:"el-icon-folder-delete"}],path:{},arrowLeft:5}},computed:{dropdowns:function(){return this.dropdown.x+99>document.documentElement.clientWidth?{x:document.documentElement.clientWidth-99-5,y:this.dropdown.y}:this.dropdown}},mounted:function(){document.body.addEventListener("click",this.closeContextmenu)},methods:{onCurrentContextmenuClick:function(t){this.$emit("currentContextmenuClick",{id:t,path:this.path})},openContextmenu:function(t){var e=this;this.path=t.path,t.meta.isAffix?this.dropdownList[1].affix=!0:this.dropdownList[1].affix=!1,this.closeContextmenu(),setTimeout((function(){e.isShow=!0}),80)},closeContextmenu:function(){this.isShow=!1}},destroyed:function(){document.body.removeEventListener("click",this.closeContextmenu)},watch:{dropdown:{handler:function(t){t=t.x,t+99>document.documentElement.clientWidth?this.arrowLeft=99-(document.documentElement.clientWidth-t):this.arrowLeft=10},deep:!0}}}),o=(s("62f1"),s("2877")),a=(n=Object(o.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("transition",{attrs:{name:"el-zoom-in-center"}},[s("ul",{directives:[{name:"show",rawName:"v-show",value:t.isShow,expression:"isShow"}],staticClass:"el-dropdown-menu el-popper el-dropdown-menu--medium custom-contextmenu",style:"top: "+t.dropdowns.y+"px;left: "+t.dropdowns.x+"px;",attrs:{"x-placement":"bottom-end",id:"contextmenu"}},[t._l(t.dropdownList,(function(e,i){return s("li",{key:i,staticClass:"el-dropdown-menu__item",on:{click:function(s){return t.onCurrentContextmenuClick(e.id)}}},[e.affix?t._e():[s("i",{class:e.icon}),s("span",[t._v(t._s(t.$t(e.txt)))])]],2)})),s("div",{staticClass:"popper__arrow",style:{left:t.arrowLeft+"px"},attrs:{"x-arrow":""}})],2)])],1)}),[],!1,null,"07a5868a",null).exports,s("5d2d")),r=s("2f62");n={name:"tagsView",components:{Contextmenu:n},data:function(){return{userInfo:{},tagsDropdown:{x:"",y:""},tagsRefsIndex:0,tagsRoutePath:this.$route.path,tagsViewRoutesList:[]}},computed:{getThemeConfig:function(){return this.$store.state.themeConfig.themeConfig},setTagsStyle:function(){return this.$store.state.themeConfig.themeConfig.tagsStyle},tagsViewList:function(){return this.$store.state.app.tagNavList}},created:function(){var t=this;this.bus.$on("onCurrentContextmenuClick",(function(e){t.onCurrentContextmenuClick(e)})),this.tagsViewRoutesList=this.$store.state.app.tagNavList},mounted:function(){},methods:Object(i.a)(Object(i.a)({},Object(r.c)(["setBreadCrumb","setTagNavList","addTag","setLocal","setHomeRoute","closeTag"])),{},{getRoutesList:function(){return this.$store.state.routesList.routesList},onTagsClick:function(t,e){this.tagsRoutePath=t.path,this.tagsRefsIndex=e,this.$router.push(t)},getTagsRefsIndex:function(t){0<this.tagsViewList.length&&(this.tagsRefsIndex=this.tagsViewList.findIndex((function(e){return e.path===t})))},onHandleScroll:function(t){this.$refs.scrollbarRef.$refs.wrap.scrollLeft+=t.wheelDelta/4},tagsViewmoveToCurrentTag:function(){var t=this;this.$nextTick((function(){var e=t.$refs.tagsRefs;if(e.length<=0)return!1;var s=e[t.tagsRefsIndex],i=t.tagsRefsIndex,n=e.length,o=e[0],a=e[e.length-1],r=t.$refs.scrollbarRef.$refs.wrap,u=r.scrollWidth,c=r.offsetWidth,l=r.scrollLeft,h=e[t.tagsRefsIndex-1],f=(e=e[t.tagsRefsIndex+1],""),d="";s===o?r.scrollLeft=0:s===a?r.scrollLeft=u-c:(f=0===i?(null==o?void 0:o.offsetLeft)-5:(null==h?void 0:h.offsetLeft)-5,l+c<(d=i===n?(null==a?void 0:a.offsetLeft)+a.offsetWidth+5:(null==e?void 0:e.offsetLeft)+e.offsetWidth+5)?r.scrollLeft=d-c:f<l&&(r.scrollLeft=f)),t.updateScrollbar()}))},updateScrollbar:function(){this.$refs.scrollbarRef.update()},filterCurrentMenu:function(t,e,s){var i=this;t.map((function(t){if(t.path===e)return s(t),!1;(t=Object.assign({},t)).children&&(t.children=i.filterCurrentMenu(t.children,e,s))}))},duplicate:function(t){var e={};return t.reduce((function(t,s){return e[s.path]||(e[s.path]=t.push(s)),t}),[])},getTagsViewRoutes:function(){this.tagsRoutePath=this.$route.path,this.tagsViewList=[],this.$store.state.themeConfig.themeConfig.isCacheTagsView||a.b.remove("tagsViewList"),this.tagsViewRoutesList=this.$store.state.tagsViewRoutes.tagsViewRoutes,this.initTagsViewList()},addBrowserSetSession:function(t){this.setTagNavList(t)},initTagsViewList:function(){var t=this;a.b.get("tagsViewList")&&this.$store.state.themeConfig.themeConfig.isCacheTagsView?this.tagsViewList=a.b.get("tagsViewList"):(this.tagsViewRoutesList.map((function(e){e.isAffix&&!e.isHide&&t.tagsViewList.push(Object(i.a)({},e))})),this.addTagsView(this.$route.path)),this.getTagsRefsIndex(this.$route.path),this.tagsViewmoveToCurrentTag()},addTagsView:function(t,e){var s;return!this.tagsViewList.some((function(e){return e.path===t}))&&!((s=this.tagsViewRoutesList.find((function(e){return e.path===t}))).isLink&&!s.isIframe)&&(s.query=null!=e&&e.query?null==e?void 0:e.query:this.$route.query,this.tagsViewList.push(Object(i.a)({},s)),void this.addBrowserSetSession(this.tagsViewList))},onContextmenu:function(t,e){var s=e.clientX;e=e.clientY;this.tagsDropdown.x=s,this.tagsDropdown.y=e,this.$refs.tagsContextmenu.openContextmenu(t)},onContextmenuIcon:function(t){},onCurrentContextmenuClick:function(t){var e=t.id,s=t.path,i=this.tagsViewList.find((function(t){return t.path===s}));switch(e){case 0:this.refreshCurrentTagsView(s),this.$router.push({path:s,query:i.query});break;case 1:this.closeCurrentTagsView(s);break;case 2:this.$router.push({path:s,query:i.query}),this.closeOtherTagsView(s);break;case 3:this.closeAllTagsView(s)}},refreshCurrentTagsView:function(t){this.bus.$emit("onTagsViewRefreshRouterView",t)},closeCurrentTagsView:function(t){var e=this;this.tagsViewList.map((function(s,i,n){s.meta.isAffix||s.path===t&&(e.tagsViewList.splice(i,1),setTimeout((function(){e.tagsViewList.length===i?e.$router.push({path:n[n.length-1].path,query:n[n.length-1].query}):e.$router.push({path:n[i].path,query:n[i].query})}),0))})),this.setTagNavList(this.tagsViewList)},closeOtherTagsView:function(t){var e=[];this.tagsViewRoutesList.map((function(s){s.meta.isAffix&&!s.meta.isHide&&e.push(Object(i.a)({},s)),(s.path=t)&&e.push(Object(i.a)({},s))})),this.addBrowserSetSession(e)},closeAllTagsView:function(t){var e=this,s=[];this.tagsViewRoutesList.map((function(n){n.meta.isAffix&&!n.meta.isHide&&(s.push(Object(i.a)({},n)),s.some((function(e){return e.path===t}))?e.$router.push({path:t,query:e.$route.query}):e.$router.push({path:n.path,query:e.$route.query}))})),this.addBrowserSetSession(s)}}),watch:{$route:{handler:function(t){this.tagsRoutePath=t.path,this.addTagsView(t.path,t),this.getTagsRefsIndex(t.path),this.tagsViewmoveToCurrentTag()},deep:!0}},destroyed:function(){this.bus.$off("onCurrentContextmenuClick")}},s("8289"),r=Object(o.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"layout-navbars-tagsview"},[s("el-scrollbar",{ref:"scrollbarRef",nativeOn:{wheel:function(e){return e.preventDefault(),t.onHandleScroll(e)}}},[s("ul",{ref:"tagsUlRef",staticClass:"layout-navbars-tagsview-ul",class:t.setTagsStyle},t._l(t.tagsViewList,(function(e,i){return s("li",{key:i,ref:"tagsRefs",refInFor:!0,staticClass:"layout-navbars-tagsview-ul-li",class:{"is-active":e.path===t.tagsRoutePath},attrs:{"data-name":e.name},on:{contextmenu:function(s){return s.preventDefault(),t.onContextmenu(e,s)},click:function(s){return t.onTagsClick(e,i)}}},[e.path!==t.tagsRoutePath&&t.getThemeConfig.isTagsviewIcon?s("i",{staticClass:"layout-navbars-tagsview-ul-li-iconfont font14 is-tagsview-icon",class:e.icon}):t._e(),s("span",[t._v(t._s(t.$t(e.meta.title)))]),e.path===t.tagsRoutePath?s("i",{staticClass:"el-icon-refresh-right layout-navbars-tagsview-ul-li-icon ml5",on:{click:function(s){return s.stopPropagation(),t.refreshCurrentTagsView(e.path)}}}):t._e(),e.isAffix?t._e():s("i",{staticClass:"el-icon-close layout-navbars-tagsview-ul-li-icon ml5",on:{click:function(s){return s.stopPropagation(),t.closeCurrentTagsView(e.path)}}})])})),0)]),s("Contextmenu",{ref:"tagsContextmenu",attrs:{dropdown:t.tagsDropdown},on:{currentContextmenuClick:t.onCurrentContextmenuClick}})],1)}),[],!1,null,"f7384a6e",null);e.a=r.exports},cde3:function(t,e,s){},d635:function(t,e,s){t.exports=s.p+"system_static/media/newOrderAudioLink.71ee2b71.mp3"},f44d:function(t,e,s){"use strict";var i=s("cde3");s.n(i).a}}]);