1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6233cff4"],{"07c6":function(e,t,s){"use strict";s.r(t);var a,r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"set-container"},[s("div",{staticClass:"topWrap"},[s("h2",[s("el-page-header",{attrs:{content:e.name},on:{back:e.goBack}})],1),e._v(" "),e.isOld?s("div",{staticClass:"stepbox"},[s("span",{staticClass:"stepspan",on:{click:function(t){e.activeIndex=0}}},[s("div",{staticClass:"step1 sptep",class:e.activeIndex>=0?"activestep":""},[e._v("\n 班级设置\n ")]),e._v(" "),s("img",{staticClass:"arrow",attrs:{src:e.activeIndex>=0?e.stepImgs.nol:e.stepImgs.active,alt:""}})]),e._v(" "),s("span",{staticClass:"stepspan stepspan2",on:{click:function(t){e.activeIndex=2}}},[s("div",{staticClass:"step2 sptep",class:e.activeIndex>=2?"activestep":""},[e._v("\n 课表\n ")]),e._v(" "),s("img",{staticClass:"\n arrow",attrs:{src:e.activeIndex>=2?e.stepImgs.nol:e.stepImgs.active,alt:""}})]),e._v(" "),s("span",{directives:[{name:"permission",rawName:"v-permission",value:"/teamSetting/salarySet",expression:"'/teamSetting/salarySet'"}],staticClass:"stepspan stepspan2",on:{click:function(t){e.activeIndex=4}}},[s("div",{staticClass:"step2 sptep",class:e.activeIndex>=4?"activestep":""},[e._v("\n 课酬\n ")]),e._v(" "),s("img",{staticClass:"\n arrow",attrs:{src:e.activeIndex>=4?e.stepImgs.nol:e.stepImgs.active,alt:""}})])]):e._e()]),e._v(" "),e.isOld?s("div",{staticClass:"stepcontent"},[0==e.activeIndex?s("div",[s("classSeting",{attrs:{teamid:e.id,isSetSalary:e.isSetSalary},on:{gotoNav:e.gotoNav}})],1):e._e(),e._v(" "),1==e.activeIndex?s("div",[s("teacherSeting",{attrs:{teamid:e.id,isSetSalary:e.isSetSalary},on:{gotoNav:e.gotoNav}})],1):e._e(),e._v(" "),2==e.activeIndex?s("div",[s("div",{staticClass:"m-container"},[s("lookCourse",{attrs:{isSetSalary:e.isSetSalary},on:{gotoNav:e.gotoNav}})],1)]):e._e(),e._v(" "),3==e.activeIndex?s("div",[s("improvement",{attrs:{teamid:e.id,isSetSalary:e.isSetSalary},on:{gotoNav:e.gotoNav}})],1):e._e(),e._v(" "),4==e.activeIndex?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"/teamSetting/salarySet",expression:"'/teamSetting/salarySet'"}]},[s("salarySet",{attrs:{teamid:e.id,isSetSalary:e.isSetSalary}})],1):e._e()]):e._e(),e._v(" "),e.isOld?e._e():s("classSeting",{attrs:{teamid:e.id,isSetSalary:e.isSetSalary},on:{gotoNav:e.gotoNav}})],1)},i=[],n=(s("7f7f"),s("386d"),s("1c0e")),l=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"set-teacher"},[s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{data:e.singinList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{label:"班级名称",prop:"name",width:"160px"}}),e._v(" "),s("el-table-column",{attrs:{label:"所属合奏班",prop:"mixClassName",width:"160px"}}),e._v(" "),s("el-table-column",{attrs:{label:"主教老师",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e.teacherList?s("el-select",{attrs:{disabled:e.isSetSalary,filterable:"",clearable:""},on:{change:e.setCoreTeacher},model:{value:t.row.coreTeacher,callback:function(s){e.$set(t.row,"coreTeacher","string"===typeof s?s.trim():s)},expression:"scope.row.coreTeacher"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.username,value:e.id}})})),1):e._e()],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"\n 助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e.teacherList?s("el-select",{staticClass:"tableClass",attrs:{filterable:"",clearable:"",disabled:!t.row.coreTeacher||e.isSetSalary,multiple:""},on:{change:function(s){return e.chioseAssistant(t.row)}},model:{value:t.row.assistant,callback:function(s){e.$set(t.row,"assistant","string"===typeof s?s.trim():s)},expression:"scope.row.assistant"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.username,value:e.id}})})),1):e._e()],1)]}}])})],1)],1),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{data:e.allList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{label:"合奏班名称",prop:"name",width:"160px"}}),e._v(" "),s("el-table-column",{attrs:{label:"主教老师",width:"200px;"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e.teacherList?s("el-select",{attrs:{disabled:e.isSetSalary,clearable:"",filterable:""},model:{value:t.row.coreTeacher,callback:function(s){e.$set(t.row,"coreTeacher","string"===typeof s?s.trim():s)},expression:"scope.row.coreTeacher"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.username,value:e.id}})})),1):e._e()],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"\n 助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-select",{staticClass:"tableClass",attrs:{multiple:"",filterable:"",clearable:"",disabled:!t.row.coreTeacher||e.isSetSalary},on:{change:function(s){return e.chioseAssistant(t.row)}},model:{value:t.row.assistant,callback:function(s){e.$set(t.row,"assistant","string"===typeof s?s.trim():s)},expression:"scope.row.assistant"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.username,value:e.id}})})),1)],1)]}}])})],1)],1),e._v(" "),s("div",{staticClass:"footer"},[s("div",{staticClass:"next",on:{click:e.gotoNext}},[e._v("下一步")])])])},o=[],c=s("1cc7"),u={name:"setTeacher",props:{teamid:{type:String,required:!0},isSetSalary:{type:Boolean,required:!0}},data:function(){return{singinList:[],allList:[],teacherList:[],classGroupTeacherMapperList:[]}},mounted:function(){var e=this;localStorage.setItem("setStep",1),this.organId=localStorage.getItem("createTeamOrgnId")||null,this.getEveryClass(),Object(c["Pb"])({organId:this.organId}).then((function(t){200==t.code&&(e.teacherList=t.data)}))},methods:{getEveryClass:function(){var e=this;Object(c["ib"])({musicGroupId:this.teamid}).then((function(t){var s=[],a=[];t.data.map((function(e){if(e.coreTeacher="",e.assistant=[],e.classGroupTeacherMapperList&&e.classGroupTeacherMapperList.length>0)for(var t in e.classGroupTeacherMapperList)"BISHOP"==e.classGroupTeacherMapperList[t].teacherRole?e.coreTeacher=e.classGroupTeacherMapperList[t].userId:"TEACHING"==e.classGroupTeacherMapperList[t].teacherRole&&e.assistant.push(e.classGroupTeacherMapperList[t].userId);"NORMAL"==e.type&&s.push(e),"MIX"==e.type&&a.push(e)})),e.singinList=s,e.allList=a}))},gotoNext:function(){var e=this;if(this.isSetSalary)this.$message.error("课酬确认后无法编辑");else{var t=!0,s=[],a=[],r=[];for(var i in this.singinList)a.push(this.singinList[i].coreTeacher),a=a.concat(this.singinList[i].assistant),""==this.singinList[i].coreTeacher&&s.push(!1);for(var n in this.allList)r.push(this.allList[n].coreTeacher),r=r.concat(this.allList[n].assistant),""==this.allList[n].coreTeacher&&s.push(!1);s.filter((function(e){t=t&&e})),t?(this.addDate(this.singinList),this.addDate(this.allList),Object(c["Hc"])(this.classGroupTeacherMapperList).then((function(t){200==t.code&&(e.classGroupTeacherMapperList=[],e.$emit("gotoNav",2))}))):this.$message.error("请确定每个班级都有主教老师")}},addDate:function(e){for(var t in e){var s={};for(var a in s.classGroupId=e[t].id,s.musicGroupId=this.teamid,s.teacherRole="BISHOP",s.userId=e[t].coreTeacher,this.classGroupTeacherMapperList.push(s),e[t].assistant){var r={};r.classGroupId=e[t].id,r.musicGroupId=this.teamid,r.teacherRole="TEACHING",r.userId=e[t].assistant[a],this.classGroupTeacherMapperList.push(r)}}},setCoreTeacher:function(e){},chioseAssistant:function(e){for(var t in e.assistant)if(e.assistant[t]==e.coreTeacher)return e.assistant=[],void this.$message.error("同一个班主教助教不能相同")}}},d=u,m=(s("6daf"),s("2877")),p=Object(m["a"])(d,l,o,!1,null,null,null),h=p.exports,f=s("bd11"),v=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"salary-container"},[s("el-form",{attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",{attrs:{label:"课酬结算标准"}},[s("el-select",{attrs:{clearable:"",filterable:""},on:{change:e.changeSalary},model:{value:e.searchForm.salary,callback:function(t){e.$set(e.searchForm,"salary","string"===typeof t?t.trim():t)},expression:"searchForm.salary"}},[s("el-option",{attrs:{label:"默认课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),s("el-option",{attrs:{label:"3.0课酬",value:"GRADIENT_SALARY"}}),e._v(" "),s("el-option",{attrs:{label:"课堂课课酬",value:"CLASSROOM_SALARY"}})],1)],1)],1),e._v(" "),"TEACHER_DEFAULT"==e.searchForm.salary||"CLASSROOM_SALARY"==e.searchForm.salary?s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{data:e.defaultTableList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"row-key":"id",border:"","default-expand-all":"","tree-props":{children:"classGroupTeacherMapperList",hasChildren:"hasChildren"}}},[s("el-table-column",{attrs:{label:"班级名称",width:"180px",prop:"name"}}),e._v(" "),s("el-table-column",{attrs:{label:"老师名称",width:"180px",prop:"userName"}}),e._v(" "),s("el-table-column",{attrs:{label:"老师类型",width:"180px",prop:"teacherRole"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("workType")(t.row.teacherRole))+"\n ")])]}}],null,!1,3841623657)}),e._v(" "),s("el-table-column",{attrs:{label:"金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherDefaultMusicGroupSalaryList&&t.row.teacherDefaultMusicGroupSalaryList[0]&&t.row.teacherDefaultMusicGroupSalaryList[0]?s("div",[s("span",[e._v("课酬:")]),e._v(" "),t.row.teacherDefaultMusicGroupSalaryList&&t.row.teacherDefaultMusicGroupSalaryList[0]&&"TEACHING"==t.row.teacherRole?s("el-input",{staticStyle:{width:"80px","margin-right":"10px"},attrs:{disabled:!0},model:{value:t.row.teacherDefaultMusicGroupSalaryList[0].assistantTeacher30MinSalary,callback:function(s){e.$set(t.row.teacherDefaultMusicGroupSalaryList[0],"assistantTeacher30MinSalary","string"===typeof s?s.trim():s)},expression:"scope.row.teacherDefaultMusicGroupSalaryList[0].assistantTeacher30MinSalary"}}):e._e(),e._v(" "),t.row.teacherDefaultMusicGroupSalaryList&&t.row.teacherDefaultMusicGroupSalaryList[0]&&"BISHOP"==t.row.teacherRole?s("el-input",{staticStyle:{width:"80px","margin-right":"10px"},attrs:{disabled:!0},model:{value:t.row.teacherDefaultMusicGroupSalaryList[0].mainTeacher30MinSalary,callback:function(s){e.$set(t.row.teacherDefaultMusicGroupSalaryList[0],"mainTeacher30MinSalary","string"===typeof s?s.trim():s)},expression:"scope.row.teacherDefaultMusicGroupSalaryList[0].mainTeacher30MinSalary"}}):e._e()],1):e._e()]}}],null,!1,2420323177)})],1)],1):e._e(),e._v(" "),"GRADIENT_SALARY"==e.searchForm.salary?s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{data:e.gradientTableList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"row-key":"id",border:"","default-expand-all":"","tree-props":{children:"classGroupTeacherMapperList",hasChildren:"hasChildren"}}},[s("el-table-column",{attrs:{label:"班级名称",width:"180px",prop:"name"}}),e._v(" "),s("el-table-column",{attrs:{label:"老师名称",width:"180px",prop:"userName"}}),e._v(" "),s("el-table-column",{attrs:{label:"老师类型",width:"180px",prop:"teacherRole"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("workType")(t.row.teacherRole))+"\n ")])]}}],null,!1,3841623657)}),e._v(" "),s("el-table-column",{attrs:{label:"金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherDefaultMusicGroupSalaryList?s("div",e._l(t.row.teacherDefaultMusicGroupSalaryList,(function(a,r){return s("div",{key:a.id,staticStyle:{display:"table-cell"}},["TEACHING"==t.row.teacherRole?s("div",[s("span",[e._v("课酬:")]),e._v(" "),s("el-input",{staticStyle:{width:"80px","margin-right":"10px"},attrs:{disabled:!0},model:{value:t.row.teacherDefaultMusicGroupSalaryList[r].assistantTeacher90MinSalary,callback:function(s){e.$set(t.row.teacherDefaultMusicGroupSalaryList[r],"assistantTeacher90MinSalary","string"===typeof s?s.trim():s)},expression:"scope.row.teacherDefaultMusicGroupSalaryList[index].assistantTeacher90MinSalary"}})],1):e._e(),e._v(" "),"BISHOP"==t.row.teacherRole?s("div",[s("span",[e._v("课酬:")]),e._v(" "),s("el-input",{staticStyle:{width:"80px","margin-right":"10px"},attrs:{disabled:!0},model:{value:t.row.teacherDefaultMusicGroupSalaryList[r].mainTeacher90MinSalary,callback:function(s){e.$set(t.row.teacherDefaultMusicGroupSalaryList[r],"mainTeacher90MinSalary","string"===typeof s?s.trim():s)},expression:"scope.row.teacherDefaultMusicGroupSalaryList[index].mainTeacher90MinSalary"}})],1):e._e()])})),0):e._e()]}}],null,!1,4016824434)})],1)],1):e._e(),e._v(" "),s("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"40px"}},[s("div",{staticClass:"nextBtn",on:{click:e.gotoNext}},[e._v("确定")])])],1)},b=[],g=(s("df7c"),{name:"salarySet",props:{teamid:{type:String,required:!0},isSetSalary:{type:Boolean,required:!0}},data:function(){return{searchForm:{salary:""},defaultTableList:[],gradientTableList:[],subList:[],isok:!0,hasDate:!1,Fsearch:null,Frules:null}},created:function(){this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules)},mounted:function(){var e=this;Object(c["Sb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.searchForm.salary=t.data.settlementType,e.changeSalary(e.searchForm.salary),t.data.settlementType||(e.hasDate=!0))}))},methods:{gotoNext:function(){var e=this;if(this.isSetSalary)this.$message.error("课酬确认后无法编辑");else{if(this.isok||this.$message.error("有老师未设置默认课酬,请设置后再试"),"TEACHER_DEFAULT"==this.searchForm.salary||"CLASSROOM_SALARY"==this.searchForm.salary)for(var t in this.defaultTableList)for(var s in this.defaultTableList[t].classGroupTeacherMapperList){var a={};a.musicGroupId=this.teamid,a.classGroupId=this.defaultTableList[t].id,a.userId=this.defaultTableList[t].classGroupTeacherMapperList[s].userId,a.teacherRole=this.defaultTableList[t].classGroupTeacherMapperList[s].teacherRole,a.teacherDefaultMusicGroupSalaryList=this.defaultTableList[t].classGroupTeacherMapperList[s].teacherDefaultMusicGroupSalaryList,this.subList.push(a)}else if("GRADIENT_SALARY"==this.searchForm.salary)for(var r in this.gradientTableList)for(var i in this.gradientTableList[r].classGroupTeacherMapperList){var n={};n.musicGroupId=this.teamid,n.classGroupId=this.gradientTableList[r].id,n.userId=this.gradientTableList[r].classGroupTeacherMapperList[i].userId,n.teacherRole=this.gradientTableList[r].classGroupTeacherMapperList[i].teacherRole,n.teacherDefaultMusicGroupSalaryList=this.gradientTableList[r].classGroupTeacherMapperList[i].teacherDefaultMusicGroupSalaryList,this.subList.push(n)}Object(c["Gc"])(this.subList).then((function(t){200==t.code&&(e.subList=[],e.$message.success("恭喜您设置成功"),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))})).catch((function(t){e.$message.error("提交失败"),e.subList=[]}))}},changeSalary:function(e){this.searchForm.salary=e,this.getList()},getList:function(){var e=this;Object(c["Sb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&("TEACHER_DEFAULT"==e.searchForm.salary?Object(c["J"])({musicGroupId:e.teamid,type:"TEACHER_DEFAULT"}).then((function(t){200==t.code&&(e.defaultTableList=t.data)})):"GRADIENT_SALARY"==e.searchForm.salary?Object(c["J"])({musicGroupId:e.teamid,type:"GRADIENT_SALARY"}).then((function(t){200==t.code&&(e.gradientTableList=t.data)})):"CLASSROOM_SALARY"==e.searchForm.salary&&Object(c["J"])({musicGroupId:e.teamid,type:"CLASSROOM_SALARY"}).then((function(t){200==t.code&&(e.defaultTableList=t.data)})))}))}}}),y=g,S=(s("1c4ce"),Object(m["a"])(y,v,b,!1,null,null,null)),C=S.exports,L=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"imc"},[s("el-form",{ref:"topForm",attrs:{inline:!0,model:e.topForm,rules:e.topFormRules}},[s("el-form-item",[s("div",{staticClass:"addBtn",on:{click:e.addClass}},[e._v("添加班级")])]),e._v(" "),s("el-form-item",{attrs:{label:"基础技能班参考数量"}},[s("el-input",{attrs:{disabled:""},model:{value:e.topForm.improventClassesNum,callback:function(t){e.$set(e.topForm,"improventClassesNum","string"===typeof t?t.trim():t)},expression:"topForm.improventClassesNum"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"排课数量",prop:"count"}},[s("el-input",{model:{value:e.topForm.count,callback:function(t){e.$set(e.topForm,"count","string"===typeof t?t.trim():t)},expression:"topForm.count"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"排课开始时间",prop:"timer"}},[s("el-date-picker",{staticStyle:{width:"220px!important"},attrs:{align:"right",type:"date",placeholder:"选择日期","picker-options":{firstDayOfWeek:1},"value-format":"yyyy-MM-dd"},model:{value:e.topForm.timer,callback:function(t){e.$set(e.topForm,"timer","string"===typeof t?t.trim():t)},expression:"topForm.timer"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"跳过节假日"}},[s("el-checkbox",{model:{value:e.topForm.holiday,callback:function(t){e.$set(e.topForm,"holiday","string"===typeof t?t.trim():t)},expression:"topForm.holiday"}})],1)],1),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{data:e.tableList}},[s("el-table-column",{attrs:{prop:"name",align:"center",label:"基础技能班名称"}}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectIdList",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("fitterSound")(t.row.subjectIdList))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"userId",align:"center",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("fitterTeacher")(t.row.userId))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"expectStudentNum",align:"center",label:"班级人数"}}),e._v(" "),s("el-table-column",{attrs:{prop:"date",align:"center",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("p",[e._v(e._s(t.row.startClassTime+"-"+t.row.endClassTime))])])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"date",align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeClass(t.row)}}},[e._v("删除")])],1)]}}])})],1)],1),e._v(" "),s("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"40px"}},[s("div",{staticClass:"nextBtn",on:{click:e.gotoNext}},[e._v(e._s(e.permission("/teamSetting/salarySet")?"确定":"下一步"))]),e._v(" "),s("div",{staticClass:"nextBtn",on:{click:e.gotoskip}},[e._v("跳过")])]),e._v(" "),s("el-dialog",{attrs:{title:"基础技能班",visible:e.raiseVisible,width:"40%"},on:{"update:visible":function(t){e.raiseVisible=t}}},[s("el-form",{ref:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":e.labelPosition,"label-width":"100px"}},[s("el-form-item",{attrs:{label:"名称",prop:"name"}},[s("el-input",{staticStyle:{width:"180px"},model:{value:e.maskForm.name,callback:function(t){e.$set(e.maskForm,"name","string"===typeof t?t.trim():t)},expression:"maskForm.name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"声部",prop:"sound"}},[s("el-select",{attrs:{filterable:"",clearable:"",multiple:""},model:{value:e.maskForm.sound,callback:function(t){e.$set(e.maskForm,"sound","string"===typeof t?t.trim():t)},expression:"maskForm.sound"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[s("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher","string"===typeof t?t.trim():t)},expression:"maskForm.teacher"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"班级人数",prop:"studentNum"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.maskForm.count,callback:function(t){e.$set(e.maskForm,"count","string"===typeof t?t.trim():t)},expression:"maskForm.count"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"星期几",prop:"week"}},[s("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.maskForm.week,callback:function(t){e.$set(e.maskForm,"week","string"===typeof t?t.trim():t)},expression:"maskForm.week"}},[s("el-option",{attrs:{value:"1",label:"星期一"}}),e._v(" "),s("el-option",{attrs:{value:"2",label:"星期二"}}),e._v(" "),s("el-option",{attrs:{value:"3",label:"星期三"}}),e._v(" "),s("el-option",{attrs:{value:"4",label:"星期四"}}),e._v(" "),s("el-option",{attrs:{value:"5",label:"星期五"}}),e._v(" "),s("el-option",{attrs:{value:"6",label:"星期六"}}),e._v(" "),s("el-option",{attrs:{value:"7",label:"星期天"}})],1)],1),e._v(" "),e.raiseVisible?s("el-form-item",{attrs:{label:"时间段",prop:"startTime"}},[s("el-time-select",{attrs:{placeholder:"起始时间","value-format":"HH:mm:ss","picker-options":{start:"04:30",step:"00:05",end:"23:30"}},on:{change:e.changeStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}}),e._v(" "),e.raiseVisible?s("el-time-select",{attrs:{placeholder:"结束时间","value-format":"HH:mm:ss","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.maskForm.startTime}},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}}):e._e()],1):e._e()],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.raiseVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.addraiseClass}},[e._v("确 定")])],1)],1)],1)},T=[],_=(s("28a5"),s("ec8a")),I={name:"improvementClass",props:{teamid:{type:String,required:!0},isSetSalary:{type:Boolean,required:!0}},beforeCreate:function(){a=this},data:function(){return{labelPosition:"right",topForm:{count:"",improventClassesNum:"",timer:"",holiday:!1},maskForm:{name:"",sound:[],count:"",teacher:"",startTime:"",endTime:"",week:""},raiseVisible:!1,tableList:[],soundList:[],teacherList:[],maskRules:{name:[{required:!0,message:"请输入姓名",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],sound:[{required:!0,message:"请选择声部",trigger:"blur"}],count:[{required:!0,message:"请输入学生数",trigger:"blur"}],teacher:[{required:!0,message:"请选择老师",trigger:"blur"}],startTime:[{required:!0,message:"请选择开始时间",trigger:"blur"}],endTime:"",week:[{required:!0,message:"请选择星期几",trigger:"blur"}]},topFormRules:{count:[{required:!0,message:"请输入排课数量",trigger:"blur"}],timer:[{required:!0,message:"请选择开课时间",trigger:"blur"}]},organId:"",Fsearch:null,Frules:null}},created:function(){this.organId=localStorage.getItem("createTeamOrgnId")||null,this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules)},mounted:function(){var e=this;Object(c["M"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),Object(c["Pb"])({organId:this.organId}).then((function(t){200==t.code&&(e.teacherList=t.data)})),Object(c["Sb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.topForm.improventClassesNum=t.data.improventClassesNum)})),this.getList()},methods:{getList:function(){var e=this;Object(c["bc"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.tableList=t.data)}))},permission:function(e){return Object(_["a"])(e)},addraiseClass:function(){var e=this;this.$refs["maskForm"].validate((function(t){if(t){var s={userId:e.maskForm.teacher,dayOfWeek:e.maskForm.week,startClassTime:e.maskForm.startTime,endClassTime:e.maskForm.endTime,courseTimes:e.topForm.count,type:"HIGH",expectStudentNum:e.maskForm.count,musicGroupId:e.teamid,teachMode:"OFFLINE",name:e.maskForm.name,subjectIdList:e.maskForm.sound.join(","),moid:(new Date).getTime(),startDate:e.topForm.timer};e.tableList.push(s),e.raiseVisible=!1,e.$refs["maskForm"].resetFields(),e.maskForm.endTime=""}else e.$message.error("请填写必要信息")}))},removeClass:function(e){var t=this;this.$confirm("是否删除该基础技能班?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){if(e.moid){for(var s in t.tableList)if(t.tableList[s].moid==e.moid)return t.tableList.splice(s,1),void t.$message.success("删除成功")}else Object(c["sc"])({classGroupId:e.id}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},addClass:function(){this.isSetSalary?this.$message.error("课酬确认后无法编辑"):this.raiseVisible=!0},gotoskip:function(){this.isSetSalary?this.$message.error("课酬确认后无法编辑"):this.permission("/teamSetting/salarySet")?this.$emit("gotoNav",4):this.$router.push({path:"/teamList",query:{search:this.Fsearch,rules:this.Frules}})},gotoNext:function(){var e=this;this.isSetSalary?this.$message.error("课酬确认后无法编辑"):this.$refs["topForm"].validate((function(t){if(t){for(var s in e.tableList)e.tableList[s].startDate=e.topForm.timer,e.tableList[s].courseTimes=e.topForm.count,e.tableList[s].holiday=e.topForm.holiday;var a=e.tableList.length;if(a>e.topForm.improventClassesNum)return void e.$message.error("基础技能班不能超过".concat(e.topForm.improventClassesNum,"个"));Object(c["c"])(e.tableList).then((function(t){200==t.code&&(e.$message.success("恭喜您创建成功"),e.permission("/teamSetting/salarySet")?e.$emit("gotoNav",4):e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))}))}else e.$message.error("请先输入排课数量和开始时间")}))},changeStartTime:function(){this.maskForm.endTime=""}},filters:{fitterSound:function(e){var t=e.split(",");if(a.soundList){var s="";for(var r in a.soundList)for(var i in t)a.soundList[r].id==t[i]&&(s+=a.soundList[r].name+",");return s.substring(0,s.length-1)}return""},fitterTeacher:function(e){if(!a.teacherList)return"";for(var t in a.teacherList)if(a.teacherList[t].id==e)return a.teacherList[t].realName}}},w=I,F=(s("6f64"),Object(m["a"])(w,L,T,!1,null,"51bc470e",null)),k=F.exports,N=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{attrs:{inline:!0}},[s("el-form-item",{attrs:{label:"课程类型"}},[s("el-select",{on:{change:e.chioseList},model:{value:e.classScheduleType,callback:function(t){e.classScheduleType="string"===typeof t?t.trim():t},expression:"classScheduleType"}},e._l(e.courseType,(function(e,t){return s("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),s("el-form-item")],1),e._v(" "),s("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{prop:"classDate",label:"日期",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.classDate))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"上课时间",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(t.row.startClassTimeStr+"-"+t.row.endClassTimeStr)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"课程类型",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseScheduleType))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"classGroupName",align:"center",label:"班级名称"}}),e._v(" "),s("el-table-column"),e._v(" "),s("el-table-column")],1),e._v(" "),s("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)},x=[],O=s("333d"),G={name:"lookCourse",props:{isSetSalary:{type:Boolean,required:!0}},components:{pagination:O["a"]},data:function(){return{teamid:"",maxClassList:[],classScheduleType:null,tableList:[],courseType:[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"综合课",value:"COMPREHENSIVE"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"}],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){localStorage.setItem("setStep",2),localStorage.setItem("resetCode",4),this.teamid=this.$route.query.id,this.getList()},getList:function(){var e=this;Object(c["bb"])({classScheduleType:this.classScheduleType,musicGroupId:this.teamid,rows:this.rules.limit,page:this.rules.page}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},gotoPlan:function(){this.isSetSalary?this.$message.error("课酬确认后无法编辑"):this.$router.push({path:"/business/coursePlan",query:{id:this.teamid}})},gotoNext:function(){if(this.isSetSalary)this.$message.error("课酬确认后无法编辑");else{var e=localStorage.getItem("chargeTypeId");3==e?this.$emit("gotoNav",3):this.$emit("gotoNav",4)}},chioseList:function(e){this.classScheduleType=e,this.getList()},removeAllCourse:function(){var e=this;this.isSetSalary?this.$message.error("课酬确认后无法编辑"):this.$confirm("是否清除所有课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["E"])({musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$message.success("删除成功"),e.getList())}))}))}}},A=G,M=(s("a284"),Object(m["a"])(A,N,x,!1,null,"3f412882",null)),E=M.exports,j={name:"teamSeting",components:{classSeting:n["a"],teacherSeting:h,coursePlan:f["default"],salarySet:C,improvement:k,lookCourse:E},data:function(){return{activeIndex:0,stepImgs:{nol:s("51bf"),active:s("f8e4")},id:"",chargeTypeId:"",name:"",isSetSalary:!1,Fsearch:null,Frules:null,isOld:!1}},created:function(){this.init()},activated:function(){this.init()},beforeDestroy:function(){localStorage.setItem("setStep",0),localStorage.setItem("resetCode",1)},mounted:function(){this.init()},methods:{init:function(){var e=this;this.id=this.$route.query.id,this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules),this.activeIndex=0,Object(c["Rb"])({musicGroupId:this.id}).then((function(t){200==t.code&&(e.chargeTypeId=t.data.musicGroup.chargeTypeId,e.name=t.data.musicGroup.name,localStorage.setItem("chargeTypeId",e.chargeTypeId),localStorage.setItem("createTeamOrgnId",t.data.musicGroup.organId))})),Object(c["s"])({musicGroupId:this.id}).then((function(t){200==t.code&&(e.isSetSalary=t.data)})),Object(c["bb"])({musicGroupId:this.id}).then((function(t){200==t.code&&(t.data&&t.data.rows.length>0?e.isOld=!0:e.isOld=!1)}))},gotoNav:function(e){this.activeIndex=e},goBack:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})}}},D=j,R=(s("9ecb"),Object(m["a"])(D,r,i,!1,null,"af14853c",null));t["default"]=R.exports},"09f4":function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,s,a){return e/=a/2,e<1?s/2*e*e+t:(e--,-s/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,s){var n=i(),l=e-n,o=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=o;var i=Math.easeInOutQuad(c,n,l,t);r(i),c<t?a(e):s&&"function"===typeof s&&s()};u()}},"172f":function(e,t,s){},"1c0e":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"buttonWrap"},[s("div",{staticClass:"left"},[s("el-form",{attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",[s("el-select",{attrs:{placeholder:"班级类型",clearable:"",filterable:""},on:{change:e.changeClassGetList},model:{value:e.searchForm.classType,callback:function(t){e.$set(e.searchForm,"classType","string"===typeof t?t.trim():t)},expression:"searchForm.classType"}},e._l(e.classTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/create",expression:"'classGroup/create'"}],staticClass:"newBand",on:{click:e.newClass}},[e._v("\n 新建班级\n ")])],1)]),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.selectionTable}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"type",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("classType")(t.row.type)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"实际/预计人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(t.row.studentNum+"/"+t.row.expectStudentNum)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentId",label:"主教老师名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherMapperList[0]?s("div",[e._v("\n "+e._s(e._f("getBishopName")(t.row.teacherMapperList))+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentId",label:"助教人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherMapperList[0]?s("div",[e._v("\n "+e._s(e._f("getTeachingNum")(t.row.teacherMapperList))+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"totalClassTimes",label:"排课课次"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"260px",prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",["HIGH"===t.row.type||"HIGH_ONLINE"===t.row.type?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/findAllStudent",expression:"'classGroupStudent/findAllStudent'"}],attrs:{type:"text"},on:{click:function(s){return e.lookDeatil(t.row)}}},[e._v("查看")]):e._e(),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/classGroupUpdate",expression:"'classGroup/classGroupUpdate'"}],attrs:{type:"text"},on:{click:function(s){return e.classAdjustment(t.row)}}},[e._v("老师调整")]),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/updateClassGroupStudents",expression:"'classGroupStudent/updateClassGroupStudents'"}],attrs:{type:"text"},on:{click:function(s){return e.resetClass(t.row)}}},[e._v("学员调整")]),e._v(" "),s("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/delSingle",expression:"'classGroup/delSingle'"}],ref:t.$index,attrs:{placement:"top",width:"160"}},[s("p",[e._v("确定删除?")]),e._v(" "),s("div",{staticStyle:{"text-align":"right",margin:"0"}},[s("el-button",{attrs:{type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(s){return e.removeClass(t)}}},[e._v("确定")])],1),e._v(" "),s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除班级")])],1)],1)]}}])})],1),e._v(" "),s("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),e._v(" "),s("el-dialog",{attrs:{visible:e.newClassVisible,width:"700px",title:"新增班级"},on:{"update:visible":function(t){e.newClassVisible=t}}},[s("el-form",{ref:"newClassForm",staticClass:"newClassForm",attrs:{model:e.newClassForm,inline:!0,"label-width":"120px"}},[s("el-form-item",{attrs:{label:"班级名称",rules:[{required:!0,message:"请输入班级姓名",trigger:"blur"}],prop:"className"}},[s("el-input",{staticStyle:{width:"180px"},model:{value:e.newClassForm.className,callback:function(t){e.$set(e.newClassForm,"className",t)},expression:"newClassForm.className"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"班级类型",rules:[{required:!0,message:"请输入班级人数",trigger:"blur"}],prop:"type"}},[s("el-select",{attrs:{clearable:""},on:{change:e.chioseHightype},model:{value:e.newClassForm.type,callback:function(t){e.$set(e.newClassForm,"type","string"===typeof t?t.trim():t)},expression:"newClassForm.type"}},e._l(e.classTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"bishop",rules:[{required:!0,message:"请选择主教老师",trigger:"blur"}]}},[s("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.newClassForm.bishop,callback:function(t){e.$set(e.newClassForm,"bishop",t)},expression:"newClassForm.bishop"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"预计招生数",prop:"expectStudentNum",type:"number",rules:[{required:!0,message:"请输入预计招生数",trigger:"blur"}]},nativeOn:{mousewheel:function(e){e.preventDefault()}}},[s("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"HIGH_ONLINE"==e.newClassForm.type},model:{value:e.newClassForm.expectStudentNum,callback:function(t){e.$set(e.newClassForm,"expectStudentNum",t)},expression:"newClassForm.expectStudentNum"}})],1),e._v(" "),"HIGH_ONLINE"!=e.newClassForm.type&&"HIGH"!=e.newClassForm.type&&e.newClassForm.type?s("el-form-item",{attrs:{label:"助教老师",prop:"teaching"}},[s("remote-search",{attrs:{commit:"setTeachers",multiple:!0},on:{change:e.setAssistant1},model:{value:e.newClassForm.teaching,callback:function(t){e.$set(e.newClassForm,"teaching",t)},expression:"newClassForm.teaching"}})],1):e._e(),e._v(" "),"NORMAL"==e.newClassForm.type?s("el-form-item",{key:"HIGH",attrs:{label:"声部",prop:"subjectIdList",rules:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.newClassForm.subjectIdList,callback:function(t){e.$set(e.newClassForm,"subjectIdList",t)},expression:"newClassForm.subjectIdList"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type?s("el-form-item",{key:"HIGH_ONLINE",staticClass:"higheSelect",attrs:{label:"网络教室声部",prop:"subjectId",rules:[{required:!0,message:"请选择线上声部",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:""},model:{value:e.newClassForm.subjectId,callback:function(t){e.$set(e.newClassForm,"subjectId",t)},expression:"newClassForm.subjectId"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),s("br")],1),e._v(" "),s("div",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[s("div",[s("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[s("div",{staticClass:"popoverWrap"},[s("p",[e._v("线上基础技能班规则:")]),e._v(" "),s("p",[e._v("班级数量:")]),e._v(" "),s("p",[e._v("\n 可创建班级数量=各个声部学员数/6向上取整+乐团在读学员数/30向上取整\n ")]),e._v(" "),s("p",[e._v("\n 上低音号、长号学员数合并计算\n ")]),e._v(" "),s("p",[e._v("班级人数:")]),e._v(" "),s("p",[e._v("线上基础技能班人数上限为6人")])]),e._v(" "),s("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("线上基础技能班规则")])],1)],1),e._v(" "),s("div",[s("el-button",{on:{click:function(t){e.newClassVisible=!1}}},[e._v("取 消")]),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type||"HIGH"==e.newClassForm.type?s("el-button",{attrs:{type:"primary"},on:{click:e.newClassHight}},[e._v("确 定")]):s("el-button",{attrs:{type:"primary"},on:{click:e.newClassSecond}},[e._v("确 定")])],1)])],1),e._v(" "),s("el-dialog",{attrs:{title:"学员选择",width:"700px",visible:e.studentVisible,"modal-append-to-body":!0},on:{"update:visible":function(t){e.studentVisible=t}}},[s("selectStudent",{attrs:{activeListStudent:e.activeListStudent,studentList:e.studentList,soundList:e.activeSoundList,classGroupId:e.activeClass,isOnlyChangeUser:!0,activeType:e.activeType,isStudentRemove:e.isStudentRemove,type:"change"},on:{changeActiveChioseSound:e.changeActiveChioseSound,searchStudent:e.searchStudent,submited:e.submited,close:function(t){e.studentVisible=!1}}})],1),e._v(" "),s("el-dialog",{attrs:{title:"老师调整",width:"700px",visible:e.infoVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.infoVisible=t}}},[s("el-form",{ref:"teacherForm",attrs:{inline:!0,model:e.teacherForm,rules:e.teacherRules,"label-position":"right","label-width":"100px;"}},[s("br"),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher"}},[s("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.teacherForm.coreTeacher,callback:function(t){e.$set(e.teacherForm,"coreTeacher",t)},expression:"teacherForm.coreTeacher"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("remote-search",{attrs:{commit:"setTeachers",multiple:!0},on:{change:e.setAssistant},model:{value:e.teacherForm.assistant,callback:function(t){e.$set(e.teacherForm,"assistant",t)},expression:"teacherForm.assistant"}})],1),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[s("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.teacherForm.courseType,callback:function(t){e.$set(e.teacherForm,"courseType","string"===typeof t?t.trim():t)},expression:"teacherForm.courseType"}},e._l(e.courseTypeList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),s("br"),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("el-form-item",{attrs:{label:"排课次数",prop:"courseNum"}},[s("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.teacherForm.courseNum,callback:function(t){e.$set(e.teacherForm,"courseNum","string"===typeof t?t.trim():t)},expression:"teacherForm.courseNum"}})],1):e._e(),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[s("el-date-picker",{staticStyle:{width:"200px !important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.teacherForm.courseTime,callback:function(t){e.$set(e.teacherForm,"courseTime","string"===typeof t?t.trim():t)},expression:"teacherForm.courseTime"}}),e._v(" "),s("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.teacherForm.checked,callback:function(t){e.$set(e.teacherForm,"checked","string"===typeof t?t.trim():t)},expression:"teacherForm.checked"}},[e._v("是否跳过节假日")])],1):e._e()],1),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("div",{staticClass:"WeekWrap"},[s("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),s("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),s("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,a){return s("div",{key:a,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[s("span",[e._v("循环周期:")]),e._v(" "),s("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.dayOfWeek,callback:function(s){e.$set(t,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),s("span",[e._v("开始时间")]),e._v(" "),s("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(s){e.$set(t,"startClassTime","string"===typeof s?s.trim():s)},expression:"item.startClassTime"}}),e._v(" "),s("span",[e._v("结束时间")]),e._v(" "),s("el-time-select",{attrs:{"picker-options":{start:"04:30",step:"00:05",end:"23:55",minTime:t.startClassTime}},model:{value:t.endClassTime,callback:function(s){e.$set(t,"endClassTime",s)},expression:"item.endClassTime"}}),e._v(" "),s("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(s){return e.removeWeek(t)}}})],1)})),0)]):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.isNewClass?s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(1)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isNewClass?e._e():s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(3)}}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"批量排课",width:"700px",visible:e.arrangeVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.arrangeVisible=t}}},[s("el-form",{ref:"arrangeForm",attrs:{model:e.arrangeForm,"label-width":"100px","label-position":"right"}},[s("el-form-item",{attrs:{label:"选择班级数",prop:"classNum"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number",value:e.arrangeForm.classNum,disabled:""},nativeOn:{mousewheel:function(e){e.preventDefault()}}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程类型",prop:"courseType",rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.arrangeForm.courseType,callback:function(t){e.$set(e.arrangeForm,"courseType","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseType"}},e._l(e.courseTypeList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"上课形式",prop:"teachMode",rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}]}},[s("el-select",{attrs:{disabled:""},model:{value:e.arrangeForm.teachMode,callback:function(t){e.$set(e.arrangeForm,"teachMode","string"===typeof t?t.trim():t)},expression:"arrangeForm.teachMode"}},[s("el-option",{attrs:{value:"ONLINE",label:"线上"}}),e._v(" "),s("el-option",{attrs:{value:"OFFLINE",label:"线下"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"开始日期",prop:"courseTime",rules:[{required:!0,message:"请选择开始日期",trigger:"blur"}]}},[s("el-date-picker",{staticStyle:{width:"200px !important"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"选择日期"},model:{value:e.arrangeForm.courseTime,callback:function(t){e.$set(e.arrangeForm,"courseTime","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseTime"}}),e._v(" "),s("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.arrangeForm.checked,callback:function(t){e.$set(e.arrangeForm,"checked","string"===typeof t?t.trim():t)},expression:"arrangeForm.checked"}},[e._v("是否跳过节假日")])],1),e._v(" "),s("el-form-item",{attrs:{label:"排课次数",rules:[{required:!0,message:"请输入排课次数",trigger:"blur"}],prop:"courseNum"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.arrangeForm.courseNum,callback:function(t){e.$set(e.arrangeForm,"courseNum","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseNum"}})],1)],1),e._v(" "),s("div",{staticClass:"WeekWrap"},[s("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),s("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),s("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,a){return s("div",{key:a,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[s("span",[e._v("循环周期:")]),e._v(" "),s("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.dayOfWeek,callback:function(s){e.$set(t,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),s("span",[e._v("开始时间")]),e._v(" "),s("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(s){e.$set(t,"startClassTime","string"===typeof s?s.trim():s)},expression:"item.startClassTime"}}),e._v(" "),s("span",[e._v("结束时间")]),e._v(" "),s("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55",minTime:t.startClassTime}},model:{value:t.endClassTime,callback:function(s){e.$set(t,"endClassTime","string"===typeof s?s.trim():s)},expression:"item.endClassTime"}}),e._v(" "),s("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(s){return e.removeWeek(t)}}})],1)})),0)]),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.arrangeVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.arrangeFormSubmit}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"添加学员",width:"600px",visible:e.addStudentVisible},on:{"update:visible":function(t){e.addStudentVisible=t}}},[s("el-table",{ref:"studentList",attrs:{data:e.studentList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.selectStudent}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{prop:"name",label:"学生姓名"}}),e._v(" "),s("el-table-column",{attrs:{property:"classGroupName",label:"所在班级"}})],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/addStudents",expression:"'classGroupStudent/addStudents'"}],attrs:{type:"primary"},on:{click:e.addStudnt}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"学员详情",width:"600px",visible:e.lookDeatilVisible},on:{"update:visible":function(t){e.lookDeatilVisible=t}}},[s("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.classList}},[s("el-table-column",{attrs:{label:"学员姓名",prop:"name"}}),e._v(" "),s("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/del",expression:"'classGroupStudent/del'"}],ref:t.$index,attrs:{placement:"top",width:"160"}},[s("p",[e._v("确定删除该学生?")]),e._v(" "),s("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[s("el-button",{attrs:{type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(s){return e.removeStudent(t)}}},[e._v("确定")])],1),e._v(" "),s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除")])],1)],1)]}}])})],1)],1)],1)},r=[],i=(s("7f7f"),s("bc3a"),s("5f87"),s("333d")),n=(s("3908"),s("f927")),l=s("b4ac"),o=s("1cc7"),c=s("5137"),u=s("a6e9"),d={components:{pagination:i["a"],selectStudent:n["a"]},props:{isSetSalary:{type:Boolean,required:!0}},data:function(){return{pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},searchForm:{classType:null},activeType:null,activeClass:null,soundList:[],teacherList:[],tableList:[],classTypeList:[{value:"NORMAL",label:"声部班"},{value:"MIX",label:"合奏班"},{value:"HIGH",label:"基础技能班"},{value:"HIGH_ONLINE",label:"线上基础技能课"}],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,newClassVisible:!1,newClassForm:{className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},chioseStudent:[],activeListStudent:[],isNewClass:!0,studentVisible:!1,isSearch:!1,studentList:[],activeChioseSound:null,infoVisible:!1,teacherForm:{isAdd:"onlyUpdateTeacher",coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:""},teacherRules:{isAdd:[{required:!0,message:"请选择调整类型"}],coreTeacher:[{required:!0,message:"请选择主教老师"}],courseType:[{required:!0,message:"请选择上课类型"}],courseTime:[{required:!0,message:"请选择开始时间"}],courseNum:[{required:!0,message:"请输入排课次数",trigger:"blur"}],mixClassGroupId:[{required:!0,message:"请选择合奏班"}]},weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],weekList:[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}],cooperationList:[],courseTypeList:[],arrangeVisible:!1,arrangeForm:{courseNum:null,classNum:null,courseType:null,courseTime:null,teachMode:null,checked:!0},chioseTab:[],classCardList:[],teamid:null,maxMun:16,lookDeatilVisible:!1,addStudentVisible:!1,activeStudentList:[],classList:[],appoint:!1,activeSoundList:[],isStudentRemove:!1}},created:function(){},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(o["M"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getList(),Object(u["a"])({group:"holiday"}).then((function(t){200==t.code&&t.data.length>0&&t.data[0].paranValue&&(e.holidayList=JSON.parse(t.data[0].paranValue))}))},changeActiveChioseSound:function(e){this.activeChioseSound=e},getList:function(){var e=this;this.teamid=this.$route.query.id,Object(o["qb"])({groupType:"MUSIC",musicGroupId:this.teamid,type:this.searchForm.classType,page:this.rules.page,rows:this.rules.limit}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},changeClassGetList:function(e){this.getList()},newClass:function(){this.isSetSalary?this.$message.error("课酬确认后无法编辑"):(this.newClassVisible=!0,this.isStudentRemove=!1)},newClassSecond:function(){var e=this;this.$refs["newClassForm"].validate((function(t){if(t){e.isNewClass=!0;var s=e.newClassForm.type;e.isSearch=!0,e.getNoClassStudent(s,null),e.studentVisible=!0}}))},newClassHight:function(){var e=this;if("HIGH_ONLINE"==this.newClassForm.type&&(this.newClassForm.expectStudentNum>6||this.newClassForm.expectStudentNum<3))return this.$message.error("班级人数必须为3-6人");this.$refs["newClassForm"].validate((function(t){if(t){var s,a={};if(a.musicGroupId=e.teamid,a.name=e.newClassForm.className,a.type=e.newClassForm.type,a.groupType="MUSIC",a.expectStudentNum=e.newClassForm.expectStudentNum,a.teacherMapperList=[],a.teacherMapperList.push({userId:e.newClassForm.bishop,teacherRole:"BISHOP"}),"HIGH_ONLINE"==e.newClassForm.type)s=e.newClassForm.subjectId,e.newClassForm.memo.length>0&&(a.memo=e.newClassForm.memo.join(","));else{for(var r in s=e.newClassForm.memo.length>0?e.newClassForm.memo.join(","):null,e.newClassForm.teaching)a.teacherMapperList.push({userId:e.newClassForm.teaching[r],teacherRole:"TEACHING"});a.memo=s}a.subjectIdList=s,Object(o["z"])(a).then((function(t){200==t.code&&(e.$message.success("创建成功"),e.resetClassFrom(),e.getList(),e.newClassVisible=!1)}))}}))},resetClassFrom:function(){this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},this.changeMemo([])},removeStudent:function(e){var t=this;Object(c["r"])({classGroupId:this.activeClass,userId:e.row.userId}).then((function(s){200==s.code&&(t.$message.success("删除成功"),e.isVisible=!1,t.getList(t.activeMixClass),Object(c["g"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.activeListStudent=e.data,t.getNoClassStudent(t.activeType))})),"HIGH_ONLINE"!=t.activeType&&"HIGH"!=t.activeType||(e._self.$refs[e.$index].doClose(),Object(c["g"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.classList=e.data)}))))}))},addSomeStudent:function(e){var t=this;e.length<=0&&!this.isStudentRemove?this.$message.error("至少添加一名学员"):"HIGH_ONLINE"==this.activeType?Object(o["Oc"])({classGroupId:this.activeClass}).then((function(s){if(200==s.code){var a=s.data.rows[0].expectStudentNum;if(e.length>a)return void t.$message.error("超过预计招生人数");Object(l["f"])({classGroupId:t.activeClass,studentIds:e.join(",")}).then((function(e){if(200==e.code)return t.studentVisible=!1,t.$message.success("添加成功"),void t.getList()}))}})):Object(l["f"])({classGroupId:this.activeClass,studentIds:e.join(",")}).then((function(e){200==e.code&&(t.studentVisible=!1,t.$message.success("添加成功"),t.getList())}))},temporaryRemoveStudent:function(e){for(var t in this.activeListStudent)this.activeListStudent[t].userId==e.userId&&this.activeListStudent.splice(t,1);for(var s in this.studentList)this.studentList[s].userId==e.userId&&this.$refs["temporaryStudentList"].toggleRowSelection(e,!1)},objArrayRemoval:function(e,t){var s={},a=[];for(var r in e)s[e[r][t]]||(a.push(e[r]),s[e[r][t]]=!0);return a},NewselectionStudent:function(e){this.chioseStudent=e,this.chioseStudent.length>0?this.chioseStudent=this.chioseStudent.concat(e):this.chioseStudent=e,this.activeListStudent=this.activeListStudent.concat(this.chioseStudent),this.activeListStudent=this.objArrayRemoval(this.activeListStudent,"userId")},getNoClassStudent:function(e,t){var s=this;if(!t);Object(o["vb"])({musicGroupId:this.teamid,type:e,actualSubjectId:t}).then((function(e){200==e.code&&(s.studentList=e.data)}))},searchStudent:function(e){this.getNoClassStudent(this.newClassForm.type,e)},submited:function(e){this.isNewClass?this.createMusiceClass((null===e||void 0===e?void 0:e.seleched)||[]):this.addSomeStudent((null===e||void 0===e?void 0:e.seleched)||[])},createMusiceClass:function(e){var t=this,s=null;e.length>0&&(s=e.join(","));var a,r={};for(var i in r.musicGroupId=this.teamid,r.name=this.newClassForm.className,r.type=this.newClassForm.type,r.groupType="MUSIC",r.userIds=s,r.teacherMapperList=[],r.expectStudentNum=this.newClassForm.expectStudentNum,a="HIGH_ONLINE"==this.newClassForm.type?this.newClassForm.subjectIdList:"MIX"==this.newClassForm.type?null:this.newClassForm.subjectIdList.length>0?this.newClassForm.subjectIdList.join(","):null,r.subjectIdList=a,r.teacherMapperList.push({userId:this.newClassForm.bishop,teacherRole:"BISHOP"}),this.newClassForm.teaching)r.teacherMapperList.push({userId:this.newClassForm.teaching[i],teacherRole:"TEACHING"});Object(o["z"])(r).then((function(e){200==e.code&&(t.$message.success("创建成功"),t.getList(),t.resetClassFrom(),t.studentVisible=!1,t.newClassVisible=!1)}))},classAdjustment:function(e){if(this.isSetSalary)this.$message.error("课酬确认后无法编辑");else{for(var t in this.activeType=e.type,this.activeClass=e.id,this.setType(e.type),this.isNewClass=!1,this.teacherForm.assistant=[],e.teacherMapperList)"BISHOP"==e.teacherMapperList[t].teacherRole&&(this.teacherForm.coreTeacher=e.teacherMapperList[t].userId),"TEACHING"==e.teacherMapperList[t].teacherRole&&this.teacherForm.assistant.push(e.teacherMapperList[t].userId);console.log(this.teacherForm),this.infoVisible=!0}},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},setType:function(e){switch(e){case"NORMAL":this.courseTypeList=[{value:"SINGLE",label:"声部课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":this.courseTypeList=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":this.courseTypeList=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":this.courseTypeList=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"SNAP":this.courseTypeList=[{value:"SINGLE",label:"声部课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}},removeClass:function(e){var t=this;this.isSetSalary?this.$message.error("课酬确认后无法编辑"):Object(o["sc"])({classGroupId:e.row.id}).then((function(s){200==s.code?(t.$message.success("删除成功"),e._self.$refs[e.$index].doClose(),t.getList()):(t.$message.error(s.msg),e._self.$refs[e.$index].doClose())})).catch((function(t){e._self.$refs[e.$index].doClose()}))},setAssistant:function(e){for(var t in e)e[t]==this.teacherForm.coreTeacher&&e.splice(t,1)},setAssistant1:function(e){for(var t in e)e[t]==this.newClassForm.bishop&&e.splice(t,1)},SelectionStudent:function(e){this.chioseStudent=e},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",id:new Date})},submitTemporary:function(e){var t=this;this.isTemporary=1==e,this.$refs["teacherForm"].validate((function(s){if(s){var a=t.weekList;if("onlyUpdateTeacher"==t.teacherForm.isAdd||a[0]&&a[0].startClassTime&&a[0].endClassTime&&a[0].dayOfWeek){var r=t.className,i=[{userId:t.teacherForm.coreTeacher,teacherRole:"BISHOP"}];for(var n in t.teacherForm.assistant)i.push({userId:t.teacherForm.assistant[n],teacherRole:"TEACHING"});var l=t.teamid,c=t.teacherForm.courseTime,u=t.teacherForm.courseType,d=t.teacherForm.courseNum;if(d<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("请至少排一节课");else{var m=t.activeListStudent.map((function(e){return e.userId})),p=t.teacherForm.checked,h=[];for(var f in t.weekList)h.push(t.weekList[f]);if(h.length<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("新增班级至少排一节课");else{"onlyUpdateTeacher"==t.teacherForm.isAdd&&(c=null,u=null,m=null,p=null,d=null,h=null,v=null);var v=t.activeType,b={classGroupName:r,classGroupTeacherMapperList:i,musicGroupId:l,startDate:c,courseType:u,students:m,holiday:p,courseTimes:d,courseTimeDtoList:h,type:v,courseAddType:t.teacherForm.isAdd};1==e?revisionClassGroup(b).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())})):2==e?revisionAddClassGroup(b).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())})):3==e&&(b.classGroupId=t.activeClass,Object(o["t"])([b]).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.getList())})))}}}else t.$message.error("至少排一节课")}else t.$message.error("请填写必要信息")}))},resetClass:function(e){var t=this;this.isSetSalary?this.$message.error("课酬确认后无法编辑"):(this.isNewClass=!1,this.className=e.name,this.studentVisible=!0,this.activeClass=e.id,this.isSearch=!1,this.activeType=e.type,this.isStudentRemove=!0,this.newClassForm.type=e.type,this.activeChioseSound=null,Object(c["g"])({classGroupId:e.id}).then((function(e){200==e.code&&(t.activeListStudent=e.data.map((function(e){return e.isVisible=!1,e})))})),this.activeSoundList=this.soundList,this.getNoClassStudent(e.type))},arrangeStart:function(){if(this.isSetSalary)this.$message.error("课酬确认后无法编辑");else if(this.chioseTab.length<1)this.$message.error("请至少选择一个班级");else{var e=this.chioseTab[0].type,t=this.chioseTab.every((function(t){return t.type==e}));if(!t)return this.$message.error("请选择相同类型的班级"),!1;this.setType(this.chioseTab[0].type),this.arrangeForm.courseType=this.courseTypeList[0].value,this.arrangeVisible=!0,"HIGH_ONLINE"==this.arrangeForm.courseType?this.arrangeForm.teachMode="ONLINE":this.arrangeForm.teachMode="OFFLINE",this.arrangeForm.classNum=this.chioseTab.length}},selectionTable:function(e){this.chioseTab=e,this.arrangeForm.classNum=e.length},arrangeFormSubmit:function(){var e=this;this.weekList.length<0||!this.weekList[0].dayOfWeek?this.$message.error("请设置排课周期"):this.arrangeForm.courseNum>this.maxMun||this.arrangeForm.courseNum<1?this.$message.error("排课数量必须大于1或小于".concat(this.maxMun)):this.$refs["arrangeForm"].validate((function(t){if(t){var s=e.arrangeForm.courseTime,a=e.arrangeForm.courseNum,r=e.weekList,i=e.arrangeForm.courseType,n=e.arrangeForm.teachMode;e.classCardList=[],e.workOut(s,a,r,i,n)}}))},workOut:function(e,t,s,a,r){var i=this,n=s.every((function(e){return e.dayOfWeek&&e.startClassTime&&e.endClassTime}));if(n){while(t&&t>0){for(var l in s){var c=new Date(e.getTime()),u=void 0;u=s[l].dayOfWeek-e.getDay()>=0?s[l].dayOfWeek-e.getDay():s[l].dayOfWeek-e.getDay()+7;var d=this.getThinkDate(e,u),m=this.getThinkDate(c,u);if(!this.arrangeForm.checked||-1==this.holidayList.indexOf(m)){var p=s[l].startClassTime,h=s[l].endClassTime;for(var f in this.chioseTab)this.classCardList.push({classDate:d,classGroupId:this.chioseTab[f].id,startClassTimeStr:p,endClassTimeStr:h,type:a,weekNum:s[l].dayOfWeek,teachMode:r,option:1});if(t--,0==t)break}}e.setDate(e.getDate()+7)}Object(o["ad"])({musicGroupID:this.teamid,courseSchedules:this.classCardList}).then((function(e){200==e.code&&(i.$message.success("恭喜您排课成功"),i.classCardList=[],i.arrangeVisible=!1,i.getList())})).catch((function(e){console.log("排课来了"),i.classCardList=[],i.resetTime()}))}else this.$message.error("请保证循环周期信息完整")},getThinkDate:function(e,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=new Date(e.getTime());a.setDate(a.getDate()+parseInt(t));var r=a.getFullYear(),i=a.getMonth()+1,n="";n=i<10?"0"+i:i+"";var l=a.getDate(),o="";return o=l<10?"0"+l:l+"",2==s?n+o:r+"-"+n+"-"+o},resetTime:function(){this.arrangeForm.courseTime=null,this.weekList=[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}]},chioseHightype:function(e){this.changeMemo([]),"HIGH_ONLINE"==e&&(this.newClassForm.teaching=[]),this.newClassForm.subjectId="",this.$set(this.newClassForm,"subjectIdList",[]),this.$set(this.newClassForm,"memo",[])},lookDeatil:function(e){var t=this;console.log(e),this.lookDeatilVisible=!0,this.activeClass=e.id,this.activeType=e.type,Object(c["g"])({classGroupId:this.activeClass}).then((function(e){200==e.code&&(t.classList=e.data)}))},addstudentBtn:function(e){var t=this;this.activeClass=e.id;var s=e.type;Object(o["vb"])({musicGroupId:this.teamid,type:s}).then((function(e){200==e.code&&(t.studentList=e.data,t.addStudentVisible=!0)}))},selectStudent:function(e){this.activeStudentList=e},addStudnt:function(){var e=this,t=this.activeClass,s=this.activeStudentList.map((function(e){return e.userId})).join(",");Object(c["b"])({userIdsStr:s,classGroupId:t}).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.activeStudentList=[],e.addStudentVisible=!1,e.$refs.studentList.clearSelection(),e.getList())}))},changeMemo:function(e){},checkSubject:function(e){}},computed:{},filters:{getBishopName:function(e){var t="";if(e&&e.length>0)for(var s in e)"BISHOP"==e[s].teacherRole&&(t=e[s].userName);return t},getTeachingNum:function(e){var t=0;if(e&&e.length>0)for(var s in e)"TEACHING"==e[s].teacherRole&&t++;return t}},watch:{"newClassForm.type":function(){"HIGH_ONLINE"===this.newClassForm.type&&this.$set(this.newClassForm,"expectStudentNum",6)},newClassVisible:function(e){e||(this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:null,memo:[]},this.resetClassFrom())},studentVisible:function(e){e||(this.newClassVisible=!1,this.activeListStudent=[])},infoVisible:function(e){e||(this.teacherForm={isAdd:"onlyUpdateTeacher",coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:""},this.$refs["teacherForm"].resetFields())},arrangeVisible:function(e){e||(this.arrangeForm={courseNum:null,classNum:null,courseType:null,courseTime:null,teachMode:null,checked:!0},this.$refs["arrangeForm"].resetFields(),this.weekList=[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}])}}},m=d,p=(s("38b4"),s("2877")),h=Object(p["a"])(m,a,r,!1,null,"f8d828ea",null);t["a"]=h.exports},"1c4ce":function(e,t,s){"use strict";s("d910")},"2dab":function(e,t,s){},"389c":function(e,t,s){},"38b4":function(e,t,s){"use strict";s("f10c")},5137:function(e,t,s){"use strict";s.d(t,"o",(function(){return l})),s.d(t,"n",(function(){return o})),s.d(t,"e",(function(){return c})),s.d(t,"d",(function(){return u})),s.d(t,"f",(function(){return d})),s.d(t,"u",(function(){return m})),s.d(t,"p",(function(){return p})),s.d(t,"t",(function(){return h})),s.d(t,"m",(function(){return f})),s.d(t,"s",(function(){return v})),s.d(t,"j",(function(){return b})),s.d(t,"l",(function(){return g})),s.d(t,"a",(function(){return y})),s.d(t,"g",(function(){return S})),s.d(t,"b",(function(){return C})),s.d(t,"r",(function(){return L})),s.d(t,"i",(function(){return T})),s.d(t,"w",(function(){return _})),s.d(t,"v",(function(){return I})),s.d(t,"k",(function(){return w})),s.d(t,"q",(function(){return F})),s.d(t,"x",(function(){return k})),s.d(t,"c",(function(){return N})),s.d(t,"y",(function(){return x})),s.d(t,"z",(function(){return O})),s.d(t,"h",(function(){return G}));var a=s("b775"),r=s("4328"),i=s.n(r),n="/api-web";function l(e){return Object(a["a"])({url:n+"/studentManage/queryStudentList",method:"post",data:e})}function o(e){return Object(a["a"])({url:n+"/studentManage/queryOrganStudentList",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function u(e){return Object(a["a"])({url:n+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function d(e){return Object(a["a"])({url:n+"/studentManage/findStudentVipGroups",method:"get",params:e})}function m(e){return Object(a["a"])({url:n+"/studentWithdraw/queryPage",method:"get",params:e})}function p(e){return Object(a["a"])({url:n+"/studentManage/queryStudentPayment",method:"get",params:e})}function h(e){return Object(a["a"])({url:n+"/order/queryPage",method:"get",params:e})}function f(e){return Object(a["a"])({url:n+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function v(e){return Object(a["a"])({url:n+"/studentRegistration/batchUpdateSubject",method:"post",data:i.a.stringify(e)})}function b(e){return Object(a["a"])({url:n+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function g(e){return Object(a["a"])({url:n+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function y(e){return Object(a["a"])({url:n+"/studentRegistration/insertStudent",method:"POST",data:e})}function S(e){return Object(a["a"])({url:n+"/classGroupStudent/findAllStudent",method:"POST",data:i.a.stringify(e)})}function C(e){return Object(a["a"])({url:n+"/classGroupStudent/addStudents",method:"POST",data:i.a.stringify(e)})}function L(e){return Object(a["a"])({url:n+"/classGroupStudent/del",method:"POST",data:i.a.stringify(e)})}function T(e){return Object(a["a"])({url:n+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function _(e){return Object(a["a"])({url:n+"/userCashAccount/updateCourseBalance",method:"post",data:i.a.stringify(e)})}function I(e){return Object(a["a"])({url:n+"/userCashAccount/updateBalance",method:"post",data:i.a.stringify(e)})}function w(e){return Object(a["a"])({url:n+"/studentManage/queryUserByPhone",method:"get",params:e})}function F(e){return Object(a["a"])({url:n+"/studentManage/register",method:"post",data:i.a.stringify(e)})}function k(e){return Object(a["a"])({url:n+"/studentManage/studentUpdate",method:"post",data:i.a.stringify(e)})}function N(e){return Object(a["a"])({url:n+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function x(e){return Object(a["a"])({url:n+"/userCashAccountDetail/queryPage",method:"get",params:e})}function O(e){return Object(a["a"])({url:n+"/userCoursesAccount/queryPage",method:"get",params:e})}function G(e){return Object(a["a"])({url:n+"/sysUserContracts/getLatest",method:"get",params:e})}},"51bf":function(e,t){e.exports="data:image/png;base64,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"},"6daf":function(e,t,s){"use strict";s("389c")},"6f64":function(e,t,s){"use strict";s("deed")},"9ecb":function(e,t,s){"use strict";s("2dab")},a284:function(e,t,s){"use strict";s("b6b5")},a6e9:function(e,t,s){"use strict";s.d(t,"a",(function(){return i})),s.d(t,"b",(function(){return n}));var a=s("b775"),r=(s("4328"),"/api-web");function i(e){return Object(a["a"])({url:r+"/sysConfig/list",method:"get",params:e})}function n(e){return Object(a["a"])({url:r+"/sysConfig/batchUpdate",method:"post",data:e,headers:{"Content-Type":"application/json"}})}},a94b:function(e,t,s){"use strict";s("172f")},b4ac:function(e,t,s){"use strict";s.d(t,"c",(function(){return r})),s.d(t,"f",(function(){return i})),s.d(t,"d",(function(){return n})),s.d(t,"g",(function(){return l})),s.d(t,"b",(function(){return o})),s.d(t,"e",(function(){return c})),s.d(t,"a",(function(){return u}));var a=s("829b"),r=function(e){return Object(a["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},i=function(e){return Object(a["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})},n=function(e){return Object(a["a"])({url:"/api-web/studentManage/queryStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})},l=function(e){return Object(a["a"])({url:"/api-web/studentManage/updateMemberExperience",data:e,method:"post",requestType:"form"})},o=function(e){return Object(a["a"])({url:"/api-web/classGroup/getMusicGroupCourseScheduleStatistics",params:e,method:"get"})},c=function(e){return Object(a["a"])({url:"/api-web/classGroup/update",params:e,data:e,method:"post"})},u=function(e){return Object(a["a"])({url:"/api-web/studentManage/countStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})}},b6b5:function(e,t,s){},d910:function(e,t,s){},deed:function(e,t,s){},f10c:function(e,t,s){},f8e4:function(e,t){e.exports="data:image/png;base64,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"},f927:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,"label-suffix":": ",inline:"","label-width":"90px"}},[s("el-row",[s("el-col",{attrs:{span:10}},[e.isOnlyChangeUser?e._e():s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher",rules:[{required:!0,message:"请选择主教老师"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:e.form.coreTeacher,callback:function(t){e.$set(e.form,"coreTeacher","string"===typeof t?t.trim():t)},expression:"form.coreTeacher"}},e._l(e.teacherList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:String(t.id)}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:10}},[e.isOnlyChangeUser||"HIGH"==e.activeType||"HIGH_ONLINE"==e.activeType||"MUSIC_NETWORK"==e.activeType?e._e():s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"","collapse-tags":"",multiple:""},model:{value:e.form.assistant,callback:function(t){e.$set(e.form,"assistant","string"===typeof t?t.trim():t)},expression:"form.assistant"}},e._l(e.cooperationList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1)],1),e._v(" "),s("el-row",[e.showName?s("el-col",{attrs:{span:10}},[s("el-form-item",{attrs:{label:"班级名称",prop:"name",rules:[{required:!0,message:"请输入班级名称",trigger:"blur"}]}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1):e._e(),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-right":"0"},attrs:{label:e.isOnlyChangeUser?"声部筛选":"声部",prop:"sound",rules:e.isOnlyChangeUser||"MUSIC_NETWORK"==e.activeType?null:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[s("select-all",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:"请选择声部"},model:{value:e.form.sound,callback:function(t){e.$set(e.form,"sound",t)},expression:"form.sound"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),e.showName?e._e():s("el-transfer",{class:{hideReturn:!e.canDelUser},attrs:{filterable:"",titles:["所有学员","已选学员"],"filter-placeholder":"请输入学生姓名","filter-method":e.filterStudent,"render-content":e.renderFunc,data:e.data},scopedSlots:e._u([{key:"left-footer",fn:function(){return[s("div",{staticClass:"footer line"},[s("span",[e._v("姓名")]),e._v(" "),s("span",[e._v("性别")]),e._v(" "),s("span",[e._v("专业")])])]},proxy:!0},{key:"right-footer",fn:function(){return[s("div",{staticClass:"footer line"},[s("span",[e._v("姓名")]),e._v(" "),s("span",[e._v("性别")]),e._v(" "),s("span",[e._v("专业")])])]},proxy:!0}],null,!1,3605062098),model:{value:e.seleched,callback:function(t){e.seleched=t},expression:"seleched"}})],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},r=[],i=s("5530"),n=(s("96cf"),s("1da1")),l=(s("7f7f"),s("6762"),s("2fdb"),s("2909")),o=s("267e"),c=s("b4ac"),u=s("2ef0"),d={props:["studentList","soundList","activeType","activeListStudent","isOnlyChangeUser","classGroupId","type","teacherList","cooperationList","isStudentRemove"],computed:{data:function(){var e=this;return Object(u["uniqBy"])([].concat(Object(l["a"])(this.studentList),Object(l["a"])(this.activeListStudent)),"userId").filter((function(t){return!e.form.sound.length||(e.form.sound.includes(t.actualSubjectId)||e.seleched.includes(t.userId))})).map((function(e){return{value:e.userId,key:e.userId,name:e.name,subjectName:e.subjectName,gender:o["genderType"][e.gender]}}))},showName:function(){return!this.isOnlyChangeUser&&"MUSIC_NETWORK"!=this.activeType},canDelUser:function(){return"resetTeam"!==this.$route.query.type||!this.isOnlyChangeUser||this.isStudentRemove}},data:function(){return{sound:[],form:{name:"",coreTeacher:"",assistant:"",sound:[]},seleched:[]}},watch:{activeListStudent:function(){this.setSelectedUser()}},mounted:function(){this.setSelectedUser()},methods:{setSelectedUser:function(){var e=this.activeListStudent.map((function(e){return e.userId}));this.seleched=Object(l["a"])(e)},filterStudent:function(e,t){return t.name.indexOf(e)>-1||t.subjectName.indexOf(e)>-1||t.gender.indexOf(e)>-1},renderFunc:function(e,t){return e("div",{class:"line"},[e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top","open-delay":300}},[e("span",{slot:"content"},[t.name]),e("span",{class:"select-item"},[t.name])]),e("span",[t.gender]),e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top","open-delay":300}},[e("span",{slot:"content"},[t.subjectName]),e("span",{class:"select-item"},[t.subjectName])])])},change:function(e){this.$listeners.changeActiveChioseSound(e),this.$listeners.searchStudent()},submit:function(){var e=this;return!this.isOnlyChangeUser&&"HIGH_ONLINE"==this.activeType&&(this.seleched.length<3||this.seleched.length>5)?this.$message.error("线上技能班必须为3-5人"):"MUSIC_NETWORK"==this.activeType&&this.seleched.length<1&&!this.isStudentRemove?this.$message.error("请选择一名学生"):"MUSIC_NETWORK"==this.activeType&&this.seleched.length>1?this.$message.error("乐团网管课仅可添加一名学生"):void this.$refs.form.validate(function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(s){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=15;break}if(!e.isOnlyChangeUser||"change"===e.type){t.next=14;break}return t.prev=2,t.next=5,Object(c["f"])({classGroupId:e.classGroupId,studentIds:e.seleched.join(",")});case 5:e.$message.success("提交成功"),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](2);case 10:e.$listeners.submited(),e.$listeners.close(),t.next=15;break;case 14:e.$listeners.submited(Object(i["a"])(Object(i["a"])({seleched:e.seleched},e.form),{},{soundList:e.sound}));case 15:case"end":return t.stop()}}),t,null,[[2,8]])})));return function(e){return t.apply(this,arguments)}}())}}},m=d,p=(s("a94b"),s("2877")),h=Object(p["a"])(m,a,r,!1,null,"14631908",null);t["a"]=h.exports}}]);
|