(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fb11fb5"],{3007:function(a,e,t){},"68c5":function(a,e,t){"use strict";t.r(e);var n=function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"zbsteammanage"},[t("div",{staticClass:"header"},[t("el-select",{attrs:{placeholder:"请选择战区"},on:{change:a.changeWar},model:{value:a.warValue,callback:function(e){a.warValue=e},expression:"warValue"}},a._l(a.warList,(function(a){return t("el-option",{key:a.war_name,attrs:{label:a.war_name+"战区-"+a.service,value:a.war_name}})})),1),a._v(" "),t("el-select",{attrs:{placeholder:"请选择皇冠"},model:{value:a.crownValue,callback:function(e){a.crownValue=e},expression:"crownValue"}},a._l(a.crownList,(function(a){return t("el-option",{key:a.id,attrs:{label:a.name+"-"+a.phone,value:a.id}})})),1),a._v(" "),t("el-badge",{staticClass:"item",attrs:{value:a.top_num}},[t("el-button",[a._v("销售经理数量")])],1),a._v(" "),t("el-badge",{staticClass:"item",attrs:{value:a.super_num}},[t("el-button",[a._v("销售主管数量")])],1),a._v(" "),t("switchseason",{staticClass:"switchseason",on:{switchseason:a.switchseason}})],1),a._v(" "),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:a.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{border:"",stripe:"",data:a.list}},[t("el-table-column",{attrs:{label:"报名时间",width:"100",prop:"time","label-class-name":"label"}}),a._v(" "),t("el-table-column",{staticStyle:{padding:"0"},attrs:{label:"头像",prop:"avatar",width:"50","label-class-name":"label"},scopedSlots:a._u([{key:"default",fn:function(a){return[t("img",{attrs:{width:"36",height:"36",src:a.row.avatar}})]}}])}),a._v(" "),t("el-table-column",{attrs:{label:"昵称",prop:"nickname","label-class-name":"label"}}),a._v(" "),t("el-table-column",{attrs:{label:"手机号",prop:"phone","label-class-name":"label"}}),a._v(" "),t("el-table-column",{attrs:{label:"学分数",prop:"integral","label-class-name":"label"}}),a._v(" "),t("el-table-column",{attrs:{label:"销售级别",prop:"level_name","label-class-name":"label"}}),a._v(" "),t("el-table-column",{attrs:{label:"代理公司",prop:"up_name","label-class-name":"label"}}),a._v(" "),t("el-table-column",{attrs:{label:"所属战区",prop:"war_name","label-class-name":"label"}},[[t("div",[a._v(a._s(a.warValue+" 战区"))])]],2),a._v(" "),t("el-table-column",{attrs:{label:"操作",prop:"status",width:"220","label-class-name":"label"},scopedSlots:a._u([{key:"default",fn:function(e){return[t("el-button",{attrs:{type:"primary",icon:"el-icon-s-data",size:"mini"},on:{click:function(t){return a.handleScoreDetail(e.$index,e.row)}}},[a._v("学分明细")]),a._v(" "),t("el-button",{attrs:{type:"primary",icon:"el-icon-house",size:"mini"},on:{click:function(t){return a.handleIndex(e.$index,e.row)}}},[a._v("详情")])]}}])})],1),a._v(" "),t("el-pagination",{attrs:{background:"",total:a.total,"page-size":15,"current-page":a.page,layout:"total, prev, pager, next, jumper"},on:{"current-change":a.handleCurrentChange}})],1)},l=[],s=(t("ac6a"),t("55dd"),t("38da")),i={name:"ZbsTeamManage",data:function(){return{season_list_index:0,total:0,page:1,list:[],loading:!1,warValue:"",crownValue:"",top_num:0,super_num:0,warList:[],crownList:[]}},computed:{season:function(){return this.$store.state.user.season_list[this.season_list_index].season}},watch:{season:function(){this.switchRequest()},warValue:function(){this.switchRequest()},crownValue:function(){this.switchRequest()}},created:function(){var a=this;Object(s["a"])({season:this.season}).then((function(e){e.data.list.sort((function(a,e){return a.war_name.charCodeAt()-e.war_name.charCodeAt()})),a.warList=e.data.list}))},methods:{changeWar:function(a){var e=this;this.crownValue="",this.warList.forEach((function(t){t.war_name===a&&(e.crownList=t.crowns)}))},switchseason:function(a){this.season_list_index=a},handleIndex:function(a,e){this.$router.push({path:"/zbsuserindex",query:{id:e.id}})},handleScoreDetail:function(a,e){this.$router.push({name:"ZbsScoreManage",params:{phone:e.phone}})},switchRequest:function(a){var e=this;return this.page=a||1,this.crownValue?(this.loading=!0,void Object(s["b"])({page:this.page,season:this.season,type:1,value:this.crownValue}).then((function(a){e.loading=!1,e.total=a.data.total,e.list=a.data.list,e.top_num=a.data.top_num,e.super_num=a.data.super_num}))):this.warValue?(this.loading=!0,void Object(s["b"])({page:this.page,season:this.season,type:0,value:this.warValue}).then((function(a){e.loading=!1,e.total=a.data.total,e.list=a.data.list,e.top_num=a.data.top_num,e.super_num=a.data.super_num}))):void 0},handleCurrentChange:function(a){this.switchRequest(a)}}},o=i,r=(t("69bc"),t("2877")),u=Object(r["a"])(o,n,l,!1,null,null,null);e["default"]=u.exports},"69bc":function(a,e,t){"use strict";var n=t("3007"),l=t.n(n);l.a}}]);