webpackJsonp([46],{FmZU:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("bzW+"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),s=e("P9l9"),r={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",appName:"话务任务",activeSelTab:"11",activeTab:"11",navpath:[{name:"首页",path:"/index"},{name:"话务任务",path:""}],tabListData:[{tabId:"1",tabName:"话务任务记录",icon:"iconhuawushuju",onlyIconActive:!1,children:[{tabId:"11",tabName:"门店视图",icon:""},{tabId:"12",tabName:"话务任务视图",icon:""}]},{tabId:"3",tabName:"会话任务列表",icon:"iconhuihuajinglingicon-"},{tabId:"2",tabName:"任务设置",icon:"iconbuliangpingjiashezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"话务任务设置",icon:""},{tabId:"22",tabName:"会话任务设置",icon:""},{tabId:"23",tabName:"不良评价回访设置",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(s.a)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":case"11":this.changeRoute("taskRecord");break;case"12":this.changeRoute("taskView");break;case"2":case"21":this.changeRoute("trafficTaskSet");break;case"22":this.changeRoute("taskSessionSet");break;case"23":this.changeRoute("badEvaluateSet");break;case"3":this.changeRoute("taskList")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/taskViewDetail"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"话务任务",path:"/taskView"},{name:"话务任务视图详情",path:""}]:"/newSession"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"话务任务",path:"/taskView"},{name:"会话任务列表",path:"/taskList"},{name:this.$route.query.repairId?"编辑会话任务":"新建会话任务",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"话务任务",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var d=e("VU/8")(r,h,!1,function(t){e("xNXh")},"data-v-b096644a",null);a.default=d.exports},xNXh:function(t,a){}});