1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-38d7303c"],{"028b":function(e,t,i){"use strict";i("3f4d")},"0b8e":function(e,t,i){"use strict";i("7b2e")},"10fb":function(e,t,i){e.exports=i.p+"static/img/logo.66bee2dc.gif"},"3f4d":function(e,t,i){},4903:function(e,t,i){},"4c1f":function(e,t,i){"use strict";var s=i("1b69"),n="admin/";t.a={list:function(e,t){return Object(s.a)(n+"versionlist",e,"post",t)},add:function(e,t){return Object(s.a)(n+"versionAdd",e,"post",t)}}},"5a41":function(e,t,i){"use strict";i("bc91")},"64d1":function(e,t,i){"use strict";i("4903")},6596:function(e,t,i){"use strict";i("98ac")},"7b2e":function(e,t,i){},"7f29":function(e,t,i){"use strict";i("bcca")},"87d9":function(e,t,i){},"98ac":function(e,t,i){},"9e79":function(e,t,i){"use strict";i("b0f9")},b0f9:function(e,t,i){},bc91:function(e,t,i){},bcca:function(e,t,i){},bf44:function(e,t,i){},c1f7:function(e,t,i){"use strict";i.r(t);var s=i("5530"),n={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},a=(i("64d1"),i("028b"),i("2877")),r=(n=Object(a.a)(n,(function(){var e=this.$createElement;e=this._self._c||e;return e("section",{staticClass:"app-main"},[e("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[e("keep-alive",{attrs:{include:this.cachedViews}},[e("router-view",{key:this.key})],1)],1)],1)}),[],!1,null,"10a0d7af",null).exports,i("1da1")),o=(i("e9c4"),i("96cf"),i("2f62")),c=i("4c1f"),l=i("9f53"),u=i("5f87"),d=(l={computed:Object(s.a)({},Object(o.b)(["sidebar","avatar","device"])),mixins:[l.a],data:function(){return{showModel:!1,loading:!1,isShow:!0,statsTime:0,endTime:0,checked:!0,lastNotice:null,parmValue:{type:"",page:1,size:15},activeMsg:null}},mounted:function(){this.openNotice(!0)},methods:{openNotice:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function i(){var s,n,a,r;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return Object(u.c)()&&0<Object(u.c)().length?t.lastNotice=JSON.parse(Object(u.c)()):t.lastNotice=null,i.next=3,t.initData();case 3:if(r=i.sent,s=r.code,n=r.count,a=r.item,r=r.message,0!==s){i.next=12;break}0!=n?(t.activeMsg=a,e?t.typeShow():t.showModel=!0):t.$message.warning("暂无系统消息!"),i.next=18;break;case 12:if(100<=s&&s<=104)return i.next=15,t.logout();i.next=17;break;case 15:i.next=18;break;case 17:t.$message.warning(r);case 18:case"end":return i.stop()}}),i)})))()},initData:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var i,s,n,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i={code:0,count:0,item:{},message:""},e.loading=!0,t.next=4,c.a.list(e.parmValue);case 4:return n=t.sent,a=n.code,s=n.data,n=n.message,e.loading=!1,i.code=a,i.message=n,0===a&&(n=s.list,a=s.count,0!==(i.count=a)&&(i.item=JSON.parse(JSON.stringify(n[0])))),t.abrupt("return",i);case 13:case"end":return t.stop()}}),t)})))()},typeShow:function(){var e,t,i,s,n=this.is_Tips();n&&(this.lastNotice+""=="null"&&n?this.showModel=!0:(e=(n=this.lastNotice).addtime,t=n.type,n=n.sys_type,i=(s=this.activeMsg).sys_type,s=s.addtime,this.showModel=e!==s||n!==i||"1"!==t))},is_Tips:function(){var e=(new Date).valueOf(),t=this.activeMsg,i=t.sys_type;t=t.addtime,t=new Date(t).valueOf();return"VER"===i?(this.statsTime=t,this.endTime=this.statsTime+6048e5,e>=this.statsTime&&e<=this.endTime):(this.statsTime=0,this.endTime=t,e<=this.endTime)},toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 3:case"end":return t.stop()}}),t)})))()},submit:function(){this.page_set_notice(),this.showModel=!1},page_set_notice:function(){var e=this.activeMsg,t=e.sys_type;e=e.addtime,t={type:this.checked?"1":"0",sys_type:t,addtime:e};Object(u.r)(JSON.stringify(t))}}},l=(i("9e79"),Object(a.a)(l,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"navbar"},[t("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),t("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),t("div",{staticClass:"right-menu"},["mobile"!==e.device?[e.isShow?t("i",{staticClass:"el-icon-message-solid right-menu-item hover-effect shake",staticStyle:{height:"50px",width:"40px","line-height":"52px","font-size":"22px"},on:{click:function(t){return e.openNotice()}}}):e._e(),t("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}})]:e._e(),t("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[t("div",{staticClass:"avatar-wrapper"},[t("img",{staticClass:"user-avatar",attrs:{src:e.avatar+"?imageView2/1/w/80/h/80"}}),t("div",{staticClass:"username"},[e._v(" "+e._s(e.$store.state.user.name)+" "),t("i",{staticClass:"el-icon-caret-bottom"})])]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("router-link",{attrs:{to:"/person/my-message"}},[t("el-dropdown-item",[e._v("我的信息")])],1),t("router-link",{attrs:{to:"/person/change-phone"}},[t("el-dropdown-item",[e._v("更换手机号")])],1),t("router-link",{attrs:{to:"/person/change-password"}},[t("el-dropdown-item",[e._v("修改密码")])],1),t("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[t("span",{staticStyle:{display:"block"}},[e._v("退出登录")])])],1)],1)],2),t("el-dialog",{attrs:{title:"系统公告",center:!0,align:"left",top:"6vh",width:"900px","close-on-click-modal":!1,visible:e.showModel,"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)","append-to-body":""},on:{close:e.submit,"update:visible":function(t){e.showModel=t}}},[t("el-card",{staticStyle:{"margin-top":"-20px"}},[null!==e.activeMsg?t("el-row",{attrs:{gutter:10}},[t("el-col",{attrs:{span:24}},[t("div",{staticStyle:{padding:"0 0 22px 0"}},[t("el-alert",{staticClass:"my-el-alert",attrs:{closable:!1,"show-icon":"",center:"",title:e.activeMsg.module,type:"VER"===e.activeMsg.sys_type?"success":"warning"}})],1),t("el-form",{staticClass:"demo-table-expand",staticStyle:{"padding-left":"25px"},attrs:{size:"mini","label-position":"left","label-width":"82px"}},[t("el-row",["VER"===e.activeMsg.sys_type?t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"版本编号:"}},[t("p",{staticStyle:{margin:"0"}},[e._v(e._s(e.activeMsg.version))])])],1):e._e(),t("el-col",{attrs:{span:"VER"===e.activeMsg.sys_type?12:24}},[t("el-form-item",{attrs:{label:"VER"===e.activeMsg.sys_type?"更新时间:":"预计时间:"}},[t("p",{staticStyle:{margin:"0"}},[e._v(" "+e._s(e.activeMsg.addtime)+" ")])])],1),t("el-col",{attrs:{span:24}},[t("el-form-item",{attrs:{label:"更新内容:"}},[t("p",{staticStyle:{margin:"0"},domProps:{innerHTML:e._s(e.activeMsg.system)}})])],1),t("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[t("el-checkbox",{staticClass:"fl",staticStyle:{"padding-top":"5px"},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("我已知晓,后续不再提示!")]),t("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:e.submit}},[e._v("关闭 ")])],1)],1)],1)],1)],1):e._e()],1)],1)],1)}),[],!1,null,"32f0a101",null).exports),{data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}}),h=(d=(i("6596"),Object(a.a)(d,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"drawer-container"},[t("div",[t("h3",{staticClass:"drawer-title"},[e._v("Page style setting")]),t("div",{staticClass:"drawer-item"},[t("span",[e._v("Theme Color")]),t("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1),t("div",{staticClass:"drawer-item"},[t("span",[e._v("Open Tags-View")]),t("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),t("div",{staticClass:"drawer-item"},[t("span",[e._v("Fixed Header")]),t("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),t("div",{staticClass:"drawer-item"},[t("span",[e._v("Sidebar Logo")]),t("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1)])])}),[],!1,null,"9cf80efa",null).exports),{name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"采销平台",logo:i("10fb")}}}),f=(h=(i("5a41"),Object(a.a)(h,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[t("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?t("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?t("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):t("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):t("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?t("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),t("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)}),[],!1,null,"37e1bec9",null).exports),i("4de4"),i("d3b7"),i("df7c")),p=i.n(f),m=i("61f7"),g=(f={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){t=t.props;var i=t.icon,s=(t=t.title,[]);return s.push(e("i",{class:[i,"sub-el-icon"]})),t&&s.push(e("span",{slot:"title"},[t])),s}},f=(i("f9e3"),Object(a.a)(f,void 0,void 0,!1,null,"1ea7bc04",null).exports),{props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(m.k)(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}}),v=(f={name:"SidebarItem",components:{Item:f,AppLink:Object(a.a)(g,(function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)}),[],!1,null,null,null).exports},mixins:[{computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e,t=this,i=this.$refs.subMenu;i&&(e=i.handleMouseleave,i.handleMouseleave=function(i){"mobile"!==t.device&&e(i)})}}}],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],i=1<arguments.length?arguments[1]:void 0;t=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===t.length||0===t.length&&(this.onlyOneChild=Object(s.a)(Object(s.a)({},i),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(m.k)(e)?e:Object(m.k)(this.basePath)?this.basePath:p.a.resolve(this.basePath,e)}}},g=Object(a.a)(f,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.item.hidden?e._e():i("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?i("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[i("template",{slot:"title"},[e.item.meta?i("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return i("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?i("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[i("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[i("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)}),[],!1,null,null,null).exports,f=i("cf1e"),i.n(f)),b=(f={components:{SidebarItem:g,Logo:h},computed:Object(s.a)(Object(s.a)({},Object(o.b)(["navList","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta;e=e.path;return t.activeMenu||e},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return v.a},isCollapse:function(){return!this.sidebar.opened}})},g=Object(a.a)(f,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:{"has-logo":e.showLogo}},[e.showLogo?i("logo",{attrs:{collapse:e.isCollapse}}):e._e(),i("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[i("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.navList,(function(e){return i("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)}),[],!1,null,null,null).exports,i("b85c")),w=i("2909"),x=(h=(i("159b"),i("b0c0"),i("99af"),i("ac1f"),i("5319"),i("fb6a"),i("c740"),{name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){e=e.wheelDelta||40*-e.deltaY;var t=this.scrollWrapper;t.scrollLeft=t.scrollLeft+e/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el.offsetWidth,i=this.scrollWrapper,s=this.$parent.$refs.tag,n=null,a=null;0<s.length&&(n=s[0],a=s[s.length-1]),n===e?i.scrollLeft=0:a===e?i.scrollLeft=i.scrollWidth-t:(n=s.findIndex((function(t){return t===e})),a=s[n-1],n=(s=s[n+1]).$el.offsetLeft+s.$el.offsetWidth+4,s=a.$el.offsetLeft-4,n>i.scrollLeft+t?i.scrollLeft=n-t:s<i.scrollLeft&&(i.scrollLeft=s))}}}),f=(i("c4d7"),{components:{ScrollPane:Object(a.a)(h,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)}),[],!1,null,"41421bb2",null).exports},data:function(){return{visible:!1,top:0,left:0,selectedTag:{},affixTags:[]}},computed:{visitedViews:function(){return this.$store.state.tagsView.visitedViews},routes:function(){return this.$store.state.permission.routes}},watch:{$route:function(){this.addTags(),this.moveToCurrentTag()},visible:function(e){e?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},mounted:function(){this.initTags(),this.addTags()},methods:{isActive:function(e){return e.path===this.$route.path},isAffix:function(e){return e.meta&&e.meta.affix},filterAffixTags:function(e){var t=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"/",n=[];return e.forEach((function(e){var a;e.meta&&e.meta.affix&&(a=p.a.resolve(i,e.path),n.push({fullPath:a,path:a,name:e.name,meta:Object(s.a)({},e.meta)})),e.children&&1<=(a=t.filterAffixTags(e.children,e.path)).length&&(n=[].concat(Object(w.a)(n),Object(w.a)(a)))})),n},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),i=Object(b.a)(t);try{for(i.s();!(e=i.n()).done;){var s=e.value;s.name&&this.$store.dispatch("tagsView/addVisitedView",s)}}catch(e){i.e(e)}finally{i.f()}},addTags:function(){return this.$route.name&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var i,s=Object(b.a)(t);try{for(s.s();!(i=s.n()).done;){var n=i.value;if(n.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(n),n.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(i){s.e(i)}finally{s.f()}}))},refreshSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delCachedView",e).then((function(){var i=e.fullPath;t.$nextTick((function(){t.$router.replace({path:"/redirect"+i})}))}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(i){i=i.visitedViews,t.isActive(e)&&t.toLastView(i,e)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(i){i=i.visitedViews,t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(i,e)}))},toLastView:function(e,t){e=e.slice(-1)[0],e?this.$router.push(e.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var i=this.$el.getBoundingClientRect().left,s=this.$el.offsetWidth-105;i=t.clientX-i+15;this.left=s<i?s:i,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}}),h=(i("0b8e"),i("cfaa"),Object(a.a)(f,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[i("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return i("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(i){if("button"in i&&1!==i.button)return null;e.isAffix(t)||e.closeSelectedTag(t)},contextmenu:function(i){return i.preventDefault(),e.openMenu(t,i)}}},[e._v(" "+e._s(t.title)+" "),e.isAffix(t)?e._e():i("span",{staticClass:"el-icon-close",on:{click:function(i){return i.preventDefault(),i.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),i("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[i("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[e._v("Refresh")]),e.isAffix(e.selectedTag)?e._e():i("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v("Close")]),i("li",{on:{click:e.closeOthersTags}},[e._v("Close Others")]),i("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v("Close All")])])],1)}),[],!1,null,"942a05c2",null).exports),i("4360")),y=document.body;f={name:"Layout",components:{AppMain:n,Navbar:l,Settings:d,Sidebar:g,TagsView:h},mixins:[{watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&x.a.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){this.$_isMobile()&&(x.a.dispatch("app/toggleDevice","mobile"),x.a.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){return y.getBoundingClientRect().width-1<992},$_resizeHandler:function(){var e;document.hidden||(e=this.$_isMobile(),x.a.dispatch("app/toggleDevice",e?"mobile":"desktop"),e&&x.a.dispatch("app/closeSideBar",{withoutAnimation:!0}))}}}],computed:Object(s.a)(Object(s.a)({},Object(o.c)({sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},showSettings:function(e){return e.settings.showSettings},needTagsView:function(e){return e.settings.tagsView},fixedHeader:function(e){return e.settings.fixedHeader}})),{},{classObj:function(){return{hideSidebar:!this.sidebar.opened,openSidebar:this.sidebar.opened,withoutAnimation:this.sidebar.withoutAnimation,mobile:"mobile"===this.device}}}),methods:{handleClickOutside:function(){this.$store.dispatch("app/closeSideBar",{withoutAnimation:!1})}}},i("7f29"),n=Object(a.a)(f,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?t("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),t("sidebar",{staticClass:"sidebar-container"}),t("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[t("div",{class:{"fixed-header":e.fixedHeader}},[t("navbar"),e.needTagsView?t("tags-view"):e._e()],1),t("app-main"),e.showSettings?t("right-panel",[t("settings")],1):e._e()],1)],1)}),[],!1,null,"6e7be818",null);t.default=n.exports},c4d7:function(e,t,i){"use strict";i("87d9")},cf1e:function(e,t,i){e.exports={menuText:"#fff",menuActiveText:"#fff",subMenuActiveText:"#fff",menuBg:"#282c34",menuHover:"rgba(255,255,255,0.08)",subMenuBg:"#000c17",subMenuHover:"#000c17",sideBarWidth:"210px"}},cfaa:function(e,t,i){"use strict";i("e1eb")},e1eb:function(e,t,i){},f9e3:function(e,t,i){"use strict";i("bf44")}}]);
|