(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f7b8967e"],{"1cc7":function(t,e,n){"use strict";n.d(e,"y",function(){return i}),n.d(e,"M",function(){return o}),n.d(e,"p",function(){return c}),n.d(e,"k",function(){return l}),n.d(e,"E",function(){return d}),n.d(e,"C",function(){return f}),n.d(e,"r",function(){return p}),n.d(e,"t",function(){return m}),n.d(e,"f",function(){return h}),n.d(e,"I",function(){return b}),n.d(e,"z",function(){return g}),n.d(e,"B",function(){return v}),n.d(e,"w",function(){return S}),n.d(e,"x",function(){return j}),n.d(e,"c",function(){return O}),n.d(e,"S",function(){return y}),n.d(e,"i",function(){return _}),n.d(e,"a",function(){return C}),n.d(e,"l",function(){return G}),n.d(e,"R",function(){return w}),n.d(e,"d",function(){return M}),n.d(e,"s",function(){return x}),n.d(e,"X",function(){return L}),n.d(e,"m",function(){return k}),n.d(e,"n",function(){return T}),n.d(e,"Z",function(){return N}),n.d(e,"A",function(){return I}),n.d(e,"j",function(){return q}),n.d(e,"g",function(){return P}),n.d(e,"e",function(){return $}),n.d(e,"G",function(){return V}),n.d(e,"b",function(){return A}),n.d(e,"h",function(){return F}),n.d(e,"W",function(){return R}),n.d(e,"u",function(){return B}),n.d(e,"v",function(){return E}),n.d(e,"L",function(){return D}),n.d(e,"N",function(){return z}),n.d(e,"D",function(){return H}),n.d(e,"K",function(){return J}),n.d(e,"J",function(){return U}),n.d(e,"o",function(){return W}),n.d(e,"q",function(){return Y}),n.d(e,"T",function(){return K}),n.d(e,"Y",function(){return Q}),n.d(e,"F",function(){return X}),n.d(e,"V",function(){return Z}),n.d(e,"P",function(){return tt}),n.d(e,"Q",function(){return et}),n.d(e,"H",function(){return nt}),n.d(e,"O",function(){return rt}),n.d(e,"U",function(){return ut});var r=n("b775"),u=n("4328"),a=n.n(u),s="/api-web";function i(t){return Object(r["a"])({url:s+"/organization/queryPage",method:"get",params:a.a.stringify(t)})}function o(t){return Object(r["a"])({url:s+"/chargeType/queryPage",method:"get",params:a.a.stringify(t)})}function c(t){return Object(r["a"])({url:s+"/cooperationOrgan/queryPage",method:"get",params:a.a.stringify(t)})}function l(t){return Object(r["a"])({url:s+"/school/queryPage",method:"get",params:a.a.stringify(t)})}function d(t){return Object(r["a"])({url:s+"/teacher/findTeachers",method:"get",params:a.a.stringify(t)})}function f(t){return Object(r["a"])({url:s+"/subject/findSubSubjects",method:"get",params:a.a.stringify(t)})}function p(t){return Object(r["a"])({url:s+"/subject/findDefaultSubByChargeTypeId",method:"get",params:t})}function m(t){return Object(r["a"])({url:s+"/goods/queryGoodsBySubId",method:"get",params:t})}function h(t){return Object(r["a"])({url:s+"/musicGroup/createGroup",method:"post",data:t})}function b(t){return Object(r["a"])({url:s+"/musicGroupSubjectPlan/getMusicSubjectClass",method:"get",params:t})}function g(t){return Object(r["a"])({url:s+"/classGroup/findMusicGroupClass",method:"get",params:t})}function v(t){return Object(r["a"])({url:s+"/studentRegistration/queryStudentApplyDetail",method:"get",params:t})}function S(t){return Object(r["a"])({url:s+"/studentRegistration/getNoClassStu",method:"get",params:t})}function j(t){return Object(r["a"])({url:s+"/studentRegistration/getMusicGroupNoClassStu",method:"get",params:t})}function O(t){return Object(r["a"])({url:s+"/classGroup/add",method:"post",data:t})}function y(t){return Object(r["a"])({url:s+"/classGroup/delSingle",method:"post",data:a.a.stringify(t)})}function _(t){return Object(r["a"])({url:s+"/classGroup/findNoClassSubjects",method:"get",params:t})}function C(t){return Object(r["a"])({url:s+"/classGroup/addMixClass",method:"post",data:a.a.stringify(t)})}function G(t){return Object(r["a"])({url:s+"/classGroup/findMixMusicGroupClass",method:"get",params:t})}function w(t){return Object(r["a"])({url:s+"/classGroup/delMix",method:"post",data:a.a.stringify(t)})}function M(t){return Object(r["a"])({url:s+"/classGroup/findAllClassGroupByMusicGroup",method:"get",params:t})}function x(t){return Object(r["a"])({url:s+"/classGroup/findMusicGroupClassTeacher",method:"get",params:t})}function L(t){return Object(r["a"])({url:s+"/classGroup/addClassGroupTeacher",method:"post",data:t})}function k(t){return Object(r["a"])({url:s+"/classGroup/findClassGroupAboutMix",method:"get",params:t})}function T(t){return Object(r["a"])({url:s+"/classGroup/classGroupAndTeacher",method:"get",params:t})}function N(t){return Object(r["a"])({url:s+"/courseSchedule/batchAddCourseSchedule",method:"post",data:t})}function I(t){return Object(r["a"])({url:s+"/subject/queryPageTree",method:"get",params:t})}function q(t){return Object(r["a"])({url:s+"/subject/querySubByMusicGroupId",method:"get",params:t})}function P(t){return Object(r["a"])({url:s+"/teacher/findMusicGroupTeachers",method:"get",params:t})}function $(t){return Object(r["a"])({url:s+"/courseSchedule/checkMusicGroupClassCourse",method:"post",data:a.a.stringify(t)})}function V(t){return Object(r["a"])({url:s+"/musicGroup/get/",method:"get",params:t})}function A(t){return Object(r["a"])({url:s+"/classGroup/addHighClass",method:"POST",data:t})}function F(t){return Object(r["a"])({url:s+"/classGroup/findMusicGroupClassTeacherSalary",method:"GET",params:t})}function R(t){return Object(r["a"])({url:s+"/classGroup/setClassGroupTeacherSalary",method:"post",data:t})}function B(t){return Object(r["a"])({url:s+"/musicGroup/get",method:"get",params:t})}function E(t){return Object(r["a"])({url:s+"/recharge/findAll",method:"get",params:t})}function D(t){return Object(r["a"])({url:s+"/teacher/queryMusicGroupTeachers",method:"get",params:t})}function z(t){return Object(r["a"])({url:s+"/subject/findSubApplyDetail",method:"get",params:t})}function H(t){return Object(r["a"])({url:s+"/teacher/queryTeacherAttendance",method:"get",params:t})}function J(t){return Object(r["a"])({url:s+"/studentManage/queryMusicGroupStudent",method:"get",params:t})}function U(t){return Object(r["a"])({url:s+"/studentManage/musicGroupStudentsSum",method:"get",params:t})}function W(t){return Object(r["a"])({url:s+"/classGroup/queryMusicGroupClassGroup",method:"get",params:t})}function Y(t){return Object(r["a"])({url:s+"/classGroup/queryMusicGroupCourseSchedule",method:"get",params:t})}function K(t){return Object(r["a"])({url:s+"/courseSchedule/classStartDateAdjust",method:"post",data:a.a.stringify(t)})}function Q(t){return Object(r["a"])({url:s+"/studentRegistration/getMusicGroupStu",method:"get",params:t})}function X(t){return Object(r["a"])({url:s+"/musicGroup/findMusicGroupBasicInfo",method:"POST",data:a.a.stringify(t)})}function Z(t){return Object(r["a"])({url:s+"/musicGroup/update",method:"POST",data:t})}function tt(t){return Object(r["a"])({url:s+"/musicGroup/openPay",method:"POST",data:t})}function et(t){return Object(r["a"])({url:s+"/studentRegistration/openPayment",method:"POST",data:t})}function nt(t){return Object(r["a"])({url:s+"/order/getMusicalList",method:"get",params:t})}function rt(t){return Object(r["a"])({url:s+"/classGroup/highClassGroups",method:"get",params:t})}function ut(t){return Object(r["a"])({url:s+"/classGroupStudent/adjustClassGroup",method:"POST",data:a.a.stringify(t)})}},5137:function(t,e,n){"use strict";n.d(e,"l",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"f",function(){return c}),n.d(e,"e",function(){return l}),n.d(e,"g",function(){return d}),n.d(e,"c",function(){return f}),n.d(e,"q",function(){return p}),n.d(e,"m",function(){return m}),n.d(e,"p",function(){return h}),n.d(e,"k",function(){return b}),n.d(e,"o",function(){return g}),n.d(e,"i",function(){return v}),n.d(e,"j",function(){return S}),n.d(e,"a",function(){return j}),n.d(e,"h",function(){return O}),n.d(e,"b",function(){return y}),n.d(e,"n",function(){return _});var r=n("b775"),u=n("4328"),a=n.n(u),s="/api-web";function i(t){return Object(r["a"])({url:s+"/studentManage/queryStudentList",method:"get",params:t})}function o(t){return Object(r["a"])({url:s+"/studentManage/findStudentBaseInfo",method:"get",params:t})}function c(t){return Object(r["a"])({url:s+"/studentManage/findStudentMusicGroups",method:"get",params:t})}function l(t){return Object(r["a"])({url:s+"/studentManage/findStudentCourses",method:"get",params:t})}function d(t){return Object(r["a"])({url:s+"/studentManage/findStudentVipGroups",method:"get",params:t})}function f(t){return Object(r["a"])({url:s+"/studentManage/findStudentAttendances",method:"get",params:t})}function p(t){return Object(r["a"])({url:s+"/studentWithdraw/queryPage",method:"get",params:t})}function m(t){return Object(r["a"])({url:s+"/studentManage/queryStudentPayment",method:"get",params:t})}function h(t){return Object(r["a"])({url:s+"/order/queryPage",method:"get",params:t})}function b(t){return Object(r["a"])({url:s+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:t})}function g(t){return Object(r["a"])({url:s+"/studentRegistration/batchUpdateSubject",method:"post",data:a.a.stringify(t)})}function v(t){return Object(r["a"])({url:s+"/studentRegistration/queryFeeDetail",method:"get",params:t})}function S(t){return Object(r["a"])({url:s+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:t})}function j(t){return Object(r["a"])({url:s+"/studentRegistration/insertStudent",method:"POST",data:a.a.stringify(t)})}function O(t){return Object(r["a"])({url:s+"/classGroupStudent/findAllStudent",method:"POST",data:a.a.stringify(t)})}function y(t){return Object(r["a"])({url:s+"/classGroupStudent/addStudents",method:"POST",data:a.a.stringify(t)})}function _(t){return Object(r["a"])({url:s+"/classGroupStudent/del",method:"POST",data:a.a.stringify(t)})}},8064:function(t,e,n){},"8f2a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("el-form",{attrs:{inline:!0,model:t.topForm}},[n("el-form-item",{attrs:{label:"合奏班"}},[n("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 n("el-option",{key:e,attrs:{value:t.id,label:t.name}})}),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"当前单技班数量"}},[n("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(" "),n("div",{staticClass:"tableWrap",staticStyle:{width:"800px"}},[n("el-table",{staticStyle:{width:"800px"},attrs:{data:t.activeSingleList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"班级人数"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"",label:"主教老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.classGroupTeacherMapperList?n("div",t._l(e.row.classGroupTeacherMapperList,function(e,r){return"BISHOP"==e.teacherRole?n("p",{key:r},[t._v(t._s(e.userName))]):t._e()}),0):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"助教老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.classGroupTeacherMapperList?n("div",t._l(e.row.classGroupTeacherMapperList,function(e,r){return"TEACHING"==e.teacherRole?n("p",{key:r},[t._v(t._s(e.userName))]):t._e()}),0):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"是否排课"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[e.row.totalClassTimes>0?n("p",[t._v(" 是")]):t._e(),t._v(" "),e.row.totalClassTimes<=0?n("p",[t._v(" 否")]):t._e()])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-popover",{ref:e.$index,attrs:{placement:"top",width:"160"}},[n("p",[t._v("确定删除?")]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e._self.$refs[e.$index].doClose()}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){return t.removeClass(e)}}},[t._v("确定")])],1),t._v(" "),n("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("删除")])],1),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.resetClass(e.row)}}},[t._v("修改")])],1)]}}])})],1),t._v(" "),n("div",{staticClass:"floor"},[n("div",{staticClass:"add",on:{click:t.temporary}},[t._v("临时调整")]),t._v(" "),n("div",{staticClass:"add"},[t._v("新建班级")])])],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"学员选择",width:"800px",visible:t.studentVisible,"modal-append-to-body":!1},on:{"update:visible":function(e){t.studentVisible=e}}},[n("div",{staticClass:"studentMask"},[n("div",{staticClass:"left"},[n("div",{staticClass:"wrap"},[n("el-input",{attrs:{placeholder:"请输入班级名称",disabled:!t.isNewClass},model:{value:t.className,callback:function(e){t.className=e},expression:"className"}})],1),t._v(" "),n("div",{staticClass:"chioseStudentList"},[n("h4",{staticStyle:{"padding-left":"10px"}},[t._v("当前已选学员")]),t._v(" "),t._l(t.activeListStudent,function(e,r){return n("div",{key:r,staticClass:"studentItem"},[t._v("\n "+t._s(e.name)+"\n "),n("el-popover",{attrs:{placement:"top",width:"160"},model:{value:e.isVisible,callback:function(n){t.$set(e,"isVisible",n)},expression:"item.isVisible"}},[n("p",[t._v("确定删除?")]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.isVisible=!1}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){return t.removeStudent(e)}}},[t._v("确定")])],1),t._v(" "),n("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("删除")])],1)],1)})],2)]),t._v(" "),n("div",{staticClass:"right"},[t.isNewClass?n("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 n("el-option",{key:e,attrs:{label:t.name,value:t.id}})}),1):t._e(),t._v(" "),t.isNewClass?n("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"danger"},on:{click:t.searchStudent}},[t._v("搜索")]):t._e(),t._v(" "),n("div",{staticClass:"tableList"},[t.isNewClass?t._e():n("el-table",{ref:"studentList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:t.studentList},on:{"selection-change":t.SelectionStudent}},[n("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",align:"center",width:"80",label:"姓名"}}),t._v(" "),n("el-table-column",{attrs:{prop:"gender",align:"center",width:"55",label:"性别"}}),t._v(" "),n("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"学员声部"}})],1),t._v(" "),t.isNewClass?n("el-table",{ref:"studentList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:t.studentList},on:{"selection-change":t.NewselectionStudent}},[n("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",align:"center",width:"80",label:"姓名"}}),t._v(" "),n("el-table-column",{attrs:{prop:"gender",align:"center",width:"55",label:"性别"}}),t._v(" "),n("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"学员声部"}})],1):t._e()],1)],1)]),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.studentVisible=!1}}},[t._v("取 消")]),t._v(" "),t.isNewClass?t._e():n("el-button",{attrs:{type:"primary"},on:{click:t.addSomeStudent}},[t._v("确 定")]),t._v(" "),t.isNewClass?n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.studentVisible=!1}}},[t._v("确 定")]):t._e()],1)])],1)},u=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("\n 班级调整\n ")])}],a=(n("7f7f"),n("1cc7")),s=n("5137"),i=(n("bc3a"),n("4328"),{data:function(){return{teamid:"",topForm:{mixClass:"",count:""},tableList:[],maxClassList:[],activeSingleList:[],studentVisible:!1,activeListStudent:[],activeChioseSound:"",chioseSoundList:[],studentList:[],activeMixClass:"",chioseStudent:[],isNewClass:!0,className:"",activeClass:"",soundList:[]}},created:function(){this.teamid=this.$route.query.id},mounted:function(){var t=this;Object(a["l"])({musicGroupId:this.teamid}).then(function(e){200==e.code&&(t.maxClassList=e.data)}),Object(a["j"])({musicGroupId:this.teamid}).then(function(e){200==e.code&&(t.soundList=e.data)})},methods:{changeMixClass:function(t){this.getList(t),this.activeMixClass=t},getList:function(t){var e=this;Object(a["n"])({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.isNewClass=!0,this.studentVisible=!0):this.$message.error("请先选择合奏班")},searchStudent:function(){var t=this;Object(a["Y"])({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,this.chioseStudent.length>0?this.chioseStudent=this.chioseStudent.concat(t):this.chioseStudent=t},NewselectionStudent:function(t){console.log(1111),this.chioseStudent=t,console.log(this.chioseStudent)},removeClass:function(t){var e=this;Object(a["S"])({classGroupId:t.row.id}).then(function(n){200==n.code?(e.$message.success("删除成功"),t._self.$refs[t.$index].doClose(),e.getList(e.activeMixClass)):(e.$message.error(n.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,console.log(t),Object(s["h"])({classGroupId:t.id}).then(function(t){200==t.code&&(e.activeListStudent=t.data.map(function(t){return t.isVisible=!1,t}))}),Object(a["x"])({musicGroupId:this.teamid}).then(function(t){200==t.code&&(e.studentList=t.data)})},removeStudent:function(t){var e=this;Object(s["n"])({classGroupId:this.activeClass,userId:t.userId}).then(function(t){200==t.code&&(e.$message.success("删除成功"),Object(s["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(s["b"])({classGroupId:this.activeClass,userIdsStr:e.join(",")}).then(function(e){200==e.code&&(t.studentVisible=!1)})},objArrayRemoval:function(t,e){var n={},r=[];for(var u in t)n[t[u][e]]||(r.push(t[u]),n[t[u][e]]=!0);return r}}}),o=i,c=(n("ba9a"),n("2877")),l=Object(c["a"])(o,r,u,!1,null,null,null);e["default"]=l.exports},ba9a:function(t,e,n){"use strict";var r=n("8064"),u=n.n(r);u.a}}]);