(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ContentIndex"],{"2f58":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("Course")],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("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("课次播放人数")]),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"),d=n("bc3a"),l=n.n(d),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/contentIndex"===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["b"])({pageNo:this.pageNo,pageSize:this.pageSize}).then((function(e){200===e.code&&(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/DownClassPlayCount"),o={task_id:t.taskId};l.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("f897"),n("2877")),g=Object(h["a"])(f,o,s,!1,null,"62776939",null),v=g.exports,b={components:{Course:v},data:function(){return{spinning:!1,tableLoading:!1,activeKey:1}},methods:{targetFn:function(){return document.querySelector("#course")}}},m=b,S=(n("70b8"),Object(h["a"])(m,a,i,!1,null,"884c1ddc",null));e["default"]=S.exports},"4a51":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},"70b8":function(t,e,n){"use strict";n("c539")},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}},"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"),d=n("c04e"),l=n("d039"),p=n("7c73"),f=n("241c").f,h=n("06cf").f,g=n("9bf2").f,v=n("58a8").trim,b="Number",m=i[b],S=m.prototype,_=r(p(S))==b,y=function(t){var e,n,a,i,o,s,c,r,u=d(t,!1);if("string"==typeof u&&u.length>2)if(u=v(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(b,!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&&(_?l((function(){S.valueOf.call(n)})):r(n)!=b)?u(new m(y(e)),n,N):y(e)},C=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(","),k=0;C.length>k;k++)c(m,w=C[k])&&!c(N,w)&&g(N,w,h(m,w));N.prototype=S,S.constructor=N,s(i,b,N)}},ae61:function(t,e,n){"use strict";n("96b4")},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)}},c539:function(t,e,n){},f897:function(t,e,n){"use strict";n("4a51")}}]); //# sourceMappingURL=ContentIndex.5dcbe78b.js.map