| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[23],{406:function(t,e,n){var content=n(447);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(4).default)("0df838ea",content,!0,{sourceMap:!1})},446:function(t,e,n){"use strict";var r=n(406);n.n(r).a},447:function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".table[data-v-2f190740]{height:calc(100% - 80px)}",""])},517:function(t,e,n){"use strict";n.r(e);n(168);var r=n(5),l=(n(39),n(6)),o=["用户ID","真实姓名","提现金额","到账金额","账户余额","到账账户","提现时间","到账时间","订单号","支付方式","状态"],c=["uid","real_name","amount","true_amount","after_amount","account","created_atShow","taken_atShow","order_no","channel","statusShow"],f={data:function(){return{options:[{value:-1,label:"全部"},{value:0,label:"提交"},{value:1,label:"成功"},{value:2,label:"失败"},{value:3,label:"进行中"}],selectValue:-1,totalCount:0,currentPage:1,tableHeaders:o,tableProps:c,tableData:[]}},mounted:function(){this.getTableData()},methods:{changeSelect:function(t){this.getTableData()},clickRetry:function(){var t=Object(l.a)(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.$post("/api/admin/payment/redoDraw",{id:e});case 2:t.sent;case 3:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),clickUID:function(t){},tableRowClassName:function(t){var e=t.row,n=(t.rowIndex,"");return"1"===e.status&&(n="success-row"),n},formatTableData:function(data){return data.map(function(i){return Object(r.a)({},i,{statusShow:"1"===i.status?"到账":"失败",created_atShow:new Date(1e3*Number(i.created_at)).toLocaleString(),taken_atShow:new Date(1e3*Number(i.taken_at)).toLocaleString()})})},getTableData:function(){var t=Object(l.a)(regeneratorRuntime.mark(function t(){var e,n,data,r=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=r.length>0&&void 0!==r[0]?r[0]:this.currentPage,this.tableData=[],t.next=4,this.$post("/api/admin/payment/listDraw",{page:e,status:this.selectValue});case 4:n=t.sent,data=n.data,this.tableData=this.formatTableData(n.data.list),this.totalCount=Number(data.total),this.totalPage=data.totalPage;case 9:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},h=(n(446),n(2)),component=Object(h.a)(f,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"withdraw"}},[n("el-select",{attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.selectValue,callback:function(e){t.selectValue=e},expression:"selectValue"}},t._l(t.options,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),n("div",{staticClass:"table"},[t.tableData.length?n("el-table",{staticStyle:{width:"100%"},attrs:{height:"100%",border:"",data:t.tableData,"row-class-name":t.tableRowClassName}},t._l(t.tableProps,function(e,r){return n("el-table-column",{key:r,attrs:{prop:e,label:t.tableHeaders[r]},scopedSlots:t._u([{key:"default",fn:function(r){return["uid"===e?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.clickUID(r.row[e])}}},[t._v(t._s(r.row[e]))]):"statusShow"===e&&"1"!==r.row.status?n("span",[t._v("\n "+t._s(r.row[e])+"\n "),n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickRetry(r.row.id)}}},[t._v("重试")])],1):n("span",[t._v(t._s(r.row[e]))])]}}],null,!0)})}),1):t._e()],1),t._v(" "),n("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":10,layout:"total, prev, pager, next",total:t.totalCount},on:{"current-change":t.getTableData,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}})],1)},[],!1,null,"2f190740",null);e.default=component.exports}}]);
|