(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-80c6be98"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),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 i(t,e,a){var i=o(),s=t-i,c=20,l=0;e="undefined"===typeof e?500:e;var u=function t(){l+=c;var o=Math.easeInOutQuad(l,i,s,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}}}}),C=E,M=(a("726a"),Object(h["a"])(C,_,S,!1,null,"24f87d70",null)),T=M.exports,R=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("el-tabs",{staticClass:"submitTab",model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"人数图表",name:"first"}},["first"==t.activeName?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._e()],1),t._v(" "),a("el-tab-pane",{attrs:{label:"比例图表",name:"second"}},["second"==t.activeName?a("ve-histogram",{staticStyle:{width:"100%"},attrs:{height:"350px",data:t.scaleCharData,"data-empty":t.dataEmpty,extend:t.scalChartExtend,legend:t.legend,"data-zoom":t.dataZoom}}):t._e()],1)],1),t._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/managerDownload/num",expression:"'export/managerDownload/num'"}],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"}}},[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:"organName",label:"分部名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"会员人数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.normalNum)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"trainStudentNum",label:"练习人数"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.trainStudentNum)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"trainRate",label:"练习率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.trainRate)+"%")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"≤10分钟"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.train0)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"10~60分钟"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.train1)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"60~120分钟"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.train2)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"120~240分钟"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.train3)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"≥240分钟"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.train4)+"人")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"avgTrainTime",label:"平均练习时长(会员)",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.avgTrainTime)+"分钟")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"trainAvgTrainTime",label:"平均练习时长(练习)",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.trainAvgTrainTime)+"分钟")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"练习达标占比"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.trainStandRate)+"%")])]}}])}),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:"/exerciseDurationDetail",expression:"'/exerciseDurationDetail'"}],attrs:{type:"text"},on:{click:function(a){return t.onDetail(e.row)}}},[t._v("详情")])]}}])})],1)],1)],1)},Y=[],A=a("bd86"),$=a("adb2"),F=a("5a0c"),V=a.n(F),U=a("fa7d"),H=(V()().subtract(1,"day").format("YYYY-MM-DD"),function(t){var e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&t.length?(e={},Object(A["a"])(e,a[0]||"start",V()(t[0]).format("YYYY-MM-DD")),Object(A["a"])(e,a[1]||"start",V()(t[1]).format("YYYY-MM-DD")),e):{}}),z={components:{saveform:$["a"],"ve-histogram":L.a},name:"helpCategory",data:function(){return{searchForm:{dates:[V()().subtract(1,"day").format("YYYY-MM-DD"),V()().subtract(1,"day").format("YYYY-MM-DD")]},tableList:[],activeName:"first"}},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:{exportQuestion:function(){var t=this.searchForm.dates;Object(I["a"])(this,{url:"/api-web/export/managerDownload",fileName:"云教练练习时长.xls",method:"post",params:{exportEnum:"EXPORT_CLOUD_TEACHER_SUM",queryInfo:Object(O["a"])({},H(t,["startDate","endDate"]))}},"您确定导出云教练练习时长?")},onDetail:function(t){this.$router.push({path:"/exerciseDurationDetail",query:{organId:t.organId}})},search:function(){var t=this;this.$refs.searchForm.validate((function(e){t.pageInfo=Object(O["a"])(Object(O["a"])({},t.pageInfo),{},{page:1}),t.getList()}))},onReSet:function(){this.pageInfo=Object(O["a"])(Object(O["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;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.searchForm.dates,a=Object(O["a"])({},H(e,["startDate","endDate"])),t.next=5,Object(f["b"])(Object(O["a"])({page:1,rows:10},a));case 5:n=t.sent,this.tableList=[],this.tableList=n.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:{items:function(){var t=this,e={},a=["normalNum","train1","train2","train3","train4","buyRate","avgTrainTime"];return a.forEach((function(a){t.dataList[a]+""&&(e[a]={title:titles[a],percent:t.dataList[a],desc:descs[a]})})),e},scaleItems:function(){var t=this,e={},a=["trainRate","trainStandRate"];return a.forEach((function(a){t.dataList[a]+""&&(e[a]={title:titles[a],percent:t.dataList[a],desc:descs[a]})})),e},legend:function(){return{left:"10px"}},scaleCharData:function(){var t={trainRate:"练习率",trainStandRate:"练习达标率"},e=this.tableList,a={};for(var n in t){var r,o=Object(x["a"])(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;a[i.organName]||(a[i.organName]={"分部":i.organName}),a[i.organName][t[n]]=i[n]||0}}catch(s){o.e(s)}finally{o.f()}}return console.log(a,"months"),{columns:["分部","练习率","练习达标率"],rows:Object.values(a)}},chartData:function(){var t={normalNum:"会员人数",train0:"≤10分钟",train1:"10~60分钟",train2:"60-120分钟",train3:"120-240分钟",train4:"≥240分钟",avgTrainTime:"平均时长"},e=this.tableList,a={};for(var n in t){var r,o=Object(x["a"])(e);try{for(o.s();!(r=o.n()).done;){var i=r.value;a[i.organName]||(a[i.organName]={"分部":i.organName}),a[i.organName][t[n]]=i[n]||0}}catch(s){o.e(s)}finally{o.f()}}return console.log(a,"months"),{columns:["分部","会员人数","≤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(w["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(w["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}}}},G=z,q=(a("af4e"),Object(h["a"])(G,R,Y,!1,null,"716cdeef",null)),B=q.exports,K={components:{allDate:y,organMemberList:T,exerciseDuration:B},data:function(){return{activeKey:""}},methods:{permission:o["a"],changeKey:function(t){console.log(t,"val"),this.activeKey=t}}},P=K,W=(a("c763"),Object(h["a"])(P,n,r,!1,null,"4e0124ea",null));e["default"]=W.exports},"726a":function(t,e,a){"use strict";a("bc56")},"7e80":function(t,e,a){},"9e7d":function(t,e,a){"use strict";a("279c")},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")),i=a("3908"),s=a("e3eb"),c=a.n(s),l=function(t,e,a,n){var s=e.url,l={method:e.method?e.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:s,responseType:"blob"};"post"==l.method?l.data=e.params:l.params=e.params,t.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["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 i=URL.createObjectURL(r),s=document.createElement("a"),c=e.fileName||"导出文件.xls";s.href=i,s.setAttribute("download",c),document.body.appendChild(s),s.click(),n&&n()}})),i["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},ae1f:function(t,e,a){"use strict";a("7e80")},af4e:function(t,e,a){"use strict";a("bff0")},bc56:function(t,e,a){},bff0:function(t,e,a){},c763:function(t,e,a){"use strict";a("f76c")},f76c:function(t,e,a){},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 i})),a.d(e,"d",(function(){return s}));var n=a("db72"),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(),i=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,s=r.getDate()<10?"0"+r.getDate():r.getDate(),c=o+"-"+i+"-"+s;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),i=o.getFullYear(),s=o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1,c=o.getDate()<10?"0"+o.getDate():o.getDate(),l=i+"-"+s+"-"+c;return l},i=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},s=function(t,e){t.$router.replace({query:Object(n["a"])(Object(n["a"])({},t.$route.query),e)})}}}]);