chunk-71d25698.986564d8.js 32 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-71d25698"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",function(){return o}),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,r){var o=s(),u=e-o,i=20,l=0;t="undefined"===typeof t?500:t;var c=function e(){l+=i;var s=Math.easeInOutQuad(l,o,u,t);a(s),l<t?n(e):r&&"function"===typeof r&&r()};c()}},4644:function(e,t,r){},5137:function(e,t,r){"use strict";r.d(t,"q",function(){return u}),r.d(t,"h",function(){return i}),r.d(t,"d",function(){return l}),r.d(t,"g",function(){return c}),r.d(t,"f",function(){return d}),r.d(t,"i",function(){return p}),r.d(t,"c",function(){return m}),r.d(t,"w",function(){return f}),r.d(t,"r",function(){return g}),r.d(t,"v",function(){return h}),r.d(t,"p",function(){return b}),r.d(t,"u",function(){return v}),r.d(t,"m",function(){return y}),r.d(t,"o",function(){return w}),r.d(t,"a",function(){return _}),r.d(t,"j",function(){return j}),r.d(t,"b",function(){return O}),r.d(t,"t",function(){return F}),r.d(t,"l",function(){return I}),r.d(t,"z",function(){return k}),r.d(t,"y",function(){return T}),r.d(t,"n",function(){return S}),r.d(t,"s",function(){return x}),r.d(t,"A",function(){return C}),r.d(t,"x",function(){return q}),r.d(t,"e",function(){return L}),r.d(t,"B",function(){return $}),r.d(t,"C",function(){return N}),r.d(t,"k",function(){return P});var n=r("b775"),a=r("4328"),s=r.n(a),o="/api-web";function u(e){return Object(n["a"])({url:o+"/studentManage/queryStudentList",method:"get",params:e})}function i(e){return Object(n["a"])({url:o+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function l(e){return Object(n["a"])({url:o+"/studentManage/findStudentBaseInfo",method:"get",params:e})}function c(e){return Object(n["a"])({url:o+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function d(e){return Object(n["a"])({url:o+"/studentManage/findStudentCourses",method:"get",params:e})}function p(e){return Object(n["a"])({url:o+"/studentManage/findStudentVipGroups",method:"get",params:e})}function m(e){return Object(n["a"])({url:o+"/studentManage/findStudentAttendances",method:"get",params:e})}function f(e){return Object(n["a"])({url:o+"/studentWithdraw/queryPage",method:"get",params:e})}function g(e){return Object(n["a"])({url:o+"/studentManage/queryStudentPayment",method:"get",params:e})}function h(e){return Object(n["a"])({url:o+"/order/queryPage",method:"get",params:e})}function b(e){return Object(n["a"])({url:o+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function v(e){return Object(n["a"])({url:o+"/studentRegistration/batchUpdateSubject",method:"post",data:s.a.stringify(e)})}function y(e){return Object(n["a"])({url:o+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function w(e){return Object(n["a"])({url:o+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function _(e){return Object(n["a"])({url:o+"/studentRegistration/insertStudent",method:"POST",data:e})}function j(e){return Object(n["a"])({url:o+"/classGroupStudent/findAllStudent",method:"POST",data:s.a.stringify(e)})}function O(e){return Object(n["a"])({url:o+"/classGroupStudent/addStudents",method:"POST",data:s.a.stringify(e)})}function F(e){return Object(n["a"])({url:o+"/classGroupStudent/del",method:"POST",data:s.a.stringify(e)})}function I(e){return Object(n["a"])({url:o+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function k(e){return Object(n["a"])({url:o+"/userCashAccount/updateCourseBalance",method:"post",data:s.a.stringify(e)})}function T(e){return Object(n["a"])({url:o+"/userCashAccount/updateBalance",method:"post",data:s.a.stringify(e)})}function S(e){return Object(n["a"])({url:o+"/studentManage/queryUserByPhone",method:"get",params:e})}function x(e){return Object(n["a"])({url:o+"/studentManage/register",method:"post",data:s.a.stringify(e)})}function C(e){return Object(n["a"])({url:o+"/studentManage/studentUpdate",method:"post",data:s.a.stringify(e)})}function q(e){return Object(n["a"])({url:o+"/userCashAccount/transferCourseBalanceToBalance",method:"post",data:s.a.stringify(e)})}function L(e){return Object(n["a"])({url:o+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function $(e){return Object(n["a"])({url:o+"/userCashAccountDetail/queryPage",method:"get",params:e})}function N(e){return Object(n["a"])({url:o+"/userCoursesAccount/queryPage",method:"get",params:e})}function P(e){return Object(n["a"])({url:o+"/sysUserContracts/getLatest",method:"get",params:e})}},6807:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("div",{directives:[{name:"permission",rawName:"v-permission",value:"studentManage/register",expression:"'studentManage/register'"}],staticClass:"newBand",on:{click:e.addStudent}},[e._v("新增学员")]),e._v(" "),r("div",{staticClass:"newBand",on:{click:e.onCreateQRCode}},[e._v("学员激活列表")]),e._v(" "),r("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[r("el-form-item",[r("el-input",{attrs:{placeholder:"学生姓名或电话"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(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(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),r("el-form-item",[r("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 r("el-option",{key:t,attrs:{label:e.realName,value:e.id}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"isActive"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"是否激活"},model:{value:e.searchForm.isActive,callback:function(t){e.$set(e.searchForm,"isActive","string"===typeof t?t.trim():t)},expression:"searchForm.isActive"}},[r("el-option",{attrs:{label:"是",value:"true"}}),e._v(" "),r("el-option",{attrs:{label:"否",value:"false"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"hasCourse"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"是否运营"},model:{value:e.searchForm.operatingTag,callback:function(t){e.$set(e.searchForm,"operatingTag","string"===typeof t?t.trim():t)},expression:"searchForm.operatingTag"}},[r("el-option",{attrs:{label:"是",value:1}}),e._v(" "),r("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"hasCourse"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"是否服务"},model:{value:e.searchForm.serviceTag,callback:function(t){e.$set(e.searchForm,"serviceTag","string"===typeof t?t.trim():t)},expression:"searchForm.serviceTag"}},[r("el-option",{attrs:{label:"是",value:1}}),e._v(" "),r("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.onSearch}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/studentHasCourse",expression:"'export/studentHasCourse'"}],attrs:{type:"primary"},on:{click:e.downLoadStudent}},[e._v("导出名单")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"username",label:"学员姓名"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"指导老师"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.gender?"男":"女"))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"realName",label:"家长姓名"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",width:"120px",prop:"parentsPhone",label:"家长联系电话"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"是否激活"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isActive?"是":"否"))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"未上课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.hasCourse?"有":"无"))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"是否有网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.hasPracticeCourse?"是":"否"))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"是否运营"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.operatingTag?"是":"否"))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"是否服务"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.serviceTag?"是":"否"))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"courseBalance",label:"课程余额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.courseBalance))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",fixed:"right",width:"180px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("router-link",{directives:[{name:"permission",rawName:"v-permission",value:"/studentDetail",expression:"'/studentDetail'"}],staticStyle:{color:"#409EFF","padding-right":"10px"},attrs:{to:{path:"/business/studentDetail?userId="+t.row.userId,query:{search:JSON.stringify(e.searchForm),rules:JSON.stringify(e.pageInfo),studentName:t.row.username}}}},[e._v("查看")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentManage/studentUpdate",expression:"'studentManage/studentUpdate'"}],attrs:{type:"text"},on:{click:function(r){return e.resetStudent(t.row)}}},[e._v("修改")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"api-auth/user/updatePassword2",expression:"'api-auth/user/updatePassword2'"}],attrs:{type:"text"},on:{click:function(r){return e.resetPassWrod(t.row)}}},[e._v("修改密码")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysUserContracts/getLatest",expression:"'sysUserContracts/getLatest'"}],attrs:{type:"text"},on:{click:function(r){return e.lookContracts(t.row)}}},[e._v("下载协议")])]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),r("el-dialog",{staticClass:"studentInfo",attrs:{title:e.maskName,width:"700px","label-position":"right","close-on-click-modal":!1,visible:e.studentVisible},on:{close:function(t){return e.onMaskClose("studentForm")},"update:visible":function(t){e.studentVisible=t}}},[r("el-divider",[e._v("基本信息")]),e._v(" "),r("el-form",{ref:"studentForm",attrs:{model:e.studentForm,inline:!0,"label-width":"120px","label-position":"right",rules:e.studentRules}},[r("el-form-item",{attrs:{label:"联系电话",prop:"phone",rules:[{required:!0,message:"请输入手机号"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}]}},[r("el-input",{model:{value:e.studentForm.phone,callback:function(t){e.$set(e.studentForm,"phone","string"===typeof t?t.trim():t)},expression:"studentForm.phone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"所属分部",prop:"organId"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},on:{change:e.changeStudentOrgan},model:{value:e.studentForm.organId,callback:function(t){e.$set(e.studentForm,"organId","string"===typeof t?t.trim():t)},expression:"studentForm.organId"}},e._l(e.organList,function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"学生姓名",prop:"name"}},[r("el-input",{model:{value:e.studentForm.name,callback:function(t){e.$set(e.studentForm,"name","string"===typeof t?t.trim():t)},expression:"studentForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"学生性别",prop:"sex"}},[r("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择性别"},model:{value:e.studentForm.sex,callback:function(t){e.$set(e.studentForm,"sex","string"===typeof t?t.trim():t)},expression:"studentForm.sex"}},[r("el-option",{attrs:{value:1,label:"男"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"女"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"学生声部",prop:"subjectIdList"}},[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"学员声部"},model:{value:e.studentForm.subjectIdList,callback:function(t){e.$set(e.studentForm,"subjectIdList","string"===typeof t?t.trim():t)},expression:"studentForm.subjectIdList"}},e._l(e.subjectList,function(t){return r("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"是否运营",prop:"operatingTag"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:""},model:{value:e.studentForm.operatingTag,callback:function(t){e.$set(e.studentForm,"operatingTag","string"===typeof t?t.trim():t)},expression:"studentForm.operatingTag"}},[r("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"否"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"是否服务",prop:"serviceTag"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:""},model:{value:e.studentForm.serviceTag,callback:function(t){e.$set(e.studentForm,"serviceTag","string"===typeof t?t.trim():t)},expression:"studentForm.serviceTag"}},[r("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"否"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"指导老师",prop:"teacherId"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:"",filterable:""},model:{value:e.studentForm.teacherId,callback:function(t){e.$set(e.studentForm,"teacherId","string"===typeof t?t.trim():t)},expression:"studentForm.teacherId"}},e._l(e.maskTeacherList,function(e,t){return r("el-option",{key:t,attrs:{label:e.realName,value:e.id}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"家长姓名",prop:"parseName"}},[r("el-input",{model:{value:e.studentForm.parseName,callback:function(t){e.$set(e.studentForm,"parseName","string"===typeof t?t.trim():t)},expression:"studentForm.parseName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"出生日期",prop:"date"}},[r("el-date-picker",{staticStyle:{width:"185px"},attrs:{"value-format":"yyyy-MM-dd",type:"date","picker-options":{firstDayOfWeek:1},placeholder:"选择日期"},model:{value:e.studentForm.date,callback:function(t){e.$set(e.studentForm,"date","string"===typeof t?t.trim():t)},expression:"studentForm.date"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.studentVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?r("el-button",{attrs:{type:"primary"},on:{click:e.submitAddStudent}},[e._v("确 定")]):e._e(),e._v(" "),e.isNew?e._e():r("el-button",{attrs:{type:"primary"},on:{click:e.resetStudentSubmie}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{visible:e.qrcodeStatus,center:"",width:"300px"},on:{"update:visible":function(t){e.qrcodeStatus=t}}},[r("div",{staticClass:"right-code"},[r("h2",{staticClass:"title"},[e._v("学员激活列表")]),e._v(" "),r("div",{ref:"qrCodeUrl",staticClass:"qrcode code",attrs:{id:"qrcode"}})])]),e._v(" "),r("el-dialog",{attrs:{title:"修改密码",visible:e.passwrodVisiable,"before-close":e.closePassWord,width:"400px"},on:{"update:visible":function(t){e.passwrodVisiable=t}}},[r("el-form",{ref:"passwrodForm",attrs:{model:e.passwrodForm,inline:!0}},[r("el-form-item",{attrs:{label:"手机号",prop:"phone","label-width":"120px",rules:[{required:!0,message:"手机号不能为空",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}]}},[r("el-input",{model:{value:e.passwrodForm.phone,callback:function(t){e.$set(e.passwrodForm,"phone","string"===typeof t?t.trim():t)},expression:"passwrodForm.phone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"输入密码",prop:"password","label-width":"120px",rules:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^[\w]{6,20}$/,message:"密码为6-20位",trigger:"blur"}]}},[r("el-input",{model:{value:e.passwrodForm.password,callback:function(t){e.$set(e.passwrodForm,"password","string"===typeof t?t.trim():t)},expression:"passwrodForm.password"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"再次输入",prop:"password2","label-width":"120px",rules:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^[\w]{6,20}$/,message:"密码为6-20位",trigger:"blur"}]}},[r("el-input",{model:{value:e.passwrodForm.password2,callback:function(t){e.$set(e.passwrodForm,"password2","string"===typeof t?t.trim():t)},expression:"passwrodForm.password2"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.passwrodVisiable=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitResetPassWord}},[e._v("确 定")])],1)],1)],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("学员列表\n ")])}],s=(r("c5f6"),r("ac6a"),r("96cf"),r("3b8d")),o=(r("7f7f"),r("3b2b"),r("386d"),r("333d")),u=r("5137"),i=(r("e3eb"),r("61f7")),l=r("1cc7"),c=r("d349"),d=r("d044"),p=r.n(d),m=(r("4360"),r("bc3a")),f=r.n(m),g=r("4328"),h=r.n(g),b=r("5f87"),v=r("3908"),y=(r("ec8a"),{name:"studentList",components:{pagination:o["a"]},data:function(){return{studentVisible:!1,searchForm:{organId:null,search:null,studentName:null,isActive:null,hasCourse:null,hasPracticeCourse:null,operatingTag:null,serviceTag:null,teacherId:null},searchList:[],tableList:[],organList:[],teacherList:[],maskTeacherList:[],subjectList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},studentForm:{phone:"",organId:"",name:"",sex:"",parseName:"",date:"",serviceTag:null,operatingTag:null,teacherId:null,subjectIdList:null},studentRules:{name:[{required:!0,message:"请输入学生姓名"}],sex:[{required:!0,message:"请选择学生性别"}],date:[{required:!0,message:"请选择出生日期"}],organId:[{required:!0,message:"请选择分部"}],subjectIdList:[{required:!0,message:"请选择声部"}],serviceTag:[{required:!0,message:"请选择是否参与服务"}],operatingTag:[{required:!0,message:"请选择是否参与运营"}],teacherId:[{required:!0,message:"请选择指导老师"}]},isNew:!1,active:null,maskName:"新增学员",qrcodeStatus:!1,qrcodes:!0,activeRow:null,passwrodVisiable:!1,passwrodForm:{phone:"",password:"",password2:""},activatedRow:null}},mounted:function(){var e=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(l["U"])().then(function(t){200==t.code&&(e.organList=t.data)}),Object(l["ub"])().then(function(t){200==t.code&&(e.teacherList=t.data)}),this.getList()},methods:{onSearch:function(){this.pageInfo.page=1,this.getList()},onCreateQRCode:function(){var e=this;this.qrcodeStatus=!0,setTimeout(function(){e.qrcodes&&(e.qrcodes=!1,e.qrcode=new p.a("qrcode",{width:250,height:250,colorDark:"#000000",colorLight:"#ffffff",correctLevel:p.a.CorrectLevel.H})),e.qrcode.clear(),e.qrcode.makeCode(Object(i["d"])()+"/#/queryStudentPer")},500)},getList:function(){var e=this,t=this.searchForm;t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,t.organId?t.organId:t.organId=null,Object(u["q"])(t).then(function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)})},onReSet:function(){this.searchForm={organId:null,search:null,studentName:null,isActive:null,hasCourse:null,hasPracticeCourse:null,operatingTag:null,serviceTag:null,teacherId:null}},downLoadStudent:function(){var e=this,t="/api-web/export/studentHasCourse",r=this.searchForm,n={organId:r.organId?r.organId:null,search:r.search?r.search:null,isActive:r.isActive?r.isActive:null,hasCourse:""==r.hasCourse?null:r.hasCourse,hasPracticeCourse:r.hasPracticeCourse?r.hasPracticeCourse:null,operatingTag:r.operatingTag?r.operatingTag:null,serviceTag:r.serviceTag?r.serviceTag:null,teacherId:r.teacherId?r.teacherId:null},a={method:"POST",headers:{Authorization:Object(b["a"])()},url:t,data:h.a.stringify(n),responseType:"blob"};this.$confirm("确定导出学员名单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){v["a"].startLoading(),f()(a).then(function(t){var r=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(r).text();n.then(function(t){if(-1!=t.indexOf("code")){var n=JSON.parse(t);e.$message.error(n.msg)}else{var a=URL.createObjectURL(r),s=document.createElement("a"),o=new Date,u=o.getFullYear()+(o.getMonth()+1)+o.getDate(),i="导出学员名单"+u+".xlsx";s.href=a,s.setAttribute("download",i),document.body.appendChild(s),s.click()}}),v["a"].endLoading()}).catch(function(t){e.$message.error("导出数据失败,请联系管理员"),v["a"].endLoading()})}).catch(function(){})},checkPhone:function(e){var t=this,r=/^1[3456789]\d{9}$/,n=new RegExp(r);n.test(e)&&Object(u["n"])({mobile:this.studentForm.phone}).then(function(r){200==r.code&&r.data&&(t.studentForm={name:r.data.name,sex:r.data.gender,parseName:r.data.parentsName,phone:e,date:r.data.birthdate})})},submitAddStudent:function(){var e=this,t=this.studentForm;this.$refs["studentForm"].validate(function(r){if(r){var n={phone:t.phone,username:t.name,gender:t.sex,realName:t.parseName,birthdate:t.date,organId:t.organId,serviceTag:t.serviceTag,operatingTag:t.operatingTag,teacherId:t.teacherId,subjectIdList:t.subjectIdList};Object(u["s"])(n).then(function(t){200==t.code&&(e.$message.success("添加成功"),e.studentVisible=!1,e.getList())})}})},resetStudentSubmie:function(){var e=this,t=this.studentForm;this.$refs["studentForm"].validate(function(r){if(r){var n={phone:t.phone,username:t.name,gender:t.sex,realName:t.parseName,birthdate:t.date,organId:t.organId,id:e.active.userId,serviceTag:t.serviceTag,operatingTag:t.operatingTag,teacherId:t.teacherId,subjectIdList:t.subjectIdList};Object(u["A"])(n).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.studentVisible=!1,e.getList())})}})},getSubjectList:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(c["z"])({delFlag:0,tenantId:1,rows:9999}).then(function(e){var r=e.data;if(200==e.code){var n=[];r.rows.forEach(function(e,t){var r=[];e.subjects.forEach(function(e){r.push({value:e.id,label:e.name})}),n[t]={label:e.name,options:r}}),t.subjectList=n}});case 2:case"end":return e.stop()}},e)}));function t(){return e.apply(this,arguments)}return t}(),addStudent:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getSubjectList();case 2:this.isNew=!0,this.studentVisible=!0,this.maskName="新增学员";case 5:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),resetStudent:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(t){var r=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t.organId,e.next=3,this.getSubjectList();case 3:return e.next=5,this.changeStudentOrgan(t.organId);case 5:this.isNew=!1,this.active=t,this.studentVisible=!0,this.maskName="修改学员",this.$nextTick(function(){r.studentForm={phone:t.parentsPhone||null,name:t.username||null,sex:t.gender,parseName:t.realName||null,date:t.birthdate||null,organId:t.organId||null,serviceTag:t.serviceTag,operatingTag:t.operatingTag,teacherId:t.teacherId||null,subjectIdList:Number(t.subjectIdList)||null}});case 10:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),onMaskClose:function(e){this.$refs[e].resetFields()},resetPassWrod:function(e){this.activatedRow=e,this.passwrodForm.phone=e.parentsPhone,this.passwrodVisiable=!0},closePassWord:function(){this.activatedRow=null,this.passwrodForm={phone:"",password:"",password2:""},this.$refs["passwrodForm"].resetFields(),this.passwrodVisiable=!1},submitResetPassWord:function(){var e=this;this.passwrodForm.password===this.passwrodForm.password2?this.$refs["passwrodForm"].validate(function(t){t&&Object(l["bc"])({mobile:e.passwrodForm.phone,newPassword:e.passwrodForm.password,userId:e.activatedRow.userId}).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.closePassWord())})}):this.$message.error("两次密码必须相同")},changeStudentOrgan:function(){var e=Object(s["a"])(regeneratorRuntime.mark(function e(t){var r=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.studentForm.teacherId=null,e.next=3,Object(l["ub"])({organId:t}).then(function(e){200==e.code&&(r.maskTeacherList=e.data)});case 3:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),lookContracts:function(e){Object(u["k"])({userId:e.userId}).then(function(e){200==e.code&&window.open(e.data.url)})}}}),w=y,_=(r("ad6c"),r("2877")),j=Object(_["a"])(w,n,a,!1,null,"4ab6d262",null);t["default"]=j.exports},a8db:function(e,t,r){"use strict";var n=r("e265"),a=r.n(n),s=r("a4bb"),o=r.n(s);function u(e,t){if(null==e)return{};var r,n,a={},s=o()(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function i(e,t){if(null==e)return{};var r,n,s=u(e,t);if(a.a){var o=a()(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}r.d(t,"a",function(){return i})},ad6c:function(e,t,r){"use strict";var n=r("4644"),a=r.n(n);a.a},d349:function(e,t,r){"use strict";r.d(t,"d",function(){return l}),r.d(t,"c",function(){return c}),r.d(t,"e",function(){return d}),r.d(t,"b",function(){return p}),r.d(t,"p",function(){return m}),r.d(t,"z",function(){return f}),r.d(t,"A",function(){return g}),r.d(t,"g",function(){return h}),r.d(t,"k",function(){return b}),r.d(t,"f",function(){return v}),r.d(t,"l",function(){return y}),r.d(t,"s",function(){return w}),r.d(t,"q",function(){return _}),r.d(t,"r",function(){return j}),r.d(t,"h",function(){return O}),r.d(t,"i",function(){return F}),r.d(t,"n",function(){return I}),r.d(t,"j",function(){return k}),r.d(t,"t",function(){return T}),r.d(t,"B",function(){return S}),r.d(t,"m",function(){return x}),r.d(t,"u",function(){return C}),r.d(t,"x",function(){return q}),r.d(t,"v",function(){return L}),r.d(t,"w",function(){return $}),r.d(t,"o",function(){return N}),r.d(t,"a",function(){return P}),r.d(t,"y",function(){return M});var n=r("a8db"),a=r("b775"),s=r("829b"),o=r("4328"),u=r.n(o),i="/api-web";function l(e){return Object(a["a"])({url:i+"/organization/queryPage",method:"get",params:e})}function c(e){return Object(a["a"])({url:i+"/organization/add",method:"post",data:u.a.stringify(e)})}function d(e){return Object(a["a"])({url:i+"/organization/update",method:"post",data:u.a.stringify(e)})}function p(e){return Object(a["a"])({url:i+"/area/queryChild",method:"get",params:e})}function m(e){return Object(a["a"])({url:i+"/area/getParentArea/".concat(e.id),method:"get"})}function f(e){return Object(a["a"])({url:i+"/subject/queryPageTree",method:"get",params:e})}function g(e){return Object(a["a"])({url:i+"/subject/upset",method:"post",data:e})}function h(e){return Object(a["a"])({url:i+"/chargeType/queryPage",method:"get",params:e})}function b(e){return Object(a["a"])({url:i+"/chargeType/upSet",method:"post",data:e})}function v(e){return Object(a["a"])({url:i+"/chargeType/del/".concat(e),method:"post"})}function y(e){return Object(a["a"])({url:i+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function w(e){return Object(a["a"])({url:i+"/courseHomeworkTemplate/update",method:"post",data:u.a.stringify(e)})}function _(e){return Object(a["a"])({url:i+"/courseHomeworkTemplate/add",method:"post",data:u.a.stringify(e)})}function j(e){return Object(a["a"])({url:i+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function O(e){return Object(a["a"])({url:i+"/chargeTypeOrganizationFee/add",method:"post",data:u.a.stringify(e)})}function F(e){return Object(a["a"])({url:i+"/chargeTypeOrganizationFee/update",method:"post",data:u.a.stringify(e)})}function I(e){return Object(a["a"])({url:i+"/employee/findEducationTeacher",method:"get",params:e})}function k(e){return Object(s["a"])({url:i+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function T(e){return Object(s["a"])({url:i+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function S(e){return Object(s["a"])({url:i+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function x(e){var t=e.id,r=Object(n["a"])(e,["id"]);return Object(s["a"])({url:i+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:r})}function C(e){return Object(s["a"])({url:i+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function q(e){return Object(s["a"])({url:i+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function L(e){return Object(s["a"])({url:i+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function $(e){return Object(s["a"])({url:i+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function N(e){return Object(s["a"])({url:i+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function P(e){return Object(s["a"])({url:i+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function M(e){return Object(s["a"])({url:i+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}},ec8a:function(e,t,r){"use strict";r.d(t,"a",function(){return n});r("6762"),r("2fdb"),r("28a5");function n(e,t){var r=window.localStorage.getItem("permission");return r=r.split(","),t=t||null,!(!r.includes(e)||t)||!(!r.includes(e)||!r.includes(t))}}}]);