(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{443:function(t,e,n){var content=n(520);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(4).default)("fd30cdd2",content,!0,{sourceMap:!1})},519:function(t,e,n){"use strict";var r=n(443);n.n(r).a},520:function(t,e,n){(e=n(3)(!1)).push([t.i,".table[data-v-0a251d61]{height:100%;height:calc(100% - 80px)}",""]),t.exports=e},568:function(t,e,n){"use strict";n.r(e);n(28),n(14),n(9),n(6),n(22),n(172),n(32);var r=n(5),o=n(11);function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var l=["用户ID","昵称","会员类型","购买类型","购买月数","应付金额","实付金额","订单号","开始时间","生效时间","购前到期","购后到期"],d=["uid","nickname","type_name","is_first_name","num","need_pay_money","paid_money","order_no","start_date","pay_date","origin_end_date","end_date"],_="",f={data:function(){return{listData:{},titleInfo:{},totalCount:0,currentPage:1,tableHeaders:l,tableProps:d,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"===_?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 function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},i)}))},getTableData:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,data,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.tableData=[],t.currentPage,e.next=4,t.$post("/api/admin/vip/getVipOrders",{page:t.currentPage,page_size:10});case 4:n=e.sent,data=n.data,_=data.current_env,r=data.list,t.listData=data,t.tableData=r,t.totalCount=Number(data.total),t.totalPage=data.pages;case 12:case"end":return e.stop()}}),e)})))()}}},w=(n(519),n(2)),component=Object(w.a)(f,(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}}]);