1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f7b8967e"],{"1cc7":function(t,e,r){"use strict";r.d(e,"C",(function(){return i})),r.d(e,"Q",(function(){return o})),r.d(e,"t",(function(){return c})),r.d(e,"o",(function(){return l})),r.d(e,"I",(function(){return d})),r.d(e,"G",(function(){return m})),r.d(e,"v",(function(){return p})),r.d(e,"x",(function(){return f})),r.d(e,"h",(function(){return h})),r.d(e,"M",(function(){return b})),r.d(e,"D",(function(){return v})),r.d(e,"F",(function(){return g})),r.d(e,"A",(function(){return S})),r.d(e,"B",(function(){return y})),r.d(e,"d",(function(){return _})),r.d(e,"X",(function(){return j})),r.d(e,"m",(function(){return O})),r.d(e,"b",(function(){return C})),r.d(e,"p",(function(){return G})),r.d(e,"W",(function(){return T})),r.d(e,"f",(function(){return k})),r.d(e,"w",(function(){return L})),r.d(e,"fb",(function(){return w})),r.d(e,"q",(function(){return x})),r.d(e,"r",(function(){return M})),r.d(e,"ib",(function(){return I})),r.d(e,"E",(function(){return N})),r.d(e,"n",(function(){return F})),r.d(e,"j",(function(){return $})),r.d(e,"g",(function(){return P})),r.d(e,"K",(function(){return q})),r.d(e,"c",(function(){return R})),r.d(e,"k",(function(){return V})),r.d(e,"eb",(function(){return A})),r.d(e,"y",(function(){return E})),r.d(e,"z",(function(){return D})),r.d(e,"P",(function(){return B})),r.d(e,"R",(function(){return W})),r.d(e,"H",(function(){return H})),r.d(e,"O",(function(){return z})),r.d(e,"N",(function(){return X})),r.d(e,"a",(function(){return J})),r.d(e,"s",(function(){return Q})),r.d(e,"u",(function(){return U})),r.d(e,"Y",(function(){return K})),r.d(e,"gb",(function(){return Y})),r.d(e,"J",(function(){return Z})),r.d(e,"bb",(function(){return tt})),r.d(e,"U",(function(){return et})),r.d(e,"V",(function(){return rt})),r.d(e,"L",(function(){return nt})),r.d(e,"S",(function(){return at})),r.d(e,"Z",(function(){return st})),r.d(e,"T",(function(){return ut})),r.d(e,"i",(function(){return it})),r.d(e,"db",(function(){return ot})),r.d(e,"cb",(function(){return ct})),r.d(e,"e",(function(){return lt})),r.d(e,"ab",(function(){return dt})),r.d(e,"l",(function(){return mt})),r.d(e,"hb",(function(){return pt}));var n=r("b775"),a=r("4328"),s=r.n(a),u="/api-web";function i(t){return Object(n["a"])({url:u+"/organization/queryPage",method:"get",params:t})}function o(t){return Object(n["a"])({url:u+"/chargeType/queryPage",method:"get",params:t})}function c(t){return Object(n["a"])({url:u+"/cooperationOrgan/queryPage",method:"get",params:t})}function l(t){return Object(n["a"])({url:u+"/school/queryPage",method:"get",params:t})}function d(t){return Object(n["a"])({url:u+"/teacher/findTeachers",method:"get",params:t})}function m(t){return Object(n["a"])({url:u+"/subject/findSubSubjects",method:"get",params:t})}function p(t){return Object(n["a"])({url:u+"/subject/findDefaultSubByChargeTypeId",method:"get",params:t})}function f(t){return Object(n["a"])({url:u+"/goods/queryGoodsBySubId",method:"get",params:t})}function h(t){return Object(n["a"])({url:u+"/musicGroup/createGroup",method:"post",data:t})}function b(t){return Object(n["a"])({url:u+"/musicGroupSubjectPlan/getMusicSubjectClass",method:"get",params:t})}function v(t){return Object(n["a"])({url:u+"/classGroup/findMusicGroupClass",method:"get",params:t})}function g(t){return Object(n["a"])({url:u+"/studentRegistration/queryStudentApplyDetail",method:"get",params:t})}function S(t){return Object(n["a"])({url:u+"/studentRegistration/getNoClassStu",method:"get",params:t})}function y(t){return Object(n["a"])({url:u+"/studentRegistration/getMusicGroupNoClassStu",method:"get",params:t})}function _(t){return Object(n["a"])({url:u+"/classGroup/add",method:"post",data:t})}function j(t){return Object(n["a"])({url:u+"/classGroup/delSingle",method:"post",data:s.a.stringify(t)})}function O(t){return Object(n["a"])({url:u+"/classGroup/findNoClassSubjects",method:"get",params:t})}function C(t){return Object(n["a"])({url:u+"/classGroup/addMixClass",method:"post",data:s.a.stringify(t)})}function G(t){return Object(n["a"])({url:u+"/classGroup/findMixMusicGroupClass",method:"get",params:t})}function T(t){return Object(n["a"])({url:u+"/classGroup/delMix",method:"post",data:s.a.stringify(t)})}function k(t){return Object(n["a"])({url:u+"/classGroup/findAllClassGroupByMusicGroup",method:"get",params:t})}function L(t){return Object(n["a"])({url:u+"/classGroup/findMusicGroupClassTeacher",method:"get",params:t})}function w(t){return Object(n["a"])({url:u+"/classGroup/addClassGroupTeacher",method:"post",data:t})}function x(t){return Object(n["a"])({url:u+"/classGroup/findClassGroupAboutMix",method:"get",params:t})}function M(t){return Object(n["a"])({url:u+"/classGroup/classGroupAndTeacher",method:"get",params:t})}function I(t){return Object(n["a"])({url:u+"/courseSchedule/batchAddCourseSchedule",method:"post",data:t})}function N(t){return Object(n["a"])({url:u+"/subject/queryPageTree",method:"get",params:t})}function F(t){return Object(n["a"])({url:u+"/subject/querySubByMusicGroupId",method:"get",params:t})}function $(t){return Object(n["a"])({url:u+"/teacher/findMusicGroupTeachers",method:"get",params:t})}function P(t){return Object(n["a"])({url:u+"/courseSchedule/checkMusicGroupClassCourse",method:"post",data:s.a.stringify(t)})}function q(t){return Object(n["a"])({url:u+"/musicGroup/get/",method:"get",params:t})}function R(t){return Object(n["a"])({url:u+"/classGroup/addHighClass",method:"POST",data:t})}function V(t){return Object(n["a"])({url:u+"/classGroup/findMusicGroupClassTeacherSalary",method:"GET",params:t})}function A(t){return Object(n["a"])({url:u+"/classGroup/setClassGroupTeacherSalary",method:"post",data:t})}function E(t){return Object(n["a"])({url:u+"/musicGroup/get",method:"get",params:t})}function D(t){return Object(n["a"])({url:u+"/recharge/findAll",method:"get",params:t})}function B(t){return Object(n["a"])({url:u+"/teacher/queryMusicGroupTeachers",method:"get",params:t})}function W(t){return Object(n["a"])({url:u+"/subject/findSubApplyDetail",method:"get",params:t})}function H(t){return Object(n["a"])({url:u+"/teacher/queryTeacherAttendance",method:"get",params:t})}function z(t){return Object(n["a"])({url:u+"/studentManage/queryMusicGroupStudent",method:"get",params:t})}function X(t){return Object(n["a"])({url:u+"/studentManage/musicGroupStudentsSum",method:"get",params:t})}function J(t){return Object(n["a"])({url:u+"/musicGroupQuit/directQuitMusicGroup",method:"post",data:s.a.stringify(t)})}function Q(t){return Object(n["a"])({url:u+"/classGroup/queryMusicGroupClassGroup",method:"get",params:t})}function U(t){return Object(n["a"])({url:u+"/classGroup/queryMusicGroupCourseSchedule",method:"get",params:t})}function K(t){return Object(n["a"])({url:u+"/courseSchedule/classStartDateAdjust",method:"post",data:s.a.stringify(t)})}function Y(t){return Object(n["a"])({url:u+"/studentRegistration/getMusicGroupStu",method:"get",params:t})}function Z(t){return Object(n["a"])({url:u+"/musicGroup/findMusicGroupBasicInfo",method:"POST",data:s.a.stringify(t)})}function tt(t){return Object(n["a"])({url:u+"/musicGroup/update",method:"POST",data:t})}function et(t){return Object(n["a"])({url:u+"/musicGroup/openPay",method:"POST",data:s.a.stringify(t)})}function rt(t){return Object(n["a"])({url:u+"/studentRegistration/openPayment",method:"POST",data:s.a.stringify(t)})}function nt(t){return Object(n["a"])({url:u+"/order/getMusicalList",method:"get",params:t})}function at(t){return Object(n["a"])({url:u+"/classGroup/highClassGroups",method:"get",params:t})}function st(t){return Object(n["a"])({url:u+"/classGroupStudent/adjustClassGroup",method:"POST",data:s.a.stringify(t)})}function ut(t){return Object(n["a"])({url:u+"/musicGroup/found",method:"POST",data:s.a.stringify(t)})}function it(t){return Object(n["a"])({url:u+"/musicGroup/extensionPayment",method:"POST",data:s.a.stringify(t)})}function ot(t){return Object(n["a"])({url:u+"/classGroup/revisionClassGroup",method:"POST",data:t})}function ct(t){return Object(n["a"])({url:u+"/classGroup/revisionAddClassGroup",method:"POST",data:t})}function lt(t){return Object(n["a"])({url:u+"/musicGroup/cancelMusicGroup",method:"POST",data:s.a.stringify(t)})}function dt(t){return Object(n["a"])({url:u+"/musicGroup/updateExpectedStudentNum",method:"POST",data:t})}function mt(t){return Object(n["a"])({url:u+"/musicGroup/findMusicGroupSubjectInfo",method:"get",params:t})}function pt(t){return Object(n["a"])({url:u+"/musicGroup/updateSubjectInfo",method:"POST",data:t})}},5137:function(t,e,r){"use strict";r.d(e,"l",(function(){return i})),r.d(e,"d",(function(){return o})),r.d(e,"f",(function(){return c})),r.d(e,"e",(function(){return l})),r.d(e,"g",(function(){return d})),r.d(e,"c",(function(){return m})),r.d(e,"q",(function(){return p})),r.d(e,"m",(function(){return f})),r.d(e,"p",(function(){return h})),r.d(e,"k",(function(){return b})),r.d(e,"o",(function(){return v})),r.d(e,"i",(function(){return g})),r.d(e,"j",(function(){return S})),r.d(e,"a",(function(){return y})),r.d(e,"h",(function(){return _})),r.d(e,"b",(function(){return j})),r.d(e,"n",(function(){return O}));var n=r("b775"),a=r("4328"),s=r.n(a),u="/api-web";function i(t){return Object(n["a"])({url:u+"/studentManage/queryStudentList",method:"get",params:t})}function o(t){return Object(n["a"])({url:u+"/studentManage/findStudentBaseInfo",method:"get",params:t})}function c(t){return Object(n["a"])({url:u+"/studentManage/findStudentMusicGroups",method:"get",params:t})}function l(t){return Object(n["a"])({url:u+"/studentManage/findStudentCourses",method:"get",params:t})}function d(t){return Object(n["a"])({url:u+"/studentManage/findStudentVipGroups",method:"get",params:t})}function m(t){return Object(n["a"])({url:u+"/studentManage/findStudentAttendances",method:"get",params:t})}function p(t){return Object(n["a"])({url:u+"/studentWithdraw/queryPage",method:"get",params:t})}function f(t){return Object(n["a"])({url:u+"/studentManage/queryStudentPayment",method:"get",params:t})}function h(t){return Object(n["a"])({url:u+"/order/queryPage",method:"get",params:t})}function b(t){return Object(n["a"])({url:u+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:t})}function v(t){return Object(n["a"])({url:u+"/studentRegistration/batchUpdateSubject",method:"post",data:s.a.stringify(t)})}function g(t){return Object(n["a"])({url:u+"/studentRegistration/queryFeeDetail",method:"get",params:t})}function S(t){return Object(n["a"])({url:u+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:t})}function y(t){return Object(n["a"])({url:u+"/studentRegistration/insertStudent",method:"POST",data:s.a.stringify(t)})}function _(t){return Object(n["a"])({url:u+"/classGroupStudent/findAllStudent",method:"POST",data:s.a.stringify(t)})}function j(t){return Object(n["a"])({url:u+"/classGroupStudent/addStudents",method:"POST",data:s.a.stringify(t)})}function O(t){return Object(n["a"])({url:u+"/classGroupStudent/del",method:"POST",data:s.a.stringify(t)})}},8064:function(t,e,r){},"8f2a":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"m-container"},[t._m(0),t._v(" "),r("div",{staticClass:"m-core"},[r("el-form",{attrs:{inline:!0,model:t.topForm}},[r("el-form-item",{attrs:{label:"合奏班"}},[r("el-select",{on:{change:t.changeMixClass},model:{value:t.topForm.mixClass,callback:function(e){t.$set(t.topForm,"mixClass",e)},expression:"topForm.mixClass"}},t._l(t.maxClassList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{label:"当前单技班数量"}},[r("el-input",{attrs:{disabled:""},model:{value:t.topForm.count,callback:function(e){t.$set(t.topForm,"count",e)},expression:"topForm.count"}})],1)],1),t._v(" "),r("div",{staticClass:"tableWrap",staticStyle:{width:"800px"}},[r("el-table",{staticStyle:{width:"800px"},attrs:{data:t.activeSingleList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"班级人数"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"",label:"主教老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.classGroupTeacherMapperList?r("div",t._l(e.row.classGroupTeacherMapperList,(function(e,n){return"BISHOP"==e.teacherRole?r("p",{key:n},[t._v(t._s(e.userName))]):t._e()})),0):t._e()]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"助教老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.classGroupTeacherMapperList?r("div",t._l(e.row.classGroupTeacherMapperList,(function(e,n){return"TEACHING"==e.teacherRole?r("p",{key:n},[t._v(t._s(e.userName))]):t._e()})),0):t._e()]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"是否排课"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[e.row.totalClassTimes>0?r("p",[t._v(" 是")]):t._e(),t._v(" "),e.row.totalClassTimes<=0?r("p",[t._v(" 否")]):t._e()])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("el-popover",{ref:e.$index,attrs:{placement:"top",width:"160"}},[r("p",[t._v("确定删除?")]),t._v(" "),r("div",{staticStyle:{"text-align":"right",margin:"0"}},[r("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e._self.$refs[e.$index].doClose()}}},[t._v("取消")]),t._v(" "),r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(r){return t.removeClass(e)}}},[t._v("确定")])],1),t._v(" "),r("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("删除")])],1),t._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.resetClass(e.row)}}},[t._v("修改")])],1)]}}])})],1),t._v(" "),r("div",{staticClass:"floor"},[r("div",{staticClass:"add",on:{click:t.temporary}},[t._v("临时调整")]),t._v(" "),r("div",{staticClass:"add",on:{click:t.addNewClass}},[t._v("新建班级")])])],1)],1),t._v(" "),r("el-dialog",{attrs:{title:"学员选择",width:"700px",visible:t.studentVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.studentVisible=e}}},[r("div",{staticClass:"studentMask"},[r("div",{staticClass:"left"},[r("div",{staticClass:"wrap"},[r("el-input",{attrs:{placeholder:"请输入班级名称",disabled:!t.isNewClass},model:{value:t.className,callback:function(e){t.className=e},expression:"className"}})],1),t._v(" "),r("div",{staticClass:"chioseStudentList"},[r("h4",{staticStyle:{"padding-left":"10px"}},[t._v("当前已选学员")]),t._v(" "),t._l(t.activeListStudent,(function(e,n){return r("div",{key:n,staticClass:"studentItem"},[t._v("\n "+t._s(e.name)+"\n "),t.isNewClass?t._e():r("el-popover",{attrs:{placement:"top",width:"160"},model:{value:e.isVisible,callback:function(r){t.$set(e,"isVisible",r)},expression:"item.isVisible"}},[r("p",[t._v("确定删除?")]),t._v(" "),r("div",{staticStyle:{"text-align":"right",margin:"0"}},[r("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.isVisible=!1}}},[t._v("取消")]),t._v(" "),r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(r){return t.removeStudent(e)}}},[t._v("确定")])],1),t._v(" "),r("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("删除")])],1),t._v(" "),t.isNewClass?r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.temporaryRemoveStudent(e)}}},[t._v("删除")]):t._e()],1)}))],2)]),t._v(" "),r("div",{staticClass:"right"},[t.isSearch?r("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",placeholder:"声部选择"},model:{value:t.activeChioseSound,callback:function(e){t.activeChioseSound=e},expression:"activeChioseSound"}},t._l(t.soundList,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1):t._e(),t._v(" "),t.isSearch?r("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"danger"},on:{click:t.searchStudent}},[t._v("搜索")]):t._e(),t._v(" "),r("div",{staticClass:"tableList"},[t.isNewClass?t._e():r("el-table",{ref:"studentList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:t.studentList},on:{"selection-change":t.SelectionStudent}},[r("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),t._v(" "),r("el-table-column",{attrs:{prop:"name",align:"center",width:"80",label:"姓名"}}),t._v(" "),r("el-table-column",{attrs:{prop:"gender",align:"center",width:"55",label:"性别"}}),t._v(" "),r("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"学员声部"}})],1),t._v(" "),t.isNewClass?r("el-table",{ref:"temporaryStudentList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:t.studentList},on:{"selection-change":t.NewselectionStudent}},[r("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),t._v(" "),r("el-table-column",{attrs:{prop:"name",align:"center",width:"80",label:"姓名"}}),t._v(" "),r("el-table-column",{attrs:{prop:"gender",align:"center",width:"55",label:"性别"}}),t._v(" "),r("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"学员声部"}})],1):t._e()],1)],1)]),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.studentVisible=!1}}},[t._v("取 消")]),t._v(" "),t.isNewClass?t._e():r("el-button",{attrs:{type:"primary"},on:{click:t.addSomeStudent}},[t._v("确 定")]),t._v(" "),t.isNewClass?r("el-button",{attrs:{type:"primary"},on:{click:t.setInfoMsg}},[t._v("确 定")]):t._e()],1)]),t._v(" "),r("el-dialog",{attrs:{title:"班级设置",width:"700px",visible:t.infoVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.infoVisible=e}}},[r("el-form",{ref:"teacherForm",attrs:{inline:!0,model:t.teacherForm,rules:t.teacherRules,"label-position":"right","label-width":"100px;"}},[r("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher"}},[r("el-select",{model:{value:t.teacherForm.coreTeacher,callback:function(e){t.$set(t.teacherForm,"coreTeacher",e)},expression:"teacherForm.coreTeacher"}},t._l(t.teacherList,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.userId}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[r("el-select",{attrs:{multiple:""},model:{value:t.teacherForm.assistant,callback:function(e){t.$set(t.teacherForm,"assistant",e)},expression:"teacherForm.assistant"}},t._l(t.teacherList,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.userId}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[r("el-select",{model:{value:t.teacherForm.courseType,callback:function(e){t.$set(t.teacherForm,"courseType",e)},expression:"teacherForm.courseType"}},t._l(t.courseTypeList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.value,label:t.label}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{label:"排课次数",prop:"courseNum"}},[r("el-input",{attrs:{type:"number"},model:{value:t.teacherForm.courseNum,callback:function(e){t.$set(t.teacherForm,"courseNum",e)},expression:"teacherForm.courseNum"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[r("el-date-picker",{staticStyle:{width:"200px"},attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.teacherForm.courseTime,callback:function(e){t.$set(t.teacherForm,"courseTime",e)},expression:"teacherForm.courseTime"}}),t._v(" "),r("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:t.teacherForm.checked,callback:function(e){t.$set(t.teacherForm,"checked",e)},expression:"teacherForm.checked"}},[t._v("是否跳过节假日")])],1)],1),t._v(" "),r("div",{staticClass:"WeekWrap"},[r("h3",{staticStyle:{"margin-bottom":"20px"}},[t._v("循环次数 "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:t.addWeek}},[t._v("添加")])],1),t._v(" "),r("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},t._l(t.weekList,(function(e,n){return r("div",{key:n,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[r("span",[t._v("循环周期: ")]),t._v(" "),r("el-select",{model:{value:e.week,callback:function(r){t.$set(e,"week",r)},expression:"item.week"}},t._l(t.weekDateList,(function(t,e){return r("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),r("span",[t._v("开始时间")]),t._v(" "),r("el-time-select",{attrs:{placeholder:"","picker-options":{start:"08:30",step:"00:15",end:"18:30"}},model:{value:e.startTime,callback:function(r){t.$set(e,"startTime",r)},expression:"item.startTime"}}),t._v(" "),r("span",[t._v("结束时间")]),t._v(" "),r("el-time-select",{attrs:{placeholder:"","picker-options":{start:"08:30",step:"00:15",end:"18:30"}},model:{value:e.endTime,callback:function(r){t.$set(e,"endTime",r)},expression:"item.endTime"}}),t._v(" "),r("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(r){return t.removeWeek(e)}}})],1)})),0)]),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t.isTemporary?r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitTemporary(1)}}},[t._v("确 定")]):t._e(),t._v(" "),t.isTemporary?t._e():r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitTemporary(2)}}},[t._v("确 定")])],1)],1)],1)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("h2",[r("div",{staticClass:"squrt"}),t._v("\n 班级调整\n ")])}],s=(r("7f7f"),r("1cc7")),u=r("5137"),i=(r("bc3a"),r("4328"),{data:function(){return{teamid:"",topForm:{mixClass:"",count:""},tableList:[],maxClassList:[],activeSingleList:[],studentVisible:!1,activeListStudent:[],activeChioseSound:"",chioseSoundList:[],studentList:[],activeMixClass:"",chioseStudent:[],isNewClass:!1,isSearch:!1,isTemporary:!1,className:"",activeClass:"",soundList:[],infoVisible:!1,teacherForm:{coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!1,courseNum:""},teacherRules:{coreTeacher:[{required:!0,message:"请选择主教老师"}],courseType:[{required:!0,message:"请选择上课类型"}],courseTime:[{required:!0,message:"请选择开始时间"}],courseNum:[{required:!0,message:"请输入排课次数"}]},weekList:[{week:"",startTime:"",endTime:"",id:new Date}],teacherList:[],courseTypeList:[{value:"SINGLE",label:"单技课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训单技课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"小班课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}],weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}]}},created:function(){this.teamid=this.$route.query.id},mounted:function(){var t=this;Object(s["p"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.maxClassList=e.data)})),Object(s["n"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.soundList=e.data)})),Object(s["j"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.teacherList=e.data)}))},methods:{changeMixClass:function(t){this.getList(t),this.activeMixClass=t},getList:function(t){var e=this;Object(s["r"])({classGroupId:t}).then((function(t){200==t.code&&(e.activeSingleList=t.data,e.topForm.count=e.activeSingleList.length)}))},temporary:function(){this.topForm.mixClass?(this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isSearch=!0,this.className="",this.isTemporary=!0):this.$message.error("请先选择合奏班")},addNewClass:function(){this.topForm.mixClass?(this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isSearch=!1,this.className="",this.isTemporary=!1,this.getNoClassStudent()):this.$message.error("请先选择合奏班")},searchStudent:function(){var t=this;Object(s["gb"])({musicGroupId:this.teamid,actualSubjectId:this.activeChioseSound}).then((function(e){200==e.code&&(t.studentList=e.data)}))},SelectionStudent:function(t){console.log(t),this.chioseStudent=t},NewselectionStudent:function(t){this.chioseStudent=t,this.chioseStudent.length>0?this.chioseStudent=this.chioseStudent.concat(t):this.chioseStudent=t,this.activeListStudent=this.activeListStudent.concat(this.chioseStudent),this.activeListStudent=this.objArrayRemoval(this.activeListStudent,"userId"),console.log(this.activeListStudent)},removeClass:function(t){var e=this;Object(s["X"])({classGroupId:t.row.id}).then((function(r){200==r.code?(e.$message.success("删除成功"),t._self.$refs[t.$index].doClose(),e.getList(e.activeMixClass)):(e.$message.error(r.msg),t._self.$refs[t.$index].doClose())}))},resetClass:function(t){var e=this;this.isNewClass=!1,this.className=t.name,this.studentVisible=!0,this.activeClass=t.id,this.isSearch=!1,console.log(t),Object(u["h"])({classGroupId:t.id}).then((function(t){200==t.code&&(e.activeListStudent=t.data.map((function(t){return t.isVisible=!1,t})))})),this.getNoClassStudent()},getNoClassStudent:function(){var t=this;Object(s["B"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.studentList=e.data)}))},removeStudent:function(t){var e=this;Object(u["n"])({classGroupId:this.activeClass,userId:t.userId}).then((function(t){200==t.code&&(e.$message.success("删除成功"),Object(u["h"])({classGroupId:row.id}).then((function(t){200==t.code&&(e.activeListStudent=t.data.map((function(t){return t.isVisible=!1,t})))})))}))},addSomeStudent:function(){var t=this,e=this.chioseStudent.map((function(t){return t.userId}));Object(u["b"])({classGroupId:this.activeClass,userIdsStr:e.join(",")}).then((function(e){200==e.code&&(t.studentVisible=!1)}))},temporaryRemoveStudent:function(t){for(var e in this.activeListStudent)this.activeListStudent[e].userId==t.userId&&this.activeListStudent.splice(e,1);for(var r in this.studentList)this.studentList[r].userId==t.userId&&this.$refs["temporaryStudentList"].toggleRowSelection(t,!1)},objArrayRemoval:function(t,e){var r={},n=[];for(var a in t)r[t[a][e]]||(n.push(t[a]),r[t[a][e]]=!0);return n},setInfoMsg:function(){this.className?this.activeListStudent.length<=0?this.$message.error("班级里至少要有一名学生"):this.infoVisible=!0:this.$message.error("请输入班级名称")},addWeek:function(){this.weekList.push({week:"",startTime:"",endTime:"",id:new Date})},removeWeek:function(t){for(var e in this.weekList)this.weekList[e].id==t.id&&this.weekList.splice(e,1)},submitTemporary:function(t){var e=this;this.$refs["teacherForm"].validate((function(r){if(r){var n=e.weekList;if(n[0]&&n[0].startTime&&n[0].endTime&&n[0].week){var a=e.className,u=[{id:e.teacherForm.coreTeacher,teacherRole:"BISHOP"}];for(var i in e.teacherForm.assistant)u.push({id:e.teacherForm.assistant[i],teacherRole:"TEACHING"});var o=e.activeMixClass,c=e.teamid,l=e.teacherForm.courseTime,d=e.teacherForm.courseType,m=e.activeListStudent.map((function(t){return t.userId})).join(","),p=e.teacherForm.checked,f=[];for(var h in e.weekList)f.push(e.weekList[h]);if(f.length<=0)e.$message.error("新增班级至少排一节课");else{var b={classGroupName:a,classGroupTeacherMapperList:u,mixClassGroupId:o,musicGroupId:c,startDate:l,courseType:d,students:m,holiday:p,courseList:f};1==t?Object(s["db"])(b).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.infoVisible=!1)})):2==t&&Object(s["cb"])(b).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.infoVisible=!1)}))}}else e.$message.error("至少排一节课")}else e.$message.error("请填写必要信息")}))}}}),o=i,c=(r("ba9a"),r("2877")),l=Object(c["a"])(o,n,a,!1,null,null,null);e["default"]=l.exports},ba9a:function(t,e,r){"use strict";var n=r("8064"),a=r.n(n);a.a}}]);
|