(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["SalesPlayback"],{"0357":function(t,e,n){},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var a=n("1d80"),i=n("5899"),o="["+i+"]",s=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),r=function(t){return function(e){var n=String(a(e));return 1&t&&(n=n.replace(s,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:r(1),end:r(2),trim:r(3)}},"6ffe":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination"},[n("a-pagination",{attrs:{"page-size-options":t.pageSizeOptions,total:t.count,"show-total":function(t,e){return"总共"+t+"条"},"page-size":t.pageSize,showQuickJumper:"",showSizeChanger:t.showSizeChanger},on:{showSizeChange:t.onShowSizeChange,change:t.onchange},scopedSlots:t._u([{key:"buildOptionText",fn:function(e){return["99"!==e.value?n("span",[t._v(t._s(e.value)+"条/页")]):t._e()]}}]),model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1)},i=[],o=(n("a9e3"),{props:{count:{type:Number,defaule:0},pageNo:{type:Number,default:1},showSizeChanger:{type:Boolean,default:!0}},data:function(){return{pageSizeOptions:["20","30","40","50","100","200"],current:1,pageSize:20}},watch:{pageNo:function(t){this.current=t}},created:function(){this.current=this.pageNo},methods:{onShowSizeChange:function(t,e){this.current=1,this.$emit("showSizeChangeFn",t,e),this.pageSize=e},onchange:function(t,e){this.$emit("showSizeChangeFn",t,e)}}}),s=o,c=(n("ae61"),n("2877")),r=Object(c["a"])(s,a,i,!1,null,"ae5bacaa",null);e["a"]=r.exports},7156:function(t,e,n){var a=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var o,s;return i&&"function"==typeof(o=e.constructor)&&o!==n&&a(s=o.prototype)&&s!==n.prototype&&i(t,s),t}},"83d9":function(t,e,n){},"887d":function(t,e,n){"use strict";n("83d9")},"8b06":function(t,e,n){"use strict";n("0357")},"96b4":function(t,e,n){},a9e3:function(t,e,n){"use strict";var a=n("83ab"),i=n("da84"),o=n("94ca"),s=n("6eeb"),c=n("5135"),r=n("c6b6"),u=n("7156"),l=n("c04e"),d=n("d039"),p=n("7c73"),f=n("241c").f,h=n("06cf").f,g=n("9bf2").f,b=n("58a8").trim,v="Number",m=i[v],S=m.prototype,y=r(p(S))==v,_=function(t){var e,n,a,i,o,s,c,r,u=l(t,!1);if("string"==typeof u&&u.length>2)if(u=b(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:a=2,i=49;break;case 79:case 111:a=8,i=55;break;default:return+u}for(o=u.slice(2),s=o.length,c=0;ci)return NaN;return parseInt(o,a)}return+u};if(o(v,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,N=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof N&&(y?d((function(){S.valueOf.call(n)})):r(n)!=v)?u(new m(_(e)),n,N):_(e)},k=a?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),C=0;k.length>C;C++)c(m,w=k[C])&&!c(N,w)&&g(N,w,h(m,w));N.prototype=S,S.constructor=N,s(i,v,N)}},ae61:function(t,e,n){"use strict";n("96b4")},b2fe:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ant-card",attrs:{id:"course_category"}},[t.$route.meta.isShow?n("a-spin",{attrs:{spinning:t.spinning,size:"large"}},[n("a-tabs",{model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},[n("a-tab-pane",{key:1,attrs:{tab:"产品销售和整体播放数据"}},[n("salesPlay")],1)],1)],1):t._e(),n("router-view")],1)},i=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ant-card-body"},[n("div",{staticClass:"contant-box"},[n("p",{staticClass:"title"},[t._v("导出报表表头展示")]),t._m(0),n("a-table",{ref:"table",attrs:{columns:t.columns,"data-source":t.tableList,"row-key":function(t){return t.taskId},loading:t.tableLoading,pagination:!1},scopedSlots:t._u([{key:"vipStatus",fn:function(e,a){return n("span",{},[n("span",[t._v(t._s(1==a.vipStatus?"仅注册":2==a.vipStatus?"会期内":3==a.vipStatus?"会期过期":"--"))])])}},{key:"action",fn:function(e,a){return n("span",{},[n("a",{on:{click:function(e){return t.isDownloadClick(a)}}},[t._v("下载")])])}}])})],1),n("MyPagination",{directives:[{name:"show",rawName:"v-show",value:!t.tableLoading,expression:"!tableLoading"}],attrs:{count:t.count,pageNo:t.pageNo},on:{showSizeChangeFn:t.showSizeChangeFn}})],1)])},s=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tabShow"},[n("table",{attrs:{border:"1"}},[n("tr",[n("th",[t._v("课程名称")]),n("th",[t._v("订单总量")]),n("th",[t._v("退费单数")]),n("th",[t._v("退费率")]),n("th",[t._v("周新增订单量")]),n("th",[t._v("周退费单数")]),n("th",[t._v("周退费率")])])])])}],c=(n("d3b7"),n("3ca3"),n("ddb0"),n("2b3d"),n("b0c0"),n("6ffe")),r=n("c0fb"),u=n("f121"),l=n("bc3a"),d=n.n(l),p={components:{MyPagination:c["a"]},created:function(){this.getTagList()},data:function(){return{spinning:!1,tableLoading:!1,columns:[{title:"报表名称",dataIndex:"name",key:"name"},{title:"系统生成时间",dataIndex:"create_time",key:"create_time",scopedSlots:{customRender:"create_time"}},{title:"操作",dataIndex:"action",key:"action",width:"130px",scopedSlots:{customRender:"action"}}],tableList:[],pageNo:1,pageSize:20,count:0,options:[],columnsShow:[{title:"报表名称",dataIndex:"userName",key:"userName"},{title:"系统生成时间",dataIndex:"nickName",key:"nickName",scopedSlots:{customRender:"nickName"}},{title:"进度",dataIndex:"vipStatus",key:"vipStatus",scopedSlots:{customRender:"vipStatus"}}],tableListShow:[]}},watch:{$route:function(t){"/reportFormManage/SalesPlayback"===t.path&&this.getTagList()}},methods:{showSizeChangeFn:function(t,e){this.pageNo=t,this.pageSize=e,this.getTagList()},getTagList:function(){var t=this;this.tableLoading=!0,Object(r["e"])({pageNo:this.pageNo,pageSize:this.pageSize}).then((function(e){200===e.code?(t.tableLoading=!1,t.tableList=e.data.data,t.count=e.data.count):t.tableLoading=!1}))},isDownloadClick:function(t){var e=this,n=localStorage.getItem("token");this.tableLoading=!0;var a=u["a"];"https://test.shenyiedu.com/"!=a&&(a="https://admin.shenyiedu.com/");var i="".concat(a,"/adminv2/statistics/downSalesCount"),o={task_id:t.taskId};d.a.post(i,o,{responseType:"blob",headers:{accesstoken:n,authorization:n,"Content-Type":"application/json"}}).then((function(n){var a=n.data,i=document.createElement("a");a=new Blob([a],{type:"application/x-excel"}),i.style.display="none",i.href=URL.createObjectURL(a),i.download="".concat(t.name,".xlsx"),document.body.appendChild(i),i.click(),document.body.removeChild(i),e.tableLoading=!1}))},targetFn:function(){return document.querySelector("#course")}}},f=p,h=(n("887d"),n("2877")),g=Object(h["a"])(f,o,s,!1,null,"16e89c02",null),b=g.exports,v={components:{salesPlay:b},data:function(){return{spinning:!1,tableLoading:!1,activeKey:1}},methods:{targetFn:function(){return document.querySelector("#course")}}},m=v,S=(n("8b06"),Object(h["a"])(m,a,i,!1,null,"4d18988c",null));e["default"]=S.exports},c0fb:function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return r})),n.d(e,"f",(function(){return u}));var a=n("284b"),i=function(t){return a["a"].post("/adminv2/statistics/GetStatisticsList",t)},o=function(t){return a["a"].post("/adminv2/statistics/AddStatistics",t)},s=function(t){return a["a"].post("/adminv2/statistics/GetClassPlayCount",t)},c=function(t){return a["a"].post("/adminv2/statistics/GetClassPlayLists",t)},r=function(t){return a["a"].post("/adminv2/statistics/getSalesCount",t)},u=function(t){return a["a"].post("/adminv2/statistics/performaceList",t)}}}]); //# sourceMappingURL=SalesPlayback.2bf5402c.js.map