(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1020328e"],{"9bfc":function(e,t,a){"use strict";var n=a("f516"),s=a.n(n);s.a},dc87:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"work_manage"},[a("el-select",{staticStyle:{width:"330px"},model:{value:e.params.season,callback:function(t){e.$set(e.params,"season",t)},expression:"params.season"}},e._l(e.season_list,(function(e){return a("el-option",{key:e.season,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-input",{staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"请输入代理昵称 / 手机号"},model:{value:e.params.search_name,callback:function(t){e.$set(e.params,"search_name",t)},expression:"params.search_name"}}),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.params.page_index=1,e.getList()}}},[e._v("搜索")]),e._v(" "),a("el-table",{attrs:{data:e.table.list,border:"",stripe:""}},[a("el-table-column",{attrs:{label:"序号",type:"index",width:"60",align:"center",index:(e.params.page_index-1)*e.params.page_size+1}}),e._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"代理昵称",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"代理手机号",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"赛季",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row.season;return a("span",{},[e._v(e._s("第"+e.numberToChinese(n)+"季实战营"))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"gift_money",label:"红包",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"promise_num",label:"承诺销售数量",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"promise_time",label:"承诺时间",align:"center"}})],1),e._v(" "),a("pagination",{attrs:{total:e.table.total,limit:e.params.page_size,page:e.params.page_index},on:{pagination:e.changePagination,"update:limit":e.changePagination}})],1)},s=[],i=a("b775");function r(e){return Object(i["a"])({url:"/promise/index",method:"get",params:e})}a("28a5"),a("6b54");var l=function(e){var t=["零","一","二","三","四","五","六","七","八","九"],a=["","万","亿","万亿","亿亿"],n=["","十","百","千"],s=function(e){if(null!=e&&e){var a=e.toString().indexOf(".");if(-1!==a){for(var n=e.toString().slice(a),s="点",i=1;i<n.length;i++)s+=t[parseInt(n[i])];return s}return""}},i=function(e){var a="",s="",i=!1,r=0;while(e>0){var l=e%10;0===l?i&&(i=!1,s=t[l]+s):(i=!0,a=t[l],a+=n[r],s=a+s),r++,e=Math.floor(e/10)}return s},r=s(e);e=Math.floor(e);var l=0,o="",c="",p=!1;if(0===e)return t[0];while(e>0){var u=e%1e4;p&&(c=t[0]+c),o=i(u),o+=0!==u?a[l]:a[0],c=o+c,p=u<1e3&&u>0,e=Math.floor(e/1e4),l++}var m=c+r,h=m.split("");return"一"===h[0]&&"十"===h[1]&&(h.splice(0,1),m=h.join("")),m},o={name:"PromiseList",data:function(){return{params:{page_index:1,page_size:10,season:"",search_name:""},table:{list:[],total:0}}},computed:{season_list:function(){return this.$store.state.user.season_list}},created:function(){this.params.season=this.$store.state.user.season_list[0].id,this.numberToChinese=l,this.getList()},methods:{switchseason:function(e){this.params.season=this.$store.state.user.season_list[e].id},getList:function(){var e=this;console.log(this.params),this.$request(r(this.params),(function(t){var a=t.data;e.table.list=a.list,e.table.total=a.total}))},changePagination:function(e){var t=e.page,a=e.limit;this.params.page_size=a,this.params.page_index=t,this.getList()}}},c=o,p=(a("9bfc"),a("2877")),u=Object(p["a"])(c,n,s,!1,null,"0a23b8c6",null);t["default"]=u.exports},f516:function(e,t,a){}}]);