1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2751bcc3"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,a){var i=o(),l=e-i,s=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=s;var o=Math.easeInOutQuad(c,i,l,t);n(o),c<t?r(e):a&&"function"===typeof a&&a()};u()}},"333d":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},n=[],o=(a("c5f6"),a("09f4")),i={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},l=i,s=(a("c0b9"),a("2877")),c=Object(s["a"])(l,r,n,!1,null,"31cb099a",null);t["a"]=c.exports},c0b9:function(e,t,a){"use strict";var r=a("de4e"),n=a.n(r);n.a},d420:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"学生姓名 编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.organList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"老师姓名",clearable:"",filterable:""},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"参与运营指标",clearable:""},model:{value:e.searchForm.operatingTag,callback:function(t){e.$set(e.searchForm,"operatingTag",t)},expression:"searchForm.operatingTag"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"有线上vip课",clearable:""},model:{value:e.searchForm.hasVip,callback:function(t){e.$set(e.searchForm,"hasVip",t)},expression:"searchForm.hasVip"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"参与免费网管课",clearable:""},model:{value:e.searchForm.hasFreePractice,callback:function(t){e.$set(e.searchForm,"hasFreePractice",t)},expression:"searchForm.hasFreePractice"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"有付费网管课",clearable:""},model:{value:e.searchForm.hasBuyPractice,callback:function(t){e.$set(e.searchForm,"hasBuyPractice",t)},expression:"searchForm.hasBuyPractice"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"有乐团网管课",clearable:""},model:{value:e.searchForm.hasMusicNetWork,callback:function(t){e.$set(e.searchForm,"hasMusicNetWork",t)},expression:"searchForm.hasMusicNetWork"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/operatingStudents",expression:"'export/operatingStudents'"}],staticStyle:{background:"#14928a",border:"1px solid #14928a"},attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"operatingTag",label:"参与运营指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.operatingTag?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"vipTimes",label:"有线上vip课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.vipTimes?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"freePracticeTimes",label:"参与免费网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.freePracticeTimes?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyPracticeTimes",label:"有付费网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.buyPracticeTimes?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyPracticeTimes",label:"有乐团网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.musicNetWorkTimes?"是":"否"))])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1)])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("运营指标\n ")])}],o=(a("386d"),a("bc3a")),i=a.n(o),l=a("5f87"),s=a("333d"),c=a("3908"),u=a("1cc7"),p=a("dc1e"),d={components:{pagination:s["a"]},data:function(){return{searchForm:{search:null,organId:null,teacherId:null,hasBuyPractice:null,hasFreePractice:null,hasVip:null,operatingTag:null,hasMusicNetWork:null},teacherList:[],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},activated:function(){this.init()},mounted:function(){var e=this;Object(u["ob"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),Object(u["R"])().then((function(t){200==t.code&&(e.organList=t.data)})),this.init()},methods:{init:function(){this.$route.query.teacherId&&(this.searchForm.teacherId=this.$route.query.teacherId),this.$route.query.operatingTag&&(this.searchForm.operatingTag=this.$route.query.operatingTag),this.getList()},getList:function(){var e=this,t=this.getDate();Object(p["c"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,organId:null,teacherId:null,hasBuyPractice:null,hasFreePractice:null,hasVip:null,operatingTag:null},this.search()},onExport:function(){var e=this,t="/api-web/export/operatingStudents",a=this.getDate(),r={method:"get",headers:{Authorization:Object(l["a"])()},url:t,params:a,responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){c["a"].startLoading(),i()(r).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(t){if(-1!=t.indexOf("code")){var r=JSON.parse(t);e.$message.error(r.msg)}else{var n=URL.createObjectURL(a),o=document.createElement("a"),i=new Date,l=i.getFullYear()+""+(i.getMonth()+1)+i.getDate()+i.getHours()+i.getMinutes(),s=l+"学员列表(运营)";o.href=n,o.setAttribute("download",s),document.body.appendChild(o),o.click()}})),c["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),c["a"].endLoading()}))})).catch((function(){}))},getDate:function(){var e={search:this.searchForm.search||null,organId:this.searchForm.organId||null,teacherId:this.searchForm.teacherId||null,hasBuyPractice:this.searchForm.hasBuyPractice||null,hasFreePractice:this.searchForm.hasFreePractice||null,hasVip:this.searchForm.hasVip||null,operatingTag:this.searchForm.operatingTag||null,page:this.rules.page,rows:this.rules.limit,hasMusicNetWork:this.searchForm.hasMusicNetWork||null};return e}}},h=d,m=a("2877"),g=Object(m["a"])(h,r,n,!1,null,"53601100",null);t["default"]=g.exports},dc1e:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return i})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return s}));var r=a("b775"),n=(a("4328"),"/api-web");function o(e){return Object(r["a"])({url:n+"/studentManage/getOperatingStudents",method:"GET",params:e})}function i(e){return Object(r["a"])({url:n+"/teacherCourseReward/queryPage",method:"GET",params:e})}function l(e){return Object(r["a"])({url:n+"/exercisesSituation/findServiceStudentDetail",method:"GET",params:e})}function s(e){return Object(r["a"])({url:n+"/exercisesSituation/findStudentHomeworkComments",method:"GET",params:e})}},de4e:function(e,t,a){}}]);
|