(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{442:function(t,e,r){var content=r(518);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(4).default)("fdae6cb2",content,!0,{sourceMap:!1})},517:function(t,e,r){"use strict";var n=r(442);r.n(n).a},518:function(t,e,r){(e=r(3)(!1)).push([t.i,".table[data-v-666e0045]{height:100%;height:calc(100% - 80px)}",""]),t.exports=e},567:function(t,e,r){"use strict";r.r(e);r(28),r(14),r(9),r(6),r(22),r(172),r(32);var n=r(5),o=r(11);function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}var l=["用户ID","昵称","会员类型","开始时间","到期时间","最新购买","累计月数","累计金额","当前状态"],d=["uid","nickname","type_name","start_date","end_date","pay_date","total_month","total_price","status_name"],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"===f?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(n.a)(regeneratorRuntime.mark((function e(){var r,data,n;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/getVips",{page:t.currentPage,page_size:10});case 4:r=e.sent,data=r.data,f=data.current_env,n=data.list,t.listData=data,t.tableData=n,t.totalCount=Number(data.total),t.totalPage=data.pages;case 12:case"end":return e.stop()}}),e)})))()}}},h=(r(517),r(2)),component=Object(h.a)(_,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"vip-manager"}},[r("div",{staticClass:"title"},[t._v("会员数：正常"+t._s(t.whole.total_normal)+", 过期"+t._s(t.whole.total_overdue)+"; 初创版会员: 正常"+t._s(t.whole.company_normal)+", 过期"+t._s(t.whole.company_overdue)+";企业版会员: 正常"+t._s(t.whole.premium_normal)+", 过期"+t._s(t.whole.premius_overdue)+";开发者会员: 正常"+t._s(t.whole.person_normal)+", 过期"+t._s(t.whole.person_overdue))]),t._v(" "),r("div",{staticClass:"table"},[t.tableData.length?r("el-table",{staticStyle:{width:"100%"},attrs:{height:"100%",border:"",data:t.tableData}},t._l(t.tableProps,(function(e,n){return r("el-table-column",{key:n,attrs:{prop:e,label:t.tableHeaders[n]},scopedSlots:t._u([{key:"default",fn:function(n){return["uid"===e?r("el-button",{staticClass:"ctrls",attrs:{type:"text"},on:{click:function(e){return t.clickUID(n.row)}}},[t._v(t._s(n.row[e]))]):r("span",[t._v(t._s(n.row[e]))])]}}],null,!0)})})),1):t._e()],1),t._v(" "),r("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,"666e0045",null);e.default=component.exports}}]);