|
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1bd58cd0"],{"266d":function(t,e,n){"use strict";var a=n("8d64"),o=n.n(a);o.a},"2f24":function(t,e,n){"use strict";var a=n("6e6c"),o=n.n(a);o.a},5167:function(t,e,n){"use strict";var a=n("b419"),o=n.n(a);o.a},"6e6c":function(t,e,n){},"8d64":function(t,e,n){},b419:function(t,e,n){},bb14:function(t,e,n){"use strict";var a=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)},o=[],r=(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}}}),c=r,s=(n("5167"),n("2877")),i=Object(s["a"])(c,a,o,!1,null,"4a2aca36",null);e["a"]=i.exports},f364:function(t,e,n){"use strict";n.r(e);var a=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("退出登录")])]},proxy:!0},{key:"center",fn:function(){return[n("app-nav",{attrs:{list:t.navList}})]},proxy:!0}])}),n("router-view")],1)},o=[],r=(n("13d5"),n("b0c0"),n("f96e")),c=n("bb14"),s=(n("1d40"),function(t,e){return{key:t,label:e}}),i=[s("system_customer","客户列表"),s("system_template","流程模板")],l=i.reduce((function(t,e){return t[e.key]=!0,t}),{});l["system_template_file"]=!0;var u=function(t){return l[t]},h={components:{AppHeader:r["a"],AppNav:c["a"]},data:function(){return{showHeader:u(this.$route.name),navList:i}},methods:{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=u(t.name)}}},d=h,f=(n("266d"),n("2877")),p=Object(f["a"])(d,a,o,!1,null,"4017b5e2",null);e["default"]=p.exports},f96e:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=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)])},o=[],r=n("1392"),c={components:{UserCenter:r["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)}},s=c,i=(n("2f24"),n("2877")),l=Object(i["a"])(s,a,o,!1,null,"2e201993",null),u=l.exports}}]); |