chunk-3e3440eb.164e7a93.js 33 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e3440eb"],{5137:function(e,t,a){"use strict";a.d(t,"o",(function(){return o})),a.d(t,"g",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"e",(function(){return d})),a.d(t,"h",(function(){return p})),a.d(t,"c",(function(){return m})),a.d(t,"u",(function(){return f})),a.d(t,"p",(function(){return h})),a.d(t,"t",(function(){return v})),a.d(t,"n",(function(){return b})),a.d(t,"s",(function(){return g})),a.d(t,"k",(function(){return y})),a.d(t,"m",(function(){return _})),a.d(t,"a",(function(){return S})),a.d(t,"i",(function(){return C})),a.d(t,"b",(function(){return L})),a.d(t,"r",(function(){return T})),a.d(t,"j",(function(){return O})),a.d(t,"w",(function(){return k})),a.d(t,"l",(function(){return w})),a.d(t,"q",(function(){return I})),a.d(t,"x",(function(){return x})),a.d(t,"v",(function(){return N}));var s=a("b775"),r=a("4328"),n=a.n(r),i="/api-web";function o(e){return Object(s["a"])({url:i+"/studentManage/queryStudentList",method:"get",params:e})}function l(e){return Object(s["a"])({url:i+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function c(e){return Object(s["a"])({url:i+"/studentManage/findStudentBaseInfo",method:"get",params:e})}function u(e){return Object(s["a"])({url:i+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function d(e){return Object(s["a"])({url:i+"/studentManage/findStudentCourses",method:"get",params:e})}function p(e){return Object(s["a"])({url:i+"/studentManage/findStudentVipGroups",method:"get",params:e})}function m(e){return Object(s["a"])({url:i+"/studentManage/findStudentAttendances",method:"get",params:e})}function f(e){return Object(s["a"])({url:i+"/studentWithdraw/queryPage",method:"get",params:e})}function h(e){return Object(s["a"])({url:i+"/studentManage/queryStudentPayment",method:"get",params:e})}function v(e){return Object(s["a"])({url:i+"/order/queryPage",method:"get",params:e})}function b(e){return Object(s["a"])({url:i+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function g(e){return Object(s["a"])({url:i+"/studentRegistration/batchUpdateSubject",method:"post",data:n.a.stringify(e)})}function y(e){return Object(s["a"])({url:i+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function _(e){return Object(s["a"])({url:i+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function S(e){return Object(s["a"])({url:i+"/studentRegistration/insertStudent",method:"POST",data:e})}function C(e){return Object(s["a"])({url:i+"/classGroupStudent/findAllStudent",method:"POST",data:n.a.stringify(e)})}function L(e){return Object(s["a"])({url:i+"/classGroupStudent/addStudents",method:"POST",data:n.a.stringify(e)})}function T(e){return Object(s["a"])({url:i+"/classGroupStudent/del",method:"POST",data:n.a.stringify(e)})}function O(e){return Object(s["a"])({url:i+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function k(e){return Object(s["a"])({url:i+"/userCashAccount/updateCourseBalance",method:"post",data:n.a.stringify(e)})}function w(e){return Object(s["a"])({url:i+"/studentManage/queryUserByPhone",method:"get",params:e})}function I(e){return Object(s["a"])({url:i+"/studentManage/register",method:"post",data:n.a.stringify(e)})}function x(e){return Object(s["a"])({url:i+"/studentManage/studentUpdate",method:"post",data:n.a.stringify(e)})}function N(e){return Object(s["a"])({url:i+"/userCashAccount/transferCourseBalanceToBalance",method:"post",data:n.a.stringify(e)})}},"8f2a":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("div",{staticClass:"m-core"},[a("el-form",{attrs:{inline:!0,model:e.topForm}},[a("el-form-item",{attrs:{label:"班级类型"}},[a("el-select",{attrs:{clearable:"",filterable:""},on:{change:e.changeMixClass},model:{value:e.topForm.classType,callback:function(t){e.$set(e.topForm,"classType","string"===typeof t?t.trim():t)},expression:"topForm.classType"}},e._l(e.classTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.activeSingleList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"type",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("classType")(t.row.type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"班级人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?a("div",e._l(t.row.classGroupTeacherMapperList,(function(t,s){return"BISHOP"==t.teacherRole?a("p",{key:s},[e._v(e._s(t.userName))]):e._e()})),0):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?a("div",e._l(t.row.classGroupTeacherMapperList,(function(t,s){return"TEACHING"==t.teacherRole?a("p",{key:s},[e._v(e._s(t.userName))]):e._e()})),0):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"已上课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.currentClassTimes))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"总课数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.totalClassTimes))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"400px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("学员调整")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.classAdjustment(t.row)}}},[e._v("班级调整")]),e._v(" "),a("el-popover",{ref:t.$index,attrs:{placement:"top",width:"160"}},[a("p",[e._v("确定删除?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.removeClass(t)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除班级")])],1),e._v(" "),a("el-popover",{ref:t.$index,attrs:{placement:"top",width:"160"}},[a("p",[e._v("是否清空课表?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.clearCourse(t)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("清空课表")])],1)],1)]}}])})],1),e._v(" "),a("div",{staticClass:"floor"},[a("div",{staticClass:"add",on:{click:e.temporary}},[e._v("新建临时班")]),e._v(" "),a("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("NORMAL")}}},[e._v("新建单技班")]),e._v(" "),a("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("MIX")}}},[e._v("新建合奏班")]),e._v(" "),a("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("HIGH")}}},[e._v("基础技能班")])])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"学员选择",width:"700px",visible:e.studentVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.studentVisible=t}}},[a("div",{staticClass:"studentMask"},[a("div",{staticClass:"left"},[a("div",{staticClass:"wrap"},[a("el-input",{attrs:{placeholder:"请输入班级名称",disabled:!e.isNewClass},model:{value:e.className,callback:function(t){e.className="string"===typeof t?t.trim():t},expression:"className"}})],1),e._v(" "),a("div",{staticClass:"chioseStudentList"},[a("h4",{staticStyle:{"padding-left":"10px"}},[e._v("当前已选学员")]),e._v(" "),e._l(e.activeListStudent,(function(t,s){return a("div",{key:s,staticClass:"studentItem"},[e._v("\n "+e._s(t.name)+"\n "),e.isNewClass?e._e():a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.isVisible,callback:function(a){e.$set(t,"isVisible","string"===typeof a?a.trim():a)},expression:"item.isVisible"}},[a("p",[e._v("确定删除?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.isVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.removeStudent(t)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除")])],1),e._v(" "),e.isNewClass?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.temporaryRemoveStudent(t)}}},[e._v("删除")]):e._e()],1)}))],2)]),e._v(" "),a("div",{staticClass:"right"},[e.isSearch?a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"声部选择"},on:{change:e.searchStudent},model:{value:e.activeChioseSound,callback:function(t){e.activeChioseSound="string"===typeof t?t.trim():t},expression:"activeChioseSound"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1):e._e(),e._v(" "),a("div",{staticClass:"tableList"},[e.isNewClass?e._e():a("el-table",{ref:"studentList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:e.studentList},on:{"selection-change":e.SelectionStudent}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"gender",align:"center",width:"100",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}],null,!1,2603081497)}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",width:"100",align:"center",label:"学员声部"}})],1),e._v(" "),e.isNewClass?a("el-table",{ref:"temporaryStudentList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:e.studentList},on:{"selection-change":e.NewselectionStudent}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"gender",align:"center",width:"100",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}],null,!1,2603081497)}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",width:"100",align:"center",label:"学员声部"}})],1):e._e()],1)],1)]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.studentVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNewClass?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.addSomeStudent}},[e._v("确 定")]),e._v(" "),e.isNewClass?a("el-button",{attrs:{type:"primary"},on:{click:e.setInfoMsg}},[e._v("确 定")]):e._e()],1)]),e._v(" "),a("el-dialog",{attrs:{title:"班级设置",width:"700px",visible:e.infoVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.infoVisible=t}}},[a("el-form",{ref:"teacherForm",attrs:{inline:!0,model:e.teacherForm,rules:e.teacherRules,"label-position":"right","label-width":"100px;"}},[e.isNewClass?e._e():a("el-form-item",{attrs:{label:"调整方式",prop:"isAdd"}},[a("el-radio",{attrs:{label:"new"},model:{value:e.teacherForm.isAdd,callback:function(t){e.$set(e.teacherForm,"isAdd","string"===typeof t?t.trim():t)},expression:"teacherForm.isAdd"}},[e._v("班级加课")]),e._v(" "),a("el-radio",{attrs:{label:"renew"},model:{value:e.teacherForm.isAdd,callback:function(t){e.$set(e.teacherForm,"isAdd","string"===typeof t?t.trim():t)},expression:"teacherForm.isAdd"}},[e._v("重新排课")]),e._v(" "),a("el-radio",{attrs:{label:"onlyUpdateTeacher"},model:{value:e.teacherForm.isAdd,callback:function(t){e.$set(e.teacherForm,"isAdd","string"===typeof t?t.trim():t)},expression:"teacherForm.isAdd"}},[e._v("修改老师")])],1),e._v(" "),a("br"),e._v(" "),a("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher"}},[a("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.teacherForm.coreTeacher,callback:function(t){e.$set(e.teacherForm,"coreTeacher","string"===typeof t?t.trim():t)},expression:"teacherForm.coreTeacher"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("el-select",{attrs:{filterable:"",clearable:"",multiple:""},on:{change:e.setAssistant},model:{value:e.teacherForm.assistant,callback:function(t){e.$set(e.teacherForm,"assistant","string"===typeof t?t.trim():t)},expression:"teacherForm.assistant"}},e._l(e.cooperationList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?a("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[a("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 a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),a("br"),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?a("el-form-item",{attrs:{label:"排课次数",prop:"courseNum"}},[a("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?a("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[a("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(" "),a("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?a("div",{staticClass:"WeekWrap"},[a("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),a("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,s){return a("div",{key:s,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[a("span",[e._v("循环周期:")]),e._v(" "),a("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.dayOfWeek,callback:function(a){e.$set(t,"dayOfWeek","string"===typeof a?a.trim():a)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("span",[e._v("开始时间")]),e._v(" "),a("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(a){e.$set(t,"startClassTime","string"===typeof a?a.trim():a)},expression:"item.startClassTime"}}),e._v(" "),a("span",[e._v("结束时间")]),e._v(" "),a("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(a){e.$set(t,"endClassTime","string"===typeof a?a.trim():a)},expression:"item.endClassTime"}}),e._v(" "),a("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(a){return e.removeWeek(t)}}})],1)})),0)]):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.isTemporary&&e.isNewClass?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(1)}}},[e._v("确 定")]):e._e(),e._v(" "),!e.isTemporary&&e.isNewClass?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(2)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isNewClass?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(3)}}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"新增合奏班",width:"700px",visible:e.MixVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.MixVisible=t}}},[a("div",{staticClass:"studentMask"},[a("div",{staticClass:"left"},[a("div",{staticClass:"wrap"},[a("el-input",{attrs:{placeholder:"请输入合奏班名称"},model:{value:e.className,callback:function(t){e.className="string"===typeof t?t.trim():t},expression:"className"}})],1),e._v(" "),a("div",{staticClass:"chioseStudentList"},[a("h4",{staticStyle:{"padding-left":"10px"}},[e._v("当前已选学生")]),e._v(" "),e._l(e.activeListStudent,(function(t,s){return a("div",{key:s,staticClass:"studentItem"},[e._v("\n "+e._s(t.name)+"\n "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.removeSiginforMix(t)}}},[e._v("删除班级")])],1)}))],2)]),e._v(" "),a("div",{staticClass:"right"},[a("div",{staticClass:"tableList"},[a("el-table",{ref:"mixList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:e.singleList},on:{"selection-change":e.SelectionMix}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"gender",align:"center",width:"100",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",width:"120",align:"center",label:"学员声部"}})],1)],1)])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.studentVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNewClass?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.addSomeStudent}},[e._v("确 定")]),e._v(" "),e.isNewClass?a("el-button",{attrs:{type:"primary"},on:{click:e.setInfoMsg}},[e._v("确 定")]):e._e()],1)])],1)},r=[],n=(a("7f7f"),a("1cc7")),i=a("5137"),o=(a("99b4"),a("bc3a"),a("4328"),{name:"tresetClass",data:function(){return{pickerOptions:{disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},teamid:"",topForm:{classType:""},tableList:[],maxClassList:[],activeSingleList:[],resetCourseVisible:!1,resetClassVisible:!1,studentVisible:!1,MixVisible:!1,activeListStudent:[],activeChioseSound:"",chioseSoundList:[],studentList:[],activeMixClass:"",chioseStudent:[],isNewClass:!1,isSearch:!1,isTemporary:!1,className:"",activeClass:"",soundList:[],infoVisible:!1,teacherForm:{isAdd:null,coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!1,courseNum:"",mixClassGroupId:""},teacherRules:{isAdd:[{required:!0,message:"请选择调整类型"}],coreTeacher:[{required:!0,message:"请选择主教老师"}],courseType:[{required:!0,message:"请选择上课类型"}],courseTime:[{required:!0,message:"请选择开始时间"}],courseNum:[{required:!0,message:"请输入排课次数"}],mixClassGroupId:[{required:!0,message:"请选择合奏班"}]},weekList:[{week:"",startTime:"",endTime:"",id:new Date}],teacherList:[],courseTypeList:[],weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],classTypeList:[{value:"NORMAL",label:"单技班"},{value:"MIX",label:"合奏班"},{value:"HIGH",label:"基础技能班"},{value:"SNAP",label:"临时班"}],cooperationList:[],singleList:[],activeSingleLists:[],activeType:"",resetClassForm:{startTime:"",endTime:"",assistant:[],coreTeacher:""},recourseForm:{courseType:"",checked:!1,courseTime:"",courseNum:""},organId:""}},created:function(){this.init()},activated:function(){this.init()},mounted:function(){},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(n["ib"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.organId=t.data.musicGroup.organId,Object(n["fb"])({organId:e.organId}).then((function(t){200==t.code&&(e.cooperationList=t.data,e.teacherList=t.data)})))})),sessionStorage.setItem("resetCode",3),Object(n["E"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.maxClassList=t.data)})),this.changeMixClass(),Object(n["A"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)}))},recourse:function(e){this.weekList=[{week:"",startTime:"",endTime:"",id:new Date}],this.resetCourseVisible=!0},addMix:function(){this.MixVisible=!0},setAssistant:function(e){for(var t in e)e[t]==this.teacherForm.coreTeacher&&e.splice(t,1)},changeMixClass:function(e){this.getList(e),this.activeMixClass=e},getList:function(e){var t=this;Object(n["G"])({musicGroupId:this.teamid,type:e}).then((function(e){200==e.code&&(t.activeSingleList=e.data)}))},temporary:function(){this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isSearch=!0,this.className="",this.isTemporary=!0,this.setType("SNAP"),this.getNoClassStudent("SNAP")},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:"SINGLE",label:"单技课"},{value:"TRAINING_SINGLE",label:"集训单技课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",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:"课堂课"}]}},addNewClass:function(e){this.setType(e),this.activeType=e,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isSearch=!1,this.className="",this.isTemporary=!1,this.getNoClassStudent(e)},searchStudent:function(){var e=this;Object(n["Sb"])({musicGroupId:this.teamid,actualSubjectId:this.activeChioseSound}).then((function(t){200==t.code&&(e.studentList=t.data)}))},SelectionStudent:function(e){this.chioseStudent=e},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")},clearCourse:function(e){var t=this;Object(n["q"])({classGroupId:e.row.id}).then((function(a){200==a.code?(t.$message.success("清除成功"),e._self.$refs[e.$index].doClose(),t.getList(t.activeMixClass)):(t.$message.error(a.msg),e._self.$refs[e.$index].doClose())})).catch((function(t){e._self.$refs[e.$index].doClose()}))},removeClass:function(e){var t=this;Object(n["Cb"])({classGroupId:e.row.id}).then((function(a){200==a.code?(t.$message.success("删除成功"),e._self.$refs[e.$index].doClose(),t.getList(t.activeMixClass)):(t.$message.error(a.msg),e._self.$refs[e.$index].doClose())})).catch((function(t){e._self.$refs[e.$index].doClose()}))},resetClass:function(e){var t=this;this.isNewClass=!1,this.className=e.name,this.studentVisible=!0,this.activeClass=e.id,this.isSearch=!1,this.activeType=e.type,Object(i["i"])({classGroupId:e.id}).then((function(e){200==e.code&&(t.activeListStudent=e.data.map((function(e){return e.isVisible=!1,e})))})),this.getNoClassStudent(e.type)},classAdjustment:function(e){for(var t in this.activeType=e.type,this.activeClass=e.id,this.setType(e.type),this.isNewClass=!1,this.teacherForm.assistant=[],e.classGroupTeacherMapperList)"BISHOP"==e.classGroupTeacherMapperList[t].teacherRole&&(this.teacherForm.coreTeacher=e.classGroupTeacherMapperList[t].userId),"TEACHING"==e.classGroupTeacherMapperList[t].teacherRole&&this.teacherForm.assistant.push(e.classGroupTeacherMapperList[t].userId);this.infoVisible=!0},getNoClassStudent:function(e){var t=this;Object(n["V"])({musicGroupId:this.teamid,type:e}).then((function(e){if(200==e.code)if("SNAP"==t.activeType){var a=[],s=[],r=e.data.concat(t.activeListStudent);for(var n in e.data)a.push(e.data[n].userId);for(var i in t.activeListStudent)s.push(t.activeListStudent[i].userId);t.studentList=r.filter((function(e){return-1===a.indexOf(e.userId)||-1===s.indexOf(e.userId)}))}else t.studentList=e.data}))},removeStudent:function(e){var t=this;Object(i["r"])({classGroupId:this.activeClass,userId:e.userId}).then((function(a){200==a.code&&(t.$message.success("删除成功"),e.isVisible=!1,t.getList(t.activeMixClass),Object(i["i"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.activeListStudent=e.data)})),t.getNoClassStudent(t.activeType))}))},addSomeStudent:function(){var e=this,t=this.chioseStudent.map((function(e){return e.userId}));t.length<=0?this.$message.error("至少添加一名学员"):Object(i["b"])({classGroupId:this.activeClass,userIdsStr:t.join(",")}).then((function(t){200==t.code&&(e.studentVisible=!1,e.$message.success("添加成功"),e.getList())}))},SelectionMix:function(e){this.activeSingleLists=e},removeSiginforMix:function(e){for(var t in this.activeSingleLists)this.activeSingleLists[t].id==e.id&&this.$refs["mixList"].toggleRowSelection(e,!1)},temporaryRemoveStudent:function(e){for(var t in this.activeListStudent)this.activeListStudent[t].userId==e.userId&&this.activeListStudent.splice(t,1);for(var a in this.studentList)this.studentList[a].userId==e.userId&&this.$refs["temporaryStudentList"].toggleRowSelection(e,!1)},objArrayRemoval:function(e,t){var a={},s=[];for(var r in e)a[e[r][t]]||(s.push(e[r]),a[e[r][t]]=!0);return s},setInfoMsg:function(){this.className?this.activeListStudent.length<=0?this.$message.error("班级里至少要有一名学生"):this.infoVisible=!0:this.$message.error("请输入班级名称")},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",id:new Date})},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},submitTemporary:function(e){var t=this;this.isTemporary=1==e,this.$refs["teacherForm"].validate((function(a){if(a){var s=t.weekList;if("onlyUpdateTeacher"==t.teacherForm.isAdd||s[0]&&s[0].startClassTime&&s[0].endClassTime&&s[0].dayOfWeek){var r=t.className,i=[{userId:t.teacherForm.coreTeacher,teacherRole:"BISHOP"}];for(var o in t.teacherForm.assistant)i.push({userId:t.teacherForm.assistant[o],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 p=t.activeListStudent.map((function(e){return e.userId})),m=t.teacherForm.checked,f=[];for(var h in t.weekList)f.push(t.weekList[h]);if(f.length<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("新增班级至少排一节课");else{"onlyUpdateTeacher"==t.teacherForm.isAdd&&(c=null,u=null,p=null,m=null,d=null,f=null,v=null);var v=t.activeType,b={classGroupName:r,classGroupTeacherMapperList:i,musicGroupId:l,startDate:c,courseType:u,students:p,holiday:m,courseTimes:d,courseTimeDtoList:f,type:v,courseAddType:t.teacherForm.isAdd};1==e?Object(n["Lb"])(b).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())})):2==e?Object(n["Kb"])(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(n["o"])(b).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.getList())})))}}}else t.$message.error("至少排一节课")}else t.$message.error("请填写必要信息")}))}},watch:{infoVisible:function(e){e||(this.$refs["teacherForm"].resetFields(),this.weekList=[])}}}),l=o,c=(a("9ef7"),a("2877")),u=Object(c["a"])(l,s,r,!1,null,"f64751ec",null);t["default"]=u.exports},"99b4":function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"A",(function(){return u})),a.d(t,"y",(function(){return d})),a.d(t,"G",(function(){return p})),a.d(t,"F",(function(){return m})),a.d(t,"H",(function(){return f})),a.d(t,"z",(function(){return h})),a.d(t,"j",(function(){return v})),a.d(t,"l",(function(){return b})),a.d(t,"p",(function(){return g})),a.d(t,"k",(function(){return y})),a.d(t,"D",(function(){return _})),a.d(t,"n",(function(){return S})),a.d(t,"E",(function(){return C})),a.d(t,"C",(function(){return L})),a.d(t,"f",(function(){return T})),a.d(t,"h",(function(){return O})),a.d(t,"g",(function(){return k})),a.d(t,"i",(function(){return w})),a.d(t,"q",(function(){return I})),a.d(t,"r",(function(){return x})),a.d(t,"t",(function(){return N})),a.d(t,"s",(function(){return j})),a.d(t,"o",(function(){return M})),a.d(t,"w",(function(){return F})),a.d(t,"u",(function(){return G})),a.d(t,"x",(function(){return A})),a.d(t,"v",(function(){return $})),a.d(t,"m",(function(){return V})),a.d(t,"b",(function(){return R})),a.d(t,"a",(function(){return q})),a.d(t,"B",(function(){return E}));var s=a("b775"),r=a("4328"),n=a.n(r),i="/api-web";function o(e){return Object(s["a"])({url:i+"/cooperationOrgan/add",method:"post",data:n.a.stringify(e)})}function l(e){return Object(s["a"])({url:i+"/cooperationOrgan/update",method:"put",data:n.a.stringify(e)})}function c(e){return Object(s["a"])({url:i+"/cooperationOrgan/del/".concat(e),method:"post"})}function u(e){return Object(s["a"])({url:i+"/cooperationOrgan/queryPage",method:"get",params:e})}function d(e){return Object(s["a"])({url:i+"/cooperationOrgan/queryByOrganId",method:"get",params:e})}function p(e){return Object(s["a"])({url:i+"/school/queryPage",method:"get",params:e})}function m(e){return Object(s["a"])({url:i+"/school/add",method:"post",data:n.a.stringify(e)})}function f(e){return Object(s["a"])({url:i+"/school/update",method:"post",data:n.a.stringify(e)})}function h(e){return Object(s["a"])({url:i+"/employee/queryEmployByOrganId",method:"get",params:e})}function v(e){return Object(s["a"])({url:i+"/employee/add",method:"post",data:e})}function b(e){return Object(s["a"])({url:i+"/employee/update",method:"post",data:e})}function g(e){return Object(s["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function y(e){return Object(s["a"])({url:i+"/employee/employeeOperate",method:"post",data:n.a.stringify(e)})}function _(e){return Object(s["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function S(e){return Object(s["a"])({url:"/api-auth/role/".concat(e.id),method:"get"})}function C(e){return Object(s["a"])({url:"/api-auth/role/update",method:"post",data:e})}function L(e){return Object(s["a"])({url:"/api-auth/role/add",method:"post",data:e})}function T(e){return Object(s["a"])({url:i+"/courseScheduleRewards/queryPage",method:"get",params:e})}function O(e){return Object(s["a"])({url:i+"/courseScheduleRewards/query",method:"get",params:e})}function k(e){return Object(s["a"])({url:i+"/courseScheduleRewards/add",method:"post",data:n.a.stringify(e)})}function w(e){return Object(s["a"])({url:i+"/courseScheduleRewards/update",method:"post",data:n.a.stringify(e)})}function I(e){return Object(s["a"])({url:i+"/hotWordLabelManage/queryPage",method:"get",params:e})}function x(e){return Object(s["a"])({url:i+"/hotWordLabelManage/add",method:"post",data:n.a.stringify(e)})}function N(e){return Object(s["a"])({url:i+"/hotWordLabelManage/update",method:"post",data:n.a.stringify(e)})}function j(e){return Object(s["a"])({url:i+"/hotWordLabelManage/del/".concat(e),method:"post"})}function M(e){return Object(s["a"])({url:i+"/school/queryByOrganId",method:"get",params:e})}function F(e){return Object(s["a"])({url:i+"/paymentConfig/queryPage",method:"get",params:e})}function G(e){return Object(s["a"])({url:i+"/paymentConfig/add",method:"post",data:n.a.stringify(e)})}function A(e){return Object(s["a"])({url:i+"/paymentConfig/update",method:"post",data:n.a.stringify(e)})}function $(e){return Object(s["a"])({url:i+"/paymentConfig/del/"+e.id,method:"post"})}function V(e){return Object(s["a"])({url:i+"/teacher/findTeacherByOrganId",method:"get",params:e})}function R(e){return Object(s["a"])({url:i+"/appVersionInfo/list",method:"get",params:e})}function q(e){return Object(s["a"])({url:i+"/appVersionInfo/add",method:"post",data:n.a.stringify(e)})}function E(e){return Object(s["a"])({url:i+"/appVersionInfo/update",method:"post",data:n.a.stringify(e)})}},"9ef7":function(e,t,a){"use strict";var s=a("aaf4"),r=a.n(s);r.a},aaf4:function(e,t,a){}}]);