1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24c9c4a0"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,a){var l=o(),i=e-l,s=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=s;var o=Math.easeInOutQuad(c,l,i,t);r(o),c<t?n(e):a&&"function"===typeof a&&a()};u()}},"12b7":function(e,t,a){"use strict";a("abfc")},"2d98":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:"练习时长详情"},on:{back:e.onCancel}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("saveform",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{"update:model":function(t){e.searchForm=t}}},[a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),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,disabledDate:function(t){return t.getTime()>=e.nowIndex}},type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.searchForm.dates,callback:function(t){e.$set(e.searchForm,"dates",t)},expression:"searchForm.dates"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/managerDownload/numDetail",expression:"'export/managerDownload/numDetail'"}],staticStyle:{margin:"0 0 16px"},attrs:{type:"primary"},on:{click:e.exportQuestion}},[e._v("导出")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"声部老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"会员人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.normalNum)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"trainStudentNum",label:"练习人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.trainStudentNum)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"trainRate",label:"练习率"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.trainRate)+"%")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"≤10分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.train0)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"10~60分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.train1)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"60~120分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.train2)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"120~240分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.train3)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"≥240分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.train4)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"avgTrainTime",label:"平均练习时长(会员)",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.avgTrainTime)+"分钟")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"trainAvgTrainTime",label:"平均练习时长(练习)",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.trainAvgTrainTime)+"分钟")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"练习达标占比"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.trainStandRate)+"%")])]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},r=[],o=a("db72"),l=a("c80c"),i=(a("c5f6"),a("96cf"),a("3b8d")),s=a("bd86"),c=a("adb21"),u=a("333d"),d=a("adb2"),f=a("5a0c"),p=a.n(f),m=a("d768"),b=a.n(m),g=a("fa7d"),v=a("8179"),h=new Date;h=h.getFullYear()+"-"+(h.getMonth()+1)+"-"+h.getDate();var _=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&e.length?(t={},Object(s["a"])(t,a[0]||"start",p()(e[0]).format("YYYY-MM-DD")),Object(s["a"])(t,a[1]||"start",p()(e[1]).format("YYYY-MM-DD")),t):{}},I={components:{saveform:d["a"],"ve-histogram":b.a,pagination:u["a"]},name:"helpCategory",data:function(){return{nowIndex:p()(p()().format("YYYY-MM-DD")).valueOf(),searchForm:{dates:[p()().subtract(1,"day").format("YYYY-MM-DD"),p()().subtract(1,"day").format("YYYY-MM-DD")],organId:""},tableList:[],activeName:"first",specialList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e=Object(i["a"])(Object(l["a"])().mark((function e(){var t,a;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$route.query,this.searchForm.organId=t.organId?Number(t.organId):"",e.next=4,this.$store.dispatch("setBranchs");case 4:a=[36,39,41,42,43,44,45,46,47,48,49,50,52,54,56],this.specialList=this.selects.branchs.filter((function(e){return-1==a.indexOf(e.id)})),this.getList();case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{exportQuestion:function(){var e=this.searchForm,t=e.dates,a=e.organId;Object(c["a"])(this,{url:"/api-web/export/managerDownload",fileName:"云教练练习时长.xls",method:"post",params:{exportEnum:"EXPORT_CLOUD_TEACHER_SUM_DETAIL",queryInfo:Object(o["a"])(Object(o["a"])({},_(t,["startDate","endDate"])),{},{organId:a})}},"您确定导出云教练练习时长?")},search:function(){var e=this;this.$refs.searchForm.validate((function(t){e.pageInfo=Object(o["a"])(Object(o["a"])({},e.pageInfo),{},{page:1}),e.getList()}))},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/cloudDate?tabrouter=exerciseDuration"})},onReSet:function(){this.pageInfo=Object(o["a"])(Object(o["a"])({},this.pageInfo),{},{page:1}),this.$refs.searchForm.resetFields(),this.getList()},getDefaultTime:function(){var e=this.$helpers.dayjs,t=e(new Date).format("YYYY-MM-DD"),a=e(t).subtract(1,"week").format("YYYY-MM-DD");this.searchForm.dates=[Object(g["b"])(a),Object(g["c"])(t)]},changeWeek:function(e){e||this.getDefaultTime()},getList:function(){var e=Object(i["a"])(Object(l["a"])().mark((function e(){var t,a,n,r,i;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,a=t.dates,n=t.organId,r=Object(o["a"])(Object(o["a"])({},_(a,["startDate","endDate"])),{},{organId:n}),e.next=5,Object(v["c"])(Object(o["a"])({page:this.pageInfo.page,rows:this.pageInfo.limit},r));case 5:i=e.sent,this.tableList=[],this.tableList=i.data.rows||[],this.pageInfo.total=i.data.total,e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}()}},w=I,y=(a("12b7"),a("2877"));a.d(t,"getTimes",(function(){return _}));var D=Object(y["a"])(w,n,r,!1,null,"09fdf925",null);t["default"]=D.exports},abfc:function(e,t,a){},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a("bc3a"),r=a.n(n),o=(a("4328"),a("5f87")),l=a("3908"),i=a("e3eb"),s=a.n(i),c=function(e,t,a,n){var i=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:i,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){l["a"].startLoading(),r()(s()(c)).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 e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==o.code?e.$message.success(o.msg):e.$message.error(o.msg),n&&n()}else{var l=URL.createObjectURL(r),i=document.createElement("a"),s=t.fileName||"导出文件.xls";i.href=l,i.setAttribute("download",s),document.body.appendChild(i),i.click(),n&&n()}})),l["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),l["a"].endLoading()}))})).catch((function(){}))}},fa7d:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return l})),a.d(t,"d",(function(){return i}));var n=a("db72"),r=(a("a481"),a("5a0c"),function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var n=t-24*(a.getDay()-1)*60*60*1e3,r=new Date(n),o=r.getFullYear(),l=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,i=r.getDate()<10?"0"+r.getDate():r.getDate(),s=o+"-"+l+"-"+i;return s}),o=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),n=7-a.getDay();7==n&&(n=0);var r=t+24*n*60*60*1e3,o=new Date(r),l=o.getFullYear(),i=o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1,s=o.getDate()<10?"0"+o.getDate():o.getDate(),c=l+"-"+i+"-"+s;return c},l=function(e){var t=[];switch(e){case"NORMAL":t=[{value:"SINGLE",label:"声部课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":t=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":t=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":t=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"MUSIC_NETWORK":t=[{value:"MUSIC_NETWORK",label:"乐团网管课"}];break;case"SNAP":t=[{value:"SINGLE",label:"声部课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}return t},i=function(e,t){e.$router.replace({query:Object(n["a"])(Object(n["a"])({},e.$route.query),t)})}}}]);
|