(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["PlayDataList"],{"0e18":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"ant-card",attrs:{id:"course_category"}},[t.$route.meta.isShow?i("a-spin",{attrs:{spinning:t.spinning,size:"large"}},[i("div",{staticClass:"ant-card-body"},[i("div",{staticClass:"head-box"},[i("div",{staticClass:"table-operator"},[i("a-input",{staticClass:"margin_right20",staticStyle:{width:"210px"},attrs:{placeholder:"请输入用户手机号"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}}),i("a-button",{staticClass:"margin_right20",attrs:{type:"primary"},on:{click:t.queryClick}},[t._v("查询")])],1)]),i("div",{staticClass:"contant-box"},[i("a-table",{ref:"table",attrs:{columns:t.columns,"data-source":t.tableList,"row-key":function(t){return t.userNo},loading:t.tableLoading,pagination:!1,scroll:{x:2100}},scopedSlots:t._u([{key:"buyCourse",fn:function(e,a){return[i("span",[t._v(t._s(a.buyCourse?a.buyCourse:"--"))])]}},{key:"firstPlayVideo",fn:function(e,a){return[i("span",[t._v(t._s("0001-01-01 00:00:00"==a.firstPlayVideo?"--":a.firstPlayVideo))])]}},{key:"courseName",fn:function(e,a){return[i("span",[t._v("内容名:"+t._s(a.courseName)+" "),i("br"),t._v(" 课讲名:"+t._s(a.lessonName))])]}},{key:"action",fn:function(e,a){return t.isShowDetail?[i("a",{staticClass:"btn-edit",on:{click:function(e){return t.onEdit(a)}}},[t._v("详情")])]:void 0}}],null,!0)})],1),t.tableList.length>0?i("MyPagination",{attrs:{count:t.count,pageNo:t.pageNo},on:{showSizeChangeFn:t.showSizeChangeFn}}):t._e()],1)]):t._e(),i("a-modal",{attrs:{title:"导出"},scopedSlots:t._u([{key:"footer",fn:function(){return[i("div",{staticStyle:{display:"flex","justify-content":"flex-end"}},[i("a-button",{staticClass:"margin_right20",on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),i("download-excel",{attrs:{data:t.exportList,fields:t.tableDataName,name:"用户播放数据.xls"}},[i("a-button",{attrs:{type:"primary"},on:{click:function(e){t.visibleShow=!1}}},[t._v("确定")])],1)],1)]},proxy:!0}]),model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[i("p",[i("a-icon",{style:{fontSize:"16px",color:"#FF8200"},attrs:{type:"info-circle"}}),i("span",{staticStyle:{"margin-left":"10px"}},[t._v("确定要导出此数据吗?")])],1)]),i("router-view")],1)},s=[],o=(i("d3b7"),i("25f0"),i("b0c0"),i("6ffe")),n=i("b893"),r=i("425c"),l=i("3ced"),c=(i("542c"),{components:{MyPagination:o["a"],Treeselect:l["a"]},created:function(){Object(n["a"])("/adminv2/playvideo/userPlayList")&&(this.isShowExport=!0),Object(n["a"])("/adminv2/playvideo/userStudyBehavior")&&(this.isShowDetail=!0)},data:function(){return{name:"",spinning:!1,tableLoading:!1,visibleShow:!1,isDateShow:!0,registerVal:[],form:{channel:[],key:void 0,phone:"",registerStart:"",registerEnd:""},columns:[{title:"用户手机",dataIndex:"userName",key:"userName",fixed:"left"},{title:"用户姓名",dataIndex:"nickName",key:"nickName"},{title:"所属渠道",dataIndex:"newestAgentName",key:"newestAgentName"},{title:"注册日期",dataIndex:"registerTime",key:"registerTime"},{title:"已有权益内容",dataIndex:"buyCourse",key:"buyCourse",scopedSlots:{customRender:"buyCourse"}},{title:"已播内容数",dataIndex:"totalStudyCourse",key:"totalStudyCourse",scopedSlots:{customRender:"totalStudyCourse"}},{title:"首次播放时间",dataIndex:"firstPlayVideo",key:"firstPlayVideo",scopedSlots:{customRender:"firstPlayVideo"}},{title:"最近播放时间",dataIndex:"lastPlayTime",key:"lastPlayTime"},{title:"最近播放内容",dataIndex:"courseName",key:"courseName",scopedSlots:{customRender:"courseName"}},{title:"最近播放内容课讲学习进度",dataIndex:"viewProgress",key:"viewProgress"},{title:"操作",dataIndex:"action",key:"action",width:"80px",fixed:"right",scopedSlots:{customRender:"action"}}],tableList:[],pageNo:1,pageSize:20,count:0,isShowExport:!1,isShowDetail:!1,options:[],exportList:[],tableDataName:{"用户手机号":"userName","用户姓名":"nickName","所属渠道":"newestAgentName","注册日期":"registerTime","已有权益内容":"buyCourse","已播内容数":"totalStudyCourse","首次播放时间":{field:"firstPlayVideo",callback:function(t){return"0001-01-01 00:00:00"==t?"--":t}},"最近播放时间":"lastPlayTime","最近播放内容名":"courseName","最近播放课讲名":"lessonName","最近播放内容课讲学习进度":"viewProgress"}}},mounted:function(){},methods:{onChangeRegister:function(t,e){""!=e[0]?(this.form.registerStart=e[0],this.form.registerEnd=e[1]):(this.form.registerStart="",this.form.registerEnd="")},treeDataChange:function(t){this.form.channel=t,this.isDateShow=!0},queryClick:function(){this.tableList=[],this.pageNo=1,this.getTagList()},resetClick:function(){this.form.phone="",this.form.key=void 0,this.form.channel=[],this.registerVal=[],this.form.registerStart="",this.form.registerEnd="",this.isDateShow=!1,this.getTagList()},showSizeChangeFn:function(t,e){this.pageNo=t,this.pageSize=e,this.getTagList()},exportClick:function(){var t=this;Object(r["q"])({phone:this.form.phone,channel:this.form.channel.length>0?this.form.channel.toString():"",courseName:void 0==this.form.key?"":this.form.key,registerStart:this.form.registerStart,registerEnd:this.form.registerEnd,pageNo:this.pageNo,pageSize:0}).then((function(e){200===e.code&&(t.exportList=e.data.list,t.exportList.length>0?t.visibleShow=!0:t.$message.warning("暂无导出数据"))}))},getTagList:function(){var t=this;this.form.phone?(this.tableLoading=!0,Object(r["q"])({phone:this.form.phone,channel:this.form.channel.length>0?this.form.channel.toString():"",courseName:this.form.key,registerStart:this.form.registerStart,registerEnd:this.form.registerEnd,pageNo:this.pageNo,pageSize:this.pageSize}).then((function(e){200===e.code&&(t.tableList=e.data.list,t.count=e.data.count),t.tableLoading=!1}))):this.tableList=[]},onEdit:function(t){this.$router.push("/userManage/playDataList/ShortTermlist/".concat(t.userNo))},targetFn:function(){return document.querySelector("#course")},handleSearch:function(t){var e=this;t?Object(r["h"])({word:t}).then((function(t){if(200===t.code){e.options=[];for(var i=t.data,a=0;a0?i("MyPagination",{attrs:{count:t.count,pageNo:t.pageNo},on:{showSizeChangeFn:t.showSizeChangeFn}}):t._e()],1)]):t._e(),i("a-modal",{attrs:{title:"导出"},scopedSlots:t._u([{key:"footer",fn:function(){return[i("div",{staticStyle:{display:"flex","justify-content":"flex-end"}},[i("a-button",{staticClass:"margin_right20",on:{click:function(e){t.visibleShow=!1}}},[t._v("取消")]),i("download-excel",{attrs:{data:t.exportList,fields:t.tableDataName,name:"用户播放数据.xls"}},[i("a-button",{attrs:{type:"primary"},on:{click:function(e){t.visibleShow=!1}}},[t._v("确定")])],1)],1)]},proxy:!0}]),model:{value:t.visibleShow,callback:function(e){t.visibleShow=e},expression:"visibleShow"}},[i("p",[i("a-icon",{style:{fontSize:"16px",color:"#FF8200"},attrs:{type:"info-circle"}}),i("span",{staticStyle:{"margin-left":"10px"}},[t._v("确定要导出此数据吗?")])],1)]),i("router-view")],1)},s=[],o=(i("d3b7"),i("25f0"),i("b0c0"),i("6ffe")),n=i("b893"),r=i("425c"),l=i("3ced"),c=(i("542c"),{components:{MyPagination:o["a"],Treeselect:l["a"]},created:function(){Object(n["a"])("/adminv2/playvideo/userPlayList")&&(this.isShowExport=!0),Object(n["a"])("/adminv2/playvideo/userStudyBehavior")&&(this.isShowDetail=!0)},data:function(){return{name:"",spinning:!1,tableLoading:!1,visibleShow:!1,isDateShow:!0,registerVal:[],form:{channel:[],key:void 0,phone:this.$route.query.phone||"",registerStart:"",registerEnd:""},columns:[{title:"用户手机",dataIndex:"userName",key:"userName",fixed:"left"},{title:"用户姓名",dataIndex:"nickName",key:"nickName"},{title:"所属渠道",dataIndex:"newestAgentName",key:"newestAgentName"},{title:"注册日期",dataIndex:"registerTime",key:"registerTime"},{title:"已有权益内容",dataIndex:"buyCourse",key:"buyCourse",scopedSlots:{customRender:"buyCourse"}},{title:"已播内容数",dataIndex:"totalStudyCourse",key:"totalStudyCourse",scopedSlots:{customRender:"totalStudyCourse"}},{title:"首次播放时间",dataIndex:"firstPlayVideo",key:"firstPlayVideo",scopedSlots:{customRender:"firstPlayVideo"}},{title:"最近播放时间",dataIndex:"lastPlayTime",key:"lastPlayTime"},{title:"最近播放内容",dataIndex:"courseName",key:"courseName",scopedSlots:{customRender:"courseName"}},{title:"最近播放内容课讲学习进度",dataIndex:"viewProgress",key:"viewProgress"},{title:"操作",dataIndex:"action",key:"action",width:"80px",fixed:"right",scopedSlots:{customRender:"action"}}],tableList:[],pageNo:1,pageSize:20,count:0,isShowExport:!1,isShowDetail:!1,options:[],exportList:[],tableDataName:{"用户手机号":"userName","用户姓名":"nickName","所属渠道":"newestAgentName","注册日期":"registerTime","已有权益内容":"buyCourse","已播内容数":"totalStudyCourse","首次播放时间":{field:"firstPlayVideo",callback:function(t){return"0001-01-01 00:00:00"==t?"--":t}},"最近播放时间":"lastPlayTime","最近播放内容名":"courseName","最近播放课讲名":"lessonName","最近播放内容课讲学习进度":"viewProgress"}}},mounted:function(){this.getTagList()},methods:{onChangeRegister:function(t,e){""!=e[0]?(this.form.registerStart=e[0],this.form.registerEnd=e[1]):(this.form.registerStart="",this.form.registerEnd="")},treeDataChange:function(t){this.form.channel=t,this.isDateShow=!0},queryClick:function(){this.tableList=[],this.pageNo=1,this.getTagList()},resetClick:function(){this.form.phone="",this.form.key=void 0,this.form.channel=[],this.registerVal=[],this.form.registerStart="",this.form.registerEnd="",this.isDateShow=!1,this.getTagList()},showSizeChangeFn:function(t,e){this.pageNo=t,this.pageSize=e,this.getTagList()},exportClick:function(){var t=this;Object(r["q"])({phone:this.form.phone,channel:this.form.channel.length>0?this.form.channel.toString():"",courseName:void 0==this.form.key?"":this.form.key,registerStart:this.form.registerStart,registerEnd:this.form.registerEnd,pageNo:this.pageNo,pageSize:0}).then((function(e){200===e.code&&(t.exportList=e.data.list,t.exportList.length>0?t.visibleShow=!0:t.$message.warning("暂无导出数据"))}))},getTagList:function(){var t=this;this.tableLoading=!0,Object(r["q"])({phone:this.form.phone,channel:this.form.channel.length>0?this.form.channel.toString():"",courseName:this.form.key,registerStart:this.form.registerStart,registerEnd:this.form.registerEnd,pageNo:this.pageNo,pageSize:this.pageSize}).then((function(e){200===e.code&&(t.tableList=e.data.list,t.count=e.data.count),t.tableLoading=!1}))},onEdit:function(t){this.$router.push("/userManage/playDataList/ShortTermlist/".concat(t.userNo))},targetFn:function(){return document.querySelector("#course")},handleSearch:function(t){var e=this;t?Object(r["h"])({word:t}).then((function(t){if(200===t.code){e.options=[];for(var i=t.data,a=0;a