chunk-f55f91f0.3ceafca9.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f55f91f0"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),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 s(e,t,a){var s=o(),l=e-s,i=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=i;var o=Math.easeInOutQuad(c,s,l,t);n(o),c<t?r(e):a&&"function"===typeof a&&a()};u()}},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("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名 编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),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.selects.branchs,(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("remote-search",{attrs:{commit:"setTeachers",isForzenWithQueryCondition:!0},model:{value:e.searchForm.teacherId,callback:function(t){e.$set(e.searchForm,"teacherId",t)},expression:"searchForm.teacherId"}})],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","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",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'"}],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:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.studentId))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.studentName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.organName))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"groupNames",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"100%",text:e.row.groupNames}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.teacherName))])],1)]}}])}),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:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"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 运营指标\n ")])}],o=(a("386d"),a("bc3a")),s=a.n(o),l=a("5f87"),i=a("333d"),c=a("3908"),u=(a("1cc7"),a("dc1e")),d={components:{pagination:i["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(){this.$store.dispatch("setBranchs"),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(u["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["b"])(),tenantId:Object(l["a"])()},url:t,params:a,responseType:"blob"};this.$confirm("您确定导出列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){c["a"].startLoading(),s()(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);if(403==r.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(r.msg)}else{var n=URL.createObjectURL(a),o=document.createElement("a"),s=new Date,l=s.getFullYear()+""+(s.getMonth()+1)+s.getDate()+s.getHours()+s.getMinutes(),i=l+"学员列表(运营).xls";o.href=n,o.setAttribute("download",i),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}}},p=d,m=a("2877"),h=Object(m["a"])(p,r,n,!1,null,"b9b8b8c2",null);t["default"]=h.exports},dc1e:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return i}));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 s(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 i(e){return Object(r["a"])({url:n+"/exercisesSituation/findStudentHomeworkComments",method:"GET",params:e})}}}]);