(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-348b8ee0"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,a){var s=o(),i=t-s,c=20,l=0;e="undefined"===typeof e?500:e;var u=function t(){l+=c;var o=Math.easeInOutQuad(l,s,i,e);r(o),l".concat(t.marker).concat(t.seriesName,": ").concat(t.value,"人")})))).join("")}}}},dataZoom:function(){return[{show:!0,type:"slider",start:0,end:30,filterMode:"empty",zoomLock:!0,handleSize:0}]},dataEmpty:function(){return!this.chartData.rows.length},exporyun:function(){return{organId:this.organId}}}}),$=F,A=(a("bc3ad"),Object(f["a"])($,L,N,!1,null,"b80859e8",null)),Y=A.exports,V=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[a("saveform",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,saveKey:"exerciseDuration",model:t.searchForm},on:{"update:model":function(e){t.searchForm=e}}},[a("el-form-item",{attrs:{prop:"dates"}},[a("el-date-picker",{staticStyle:{width:"405px"},attrs:{clearable:!1,"value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:t.searchForm.dates,callback:function(e){t.$set(t.searchForm,"dates",e)},expression:"searchForm.dates"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),a("ve-histogram",{staticStyle:{width:"100%"},attrs:{height:"350px",data:t.chartData,"data-empty":t.dataEmpty,extend:t.chartExtend,legend:t.legend,"data-zoom":t.dataZoom}}),t._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentCoursewarePlayRecord/exportStatList",expression:"'studentCoursewarePlayRecord/exportStatList'"}],staticStyle:{margin:"16px 0"},attrs:{type:"primary"},on:{click:t.exportQuestion}},[t._v("导出")]),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"sort-change":t.onSortChange}},[a("el-table-column",{attrs:{width:"120px",align:"center",prop:"id",label:"排名"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(e.$index+1)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organizationName",label:"分部名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memberNum",sortable:"custom",label:"会员人数",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.memberNum)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"noPlayNum",sortable:"custom",label:"无练习人数",width:"120px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.noPlayNum)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeLess10",sortable:"custom",label:"0-10分钟",width:"120px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.playTimeLess10)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeLess60",sortable:"custom",label:"10-60分钟",width:"120px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.playTimeLess60)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeLess120",sortable:"custom",label:"60-120分钟",width:"120px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.playTimeLess120)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeLess240",sortable:"custom",label:"120-240分钟",width:"130px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.playTimeLess240)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeRather240",sortable:"custom",label:">240分钟",width:"120px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.playTimeRather240)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"avgPlayTime",sortable:"custom",label:"平均时长",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.avgPlayTime||0)+"分钟")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/coursewareDurationDetail",expression:"'/coursewareDurationDetail'"}],attrs:{type:"text"},on:{click:function(a){return t.onDetail(e.row)}}},[t._v("详情")])]}}])})],1)],1)],1)},P=[],z=(a("55dd"),a("adb2")),G=a("5a0c"),H=a.n(G),U=a("fa7d"),B=a("ed08"),q=(H()().subtract(1,"day").format("YYYY-MM-DD"),function(){return[H()().startOf("month").format("YYYY-MM-DD"),H()().endOf("month").format("YYYY-MM-DD")]}),W={components:{saveform:z["a"],"ve-histogram":E.a},name:"helpCategory",data:function(){return{searchForm:{dates:q(),sort:null,asc:null},tableList:[]}},mounted:function(){var t=Object(l["a"])(Object(c["a"])().mark((function t(){return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.getList();case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{onSortChange:function(t){var e={memberNum:1,noPlayNum:2,playTimeLess10:3,playTimeLess60:4,playTimeLess120:5,playTimeLess240:6,playTimeRather240:7,avgPlayTime:8};this.searchForm.sort=e[t.prop],"ascending"===t.order?this.searchForm.asc=!0:"descending"===t.order?this.searchForm.asc=!1:(this.searchForm.asc=null,this.searchForm.sort=null),this.getList()},exportQuestion:function(){var t=this.searchForm.dates;Object(C["a"])(this,{url:"/api-web/studentCoursewarePlayRecord/exportStatList",fileName:"云课堂观看统计.xls",method:"post",params:Object(T["a"])({},Object(B["c"])(t,["startTime","endTime"]))},"您确定导出云课堂观看统计?")},onDetail:function(t){this.$router.push({path:"/coursewareDurationDetail",query:{organId:t.organizationId,dates:JSON.stringify(this.searchForm.dates)}})},search:function(){var t=this;this.$refs.searchForm.validate((function(e){t.pageInfo=Object(T["a"])(Object(T["a"])({},t.pageInfo),{},{page:1}),t.getList()}))},onReSet:function(){this.pageInfo=Object(T["a"])(Object(T["a"])({},this.pageInfo),{},{page:1}),this.$refs.searchForm.resetFields(),this.getList()},getDefaultTime:function(){var t=this.$helpers.dayjs,e=t(new Date).format("YYYY-MM-DD"),a=t(e).subtract(1,"week").format("YYYY-MM-DD");console.log(a,e,"121212"),this.searchForm.dates=[Object(U["b"])(a),Object(U["c"])(e)],console.log(this.searchForm.dates,"this.searchForm.dates")},changeWeek:function(t){t||this.getDefaultTime()},getList:function(){var t=Object(l["a"])(Object(c["a"])().mark((function t(){var e,a,n,r,o,s;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.searchForm,a=e.dates,n=e.sort,r=e.asc,o=Object(T["a"])({sort:n,asc:r},Object(B["c"])(a,["startTime","endTime"])),t.next=5,Object(_["c"])(Object(T["a"])({page:1,rows:10},o));case 5:s=t.sent,this.tableList=[],this.tableList=s.data,t.next=12;break;case 10:t.prev=10,t.t0=t["catch"](0);case 12:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}()},computed:{legend:function(){return{left:"10px"}},chartData:function(){var t={noPlayNum:"无练习人数",playTimeLess10:"0-10分钟",playTimeLess60:"10-60分钟",playTimeLess120:"60-120分钟",playTimeLess240:"120-240分钟",playTimeRather240:">240分钟",avgPlayTime:"平均时长"},e=this.tableList,a={};for(var n in t){var r,o=Object(D["a"])(e);try{for(o.s();!(r=o.n()).done;){var s=r.value;a[s.organizationName]||(a[s.organizationName]={"分部":s.organizationName}),a[s.organizationName][t[n]]=s[n]||0}}catch(i){o.e(i)}finally{o.f()}}return console.log(a,"months"),{columns:["分部","无练习人数","0-10分钟","10~60分钟","60-120分钟","120-240分钟",">240分钟","平均时长"],rows:Object.values(a)}},chartExtend:function(){return{yAxis:{minInterval:1,type:"value",scale:!0,min:0,axisLabel:{formatter:"{value}"}},series:{type:"bar",smooth:!1},tooltip:{axisPointer:{type:"shadow",shadowStyle:{color:"rgba(150,150,150,0.2)"}},formatter:function(t){return[t[0].axisValueLabel].concat(Object(I["a"])(t.map((function(t){return"
".concat(t.marker).concat(t.seriesName,": ").concat(t.value).concat("平均时长"==t.seriesName?"分钟":"人")})))).join("")}}}},scalChartExtend:function(){return{yAxis:{minInterval:1,type:"value",scale:!0,min:0,axisLabel:{formatter:"{value}%"}},series:{type:"bar",smooth:!1},tooltip:{axisPointer:{type:"shadow",shadowStyle:{color:"rgba(150,150,150,0.2)"}},formatter:function(t){return[t[0].axisValueLabel].concat(Object(I["a"])(t.map((function(t){return"
".concat(t.marker).concat(t.seriesName,": ").concat(t.value,"%")})))).join("")}}}},dataZoom:function(){return[{show:!0,type:"slider",start:0,end:30,filterMode:"empty",zoomLock:!0,handleSize:0}]},dataEmpty:function(){return!this.chartData.rows.length},exporyun:function(){return{organId:this.organId}}}},J=W,Q=(a("bdbb"),Object(f["a"])(J,V,P,!1,null,"20ea8b4e",null)),X=Q.exports,K={components:{allDate:O,organMemberList:Y,exerciseDuration:X},data:function(){return{activeKey:""}},methods:{permission:o["a"]}},Z=K,tt=(a("2eef"),Object(f["a"])(Z,n,r,!1,null,"60429400",null));e["default"]=tt.exports},"33b2":function(t,e,a){},"69a0":function(t,e,a){"use strict";a("b471")},adb21:function(t,e,a){"use strict";a.d(e,"a",(function(){return l}));var n=a("bc3a"),r=a.n(n),o=(a("4328"),a("5f87")),s=a("3908"),i=a("e3eb"),c=a.n(i),l=function(t,e,a,n){var i=e.url,l={method:e.method?e.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:i,responseType:"blob"};"post"==l.method?l.data=e.params:l.params=e.params,t.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s["a"].startLoading(),r()(c()(l)).then((function(a){var r=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(r).text();o.then((function(a){if(-1!=a.indexOf("code")){var o=JSON.parse(a);if(403==o.code)return t.$message.error("登录过期,请重新登录!"),void setTimeout((function(){t.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==o.code?t.$message.success(o.msg):t.$message.error(o.msg),n&&n()}else{var s=URL.createObjectURL(r),i=document.createElement("a"),c=e.fileName||"导出文件.xls";i.href=s,i.setAttribute("download",c),document.body.appendChild(i),i.click(),n&&n()}})),s["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),s["a"].endLoading()}))})).catch((function(){}))}},b471:function(t,e,a){},bc3ad:function(t,e,a){"use strict";a("1107")},bdbb:function(t,e,a){"use strict";a("33b2")},e687:function(t,e,a){},ec3a:function(t,e,a){"use strict";a("e687")},fa7d:function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return s})),a.d(e,"d",(function(){return i}));var n=a("5530"),r=(a("a481"),a("5a0c"),function(t){var e=new Date(t.replace(/-/g,"/")).getTime(),a=new Date(t);0==a.getDay()&&(e-=6048e5);var n=e-24*(a.getDay()-1)*60*60*1e3,r=new Date(n),o=r.getFullYear(),s=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,i=r.getDate()<10?"0"+r.getDate():r.getDate(),c=o+"-"+s+"-"+i;return c}),o=function(t){var e=new Date(t.replace(/-/g,"/")).getTime(),a=new Date(t),n=7-a.getDay();7==n&&(n=0);var r=e+24*n*60*60*1e3,o=new Date(r),s=o.getFullYear(),i=o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1,c=o.getDate()<10?"0"+o.getDate():o.getDate(),l=s+"-"+i+"-"+c;return l},s=function(t){var e=[];switch(t){case"NORMAL":e=[{value:"SINGLE",label:"声部课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":e=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":e=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":e=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"MUSIC_NETWORK":e=[{value:"MUSIC_NETWORK",label:"乐团网管课"}];break;case"SNAP":e=[{value:"SINGLE",label:"声部课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}return e},i=function(t,e){t.$router.replace({query:Object(n["a"])(Object(n["a"])({},t.$route.query),e)})}}}]);