webpackJsonp([35],{Djfz:function(e,t){},f9Sx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("CCn6"),l={name:"index",data:function(){return{searchFrom:{nickName:"",mobile:"",level:"",userId:""},dialogDetail:{show:!1,id:""},userList:[],total:0,nowPage:1,limit:10,showDetail:!1,showId:"",dialogObj:{show:!1,title:"绑定老师",id:0,teacher_id:0},dialogDetailObj:{show:!1,id:""},loading:!1}},components:{page:a("kmJW").a},mounted:function(){this.getUser()},methods:{sexFormatter:function(e){return 0==e.sex?"保密":1==e.sex?"男":2==e.sex?"女":void 0},onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},getUser:function(){var e=this,t={page:this.nowPage,limit:this.limit};this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),Object(s._35)(t).then(function(t){console.log(t),e.userList=t.result.list,e.total=t.result.total})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"user"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:""}},[a("el-form-item",{attrs:{label:"ID"}},[a("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"flexRow"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n      ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"注册时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"last_login_at",label:"最后登录时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"course_title",label:"课程标题"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"优惠券"}}),e._v(" "),a("el-table-column",{attrs:{prop:"order_id",label:"订单Id"}})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(e){a("ttTJ"),a("Djfz")},"data-v-446031f1",null);t.default=i.exports},ttTJ:function(e,t){}});