| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6d6dbfd4"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),Math.easeInOutQuad=function(t,e,n,o){return t/=o/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,n){var s=i(),l=t-s,c=20,r=0;e="undefined"===typeof e?500:e;var p=function t(){r+=c;var i=Math.easeInOutQuad(r,s,l,e);a(i),r<e?o(t):n&&"function"===typeof n&&n()};p()}},"1d17":function(t,e,n){},"446b":function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"titleWrap"},[n("div",{staticClass:"box"},[n("span",{staticClass:"shape"}),t._v(" "),n("span",[t._v(t._s(t.title))])]),t._v(" "),n("div",{staticClass:"right"},[t.hidenOrgan?t._e():n("el-select",{staticClass:"multiple",attrs:{size:"mini",filterable:"",clearable:"",placeholder:"请选择分部"},on:{change:t.changeOrgan},model:{value:t.organId,callback:function(e){t.organId="string"===typeof e?e.trim():e},expression:"organId"}},t._l(t.special?t.specialList:t.selects.branchs,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1)]),t._v(" "),n("el-divider")],1)},a=[],i=(n("96cf"),n("1da1")),s={props:["title","hidenOrgan","special"],data:function(){return{organId:"",specialList:[]}},mounted:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("setBranchs");case 2:e=[36,39,41,42,43,44,45,46,47,48,49,50,52,54,55,56],this.specialList=this.selects.branchs.filter((function(t){return-1==e.indexOf(t.id)}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{changeOrgan:function(t){this.organId=t,this.$emit("changeOrgan",t)}}},l=s,c=(n("ba71"),n("2877")),r=Object(c["a"])(l,o,a,!1,null,"4f96c29a",null);e["a"]=r.exports},"95eb":function(t,e,n){"use strict";n("1d17")},aa26:function(t,e,n){},adb21:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var o=n("bc3a"),a=n.n(o),i=(n("4328"),n("5f87")),s=n("3908"),l=n("e3eb"),c=n.n(l),r=function(t,e,n){var o=e.url,l={method:e.method?e.method:"get",headers:{Authorization:Object(i["a"])()},url:o,responseType:"blob"};"post"==l.method?l.data=e.params:l.params=e.params,t.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s["a"].startLoading(),a()(c()(l)).then((function(n){var o=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(o).text();a.then((function(n){if(-1!=n.indexOf("code")){var a=JSON.parse(n);t.$message.error(a.msg)}else{var i=URL.createObjectURL(o),s=document.createElement("a"),l=e.fileName||"导出文件.xls";s.href=i,s.setAttribute("download",l),document.body.appendChild(s),s.click()}})),s["a"].endLoading()})).catch((function(e){t.$message.error("下载失败,请联系管理员"),s["a"].endLoading()}))})).catch((function(){}))}},ba71:function(t,e,n){"use strict";n("aa26")},e839:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("el-page-header",{staticStyle:{"padding-bottom":"30px"},attrs:{content:"分部云教练排行"},on:{back:t.goback}}),t._v(" "),n("div",{staticClass:"chioseBox"},[n("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":t.bigin(),clearable:!1},on:{change:t.changeValue},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList,"default-sort":{prop:"cloudStudyUseStudentDuty",order:"descending"}},on:{"sort-change":t.sortChang}},[n("el-table-column",{attrs:{align:"center",prop:"index",label:"排名"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"totalStudentNum",label:"学员总数",width:"100px"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("学员总数")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 乐团在读学员+有剩余VIP课或网管课学员去重之和\n ")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"cloudStudyLivelyStudentNum",label:"活跃人数",width:"100px"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("活跃人数")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("近15天内使用达到5天及以上的用户总数")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{sortable:"custom",align:"center",prop:"cloudStudyLivelyStudentDuty",label:"活跃人数占比",width:"150px"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("活跃人数占比")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("活跃人数 / 学员总数")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}},{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.cloudStudyLivelyStudentDuty)+"%")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"cloudStudyUseStudentNum",label:"使用人数"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("当日使用人数")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("当日使用的总人数")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"newCloudStudyStudentNum",label:"新增使用人数",width:"100px"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("当日新增使用人数")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("当日第一次使用云教练的人数")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{sortable:"custom",width:"150px",align:"center",prop:"cloudStudyUseStudentDuty",label:"当日使用人数比"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("使用人数占比")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("云教练当日使用人数 / 学员总数")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}},{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.cloudStudyUseStudentDuty)+"%")])]}}])}),t._v(" "),n("el-table-column",{attrs:{sortable:"custom",width:"140px",align:"center",prop:"vipStudentNum",label:"付费会员数"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("付费会员数")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("会员生效中或待生效总人数")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{sortable:"custom",width:"150px",align:"center",prop:"vipStudentDuty",label:"付费会员比"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("付费会员占比")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("付费会员数 / 学员总数")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}},{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.vipStudentDuty)+"%")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"newMemberStudentNum",label:"新增付费会员"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("新增付费会员")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("当日新增付费会员数量")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}}])})],1)],1)],1)},a=[],i=n("5530"),s=(n("96cf"),n("1da1")),l=n("446b"),c=n("333d"),r=n("adb21"),p=n("5a0c"),u=n.n(p),d=n("4328"),v=n.n(d),f=n("8179"),m={components:{headers:l["a"],pagination:c["a"]},data:function(){return{tableList:[],searchList:{cloudStudyUseStudentDuty:"DESC"},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},date:""}},mounted:function(){this.date=u()(new Date).subtract(1,"day").format("YYYY-MM-DD"),this.getList()},methods:{getList:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(f["l"])(Object(i["a"])(Object(i["a"])({},this.searchList),{},{date:this.date,rows:999,page:1}));case 3:e=t.sent,this.tableList=e.data.rows,this.rules.total=e.data.total,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),console.log(t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),bigin:function(){var t=this;return{firstDayOfWeek:1,disabledDate:function(e){if(t.endDate){var n=t.$helpers.dayjs(t.endDate).valueOf();return e.getTime()>n}return e.getTime()>=Date.now()-864e5}}},changeValue:function(t){this.date=t,this.rules.page=1,this.getList()},sortChang:function(t){var e={ascending:"ASC",descending:"DESC"};this.searchList={},t.prop&&t.order&&(this.searchList[t.prop]=e[t.order]),this.rules.page=1,this.getList()},rankingExport:function(){var t=Object(i["a"])(Object(i["a"])({},this.searchForm),{},{date:this.date});Object(r["a"])(this,{url:"/api-web/export/cloudStudyStudentOverView",fileName:"分部云教练数据排行.xls",method:"post",params:v.a.stringify(t)},"您确定导出分部云教练数据排行?")},goback:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/main/main?tabrouter=cloudDate"})}}},h=m,b=(n("95eb"),n("2877")),_=Object(b["a"])(h,o,a,!1,null,"3a1714a9",null);e["default"]=_.exports}}]);
|