1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-61c1cc8a"],{"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"},"3a7e":function(e,t,i){"use strict";i("fee4")},"3f4d":function(e,t,i){},4903:function(e,t,i){},"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")},"836e":function(e,t,i){"use strict";i("e71b")},"87d9":function(e,t,i){},"98ac":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"),a={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},n=(i("64d1"),i("028b"),i("2877")),o=(a=Object(n.a)(a,(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")),r=(i("96cf"),i("c740"),i("e9c4"),i("2f62")),c=i("9f53"),l=i("5f87"),u=(c={computed:Object(s.a)({},Object(r.b)(["sidebar","avatar","device"])),mixins:[c.a],data:function(){return{companyNo:"",companyNoName:"",companyList:[],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.companyNo=Object(l.f)()||"",this.companyNoName=Object(l.e)()||"",this.companyList=Object(l.g)()?JSON.parse(Object(l.g)()):[]},methods:{business_companyNo_change:function(e){var t,i=this.companyList.findIndex((function(t){return t.supplierNo===e}));-1!==i&&(t=(i=this.companyList[i]).supplierNo,i=i.supplierName,this.companyNo=t,this.companyNoName=i,this.$store.dispatch("user/change_company",{supplierNo:t,supplierName:i}).then((function(e){})).catch((function(){})))},openNotice:function(e){var t=this;return Object(o.a)(regeneratorRuntime.mark((function i(){var s,a,n,o;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return Object(l.c)()&&0<Object(l.c)().length?t.lastNotice=JSON.parse(Object(l.c)()):t.lastNotice=null,i.next=3,t.initData();case 3:if(o=i.sent,s=o.code,a=o.count,n=o.item,o=o.message,0!==s){i.next=12;break}0!=a?(t.activeMsg=n,e?t.typeShow():t.showModel=!0):t.$message.warning("暂无系统消息!"),i.next=18;break;case 12:if(101<=s&&s<=104)return i.next=15,t.logout();i.next=17;break;case 15:i.next=18;break;case 17:t.$message.warning(o);case 18:case"end":return i.stop()}}),i)})))()},initData:function(){return Object(o.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={code:0,count:0,item:{},message:""},e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})))()},typeShow:function(){var e,t,i,s,a=this.is_Tips();a&&(this.lastNotice+""=="null"&&a?this.showModel=!0:(e=(a=this.lastNotice).addtime,t=a.type,a=a.sys_type,i=(s=this.activeMsg).sys_type,s=s.addtime,this.showModel=e!==s||a!==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(o.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(l.o)(JSON.stringify(t))}}},c=(i("3a7e"),Object(n.a)(c,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"navbar"},[i("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),i("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),i("div",{staticClass:"right-menu fr"},["mobile"!==e.device?[i("el-tooltip",{attrs:{effect:"dark",content:"查看操作手册",placement:"top"}},[i("a",{staticClass:"downloadAddr",attrs:{href:"./static/供应商平台操作手册.pdf",target:"_blank"}},[i("i",{staticClass:"el-icon-notebook-2 right-menu-item hover-effect shake",staticStyle:{height:"50px",width:"40px","line-height":"52px","font-size":"22px"}})])]),i("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}})]:e._e(),i("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[i("div",{staticClass:"avatar-wrapper"},[i("img",{staticClass:"user-avatar",attrs:{src:e.avatar+"?imageView2/1/w/80/h/80"}}),i("i",{staticClass:"el-icon-caret-bottom"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[i("span",{staticStyle:{display:"block"}},[e._v("退出登录")])])],1)],1)],2),i("el-select",{staticClass:"fr right-menu-item",staticStyle:{width:"350px",margin:"12px 16px 0 0"},attrs:{size:"mini",placeholder:"请选择供应商"},on:{change:e.business_companyNo_change},model:{value:e.companyNo,callback:function(t){e.companyNo=t},expression:"companyNo"}},e._l(e.companyList,(function(e,t){return i("el-option",{key:e.supplierNo+e.id+t,attrs:{label:e.supplierName,disabled:"1"!==e.status,value:e.supplierNo}})})),1),i("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}}},[i("el-card",{staticStyle:{"margin-top":"-20px"}},[null!==e.activeMsg?i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{span:24}},[i("div",{staticStyle:{padding:"0 0 22px 0"}},[i("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),i("el-form",{staticClass:"demo-table-expand",staticStyle:{"padding-left":"25px"},attrs:{size:"mini","label-position":"left","label-width":"82px"}},[i("el-row",["VER"===e.activeMsg.sys_type?i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"版本编号:"}},[i("p",{staticStyle:{margin:"0"}},[e._v(e._s(e.activeMsg.version))])])],1):e._e(),i("el-col",{attrs:{span:"VER"===e.activeMsg.sys_type?12:24}},[i("el-form-item",{attrs:{label:"VER"===e.activeMsg.sys_type?"更新时间:":"预计时间:"}},[i("p",{staticStyle:{margin:"0"}},[e._v(" "+e._s(e.activeMsg.addtime)+" ")])])],1),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"更新内容:"}},[i("p",{staticStyle:{margin:"0"},domProps:{innerHTML:e._s(e.activeMsg.system)}})])],1),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[i("el-checkbox",{staticClass:"fl",staticStyle:{"padding-top":"5px"},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("我已知晓,后续不再提示!")]),i("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,"6a8e2cf4",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})}}}),d=(u=(i("6596"),Object(n.a)(u,(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")}}}),h=(d=(i("836e"),Object(n.a)(d,(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,"34a9f0b6",null).exports),i("4de4"),i("d3b7"),i("df7c")),p=i.n(h),f=i("61f7"),m=(h={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}},h=(i("f9e3"),Object(n.a)(h,void 0,void 0,!1,null,"1ea7bc04",null).exports),{props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(f.e)(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}}}}),g=(h={name:"SidebarItem",components:{Item:h,AppLink:Object(n.a)(m,(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(f.e)(e)?e:Object(f.e)(this.basePath)?this.basePath:p.a.resolve(this.basePath,e)}}},m=Object(n.a)(h,(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,h=i("cf1e"),i.n(h)),b=(h={components:{SidebarItem:m,Logo:d},computed:Object(s.a)(Object(s.a)({},Object(r.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 g.a},isCollapse:function(){return!this.sidebar.opened}})},m=Object(n.a)(h,(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")),v=i("2909"),w=(d=(i("159b"),i("b0c0"),i("99af"),i("ac1f"),i("5319"),i("fb6a"),{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,a=null,n=null;0<s.length&&(a=s[0],n=s[s.length-1]),a===e?i.scrollLeft=0:n===e?i.scrollLeft=i.scrollWidth-t:(a=s.findIndex((function(t){return t===e})),n=s[a-1],a=(s=s[a+1]).$el.offsetLeft+s.$el.offsetWidth+4,s=n.$el.offsetLeft-4,a>i.scrollLeft+t?i.scrollLeft=a-t:s<i.scrollLeft&&(i.scrollLeft=s))}}}),h=(i("c4d7"),{components:{ScrollPane:Object(n.a)(d,(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]:"/",a=[];return e.forEach((function(e){var n;e.meta&&e.meta.affix&&(n=p.a.resolve(i,e.path),a.push({fullPath:n,path:n,name:e.name,meta:Object(s.a)({},e.meta)})),e.children&&1<=(n=t.filterAffixTags(e.children,e.path)).length&&(a=[].concat(Object(v.a)(a),Object(v.a)(n)))})),a},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 a=i.value;if(a.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(a),a.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()}}}),d=(i("0b8e"),i("cfaa"),Object(n.a)(h,(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;h={name:"Layout",components:{AppMain:a,Navbar:c,Settings:u,Sidebar:m,TagsView:d},mixins:[{watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&w.a.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){this.$_isMobile()&&(w.a.dispatch("app/toggleDevice","mobile"),w.a.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){return y.getBoundingClientRect().width-1<992},$_resizeHandler:function(){var e;document.hidden||(e=this.$_isMobile(),w.a.dispatch("app/toggleDevice",e?"mobile":"desktop"),e&&w.a.dispatch("app/closeSideBar",{withoutAnimation:!0}))}}}],computed:Object(s.a)(Object(s.a)({},Object(r.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"),a=Object(n.a)(h,(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=a.exports},c4d7:function(e,t,i){"use strict";i("87d9")},cf1e:function(e,t,i){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},cfaa:function(e,t,i){"use strict";i("e1eb")},e1eb:function(e,t,i){},e71b:function(e,t,i){},f9e3:function(e,t,i){"use strict";i("bf44")},fee4:function(e,t,i){}}]);
|