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.
 
 
 
 

2 lines
7.6 KiB

  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-930e4a54"],{"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",attrs:{title:t.isOnLine?"":"请检查本地网关连接"}},[s("div",{staticClass:"dot",class:{online:t.isOnLine,offline:!t.isOnLine}}),s("div",{staticClass:"state",class:{"white-color":"white"===t.theme,black:"black"===t.theme}},[t._v(t._s(t.isOnLine?"在线":"离线"))])]),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",{ref:"header-center",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=[],a=s("1392"),o=s("1d40"),r={components:{UserCenter:a["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{headerCenterEl:null,isWindowScrollIng:!1,isClient:o["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1,isOnLine:"true"===sessionStorage.getItem("isOnLine")}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize}},watch:{isMaxWindowSize:function(t){this.isMaxWindowNow=t}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0),this.headerCenterEl=this.$refs["header-center"]},methods:{shrinkBrowserWindow:function(){o["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),o["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),o["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){o["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("0e1a"),s("2877")),d=Object(l["a"])(c,i,n,!1,null,"5a316db6",null);e["a"]=d.exports},"0e1a":function(t,e,s){"use strict";var i=s("d196"),n=s.n(i);n.a},"46a4":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",{staticClass:"demo"},[s("app-header",{staticClass:"app-component",attrs:{backBtnTitle:"返回按钮",showBackBtn:"",title:"这里放标题或者导航",showUserCenter:""},scopedSlots:t._u([{key:"right",fn:function(){return[t._v(" test ")]},proxy:!0}])}),s("app-header",{staticClass:"app-component",attrs:{theme:"white",title:"这里放标题或者导航"},scopedSlots:t._u([{key:"left",fn:function(){return[t._v("LOCKING")]},proxy:!0},{key:"right",fn:function(){return[s("span",[t._v("退出登录")])]},proxy:!0},{key:"center",fn:function(){return[s("app-nav",{attrs:{list:t.navList}})]},proxy:!0}])}),s("div",{staticStyle:{height:"2000px"}}),s("img-lazy",{attrs:{src:t._f("resolveAvator")("oss://1603443894479/bz.jpg")}}),s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1603457396447&di=9046aaf5b7fc79ce05e28cb76f289862&imgtype=0&src=http%3A%2F%2Fa3.att.hudong.com%2F14%2F75%2F01300000164186121366756803686.jpg",expression:"'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1603457396447&di=9046aaf5b7fc79ce05e28cb76f289862&imgtype=0&src=http%3A%2F%2Fa3.att.hudong.com%2F14%2F75%2F01300000164186121366756803686.jpg'"}]}),s("img",{attrs:{src:t._f("resolveAvator")("oss://1603443882955/9.jpg")}})],1)},n=[],a=s("f96e"),o=s("bb14"),r=function(t,e){return{key:t,label:e}},c={components:{AppHeader:a["a"],AppNav:o["a"]},data:function(){return{navList:[r("demo","客户列表"),r("system_template","流程模板"),r("system_runmanage","应用管理"),r("system_template_matrix","运行管理"),r("system_setting","总体权限")]}}},l=c,d=(s("82b3"),s("2877")),u=Object(d["a"])(l,i,n,!1,null,"485d9808",null);e["default"]=u.exports},"514d":function(t,e,s){},"82b3":function(t,e,s){"use strict";var i=s("514d"),n=s.n(i);n.a},ae7f:function(t,e,s){},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=[],a=(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}}}),o=a,r=(s("c84d"),s("2877")),c=Object(r["a"])(o,i,n,!1,null,"49e804bc",null);e["a"]=c.exports},c84d:function(t,e,s){"use strict";var i=s("ae7f"),n=s.n(i);n.a},d196:function(t,e,s){},f96e:function(t,e,s){"use strict";var i=s("01a8");s.d(e,"a",(function(){return i["a"]}))}}]);
  2. //# sourceMappingURL=chunk-930e4a54.9c1b8666.js.map