chunk-4a12d7e4.08889605.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a12d7e4"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),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 s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=s(),l=t-i,r=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=r;var s=Math.easeInOutQuad(c,i,l,e);a(s),c<e?o(t):n&&"function"===typeof n&&n()};u()}},"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:{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=[],s=n("c7eb"),i=(n("96cf"),n("1da1")),l={props:["title","hidenOrgan","special"],data:function(){return{organId:"",specialList:[]}},mounted:function(){var t=Object(i["a"])(Object(s["a"])().mark((function t(){var e;return Object(s["a"])().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,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)}}},r=l,c=(n("ae1f"),n("2877")),u=Object(c["a"])(r,o,a,!1,null,"aff3d1da",null);e["a"]=u.exports},"7e80":function(t,e,n){},adb21:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var o=n("bc3a"),a=n.n(o),s=(n("4328"),n("5f87")),i=n("3908"),l=n("e3eb"),r=n.n(l),c=function(t,e,n,o){var l=e.url,c={method:e.method?e.method:"get",headers:{Authorization:Object(s["b"])(),tenantId:Object(s["a"])()},url:l,responseType:"blob"};"post"==c.method?c.data=e.params:c.params=e.params,t.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),a()(r()(c)).then((function(n){var a=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(a).text();s.then((function(n){if(-1!=n.indexOf("code")){var s=JSON.parse(n);if(403==s.code)return t.$message.error("登录过期,请重新登录!"),void setTimeout((function(){t.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==s.code?t.$message.success(s.msg):t.$message.error(s.msg),o&&o()}else{var i=URL.createObjectURL(a),l=document.createElement("a"),r=e.fileName||"导出文件.xls";l.href=i,l.setAttribute("download",r),document.body.appendChild(l),l.click(),o&&o()}})),i["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},ae1f:function(t,e,n){"use strict";n("7e80")},aeb2:function(t,e,n){"use strict";n("f5dc")},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("save-form",{ref:"saveForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search}},[n("el-form-item",{attrs:{prop:"organId"}},[n("el-select",{staticClass:"multiple",attrs:{clearable:"",filterable:"",placeholder:"请选择分部"},on:{change:t.search},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.specialList,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1)],1),t._v(" "),n("p",{staticStyle:{"margin-bottom":"20px","font-size":"14px"}},[t._v("\n 共"+t._s(t.tableList.length)+"个分部\n ")]),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"},sortable:"custom"},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:"学员总数"},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(" "),1==t.tenantId?n("el-table-column",{attrs:{align:"center",prop:"targetNum",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("\n 进行中非会员乐团-已上乐团课小于等于4节学员-非本活动购买会员-弦乐声部学员\n ")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}}],null,!1,2568114604)}):t._e(),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"cloudStudyLivelyStudentNum",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("近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:{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:"newStudentNum",label:"新用户人数"}},[n("template",{slot:"header"},[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("乐团在读学员已上课程≤4节")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)])],2),t._v(" "),n("el-table-column",{attrs:{sortable:"custom",align:"center",prop:"newStudentDuty",label:"新用户占比"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.newStudentDuty)+"%\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"newCloudStudyStudentNum",label:"新增使用人数",width:"130px"},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:"cloudStudyUseStudentDuty",label:"使用比例",sortable:"custom",width:"140px"},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:{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",align:"center",prop:"vipStudentDuty",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.vipStudentDuty)+"%")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("auth",{attrs:{auths:"/organDateDetail"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.gotoDetail(e.row)}}},[t._v("详情")])],1)],1)]}}])})],1)],1)],1)},a=[],s=n("5530"),i=n("c7eb"),l=(n("96cf"),n("1da1")),r=n("446b"),c=n("333d"),u=n("adb21"),p=n("5a0c"),d=n.n(p),f=n("4328"),m=n.n(f),v=n("8179"),h={components:{headers:r["a"],pagination:c["a"]},data:function(){return{tableList:[],searchList:{cloudStudyUseStudentDuty:"DESC"},searchForm:{},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},date:"",specialList:[],tenantId:""}},mounted:function(){var t=Object(l["a"])(Object(i["a"])().mark((function t(){var e,n;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.date=d()(new Date).subtract(1,"day").format("YYYY-MM-DD"),t.next=3,this.$store.dispatch("setBranchs");case 3:n=[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==n.indexOf(t.id)})),null!==(e=this.$route.params)&&void 0!==e&&e.organId&&(this.searchForm.organId=this.$route.params.organId),this.getList(),this.tenantId=this.$helpers.tenantId;case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{getList:function(){var t=Object(l["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(v["w"])(Object(s["a"])(Object(s["a"])({},this.searchList),{},{rows:999,page:1,organIds:this.searchForm.organId}));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}(),search:function(){this.getList()},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(s["a"])(Object(s["a"])({},this.searchForm),{},{date:this.date});Object(u["a"])(this,{url:"/api-web/export/cloudStudyStudentOverView",fileName:"分部学练宝数据排行.xls",method:"post",params:m.a.stringify(t)},"您确定导出分部学练宝数据排行?")},goback:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/workbench?tabrouter=cloudDate"})},gotoDetail:function(t){this.$router.push({name:"organDateDetail",params:{organId:t.organId}})}}},b=h,g=(n("aeb2"),n("2877")),_=Object(g["a"])(b,o,a,!1,null,"048a58c9",null);e["default"]=_.exports},f5dc:function(t,e,n){}}]);