You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chunk-b9652534.e3e26f7c.js 6.3 KiB

4 years ago
12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9652534"],{"01a8":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-header",class:{white:"white"===t.theme||t.isWindowScrollIng,black:"black"===t.theme,"black-bg-color":t.isWindowScrollIng&&"black"===t.theme}},[t.isClient?s("div",{staticClass:"app-header-top"},[s("div",{staticClass:"top-left",class:{"hide-state":!0}},[s("div",{staticClass:"dot"}),s("div",{staticClass:"state",class:{"white-color":"white"===t.theme,black:"black"===t.theme}},[t._v("在线")])]),s("div",{staticClass:"top-center"}),s("div",{staticClass:"top-right"},[s("div",{staticClass:"min",on:{click:function(e){return e.stopPropagation(),t.shrinkBrowserWindow(e)}}},[s("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),s("div",{staticClass:"my-max",on:{click:function(e){return e.stopPropagation(),t.judgeIsMaxBrowserWindow(e)}}},[t.isMaxWindowNow?s("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):s("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),s("div",{staticClass:"close",on:{mouseenter:function(e){t.isCloseHover=!0},mouseleave:function(e){t.isCloseHover=!1},click:function(e){return e.stopPropagation(),t.closeBrowserWindow(e)}}},[s("img",{directives:[{name:"show",rawName:"v-show",value:!t.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),s("img",{directives:[{name:"show",rawName:"v-show",value:t.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):t._e(),t.isWorkspaceTopBar&&!t.isClient||t.isShowTopBar&&!t.isClient?s("div",{staticClass:"app-header-top"}):t._e(),s("div",{staticClass:"app-header-content",class:{"adjust-content-pos":t.isWorkspaceTopBar&&!t.isClient}},[s("div",{staticClass:"app-header-content-left"},[t._t("left",[s("i",{directives:[{name:"show",rawName:"v-show",value:t.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===t.theme||"basis"===t.theme,icon_topback_left_baise:"black"===t.theme},on:{click:function(e){return t.navBack()}}}),s("span",{directives:[{name:"show",rawName:"v-show",value:t.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(e){return t.navBack()}}},[t._v(t._s(t.backBtnTitle))])])],2),s("div",{staticClass:"app-header-center"},[t._t("center",[t._v(t._s(t.title))])],2),s("div",{staticClass:"app-header-content-right no-drag"},[t._t("right"),t.showUserCenter?s("user-center"):t._e()],2)])])},n=[],o=s("1392"),a=s("1d40"),r={components:{UserCenter:o["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:a["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1}},computed:{},created:function(){this.isMaxWindowNow="true"===this.$cookie.get("isMaxWindowNow")&&Boolean(this.$cookie.get("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){a["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,this.$cookie.set("isMaxWindowNow",this.isMaxWindowNow),a["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,this.$cookie.set("isMaxWindowNow",this.isMaxWindowNow),a["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){a["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var t=document.getElementById("bigbody");this.isWindowScrollIng=t.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=r,l=(s("44f6"),s("2877")),d=Object(l["a"])(c,i,n,!1,null,"9b7b425e",null);e["a"]=d.exports},"07d5":function(t,e,s){},"42c3":function(t,e,s){},"44f6":function(t,e,s){"use strict";var i=s("42c3"),n=s.n(i);n.a},bb14:function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-nav"},t._l(t.list,(function(e){return s("div",{key:e.key,staticClass:"app-nav-item no-drag",class:{"app-nav-item-active":0===t.currentKey.indexOf(e.key)},on:{click:function(s){return t.goto(e.key)}}},[t._v(" "+t._s(e.label)+" ")])})),0)},n=[],o=(s("b0c0"),{props:{list:Array},data:function(){return{currentKey:this.$route.name}},methods:{goto:function(t){this.$router.push({name:t})}},watch:{$route:function(t){this.currentKey=t.name}}}),a=o,r=(s("d3bf"),s("2877")),c=Object(r["a"])(a,i,n,!1,null,"389ce532",null);e["a"]=c.exports},d3bf:function(t,e,s){"use strict";var i=s("07d5"),n=s.n(i);n.a},db21:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("app-header",{directives:[{name:"show",rawName:"v-show",value:t.showHeader,expression:"showHeader"}],attrs:{theme:"white",showUserCenter:""},scopedSlots:t._u([{key:"left",fn:function(){return[t._v("LOCKING")]},proxy:!0},{key:"center",fn:function(){return[s("app-nav",{attrs:{list:t.navList}})]},proxy:!0}])}),s("router-view")],1)},n=[],o=(s("13d5"),s("b0c0"),s("f96e")),a=s("bb14"),r=function(t,e){return{key:t,label:e}},c=[r("company_home","首页"),r("company_user","通讯录")],l=c.reduce((function(t,e){return t[e.key]=!0,t}),{}),d=function(t){return l[t]},u={components:{AppHeader:o["a"],AppNav:a["a"]},data:function(){return{showHeader:d(this.$route.name),navList:c}},methods:{},watch:{$route:function(t){this.showHeader=d(t.name)}}},w=u,h=s("2877"),p=Object(h["a"])(w,i,n,!1,null,null,null);e["default"]=p.exports},f96e:function(t,e,s){"use strict";var i=s("01a8");s.d(e,"a",(function(){return i["a"]}))}}]);
  2. //# sourceMappingURL=chunk-b9652534.e3e26f7c.js.map