CRMEB/crmeb/public/admin/system_static/js/chunk-1bf8955b.041819f0.js
2023-06-12 14:41:51 +08:00

1 line
37 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1bf8955b"],{"00df":function(t,e,s){"use strict";var i=s("71f8");s.n(i).a},"0d70":function(t,e,s){},1761:function(t,e,s){"use strict";var i=s("7518");s.n(i).a},"19e8":function(t,e,s){},"1a9e":function(t,e,s){},"238c":function(t,e,s){"use strict";var i=s("2742a");s.n(i).a},"2742a":function(t,e,s){},3902:function(t,e,s){},"452b":function(t,e,s){"use strict";var i=s("3902");s.n(i).a},"4fcb":function(t,e,s){"use strict";var i=s("1a9e");s.n(i).a},"5b3b":function(t,e,s){"use strict";var i=s("aec9");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("5b3b"),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,"f338dc7a",null);e.a=s.exports},6492:function(t,e,s){},"71f8":function(t,e,s){},7518:function(t,e,s){},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&&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?[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)]:t._e()]}))],2)}),[],!1,null,null,null);e.a=s.exports},"7d05":function(t,e,s){},"7eaa":function(t,e,s){"use strict";var i=s("6492");s.n(i).a},aec9:function(t,e,s){},b657:function(t,e,s){"use strict";var i=s("ec3b");s.n(i).a},b673:function(t,e,s){"use strict";var i=s("7d05");s.n(i).a},bb39:function(t,e,s){"use strict";s("d81d"),s("4de4"),s("d3b7"),s("159b"),s("caad");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&&"classic"!==e&&t?"":"none"},isShowcrumb:function(){var t=this.$store.state.themeConfig.themeConfig.layout;return"transverse"!==t&&"classic"!==t},collapseShow:function(){return["defaults","columns"].includes(this.$store.state.themeConfig.themeConfig.layout)}},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}}},r=(s("1761"),s("2877")),a=(o=Object(r.a)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"layout-navbars-breadcrumb"},[t.collapseShow?s("i",{staticClass:"layout-navbars-breadcrumb-icon",class:t.getThemeConfig.isCollapse?"el-icon-s-unfold":"el-icon-s-fold",on:{click:t.onThemeConfigChange}}):t._e(),t.isShowcrumb?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):t._e()],1)}),[],!1,null,"04bba647",null).exports,s("ac1f"),s("5319"),s("93bf")),c=s.n(a),l=s("5723"),u=s("2934"),h=s("49ea"),f=new Audio(s("d635")),d=(a={name:"layoutBreadcrumbUserNews",data:function(){return{newsList:[],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(u.d)().then((function(e){t.newsList=e.data||[],t.$emit("haveNews",!!t.newsList.length)})).catch((function(){}))},jumpUrl:function(t){this.$router.push({path:t})}}},a=(s("7eaa"),Object(r.a)(a,(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,"888782d4",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.d)(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("efcb"),Object(r.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,"25da63eb",null).exports),s("d708")),p=(a={name:"layoutBreadcrumbUser",components:{UserNews:a,Search:m},data:function(){return{isScreenfull:!1,isShowUserNewsPopover:!1,disabledI18n:"zh-cn",disabledSize:"",homePath:"".concat(g.a.routePre,"/home"),isDot:!1}},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:{initIsDot:function(t){this.isDot=t},openNews:function(){this.isShowUserNewsPopover=!this.isShowUserNewsPopover,this.isDot=!1},onSearchClick:function(){this.$refs.searchRef.openSearch()},onLayoutSetingClick:function(){this.bus.$emit("openSetingsDrawer")},refresh:function(){this.bus.$emit("onTagsViewRefreshRouterView",this.$route.path)},onScreenfullClick:function(){var t=this;if(!c.a.isEnabled)return this.$message.warning("暂不不支持全屏"),!1;c.a.toggle(),c.a.on("change",(function(){c.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(l.b)().then((function(t){i(),e.$Message.success("您已成功退出"),e.$store.commit("clearAll"),Object(n.l)("token"),Object(n.l)("expires_time"),Object(n.l)("uuid"),setTimeout((function(){e.$router.replace({name:"login"}),s.confirmButtonLoading=!1}),1500)}))):i()}}).then((function(){i.b.clear(),window.location.reload()})).catch((function(){}))}),150):"user"===t?this.$router.push({name:"systemUser"}):this.$router.push(t)}}},m=(s("df6c"),Object(r.a)(a,(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.refresh}},[e("i",{staticClass:"el-icon-refresh-right",attrs:{title:t.$t("message.user.title7")}})]),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"},[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":t.isDot},on:{click:function(e){return e.stopPropagation(),t.openNews(e)}},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"}],on:{haveNews:t.initIsDot}})],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"},[e("img",{staticClass:"layout-navbars-breadcrumb-user-link-photo mr5",attrs:{src:t.getUserInfos.head_pic}}),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:"user"}},[t._v(t._s(t.$t("message.user.dropdown6")))]),e("el-dropdown-item",{attrs:{divided:"",command:"logOut"}},[t._v(t._s(t.$t("message.user.dropdown5")))])],1)],1),e("div",{staticClass:"layout-navbars-breadcrumb-user-icon",on:{click:t.onLayoutSetingClick}},[e("i",{staticClass:"el-icon-setting",attrs:{title:t.$t("message.user.title3")}})]),e("Search",{ref:"searchRef"})],1)}),[],!1,null,"6b6a52cf",null).exports),a=s("6376"),s("f3f3")),C=s("7686"),v=s("2f62");C={name:"navMenuHorizontal",components:{SubItem:C.a},props:{menuList:{type:Array,default:function(){return[]}}},computed:Object(p.a)({},Object(v.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("4fcb"),v=Object(r.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.is_show&&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):e.is_show?[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)]:t._e()]}))],2)],1)],1)}),[],!1,null,"4f4569dc",null).exports,s("7db0"),C={name:"layoutColumnsAside",components:{Logo:a.a},data:function(){return{columnsAsideList:[],liIndex:0,difference:0,routeSplit:[],activePath:""}},computed:{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.routesList.routesList}},beforeDestroy:function(){this.bus.$off("routesListChange")},mounted:function(){var t=this;this.bus.$on("routesListChange",(function(){t.setFilterRoutes()})),this.setFilterRoutes(),this.$nextTick((function(e){t.initElMenuOffsetLeft()}))},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(".layout-columns.layout-columns-active");if(!e)return!1;t.$refs.elMenuHorizontalScrollRef.$refs.wrap.scrollLeft=e.offsetLeft}))},setColumnsAsideMove:function(t){if(void 0===t)return!1;var e=this.$refs.columnsAsideOffsetLeftRefs;this.liIndex=t,this.$refs.columnsAsideActiveRef.style.left="".concat(e[t].offsetLeft+this.difference,"px")},onColumnsAsideMenuClick:function(t){var e=t.path;t.redirect,this.$router.push(e),!t.children||t.children.length<=1?this.$store.state.themeConfig.themeConfig.isCollapse=!0:1<t.children.length&&(this.$store.state.themeConfig.themeConfig.isCollapse=!1)},onColumnsAsideDown:function(t){var e=this;this.$nextTick((function(){e.setColumnsAsideMove(t)}))},setFilterRoutes:function(){if(this.$store.state.routesList.routesList.length<=0)return!1;this.columnsAsideList=this.filterRoutesFun(this.$store.state.routesList.routesList);var t=this.setSendChildren(Object(d.e)(this.$route,this.columnsAsideList));if(!t.children)return this.bus.$emit("setSendColumnsChildren",[]),this.$store.commit("menus/childMenuList",[]),!(this.$store.state.themeConfig.themeConfig.isCollapse=!0);this.bus.$emit("oneCatName",t.item[0].title),this.onColumnsAsideDown(t.item[0].k),0<t.children.length?this.$store.state.themeConfig.themeConfig.isCollapse=!1:this.$store.state.themeConfig.themeConfig.isCollapse=!0,this.bus.$emit("setSendColumnsChildren",(null==t?void 0:t.children)||[]),this.$store.commit("menus/childMenuList",(null==t?void 0:t.children)||[])},setSendChildren:function(t){t.split("/");var e={};return this.columnsAsideList.map((function(s,i){s.path===t&&(s.k=i,e.item=[Object(p.a)({},s)],s.children&&(e.children=s.children))})),e},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}))},setColumnsMenuHighlight:function(t){var e=this,s=this.columnsAsideList.find((function(e){return e.path===t}));if(!s)return!1;setTimeout((function(){e.onColumnsAsideDown(s.k)}),0)}},watch:{"$store.state":{handler:function(t){if("columnsRound"===t.themeConfig.themeConfig.columnsAsideStyle?this.difference=3:this.difference=0,t.routesList.routesList.length===this.columnsAsideList.length)return!1},deep:!0},$route:{handler:function(t){this.setColumnsMenuHighlight(t.path);t=Object(d.e)(t,this.columnsAsideList);var e=null==(e=Object(d.f)(this.columnsAsideList,t)[0])?void 0:e.children;t=this.setSendChildren(t);if(t.length<=0)return!1;this.onColumnsAsideDown(t.item[0].k),this.bus.$emit("oneCatName",t.item[0].title),this.bus.$emit("setSendColumnsChildren",e||[]),this.$store.commit("menus/childMenuList",e||[])},deep:!0}}},s("238c"),C=Object(r.a)(C,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"layout-columns-tra-aside el-menu-horizontal-warp"},[s("el-scrollbar",{ref:"elMenuHorizontalScrollRef",nativeOn:{wheel:function(e){return e.preventDefault(),t.onElMenuHorizontalScroll(e)}}},[s("ul",[t._l(t.columnsAsideList,(function(e,i){return s("li",{key:i,ref:"columnsAsideOffsetLeftRefs",refInFor:!0,staticClass:"layout-columns",class:{"layout-columns-active":e.k===t.liIndex},attrs:{title:t.$t(e.title)},on:{click:function(s){return t.onColumnsAsideMenuClick(e)}}},[!e.isLink||e.isLink&&e.isIframe?s("div",{class:t.setColumnsAsidelayout},[s("Icon",{attrs:{type:e.icon}}),s("div",{staticClass:"font12"},[t._v("\n "+t._s(t.$t(e.title)&&4<=t.$t(e.title).length?t.$t(e.title).substr(0,"columns-vertical"===t.setColumnsAsidelayout?4:3):t.$t(e.title))+"\n ")])],1):s("div",{class:t.setColumnsAsidelayout},[s("a",{attrs:{href:e.isLink,target:"_blank"}},[s("Icon",{attrs:{type:e.icon}}),s("div",{staticClass:"font12"},[t._v("\n "+t._s(t.$t(e.title)&&4<=t.$t(e.title).length?t.$t(e.title).substr(0,"columns-vertical"===t.setColumnsAsidelayout?4:3):t.$t(e.title))+"1\n ")])],1)])])})),s("div",{ref:"columnsAsideActiveRef",class:t.setColumnsAsideStyle})],2)])],1)}),[],!1,null,"4b357dda",null).exports,o={name:"layoutNavBars",components:{Breadcrumb:o,User:m,Logo:a.a,Horizontal:v,transverseAside:C},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},isLayoutClassic:function(){return"classic"===this.$store.state.themeConfig.themeConfig.layout}},mounted:function(){var t=this;this.setFilterRoutes(),this.bus.$on("routesListChange",(function(){t.setFilterRoutes()}))},beforeDestroy:function(){this.bus.$off("routesListChange")},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("b673"),m={name:"layoutNavBars",components:{BreadcrumbIndex:Object(r.a)(o,(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(),t.isLayoutClassic?e("transverseAside"):t._e(),e("User")],1)}),[],!1,null,"28241bb6",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("452b"),a={name:"layoutHeader",components:{NavBarsIndex:Object(r.a)(m,(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,"31c5825a",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"}}},v=Object(r.a)(a,(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=v.exports},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("00df"),s("2877")),r=(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,"34ffaacf",null).exports,s("5d2d"),s("2f62"));s("d708"),n={name:"tagsView",components:{Contextmenu:n},data:function(){return{userInfo:{},tagsDropdown:{x:"",y:""},tagsRefsIndex:0,tagsRoutePath:this.$route.path,tagsViewRoutesList:[],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"}],scrollTagIcon:!1}},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(){var t=this;this.$store.state.app.tagNavList.length||this.getTagsViewRoutes(),this.$refs.tagsView.offsetWidth<this.$refs.scrollbarRef.$refs.wrap.scrollWidth&&(this.scrollTagIcon=!0),window.addEventListener("resize",(function(){t.$refs.tagsView.offsetWidth<t.$refs.scrollbarRef.$refs.wrap.scrollWidth?t.scrollTagIcon=!0:t.scrollTagIcon=!1}))},methods:Object(i.a)(Object(i.a)({},Object(r.c)(["setBreadCrumb","setTagNavList","addTag","setLocal","setHomeRoute","closeTag"])),{},{clickDropdown:function(t){t={id:t,path:this.$route.path},this.onCurrentContextmenuClick(t)},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},scrollTag:function(t){var e=this.$refs.scrollbarRef.$refs.wrap.scrollWidth,s=this.$refs.scrollbarRef.$refs.wrap.scrollLeft;this.$refs.scrollbarRef.$refs.wrap.scrollLeft="left"===t?s-300<=0?0:s-300:e<=s+300?e:s+300},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],r=e[e.length-1],a=t.$refs.scrollbarRef.$refs.wrap,c=a.scrollWidth,l=a.offsetWidth,u=a.scrollLeft,h=e[t.tagsRefsIndex-1],f=(e=e[t.tagsRefsIndex+1],""),d="";s===o?a.scrollLeft=0:s===r?a.scrollLeft=c-l:(f=0===i?(null==o?void 0:o.offsetLeft)-5:(null==h?void 0:h.offsetLeft)-5,u+l<(d=i===n?(null==r?void 0:r.offsetLeft)+r.offsetWidth+5:(null==e?void 0:e.offsetLeft)+e.offsetWidth+5)?a.scrollLeft=d-l:f<u&&(a.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.tagsViewRoutesList=this.$store.state.menus.oneLvMenus,this.initTagsViewList()},addBrowserSetSession:function(t){this.setTagNavList(t)},initTagsViewList:function(){var t=[];this.tagsViewRoutesList.map((function(e){e.meta&&e.meta.isAffix&&t.push(Object(i.a)({},e))})),this.setTagNavList(t),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.closeOtherTagsView(s,i.query);break;case 3:this.closeAllTagsView(s)}},refreshIcon:function(){var t=this;this.$nextTick((function(e){t.$refs.tagsView.offsetWidth<t.$refs.scrollbarRef.$refs.wrap.scrollWidth?t.scrollTagIcon=!0:t.scrollTagIcon=!1}))},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,e){var s=[];this.tagsViewRoutesList.map((function(e){(e.meta&&e.meta.isAffix||e.path===t)&&s.push(Object(i.a)({},e))})),this.addBrowserSetSession(s),this.$router.push({path:t,query:e})},closeAllTagsView:function(t){var e=this,s=[];this.tagsViewRoutesList.map((function(n){n.meta.isAffix&&(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(),this.refreshIcon()},deep:!0}},destroyed:function(){this.bus.$off("onCurrentContextmenuClick")}},s("b657"),r=Object(o.a)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{ref:"tagsView",staticClass:"layout-navbars-tagsview"},[t.scrollTagIcon?s("i",{staticClass:"direction el-icon-arrow-left",on:{click:function(e){return t.scrollTag("left")}}}):t._e(),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.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)]),t.scrollTagIcon?s("i",{staticClass:"direction el-icon-arrow-right",on:{click:function(e){return t.scrollTag("right")}}}):t._e(),2<t.tagsViewList.length?s("el-dropdown",{on:{command:t.clickDropdown}},[s("span",{staticClass:"setting-tag el-dropdown-link"},[s("i",{staticClass:"el-icon-menu"})]),s("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.dropdownList,(function(e){return s("el-dropdown-item",{key:e.id,attrs:{command:e.id}},[s("i",{class:e.icon}),t._v("\n "+t._s(t.$t(e.txt)))])})),1)],1):t._e(),s("Contextmenu",{ref:"tagsContextmenu",attrs:{dropdown:t.tagsDropdown},on:{currentContextmenuClick:t.onCurrentContextmenuClick}})],1)}),[],!1,null,"c9c86c62",null);e.a=r.exports},d635:function(t,e,s){t.exports=s.p+"system_static/media/newOrderAudioLink.71ee2b71.mp3"},df6c:function(t,e,s){"use strict";var i=s("19e8");s.n(i).a},ec3b:function(t,e,s){},efcb:function(t,e,s){"use strict";var i=s("0d70");s.n(i).a}}]);