chunk-4759cb55.b3dcaf7c.js 10.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4759cb55"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(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 s(t,e,a){var s=o(),i=t-s,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var o=Math.easeInOutQuad(u,s,i,e);r(o),u<e?n(t):a&&"function"===typeof a&&a()};c()}},"0bf4":function(t,e,a){},7356:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[a("el-page-header",{staticStyle:{"padding-bottom":"30px"},attrs:{content:"分部云教练数据详情"},on:{back:t.goback}}),t._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"saveForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[a("el-form-item",{attrs:{prop:"organId"}},[a("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 a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",[a("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?a("a",{staticClass:"msg",on:{click:t.gotoStudentList}},[t._v("查看当前分部没有关联指导老师的学生")]):t._e(),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:"teacherName",label:"老师姓名"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"totalStudentNum",label:"学员总数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cloudStudyUseStudentNum",label:"使用人数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cloudStudyUseStudentDuty",label:"使用人数比"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.cloudStudyUseStudentDuty)+"%")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"vipStudentNum",label:"付费会员数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"vipStudentDuty",label:"会员占比"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.vipStudentDuty)+"%")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.gotoDetail(e.row)}}},[t._v("详情")])],1)]}}])})],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),t._v(" "),t.studentVisible?a("el-dialog",{attrs:{title:"分部数据",visible:t.studentVisible,width:"1100px"},on:{"update:visible":function(e){t.studentVisible=e}}},[a("organStudentDetail")],1):t._e()],1)],1)},r=[],o=a("5530"),s=(a("96cf"),a("1da1")),i=(a("bc3a"),a("5f87"),a("333d")),l=(a("3908"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-core"},[a("el-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",{attrs:{prop:"organId"}},[a("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"}},[a("el-option",{attrs:{label:"非会员",value:"item.id"}}),t._v(" "),a("el-option",{attrs:{label:"付费会员",value:"item.id"}}),t._v(" "),a("el-option",{attrs:{label:"试用会员",value:"item.id"}})],1)],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:"studentId",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"声部"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"会员类型"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"付费会员结束时间(剩余天数)"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"试用会员结束时间(剩余天数)"}})],1),t._v(" "),a("pagination",{attrs:{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)}),u=[],c={components:{pagination:i["a"]},props:["teacherId"],data:function(){return{searchForm:{search:""},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){},methods:{getList:function(){},search:function(){},onReSet:function(){}}},d=c,p=a("2877"),m=Object(p["a"])(d,l,u,!1,null,"7701da3a",null),h=m.exports,f=a("adb21"),g=a("8179"),b=a("4328"),v=a.n(b),_={name:"organDateDetail",components:{pagination:i["a"],organStudentDetail:h},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(s["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("setBranchs");case 2:a=[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==a.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(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(g["s"])({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:"/main/main?tabrouter=cloudDate"})},organDateExport:function(){var t=Object(o["a"])({},this.searchForm);Object(f["a"])(this,{url:"/api-web/export/organTeacherMemberStudentData",fileName:"分部云教练数据详情.xls",method:"post",params:v.a.stringify(t)},"您确定导出分部云教练数据详情列表?")}}},y=_,w=(a("f084"),Object(p["a"])(y,n,r,!1,null,"17cce440",null));e["default"]=w.exports},adb21:function(t,e,a){"use strict";a.d(e,"a",(function(){return u}));var n=a("bc3a"),r=a.n(n),o=(a("4328"),a("5f87")),s=a("3908"),i=a("e3eb"),l=a.n(i),u=function(t,e,a){var n=e.url,i={method:e.method?e.method:"get",headers:{Authorization:Object(o["a"])()},url:n,responseType:"blob"};"post"==i.method?i.data=e.params:i.params=e.params,t.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s["a"].startLoading(),r()(l()(i)).then((function(a){var n=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(n).text();r.then((function(a){if(-1!=a.indexOf("code")){var r=JSON.parse(a);t.$message.error(r.msg)}else{var o=URL.createObjectURL(n),s=document.createElement("a"),i=e.fileName||"导出文件.xls";s.href=o,s.setAttribute("download",i),document.body.appendChild(s),s.click()}})),s["a"].endLoading()})).catch((function(e){t.$message.error("下载失败,请联系管理员"),s["a"].endLoading()}))})).catch((function(){}))}},f084:function(t,e,a){"use strict";a("0bf4")}}]);