chunk-7dc09161.e4b0a28a.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7dc09161"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),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 s(e,t,a){var s=o(),l=e-s,c=20,i=0;t="undefined"===typeof t?500:t;var u=function e(){i+=c;var o=Math.easeInOutQuad(i,s,l,t);r(o),i<t?n(e):a&&"function"===typeof a&&a()};u()}},"314d":function(e,t,a){"use strict";a("8c84")},"671a":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:"studentCoursewarePlayRecord/exportStatDetailPage",expression:"'studentCoursewarePlayRecord/exportStatDetailPage'"}],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"}},on:{"sort-change":e.onSortChange}},[a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"声部老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memberNum",sortable:"custom",label:"会员人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.memberNum)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"noPlayNum",sortable:"custom",label:"无练习人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.noPlayNum)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeLess10",sortable:"custom",label:"0-10分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.playTimeLess10)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeLess60",sortable:"custom",label:"10-60分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.playTimeLess60)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeLess120",sortable:"custom",label:"60-120分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.playTimeLess120)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeLess240",sortable:"custom",label:"120-240分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.playTimeLess240)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"playTimeRather240",sortable:"custom",label:">240分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.playTimeRather240)+"人")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"avgPlayTime",sortable:"custom",label:"平均时长"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.avgPlayTime)+"分钟")])]}}])})],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("5530"),s=(a("55dd"),a("c7eb")),l=(a("c5f6"),a("96cf"),a("1da1")),c=a("adb21"),i=a("333d"),u=a("adb2"),d=a("5a0c"),m=a.n(d),p=a("d768"),f=a.n(p),b=a("fa7d"),h=a("8179"),g=a("ed08"),v=new Date;v=v.getFullYear()+"-"+(v.getMonth()+1)+"-"+v.getDate();var y=function(){return[m()().startOf("month").format("YYYY-MM-DD"),m()().endOf("month").format("YYYY-MM-DD")]},I={components:{saveform:u["a"],"ve-histogram":f.a,pagination:i["a"]},name:"helpCategory",data:function(){return{nowIndex:m()(m()().format("YYYY-MM-DD")).valueOf(),searchForm:{dates:y(),organId:"",sort:null,asc:null},tableList:[],activeName:"first",pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e=Object(l["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["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):"",this.searchForm.dates=t.dates?JSON.parse(t.dates):y(),e.next=5,this.$store.dispatch("setBranchs");case 5:this.getList();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{onSortChange:function(e){var t={memberNum:1,noPlayNum:2,playTimeLess10:3,playTimeLess60:4,playTimeLess120:5,playTimeLess240:6,playTimeRather240:7,avgPlayTime:8};this.searchForm.sort=t[e.prop],"ascending"===e.order?this.searchForm.asc=!0:"descending"===e.order?this.searchForm.asc=!1:(this.searchForm.asc=null,this.searchForm.sort=null),this.getList()},exportQuestion:function(){var e=this.searchForm,t=e.dates,a=e.organId,n=e.asc,r=e.sort;Object(c["a"])(this,{url:"/api-web/studentCoursewarePlayRecord/exportStatDetailPage",fileName:"观看时长详情.xls",method:"post",params:Object(o["a"])(Object(o["a"])({},Object(g["c"])(t,["startTime","endTime"])),{},{organizationId:a,asc:n,sort:r})},"您确定导出观看时长详情?")},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:"/coursewareDate"})},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(b["b"])(a),Object(b["c"])(t)]},changeWeek:function(e){e||this.getDefaultTime()},getList:function(){var e=Object(l["a"])(Object(s["a"])().mark((function e(){var t,a,n,r,l,c,i;return Object(s["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=t.sort,l=t.asc,c=Object(o["a"])(Object(o["a"])({sort:r,asc:l},Object(g["c"])(a,["startTime","endTime"])),{},{organizationId:n}),e.next=5,Object(h["b"])(Object(o["a"])({page:this.pageInfo.page,rows:this.pageInfo.limit},c));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,_=(a("314d"),a("2877"));a.d(t,"getCurrentMonth",(function(){return y}));var O=Object(_["a"])(w,n,r,!1,null,"4cc25e93",null);t["default"]=O.exports},"8c84":function(e,t,a){},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("bc3a"),r=a.n(n),o=(a("4328"),a("5f87")),s=a("3908"),l=a("e3eb"),c=a.n(l),i=function(e,t,a,n){var l=t.url,i={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:l,responseType:"blob"};"post"==i.method?i.data=t.params:i.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s["a"].startLoading(),r()(c()(i)).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 s=URL.createObjectURL(r),l=document.createElement("a"),c=t.fileName||"导出文件.xls";l.href=s,l.setAttribute("download",c),document.body.appendChild(l),l.click(),n&&n()}})),s["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),s["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 s})),a.d(t,"d",(function(){return l}));var n=a("5530"),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(),s=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,l=r.getDate()<10?"0"+r.getDate():r.getDate(),c=o+"-"+s+"-"+l;return c}),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),s=o.getFullYear(),l=o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1,c=o.getDate()<10?"0"+o.getDate():o.getDate(),i=s+"-"+l+"-"+c;return i},s=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},l=function(e,t){e.$router.replace({query:Object(n["a"])(Object(n["a"])({},e.$route.query),t)})}}}]);