webpackJsonp([47],{QHTa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Gu7T"),i=a.n(n),c=a("bzW+"),o=a("Qie6"),r=a("Z8ln"),s=a("Ch4/"),h=a("P9l9"),d={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"我的客户",path:"/memberShowSet"}],tabListData:[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}],navName:{1:"会员基础设置",11:"客户展示设置",12:"客户分组设置",13:"客户搜索设置",14:"客户详情设置",15:"客户标签设置",151:"同步记录",2:"我的客户列表"},navFrontPath:{11:"/memberShowSet",12:"/memberShowSet",13:"/memberShowSet",14:"/memberShowSet",15:"/memberShowSet",151:"/memberTagSet",2:"/memberShowSet",21:"/myCustomerList"},activeBrand:"",activeGroup:"",expiredFlag:!1,loading:!0}},computed:{},methods:{checkTagTab:function(){var e=this;this.loading=!0;var t={enterpriseId:this.activeBrand},a=[{tabId:"1",tabName:"会员基础设置",icon:"iconjichushezhi",onlyIconActive:!1,children:[{tabId:"11",tabName:"客户展示设置",icon:""},{tabId:"12",tabName:"客户分组设置",icon:""},{tabId:"13",tabName:"客户搜索设置",icon:""},{tabId:"14",tabName:"客户详情设置",icon:""}]},{tabId:"2",tabName:"我的客户列表",icon:"icongukeguanliicon"}];Object(h.a)("/haoban-app-customer-web/tag/open-tag",t).then(function(t){t.data.result?a[0].children[4]={tabId:"15",tabName:"客户标签设置",icon:""}:"/memberTagSet"===e.$route.path&&e.$router.replace("memberShowSet"),e.$nextTick(function(){e.tabListData=[].concat(a)})}).finally(function(t){return e.loading=!1})},getExpired:function(){var e=this,t={enterpriseId:e.activeBrand};Object(h.a)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var a=t.data;1!=a.errorCode?s.a.errorMsg(a):e.expiredFlag=a.result}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeRoute:function(e){this.$router.push(e)},selectBrandId:function(e,t){this.activeBrand=e,this.activeGroup=t,this.getExpired(),this.checkTagTab()},setSelectTab:function(e){switch(this.activeTab=e.tabId,e.tabId){case"11":this.changeRoute("memberShowSet");break;case"12":this.changeRoute("memberGroupSet");break;case"13":this.changeRoute("memberSearchSet");break;case"14":this.changeRoute("memberDetailSet");break;case"15":this.changeRoute("memberTagSet");break;case"2":this.changeRoute("myCustomerList")}},showTab:function(e){var t=this,a=[].concat(Array.prototype.slice.call(arguments));this.activeTab=e,this.activeSelTab=e,this.navpath=[].concat(i()(this.defaultNavpath)),a.length&&a.map(function(e){t.navpath[t.navpath.length-1].path=t.navFrontPath[e],t.navpath.push({name:t.navName[e],path:""})})}},watch:{activeBrand:function(e,t){this.activeBrand=e},activeGroup:function(e,t){this.activeGroup=e}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath},on:{selectBrandId:e.selectBrandId}}),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e.loading?e._e():a("common-detail-left",{attrs:{tabListData:e.tabListData,activeSelTab:e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),e._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[e.activeBrand?a("router-view",{attrs:{brandId:e.activeBrand,activeGroupId:e.activeGroup,tabType:e.activeTab},on:{showTab:e.showTab}}):e._e()],1)],1)])])]),e._v(" "),e.expiredFlag?a("expired-dialog"):e._e()],1)},staticRenderFns:[]};var b=a("VU/8")(d,m,!1,function(e){a("S/p6")},"data-v-d377b818",null);t.default=b.exports},"S/p6":function(e,t){}});