(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d0214"],{6752:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-refresh"},on:{click:t.refresh}},[t._v("刷新")])],1),a("div",{staticClass:"padding-lg margin-top back-white"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#eef1f6",color:"#606266"},data:t.list,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"ID",sortable:"custom",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("span",[t._v(t._s(n.id))])]}}])}),a("el-table-column",{attrs:{label:"用户",property:"nickname",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("div",{staticClass:"flex flex-column align-start"},[a("div",[t._v(t._s(n.nickname))]),a("div",[t._v("ID:"+t._s(n.user_id))])])]}}])}),a("el-table-column",{attrs:{label:"用户头像",property:"avatar",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[a("img",{staticStyle:{width:"50px",height:"50px"},attrs:{src:e.avatar}})]}}])}),a("el-table-column",{attrs:{label:"待返还",property:"surplus",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.surplus)+t._s(1==a.type?t.balanceUnitText:t.scoreUnitText)+" ")]}}])}),a("el-table-column",{attrs:{label:t.cumulative_fanhuan_totalText,property:"fanhuan_total",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.fanhuan_total)+t._s(1==a.type?t.balanceUnitText:t.scoreUnitText)+" ")]}}])}),a("el-table-column",{attrs:{label:"类型",property:"type",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(1==a.type?t.balanceText+"返还":t.scoreText+"返还")+" ")]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[1==n.type?a("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-view"},on:{click:function(e){return t.view(n.user_id)}}},[t._v(t._s(t.balanceText+"记录"))]):2==n.type?a("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-view"},on:{click:function(e){return t.viewScore(n.user_id)}}},[t._v(t._s(t.scoreText+"记录"))]):t._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1),a("copyright")],1)},i=[],l=a("7f70"),r=(a("e8d6"),a("8327")),s=a("333d"),o=a("3db1"),u={name:"CumulativeFanhuanUser",components:{Pagination:s["a"]},mixins:[o["a"]],data:function(){return{list:null,total:0,listLoading:!0,listQuery:{page:1,limit:10}}},computed:Object(l["a"])({},Object(r["b"])(["config"])),created:function(){this.getList()},methods:{refresh:function(){this.getList()},view:function(t){this.$router.push({path:"/cumulative_fanhuan/list",query:{id:t}})},viewScore:function(t){this.$router.push({path:"/cumulative_fanhuan/scoreList",query:{id:t}})},getList:function(){var t=this;this.listLoading=!0,this.api.get("cumulative_fanhuan/user/getList",this.listQuery).then((function(e){t.listLoading=!1,1==e.code?(t.total=parseInt(e.data.total),t.list=e.data.list):t.$util.error(e.message||e.msg||"数据异常")}))}}},c=u,p=a("3d7a"),d=Object(p["a"])(c,n,i,!1,null,null,null);e["default"]=d.exports}}]);