|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b49e1a86"],{5167:function(t,e,n){"use strict";var o=n("b419"),a=n.n(o);a.a},7823:function(t,e,n){},b419:function(t,e,n){},b5fa:function(t,e,n){},bb14:function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-nav"},t._l(t.list,(function(e){return n("div",{key:e.key,staticClass:"app-nav-item",class:{"app-nav-item-active":0===t.currentKey.indexOf(e.key)},on:{click:function(n){return t.goto(e.key)}}},[t._v(" "+t._s(e.label)+" ")])})),0)},a=[],c=(n("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}}}),s=c,i=(n("5167"),n("2877")),r=Object(i["a"])(s,o,a,!1,null,"4a2aca36",null);e["a"]=r.exports},bc5a:function(t,e,n){"use strict";var o=n("b5fa"),a=n.n(o);a.a},c627:function(t,e,n){"use strict";var o=n("7823"),a=n.n(o);a.a},f364:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("app-header",{directives:[{name:"show",rawName:"v-show",value:t.showHeader,expression:"showHeader"}],attrs:{theme:"white"},scopedSlots:t._u([{key:"left",fn:function(){return[t._v("LOCKING")]},proxy:!0},{key:"right",fn:function(){return[n("span",{staticClass:"header-logout",on:{click:t.tryToLogout}},[t._v("退出登录")]),n("span",{staticClass:"header-logout",on:{click:t.logoutAndCloseApp}},[t._v("退出应用")])]},proxy:!0},{key:"center",fn:function(){return[n("app-nav",{attrs:{list:t.navList}})]},proxy:!0}])}),n("router-view")],1)},a=[],c=(n("13d5"),n("b0c0"),n("f96e")),s=n("bb14"),i=n("1d40"),r=function(t,e){return{key:t,label:e}},l=[r("system_customer","客户列表"),r("system_template","流程模板")],u=l.reduce((function(t,e){return t[e.key]=!0,t}),{});u["system_template_file"]=!0;var h=function(t){return u[t]},p={components:{AppHeader:c["a"],AppNav:s["a"]},data:function(){return{showHeader:h(this.$route.name),navList:l}},methods:{logoutAndCloseApp:function(){this.$confirm("退出并关闭应用,是否继续?","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then((function(){i["a"].closeApp()})).catch((function(t){return console.log(t)}))},tryToLogout:function(){var t=this;this.$confirm("退出当前账户,是否继续?","",{confirmButtonText:"确定",cancelButtonText:"取消",showClose:!1,type:"warning"}).then((function(){t.$store.logout(),t.$router.push({path:"/",query:{isChangeCount:!0}})})).catch((function(t){return console.log(t)}))}},watch:{$route:function(t){this.showHeader=h(t.name)}}},f=p,d=(n("c627"),n("2877")),v=Object(d["a"])(f,o,a,!1,null,"1326672a",null);e["default"]=v.exports},f96e:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-header",class:{white:"white"===t.theme||t.isWindowScrollIng,black:"black"===t.theme,"black-bg-color":t.isWindowScrollIng&&"black"===t.theme}},[n("div",{staticClass:"app-header-content"},[n("div",{staticClass:"app-header-content-left"},[t._t("left",[n("i",{directives:[{name:"show",rawName:"v-show",value:t.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn",class:{icon_topback_left:"white"===t.theme||"basis"===t.theme,icon_topback_left_baise:"black"===t.theme},on:{click:function(e){return t.navBack()}}}),n("span",{directives:[{name:"show",rawName:"v-show",value:t.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title",on:{click:function(e){return t.navBack()}}},[t._v(t._s(t.backBtnTitle))])])],2),n("div",{staticClass:"app-header-content-right"},[t._t("right"),t.showUserCenter?n("user-center"):t._e()],2)]),n("div",{staticClass:"app-header-center"},[t._t("center",[t._v(t._s(t.title))])],2)])},a=[],c=n("1392"),s={components:{UserCenter:c["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean},data:function(){return{isWindowScrollIng:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},handleScroll:function(){var t=document.getElementById("bigbody");this.isWindowScrollIng=t.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},i=s,r=(n("bc5a"),n("2877")),l=Object(r["a"])(i,o,a,!1,null,"572ed83b",null),u=l.exports}}]); |