(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PerformanceIndax"],{"0fe6":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("div",{staticClass:"ant-card-body"},[n("div",{staticClass:"head-box"},[n("div",{staticClass:"table-operator"},[n("span",{staticClass:"item"},[n("a-button",{staticClass:"margin_right10",attrs:{disabled:t.isDisDownTemplate,type:"primary"},on:{click:t.downloadClick}},[t._v("下载模版")])],1),n("span",{staticClass:"item"},[n("a-button",{staticClass:"margin_right10",attrs:{type:"primary"},on:{click:function(e){t.visibleShow=!0}}},[t._v("添加查询任务")])],1)])]),n("div",{staticClass:"contant-box"},[n("p",{staticClass:"title"},[t._v("导出报表表头展示")]),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("a-table",{ref:"table",attrs:{columns:t.columns,"data-source":t.tableList,"row-key":function(t){return t.TaskName},loading:t.tableLoading,pagination:!1},scopedSlots:t._u([{key:"Status",fn:function(e,a){return n("span",{},[n("span",[t._v(t._s(0==a.Status?"未开始":1==a.Status?"进行中":2==a.Status?"已完成":"--"))])])}},{key:"action",fn:function(e,a){return n("span",{},[2==a.Status?n("a",{on:{click:function(e){return t.isDownloadClick(a)}}},[t._v("下载")]):n("a",[t._v("--")])])}}],null,!1,1274528502)}),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)])]):t._e(),n("router-view"),n("a-modal",{staticStyle:{height:"500px"},attrs:{title:"添加"},model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[t.visibleShow?n("a-form-model",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[n("a-form-model-item",{ref:"cycle",attrs:{label:"查询周期",prop:"cycle"}},[n("a-radio-group",{attrs:{name:"radioGroup"},on:{change:t.cycleChange},model:{value:t.form.cycle,callback:function(e){t.$set(t.form,"cycle",e)},expression:"form.cycle"}},[n("a-radio",{attrs:{value:7}},[t._v("7天")]),n("a-radio",{attrs:{value:15}},[t._v("15天")]),n("a-radio",{attrs:{value:30}},[t._v("30天")])],1)],1),n("a-form-model-item",{ref:"order",attrs:{label:"查询信息上传",prop:"order"}},[n("OrderformList",{attrs:{urlList:t.adminUrlLink},on:{errOrderFn:t.errOrderFn,spinningFn:t.spinningFn}})],1)],1):t._e()],1)],1)},i=[],o=n("6ffe"),s=n("c0fb"),r=n("f088"),c={components:{MyPagination:o["a"],OrderformList:r["a"]},created:function(){this.getTagList()},data:function(){return{visibleShow:!1,form:{cycle:7,order:""},rules:{cycle:[{required:!0,message:"请选择查询周期",trigger:"change"}],order:[{required:!0}]},spinning:!1,tableLoading:!1,columns:[{title:"报表名称",dataIndex:"TaskName",key:"TaskName"},{title:"系统生成时间",dataIndex:"FinishTime",key:"FinishTime"},{title:"进度",dataIndex:"Status",key:"Status",scopedSlots:{customRender:"Status"}},{title:"操作",dataIndex:"action",key:"action",width:"130px",scopedSlots:{customRender:"action"}}],tableList:[],columnsShow:[{title:"报表名称",dataIndex:"userName",key:"userName"},{title:"系统生成时间",dataIndex:"nickName",key:"nickName",scopedSlots:{customRender:"nickName"}},{title:"进度",dataIndex:"vipStatus",key:"vipStatus",scopedSlots:{customRender:"vipStatus"}}],isDisDownTemplate:!1,adminUrlLink:"/adminv2/statistics/performance?days=7",pageNo:1,pageSize:20,count:0}},watch:{$route:function(t){"/reportFormManage/PerformanceIndax"===t.path&&this.getTagList()}},methods:{showSizeChangeFn:function(t,e){this.pageNo=t,this.pageSize=e,this.getTagList()},cycleChange:function(t){this.adminUrlLink="/adminv2/statistics/performance?days=".concat(t.target.value)},spinningFn:function(t){this.tip="订单导入中",this.spinning=t},errOrderFn:function(t){this.visibleShow=!1,this.getTagList()},downloadClick:function(){var t=this;this.isDisDownTemplate=!0,setTimeout((function(){t.isDisDownTemplate=!1}),3e3),window.location.href="https://pre-kodo.shenyiedu.com/excel/performance.xlsx"},getTagList:function(){var t=this;Object(s["f"])({pageNo:this.pageNo,pageSize:this.pageSize}).then((function(e){200===e.code?(t.tableList=e.data.data,t.count=e.data.count,t.spinning=!1):t.spinning=!1}))},isDownloadClick:function(t){window.location.href=t.FileUrl},targetFn:function(){return document.querySelector("#course")}}},u=c,l=(n("5de7"),n("2877")),d=Object(l["a"])(u,a,i,!1,null,"747841fd",null);e["default"]=d.exports},4691: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+"*"),r=RegExp(o+o+"*$"),c=function(t){return function(e){var n=String(a(e));return 1&t&&(n=n.replace(s,"")),2&t&&(n=n.replace(r,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},"5de7":function(t,e,n){"use strict";n("a855")},"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,r=(n("ae61"),n("2877")),c=Object(r["a"])(s,a,i,!1,null,"ae5bacaa",null);e["a"]=c.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}},"8d82":function(t,e,n){"use strict";n("4691")},"96b4":function(t,e,n){},a855:function(t,e,n){},a9e3:function(t,e,n){"use strict";var a=n("83ab"),i=n("da84"),o=n("94ca"),s=n("6eeb"),r=n("5135"),c=n("c6b6"),u=n("7156"),l=n("c04e"),d=n("d039"),p=n("7c73"),f=n("241c").f,h=n("06cf").f,m=n("9bf2").f,g=n("58a8").trim,v="Number",S=i[v],b=S.prototype,w=c(p(b))==v,y=function(t){var e,n,a,i,o,s,r,c,u=l(t,!1);if("string"==typeof u&&u.length>2)if(u=g(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,r=0;ri)return NaN;return parseInt(o,a)}return+u};if(o(v,!S(" 0o1")||!S("0b1")||S("+0x1"))){for(var _,k=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof k&&(w?d((function(){b.valueOf.call(n)})):c(n)!=v)?u(new S(y(e)),n,k):y(e)},N=a?f(S):"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;N.length>C;C++)r(S,_=N[C])&&!r(k,_)&&m(k,_,h(S,_));k.prototype=b,b.constructor=k,s(i,v,k)}},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 r})),n.d(e,"e",(function(){return c})),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)},r=function(t){return a["a"].post("/adminv2/statistics/GetClassPlayLists",t)},c=function(t){return a["a"].post("/adminv2/statistics/getSalesCount",t)},u=function(t){return a["a"].post("/adminv2/statistics/performaceList",t)}},f088:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a-upload",{attrs:{name:"file",action:t.uploadUrl,"list-type":"picture-card","before-upload":t.beforeUpload,showUploadList:!1,headers:t.headers,accept:"application/vnd.ms-excel, \n application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},on:{change:t.uploadFile}},[n("a-button",{attrs:{icon:"import",type:"primary",loading:t.uploadLoading,disabled:t.uploadLoading}},[t._v(" "+t._s(t.text)+" ")])],1)},i=[],o=(n("99af"),n("f64c")),s=n("f121"),r={props:{text:{type:String,default:"导入订单"},urlList:{type:String,default:"/adminv2/order/info/import?action=1"}},data:function(){return{urlJkUrl:"/adminv2/order/info/import?action=1",uploadLoading:!1,uploadUrl:"".concat(s["a"],"/adminv2/order/info/import?action=1"),headers:{accessToken:localStorage.getItem("token"),"Content-Type":"application/json"}}},watch:{urlList:function(t,e){this.uploadUrl="".concat(s["a"]).concat(this.urlList)}},created:function(){this.uploadUrl="".concat(s["a"]).concat(this.urlList)},methods:{uploadFile:function(t){if(console.log(t),"done"!==t.file.status&&(this.uploadLoading=!0,this.$emit("spinningFn",!0)),t.file.status||(this.uploadLoading=!1,this.$emit("spinningFn",!1)),"done"===t.file.status){this.uploadLoading=!1;var e=t.file.response,n=e.code,a=e.data,i=e.msg;200===n?this.$emit("errOrderFn",a):(o["a"].error(i),this.$emit("spinningFn",!1))}"error"==t.file.status&&(this.uploadLoading=!1,o["a"].error("导入订单失败"),this.$emit("spinningFn",!1))},beforeUpload:function(t){this.$emit("spinningFn",!1),this.uploadLoading=!0;var e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===t.type||"application/vnd.ms-excel";return e||o["a"].error("不能上传其他类型的文件"),e}}},c=r,u=(n("8d82"),n("2877")),l=Object(u["a"])(c,a,i,!1,null,"418d5a94",null);e["a"]=l.exports}}]); //# sourceMappingURL=PerformanceIndax.247d8249.js.map