(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7879452f"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),Math.easeInOutQuad=function(t,e,a,i){return t/=i/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function n(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 r(t,e,a){var r=o(),s=t-r,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var o=Math.easeInOutQuad(c,r,s,e);n(o),c0?a("el-button",{staticClass:"fontBtn",attrs:{type:"text"},on:{click:function(e){t.payVisible=!0}}},[t._v("直播回放 "),a("i",{staticClass:"el-icon-video-play"})]):t._e()],1),t._v(" "),a("p",{staticClass:"liveRemark"},[t._v("\n 直播内容:"),a("span",[t._v(t._s(t.detail.liveRemark))])])],1),t._v(" "),a("div",{staticClass:"infoWrap"},[a("statistic",{staticClass:"statistic",attrs:{cols:0}},[a("statistic-item",[a("span",[t._v(" 参与学员 ")]),t._v(" "),a("span",[t._v(t._s(t.detail.totalLookNum))])]),t._v(" "),a("statistic-item",[a("span",[t._v(" 累计点赞 ")]),t._v(" "),a("span",[t._v(t._s(t.detail.totalLikeNum))])]),t._v(" "),a("statistic-item",[a("span",[t._v(" 直播时长(分钟) ")]),t._v(" "),a("span",[t._v(t._s(t.detail.totalLiveTime))])])],1)],1),t._v(" "),a("save-form",{attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"学员编号/姓名"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"学员编号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subName",label:"声部"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"joinTime",label:"进入时间"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"totalViewTime",label:"观看时长"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.totalViewTime)+"分钟")])]}}])})],1),t._v(" "),a("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),t.payVisible?a("el-dialog",{attrs:{visible:t.payVisible,width:"500px",title:"直播回放"},on:{"update:visible":function(e){t.payVisible=e}}},[a("div",{staticClass:"lineWrap"},t._l(t.videoList,(function(e,i){return a("div",{key:i,staticClass:"linkItem",on:{click:function(a){return t.opneVideo(e)}}},[a("video",{attrs:{width:"110px",src:e.url}}),t._v(" "),a("i",{staticClass:"el-icon-video-play linkIcon"}),t._v(" "),a("p",{staticClass:"lineTitle",attrs:{underline:!1,type:"text"}},[t._v("\n "+t._s(t._f("dateForMinFormat")(e.endTime))+"\n ")])])})),0),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.payVisible=!1}}},[t._v("确 定")])],1)]):t._e(),t._v(" "),t.videoVisible?a("el-dialog",{attrs:{title:t._f("dateForMinFormat")(t.activeVideo.endTime),width:"680px","append-to-body":"",visible:t.videoVisible},on:{"update:visible":function(e){t.videoVisible=e}}},[a("video",{ref:"dialogVideo",staticStyle:{width:"640px"},attrs:{src:t.activeVideo.url,controls:"controls"}},[t._v("\n 您的浏览器不支持视频播放\n ")])]):t._e()],1)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",{staticClass:"squrtTitle"},[a("div",{staticClass:"squrt"}),t._v("\n 直播数据\n ")])}],o=a("5530"),r=(a("96cf"),a("1da1")),s=(a("386d"),a("333d")),l=a("64ca"),c={components:{pagination:s["a"]},data:function(){return{searchForm:{search:""},tableList:[],detail:{list:null,liveRemark:"",roomTitle:"",roomUid:"",speakerName:"",totalLikeNum:0,totalLiveTime:0,totalLookNum:0},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},videoList:[],payVisible:!1,videoVisible:!1,activeVideo:{endTime:""}}},mounted:function(){this.getDetail(),this.getList()},methods:{onCancel:function(){this.$router.push("/liveClassManager"),this.$store.dispatch("delVisitedViews",this.$route)},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.search="",this.search()},getList:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e={rows:this.rules.limit,page:this.rules.page,roomUid:this.$route.query.roomUid,search:this.searchForm.search},t.next=4,Object(l["g"])(e);case 4:a=t.sent,this.tableList=a.data.rows,this.rules.total=a.data.total,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.log(t.t0);case 12:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(){return t.apply(this,arguments)}return e}(),getDetail:function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e={roomUid:this.$route.query.roomUid},t.next=4,Object(l["f"])(e);case 4:a=t.sent,this.detail=Object(o["a"])({},a.data),this.videoList=a.data.videoList,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.log(t.t0);case 12:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(){return t.apply(this,arguments)}return e}(),opneVideo:function(t){this.activeVideo=t,this.videoVisible=!0}}},u=c,d=(a("e0d7"),a("2877")),p=Object(d["a"])(u,i,n,!1,null,"7976be74",null);e["default"]=p.exports},e0d7:function(t,e,a){"use strict";a("2f99")}}]);