chunk-5ec46df2.a749952c.js 9.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ec46df2"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=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 u(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,n){var o=u(),i=t-o,s=20,c=0;e="undefined"===typeof e?500:e;var l=function t(){c+=s;var u=Math.easeInOutQuad(c,o,i,e);r(u),c<e?a(t):n&&"function"===typeof n&&n()};l()}},"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[],u=(n("c5f6"),n("09f4")),o={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(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(u["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(u["a"])(0,800)}}},i=o,s=(n("c0b9"),n("2877")),c=Object(s["a"])(i,a,r,!1,null,"31cb099a",null);e["a"]=c.exports},5137:function(t,e,n){"use strict";n.d(e,"o",(function(){return i})),n.d(e,"g",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"e",(function(){return d})),n.d(e,"h",(function(){return p})),n.d(e,"c",(function(){return f})),n.d(e,"t",(function(){return g})),n.d(e,"p",(function(){return m})),n.d(e,"s",(function(){return h})),n.d(e,"n",(function(){return b})),n.d(e,"r",(function(){return y})),n.d(e,"k",(function(){return S})),n.d(e,"m",(function(){return v})),n.d(e,"a",(function(){return O})),n.d(e,"i",(function(){return _})),n.d(e,"b",(function(){return j})),n.d(e,"q",(function(){return I})),n.d(e,"j",(function(){return k})),n.d(e,"u",(function(){return F})),n.d(e,"l",(function(){return q}));var a=n("b775"),r=n("4328"),u=n.n(r),o="/api-web";function i(t){return Object(a["a"])({url:o+"/studentManage/queryStudentList",method:"get",params:t})}function s(t){return Object(a["a"])({url:o+"/studentManage/findStudentVipGroupClass",method:"get",params:t})}function c(t){return Object(a["a"])({url:o+"/studentManage/findStudentBaseInfo",method:"get",params:t})}function l(t){return Object(a["a"])({url:o+"/studentManage/findStudentMusicGroups",method:"get",params:t})}function d(t){return Object(a["a"])({url:o+"/studentManage/findStudentCourses",method:"get",params:t})}function p(t){return Object(a["a"])({url:o+"/studentManage/findStudentVipGroups",method:"get",params:t})}function f(t){return Object(a["a"])({url:o+"/studentManage/findStudentAttendances",method:"get",params:t})}function g(t){return Object(a["a"])({url:o+"/studentWithdraw/queryPage",method:"get",params:t})}function m(t){return Object(a["a"])({url:o+"/studentManage/queryStudentPayment",method:"get",params:t})}function h(t){return Object(a["a"])({url:o+"/order/queryPage",method:"get",params:t})}function b(t){return Object(a["a"])({url:o+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:t})}function y(t){return Object(a["a"])({url:o+"/studentRegistration/batchUpdateSubject",method:"post",data:u.a.stringify(t)})}function S(t){return Object(a["a"])({url:o+"/studentRegistration/queryFeeDetail",method:"get",params:t})}function v(t){return Object(a["a"])({url:o+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:t})}function O(t){return Object(a["a"])({url:o+"/studentRegistration/insertStudent",method:"POST",data:t})}function _(t){return Object(a["a"])({url:o+"/classGroupStudent/findAllStudent",method:"POST",data:u.a.stringify(t)})}function j(t){return Object(a["a"])({url:o+"/classGroupStudent/addStudents",method:"POST",data:u.a.stringify(t)})}function I(t){return Object(a["a"])({url:o+"/classGroupStudent/del",method:"POST",data:u.a.stringify(t)})}function k(t){return Object(a["a"])({url:o+"/studentManage/queryStudentClassGroup",method:"get",params:t})}function F(t){return Object(a["a"])({url:o+"/userCashAccount/updateCourseBalance",method:"post",data:u.a.stringify(t)})}function q(t){return Object(a["a"])({url:o+"/studentManage/queryUserByPhone",method:"get",params:t})}},6807:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:t.searchForm,callback:function(e){t.searchForm=e},expression:"searchForm"}},[n("el-form-item",{attrs:{prop:"organId"}},[n("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"请选择分部"},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId",e)},expression:"searchForm.organId"}},t._l(t.organList,(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-input",{attrs:{placeholder:"学生姓名"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSearch(e)}},model:{value:t.searchForm.studentName,callback:function(e){t.$set(t.searchForm,"studentName",e)},expression:"searchForm.studentName"}})],1),t._v(" "),n("el-form-item",[n("el-input",{attrs:{placeholder:"家长联系电话"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSearch(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search",e)},expression:"searchForm.search"}})],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:t.onSearch}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"realName",label:"学员姓名"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.gender?"男":"女")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"parentsName",label:"家长姓名"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"parentsPhone",label:"家长联系电话"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"courseBalance",label:"课程余额(元)"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{staticStyle:{color:"#409EFF"},attrs:{to:{path:"/business/studentDetail?userId="+e.row.userId,query:{search:JSON.stringify(t.searchForm),rules:JSON.stringify(t.pageInfo)}}}},[t._v("查看")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1)])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("学员列表\n ")])}],u=(n("386d"),n("333d")),o=n("5137"),i=n("1cc7"),s=(n("4360"),{name:"studentList",components:{pagination:u["a"]},data:function(){return{searchForm:{organId:null,search:null,studentName:null},searchList:[],tableList:[],organList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var t=this;this.$route.query.search&&(this.$route.query.search instanceof Object?this.searchForm=this.$route.query.search:this.searchForm=JSON.parse(this.$route.query.search)),this.$route.query.rules&&(this.$route.query.rules instanceof Object?this.pageInfo=this.$route.query.rules:this.pageInfo=JSON.parse(this.$route.query.rules)),Object(i["A"])().then((function(e){200==e.code&&(t.organList=e.data)})),this.getList()},methods:{onSearch:function(){this.pageInfo.page=1,this.getList()},getList:function(){var t=this,e=this.searchForm;e.rows=this.pageInfo.limit,e.page=this.pageInfo.page,e.organId?e.organId:e.organId=null,Object(o["o"])(e).then((function(e){200==e.code&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)}))},onReSet:function(){this.searchForm={organId:null,search:null,studentName:null}}}}),c=s,l=n("2877"),d=Object(l["a"])(c,a,r,!1,null,null,null);e["default"]=d.exports},c0b9:function(t,e,n){"use strict";var a=n("de4e"),r=n.n(a);r.a},de4e:function(t,e,n){}}]);