(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c53036da"],{"09f4":function(e,t,s){"use strict";s.d(t,"a",(function(){return i})),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 n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,s){var i=r(),o=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var r=Math.easeInOutQuad(u,i,o,t);n(r),u0?s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"130px",prop:"musicGroupId",label:"乐团/课程组编号"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"id",label:"课程编号"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"200px",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.startClassTime?t.row.startClassTime.substr(0,16):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(11,5):""))]}}],null,!1,2248027327)}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"name",width:"200px",label:"课程名称"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"150px",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("coursesType")(t.row.type)))])]}}],null,!1,2613307558)}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"教学模式"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("teachMode")(t.row.teachMode)))])]}}],null,!1,465778248)}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"教学点"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.schoolName?t.row.schoolName:"网络教室"))])]}}],null,!1,699114148)}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("coursesStatus")(t.row.status)))])]}}],null,!1,3895776102)}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"考勤申诉"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(1==t.row.isComplaints?"是":"否"))])]}}],null,!1,1937261994)}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isLock",label:"是否冻结"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isLock?"是":"否"))]}}],null,!1,2440833408)}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"newCourseId",label:"合并类型",width:"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.newCourseId>0&&t.row.newCourseId==t.row.id?"合并课":null)+"\n "+e._s(t.row.newCourseId>0&&t.row.newCourseId!=t.row.id?"被合并课":null)+"\n ")]}}],null,!1,2942667669)}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isCallNames",label:"是否点名",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCallNames?"是":"否"))]}}],null,!1,1115023421)}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[!t.row.isSettlement&&e.permission("courseSchedule/classStartDateAdjust")&&"MUSIC"===t.row.groupType?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),!t.row.isSettlement&&e.permission("courseSchedule/classStartDateAdjust")&&"VIP"===t.row.groupType?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),!t.row.isSettlement&&e.permission("courseSchedule/classStartDateAdjust")&&"PRACTICE"===t.row.groupType?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),"PRACTICE"===t.row.groupType&&"NOT_START"==t.row.status&&t.row.practiceGroup&&"TRIAL"!=t.row.practiceGroup["type"]&&e.permission("courseSchedule/practiceCourseTeacherAdjust")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.resetTeacher(t.row)}}},[e._v("更换老师")]):e._e()],1)]}}],null,!1,2688253980)})],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._e(),e._v(" "),e.teacherVisible?s("el-dialog",{attrs:{title:"老师调整",width:"400px",visible:e.teacherVisible},on:{"update:visible":function(t){e.teacherVisible=t}}},[s("el-form",{ref:"teacherForm",attrs:{model:e.teacherForm,rules:e.teacherRules,"label-position":"right","label-width":"80px;",inline:!0}},[s("el-form-item",{attrs:{label:"指导老师"}},[s("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.teacherForm.teacher,callback:function(t){e.$set(e.teacherForm,"teacher","string"===typeof t?t.trim():t)},expression:"teacherForm.teacher"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.teacherVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.subresetTeacher}},[e._v("确 定")])],1)],1):e._e(),e._v(" "),e.show?s("el-dialog",{attrs:{visible:e.show,title:"调整",width:"400px"},on:{"update:visible":function(t){e.show=t}}},[s("resetClass",{attrs:{show:e.show,id:e.id,isDisabled:!0},on:{closeReset:e.closeReset,getList:e.getList}})],1):e._e()],1)},n=[],r=(s("a481"),s("1cc7")),i=(s("c466"),s("8018"),s("333d")),o=s("ec8a"),l=s("02ce"),u=(s("5a0c"),{components:{pagination:i["a"],resetClass:l["a"]},props:["startTimes"],data:function(){return{startCourseTime:"",endCourseTime:"",startTime:this.startTimes,endTime:this.startTimes,teacherVisible:!1,teacherList:[],teacherForm:{teacher:null,courseScheduleId:null},teacherRules:{teacher:[{required:!0,message:"请选择老师",trigger:"blur"}],educationalTeacherId:[{required:!0,message:"请选择乐团主管",trigger:"blur"}]},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},show:!1,id:null,teacherIdList:null}},mounted:function(){var e=this;this.teacherIdList=this.$route.query.teacherId,this.value=new Date,this.getList(),Object(r["Pb"])().then((function(t){200==t.code&&(e.teacherList=t.data)}))},methods:{getList:function(){var e=this;this.$emit("getCalendatList"),this.startTime&&this.endTime&&Object(r["Qc"])({teacherIdList:this.teacherIdList,page:this.rules.page,rows:this.rules.limit,startTime:this.startTime,endTime:this.endTime}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},setCourseList:function(e){console.LOG(e)},closeReset:function(){this.show=!1},permission:function(e,t){return Object(o["a"])(e,t)},resetClass:function(e){this.id=e.id,this.show=!0,this.value=new Date(e.classDate.replace(/-/g,"/"))},resetTeacher:function(e){this.teacherForm.teacher=e.actualTeacherId,this.teacherForm.courseScheduleId=e.id,this.teacherVisible=!0},subresetTeacher:function(){var e=this;this.$refs.teacherForm.validate((function(t){t&&Object(r["kc"])({courseScheduleId:e.teacherForm.courseScheduleId,teacherId:e.teacherForm.teacher}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.teacherVisible=!1,e.getList())}))}))}},watch:{startTimes:function(e){this.startTime=e,this.endTime=e,this.getList()}}}),c=u,d=s("2877"),h=Object(d["a"])(c,a,n,!1,null,"02610e6e",null);t["a"]=h.exports},"9d15":function(e,t,s){"use strict";s("38b8")},ef40:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-container"},[s("el-calendar",{staticStyle:{minWidth:"810px"},scopedSlots:e._u([{key:"dateCell",fn:function(t){return[s("div",{staticStyle:{height:"100%"},on:{click:function(s){return e.showDate(t)}}},[s("p",[e._v("\n "+e._s(t.data.day.substring(8))+"\n ")]),e._v(" "),s("div",[e._l(e.newList,(function(a){return[a.classDate.substring(0,10)===t.data.day&&"PRACTICE"===a.groupType?s("span",{key:a.id,staticClass:"newDot"},[e._v("\n 网\n ")]):e._e()]})),e._v(" "),e._l(e.vipList,(function(a){return[a.classDate.substring(0,10)===t.data.day&&"VIP"===a.groupType?s("span",{key:a.id,staticClass:"vipDot"},[e._v("\n vip\n ")]):e._e()]})),e._v(" "),e._l(e.teamList,(function(a){return[a.classDate.substring(0,10)===t.data.day&&"MUSIC"===a.groupType?s("span",{key:a.id,staticClass:"teamDot"},[e._v("\n 乐\n ")]):e._e()]}))],2)])]}}])}),e._v(" "),s("resetList",{attrs:{startTimes:e.startTime},on:{getCalendatList:e.getCalendatList}})],1)},n=[],r=s("1cc7"),i=s("c466"),o=(s("8018"),s("5120d")),l=s("ec8a"),u={components:{resetList:o["a"]},data:function(){return{dataList:[],value:new Date,teacherIdList:"",vipList:[],teamList:[],newList:[],startTime:""}},mounted:function(){var e=this;this.teacherIdList=this.$route.query.teacherId,this.getCalendatList(),this.$nextTick((function(){var t=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(1)");t.addEventListener("click",(function(){e.value=new Date(e.value.setMonth(e.value.getMonth()+-1,1)),e.setCourseList(e.value)}));var s=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(2)");s.addEventListener("click",(function(){e.value=new Date,e.setCourseList(e.value)}));var a=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(3)");a.addEventListener("click",(function(){e.value=new Date(e.value.setMonth(e.value.getMonth()+1,1)),e.setCourseList(e.value)}))}))},activated:function(){},methods:{getCalendatList:function(){var e=this;this.teacherIdList=this.$route.query.teacherId;var t=Object(i["n"])(Object(i["f"])(this.value)),s=Object(i["n"])(Object(i["g"])(this.value));Object(r["Qc"])({teacherIdList:this.teacherIdList,rows:9999,page:1,startTime:t,endTime:s}).then((function(t){if(200===t.code){for(var s in e.dataList=t.data.rows,e.vipList=[],e.teamList=[],e.newList=[],e.dataList)"VIP"===e.dataList[s].groupType&&e.vipList.push(e.dataList[s]),"MUSIC"===e.dataList[s].groupType&&e.teamList.push(e.dataList[s]),"PRACTICE"===e.dataList[s].groupType&&e.newList.push(e.dataList[s]);e.vipList=e.reduceArray(e.vipList,"classDate"),e.teamList=e.reduceArray(e.teamList,"classDate"),e.newList=e.reduceArray(e.newList,"classDate")}}))},showDate:function(e){this.startTime=e.data.day,this.endTime=e.data.day,this.value=e.date,"next-month"!==e.data.type&&"prev-month"!==e.data.type||this.getCalendatList()},reduceArray:function(e,t){var s={};return e=e.reduce((function(e,a){return!s[a[t]]&&(s[a[t]]=e.push(a)),e}),[]),e},setCourseList:function(e){this.startTime=Object(i["n"])(e),this.endTime=Object(i["n"])(e),this.getCalendatList()},permission:function(e,t){return Object(l["a"])(e,t)}}},c=u,d=(s("9d15"),s("2877")),h=Object(d["a"])(c,a,n,!1,null,"622fad69",null);t["default"]=h.exports}}]);