| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[31],{433:function(t,e,n){var content=n(500);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(4).default)("857849ca",content,!0,{sourceMap:!1})},499:function(t,e,n){"use strict";var r=n(433);n.n(r).a},500:function(t,e,n){(t.exports=n(3)(!1)).push([t.i,".table[data-v-0a251d61]{height:100%;height:calc(100% - 80px)}",""])},542:function(t,e,n){"use strict";n.r(e);n(168),n(39);var r=n(6),o=n(5),c=["用户ID","昵称","会员类型","购买类型","购买月数","应付金额","实付金额","订单号","开始时间","生效时间","购前到期","购后到期"],l=["uid","nickname","type_name","is_first_name","num","need_pay_money","paid_money","order_no","start_date","pay_date","origin_end_date","end_date"],d="",_={data:function(){return{listData:{},titleInfo:{},totalCount:0,currentPage:1,tableHeaders:c,tableProps:l,tableData:[]}},computed:{whole:function(){return this.listData.whole||{}}},mounted:function(){this.getTableData()},filters:{toDate:function(t){return new Date(1e3*t).toLocaleDateString()},projectLink:function(i){var t=i.entity_type,link="javascript:void(0)";return"1"===t?link="/rooter/outsourceitem/".concat(i.entity_id,">"):"3"===t&&(link="/rooter/wagedetails?job_id=".concat(i.entity_id)),link}},methods:{clickUID:function(t){var e=t.uid;"test"===d?window.open("https://dev.test.proginn.com/rooter/user/".concat(e)):window.open("https://www.proginn.com/rooter/user/".concat(e))},changePagination:function(){this.getTableData()},formatTableData:function(data){return data.map(function(i){return Object(o.a)({},i)})},getTableData:function(){var t=Object(r.a)(regeneratorRuntime.mark(function t(){var e,data,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.tableData=[],this.currentPage,t.next=4,this.$post("/api/admin/vip/getVipOrders",{page:this.currentPage,page_size:10});case 4:e=t.sent,data=e.data,d=data.current_env,n=data.list,this.listData=data,this.tableData=n,this.totalCount=Number(data.total),this.totalPage=data.pages;case 12:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},h=(n(499),n(2)),component=Object(h.a)(_,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"vip-order"}},[n("div",{staticClass:"title"},[t._v("订单总量:初创版"+t._s(t.whole.company_order_num)+",企业版"+t._s(t.whole.premius_order_num)+", 开发者"+t._s(t.whole.person_order_num)+" 累计收入: 初创版 ¥"+t._s(t.whole.company_paid_money)+",企业版¥"+t._s(t.whole.premius_paid_money)+", 开发者 ¥"+t._s(t.whole.person_paid_money))]),t._v(" "),n("div",{staticClass:"table"},[t.tableData.length?n("el-table",{staticStyle:{width:"100%"},attrs:{height:"100%",border:"",data:t.tableData}},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",{staticClass:"ctrls",attrs:{type:"text"},on:{click:function(e){return t.clickUID(r.row)}}},[t._v(t._s(r.row[e]))]):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.changePagination,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}})],1)},[],!1,null,"0a251d61",null);e.default=component.exports}}]);
|