1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a52c501"],{"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(),r=t-i,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var s=Math.easeInOutQuad(c,i,r,e);a(s),c<e?o(t):n&&"function"===typeof n&&n()};u()}},5781:function(t,e,n){"use strict";n("9989")},7356: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:"m-core"},[n("save-form",{ref:"saveForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[n("el-form-item",{attrs:{prop:"organId"}},[n("el-select",{staticClass:"multiple",attrs:{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),t._v(" "),n("el-form-item",[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/organTeacherMemberStudentData",expression:"'export/organTeacherMemberStudentData'"}],attrs:{type:"primary"},on:{click:t.organDateExport}},[t._v("导出")])],1)],1),t._v(" "),t.noTeacherStudentNum>0?n("a",{staticClass:"msg",on:{click:t.gotoStudentList}},[t._v("查看当前分部没有关联指导老师的学生")]):t._e(),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"teacherName",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(" "),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("\n 指导老师关联的截止目前使用学练宝的总人数\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:"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:{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("\n 指导老师关联的生效中、待生效付费会员总数\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:"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:"studentId",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.gotoDetail(e.row)}}},[t._v("详情")])],1)]}}])})],1),t._v(" "),n("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),t._v(" "),t.studentVisible?n("el-dialog",{attrs:{title:"分部数据",visible:t.studentVisible,width:"1100px"},on:{"update:visible":function(e){t.studentVisible=e}}},[n("organStudentDetail")],1):t._e()],1)],1)},a=[],s=n("5530"),i=n("c7eb"),r=(n("96cf"),n("1da1")),l=(n("bc3a"),n("5f87"),n("333d")),c=(n("3908"),n("adb21")),u=n("8179"),p=n("4328"),d=n.n(p),m={name:"organDateDetail",components:{pagination:l["a"]},data:function(){return{searchForm:{organId:null},tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},studentVisible:!1,noTeacherStudentNum:0,specialList:[]}},created:function(){},mounted:function(){var t=Object(r["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 t.next=2,this.$store.dispatch("setBranchs");case 2: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.init();case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{init:function(){this.getList()},getList:function(){var t=Object(r["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(u["x"])({organId:this.searchForm.organId,page:this.rules.page,rows:this.rules.limit});case 3:e=t.sent,this.tableList=e.data.rows,this.rules.total=e.data.total,this.noTeacherStudentNum=e.data.statInfo.noTeacherStudentNum,this.$refs.saveForm.save(),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),console.log(t.t0);case 13:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){},gotoDetail:function(t){this.$router.push({name:"studentList",params:{teacherId:t.teacherId}})},gotoStudentList:function(){this.$router.push({name:"studentList",params:{hasTeacher:"0",organId:this.searchForm.organId}})},goback:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/workbench?tabrouter=cloudDate"})},organDateExport:function(){var t=Object(s["a"])({},this.searchForm);Object(c["a"])(this,{url:"/api-web/export/organTeacherMemberStudentData",fileName:"分部学练宝数据详情.xls",method:"post",params:d.a.stringify(t)},"您确定导出分部学练宝数据详情列表?")}}},f=m,h=(n("5781"),n("2877")),v=Object(h["a"])(f,o,a,!1,null,"78ae3fd6",null);e["default"]=v.exports},9989: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"),r=n("e3eb"),l=n.n(r),c=function(t,e,n,o){var r=e.url,c={method:e.method?e.method:"get",headers:{Authorization:Object(s["b"])(),tenantId:Object(s["a"])()},url:r,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()(l()(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),r=document.createElement("a"),l=e.fileName||"导出文件.xls";r.href=i,r.setAttribute("download",l),document.body.appendChild(r),r.click(),o&&o()}})),i["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}}}]);
|