chunk-86be49a6.c283f971.js 27 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-86be49a6"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,r){var n=s(),o=e-n,c=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=c;var s=Math.easeInOutQuad(u,n,o,t);i(s),u<t?a(e):r&&"function"===typeof r&&r()};l()}},1479:function(e,t,r){"use strict";var a=r("a504"),i=r.n(a);i.a},"333d":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[r("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},i=[],s=(r("c5f6"),r("09f4")),n={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(s["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(s["a"])(0,800)}}},o=n,c=(r("c0b9"),r("2877")),u=Object(c["a"])(o,a,i,!1,null,"31cb099a",null);t["a"]=u.exports},5120:function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.tableList.length>0?r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",width:"130px",prop:"musicGroupId",label:"乐团/课程组编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"id",label:"课程编号"}}),e._v(" "),r("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(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"学生ID"},scopedSlots:e._u([{key:"default",fn:function(t){return["MUSIC"!=t.row.groupType?r("div",[e._v(e._s(t.row.studentId))]):e._e()]}}],null,!1,3891686512)}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"课程名称"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("coursesType")(t.row.type)))])]}}],null,!1,2613307558)}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"教学模式"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("teachMode")(t.row.teachMode)))])]}}],null,!1,465778248)}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"教学点"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.schoolName?t.row.schoolName:"网络教室"))])]}}],null,!1,699114148)}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("coursesStatus")(t.row.status)))])]}}],null,!1,3895776102)}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[!t.row.isSettlement&&e.permission("courseSchedule/classStartDateAdjust")&&"MUSIC"===t.row.groupType?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),!t.row.isSettlement&&e.permission("courseSchedule/classStartDateAdjust")&&"VIP"===t.row.groupType?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),!t.row.isSettlement&&e.permission("courseSchedule/practiceCourseAdjust")&&"PRACTICE"===t.row.groupType?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),"PRACTICE"===t.row.groupType&&"NOT_START"==t.row.status&&"TRIAL"!=t.row.practiceGroup["type"]&&e.permission("courseSchedule/practiceCourseTeacherAdjust")?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.resetTeacher(t.row)}}},[e._v("更换老师")]):e._e()],1)]}}],null,!1,326255397)})],1),e._v(" "),r("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(" "),r("el-dialog",{attrs:{title:"课程调整","destroy-on-close":"",width:"400px",visible:e.musicVisible},on:{"update:visible":function(t){e.musicVisible=t}}},[r("el-form",{ref:"musicFormref",attrs:{model:e.musicForm,rules:e.musicRules,"label-position":"right","label-width":"80px;"}},[r("el-form-item",{attrs:{label:"指导老师",prop:"teacher"}},[r("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:"",filterable:""},model:{value:e.musicForm.teacher,callback:function(t){e.$set(e.musicForm,"teacher","string"===typeof t?t.trim():t)},expression:"musicForm.teacher"}},e._l(e.teacherList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[r("el-date-picker",{attrs:{type:"date","picker-options":{firstDayOfWeek:1},"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.musicForm.date,callback:function(t){e.$set(e.musicForm,"date","string"===typeof t?t.trim():t)},expression:"musicForm.date"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[r("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"04:30",step:"00:05",end:"23:30"}},on:{change:e.changeStartTime},model:{value:e.startCourseTime,callback:function(t){e.startCourseTime=t},expression:"startCourseTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[r("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.startCourseTime}},model:{value:e.endCourseTime,callback:function(t){e.endCourseTime=t},expression:"endCourseTime"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.musicVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:"课程调整","destroy-on-close":"",width:"400px",visible:e.vipVisible},on:{"update:visible":function(t){e.vipVisible=t}}},[r("el-form",{ref:"vipFormref",attrs:{model:e.vipForm,rules:e.vipRules,"label-position":"right","label-width":"80px;",inline:!0}},[r("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[r("el-date-picker",{staticStyle:{width:"200px!important"},attrs:{type:"date","picker-options":{firstDayOfWeek:1},"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.vipForm.date,callback:function(t){e.$set(e.vipForm,"date","string"===typeof t?t.trim():t)},expression:"vipForm.date"}})],1),e._v(" "),r("el-form-item",{key:"time2",attrs:{label:"开始时间",prop:"startCourseTime"}},[r("el-time-select",{staticStyle:{width:"200px!important"},attrs:{placeholder:"起始时间","picker-options":{start:"04:30",step:"00:05",end:"23:30"}},model:{value:e.startCourseTime,callback:function(t){e.startCourseTime=t},expression:"startCourseTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[r("el-select",{attrs:{clearable:""},model:{value:e.vipForm.teachMode,callback:function(t){e.$set(e.vipForm,"teachMode","string"===typeof t?t.trim():t)},expression:"vipForm.teachMode"}},[r("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),r("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1),e._v(" "),"OFFLINE"==e.vipForm.teachMode?r("el-form-item",{attrs:{label:"教学地点",prop:"schoolId"}},[r("el-select",{key:"school",attrs:{filterable:"",clearable:""},model:{value:e.vipForm.schoolId,callback:function(t){e.$set(e.vipForm,"schoolId",t)},expression:"vipForm.schoolId"}},e._l(e.schoolList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.vipVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitResetVipClass}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:"课程调整","destroy-on-close":"",width:"400px",visible:e.practiceVisible},on:{"update:visible":function(t){e.practiceVisible=t}}},[r("el-form",{ref:"practiceFormref",attrs:{model:e.practiceForm,rules:e.practiceRules,"label-position":"right","label-width":"80px;",inline:!0}},["TRIAL"!=e.practiceForm.courseType?r("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[r("el-date-picker",{staticStyle:{width:"200px!important"},attrs:{type:"date","picker-options":e.courseOption,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.practiceForm.date,callback:function(t){e.$set(e.practiceForm,"date","string"===typeof t?t.trim():t)},expression:"practiceForm.date"}})],1):r("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[r("el-date-picker",{staticStyle:{width:"200px!important"},attrs:{type:"date","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},placeholder:"选择日期"},model:{value:e.practiceForm.date,callback:function(t){e.$set(e.practiceForm,"date","string"===typeof t?t.trim():t)},expression:"practiceForm.date"}})],1),e._v(" "),r("el-form-item",{key:"time1",attrs:{label:"开始时间",prop:"startCourseTime"}},[r("el-time-select",{staticStyle:{width:"200px!important"},attrs:{placeholder:"起始时间","picker-options":{start:"07:00",step:"00:05",end:"23:00"}},model:{value:e.startCourseTime,callback:function(t){e.startCourseTime=t},expression:"startCourseTime"}})],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.practiceVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitPracticeResetClass}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:"老师调整",width:"400px",visible:e.teacherVisible},on:{"update:visible":function(t){e.teacherVisible=t}}},[r("el-form",{ref:"teacherForm",attrs:{model:e.teacherForm,rules:e.teacherRules,"label-position":"right","label-width":"80px;",inline:!0}},[r("el-form-item",{attrs:{label:"指导老师"}},[r("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 r("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.teacherVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.subresetTeacher}},[e._v("确 定")])],1)],1)],1)},i=[],s=(r("28a5"),r("a481"),r("1cc7")),n=r("c466"),o=r("8018"),c=r("333d"),u=r("ec8a"),l={components:{pagination:c["a"]},props:["startTimes"],data:function(){return{startCourseTime:"",endCourseTime:"",tableList:[],teacherList:[],schoolList:[],educationList:[],startTime:this.startTimes,endTime:this.startTimes,rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},musicVisible:!1,vipVisible:!1,practiceVisible:!1,musicForm:{teacher:"",assistant:"",date:"",id:"",startTime:"",endTime:"",type:""},musicRules:{teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}],date:[{required:!0,message:"请选择上课时间",trigger:"blur"}]},vipForm:{date:"",id:"",schoolId:"",teachMode:""},vipRules:{date:[{required:!0,message:"请选择上课时间",trigger:"blur"}]},practiceRules:{date:[{required:!0,message:"请选择上课时间",trigger:"blur"}]},practiceForm:{id:"",date:"",courseType:"",coursesExpireDate:""},courseOption:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},teacherForm:{teacher:null,courseScheduleId:null},teacherRules:{teacher:[{required:!0,message:"请选择老师",trigger:"blur"}],educationalTeacherId:[{required:!0,message:"请选择教务老师",trigger:"blur"}]},teacherVisible:!1}},mounted:function(){var e=this;this.teacherIdList=this.$route.query.teacherId,this.getList(),this.courseOption=this.coursesDate(),Object(s["ob"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),Object(o["f"])({userId:this.teacherIdList}).then((function(t){200==t.code&&(e.schoolList=t.data)}))},methods:{getList:function(){var e=this;this.startTime&&this.endTime&&Object(s["hc"])({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){this.startTime=Object(n["f"])(e),this.endTime=Object(n["f"])(e),this.$emit("getCalendatList"),this.getList()},permission:function(e,t){return Object(u["a"])(e,t)},resetClass:function(e){var t=this;switch(this.value=new Date(e.classDate.replace(/-/g,"/")),e.groupType){case"MUSIC":this.$nextTick((function(){t.musicForm.teacher=parseInt(e.actualTeacherId),t.musicForm.date=e.classDate;var r=e.startClassTime.split(" ")[1].substring(0,5);t.$set(t,"startCourseTime",r),t.endCourseTime=e.endClassTime.split(" ")[1].substring(0,5),t.musicForm.id=e.id,t.$forceUpdate(),t.musicVisible=!0}));break;case"VIP":this.$nextTick((function(){t.vipForm.date=e.classDate,t.vipForm.id=e.id,t.vipForm.teachMode=e.teachMode,t.vipForm.schoolId=e.schoolId||"";var r=e.startClassTime.split(" ")[1].substring(0,5);t.startCourseTime=null,t.$set(t,"startCourseTime",r),t.vipVisible=!0,t.$forceUpdate()}));break;case"PRACTICE":this.$nextTick((function(){t.practiceForm.date=e.classDate;var r=e.startClassTime.split(" ")[1].substring(0,5);t.startCourseTime=null,t.$set(t,"startCourseTime",r),t.practiceForm.id=e.id,t.practiceForm.courseType=e.practiceGroup.type,t.practiceForm.coursesExpireDate=e.practiceGroup.coursesExpireDate,t.practiceVisible=!0,t.$forceUpdate()}));break}},changeStartTime:function(){this.endCourseTime=""},submitResetClass:function(){var e=this;this.startCourseTime&&this.endCourseTime?this.$refs["musicFormref"].validate((function(t){if(t){var r={actualTeacherId:e.musicForm.teacher,startClassTimeStr:e.startCourseTime,endClassTimeStr:e.endCourseTime,id:e.musicForm.id,classDate:e.musicForm.date};Object(s["Qb"])(r).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.setCourseList(e.value),e.musicVisible=!1)}))}})):this.$message.error("请填写开始时间或结束时间")},submitResetVipClass:function(){var e=this;if(this.startTime){var t=this.vipForm.date?new Date(this.vipForm.date):new Date,r=t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate(),a=this.startCourseTime;this.startCourseTime.length<=5&&(a+=":00");var i={startClassTime:r+" "+a,id:this.vipForm.id,classDate:this.vipForm.date,schoolId:this.vipForm.schoolId||null,teachMode:this.vipForm.teachMode||null};Object(s["Qb"])(i).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.vipVisible=!1,e.setCourseList(e.value))}))}else this.$message.error("请填写修改时间")},submitPracticeResetClass:function(){var e=this;if(this.startCourseTime){var t={startClassTimeStr:this.startCourseTime,id:this.practiceForm.id,classDate:this.practiceForm.date};Object(s["Hb"])(t).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.practiceVisible=!1,e.setCourseList(e.value))}))}else this.$message.error("请填写修改时间")},coursesDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){var r=new Date(e.practiceForm.coursesExpireDate.replace(/-/,"/"));return t.getTime()>r.getTime()}}},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(s["Ib"])({courseScheduleId:e.teacherForm.courseScheduleId,teacherId:e.teacherForm.teacher}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.teacherVisible=!1,e.setCourseList(e.value))}))}))}},watch:{musicVisible:function(e){e||(this.musicForm={teacher:"",assistant:"",date:"",id:"",type:""},this.startCourseTime="",this.endCourseTime="",this.$refs["musicFormref"].resetFields())},vipVisible:function(e){e||(this.startCourseTime="",this.vipForm={date:"",id:"",schoolId:"",teachMode:""},this.$refs["vipFormref"].resetFields())},practiceVisible:function(e){e||(this.startCourseTime="",this.practiceForm={id:"",date:"",courseType:"",coursesExpireDate:""},this.$refs["practiceFormref"].resetFields())},startTimes:function(e){this.startTime=e,this.endTime=e,this.getList()}}},d=l,p=r("2877"),m=Object(p["a"])(d,a,i,!1,null,"74e94ad0",null);t["a"]=m.exports},8018:function(e,t,r){"use strict";r.d(t,"w",(function(){return o})),r.d(t,"t",(function(){return c})),r.d(t,"g",(function(){return u})),r.d(t,"e",(function(){return l})),r.d(t,"i",(function(){return d})),r.d(t,"v",(function(){return p})),r.d(t,"u",(function(){return m})),r.d(t,"n",(function(){return h})),r.d(t,"B",(function(){return f})),r.d(t,"C",(function(){return b})),r.d(t,"y",(function(){return g})),r.d(t,"x",(function(){return v})),r.d(t,"A",(function(){return y})),r.d(t,"f",(function(){return T})),r.d(t,"q",(function(){return C})),r.d(t,"z",(function(){return _})),r.d(t,"s",(function(){return w})),r.d(t,"h",(function(){return F})),r.d(t,"m",(function(){return L})),r.d(t,"r",(function(){return k})),r.d(t,"a",(function(){return D})),r.d(t,"l",(function(){return S})),r.d(t,"o",(function(){return O})),r.d(t,"p",(function(){return I})),r.d(t,"k",(function(){return j})),r.d(t,"d",(function(){return x})),r.d(t,"c",(function(){return M})),r.d(t,"j",(function(){return $})),r.d(t,"b",(function(){return V}));var a=r("b775"),i=r("4328"),s=r.n(i),n="/api-web";function o(e){return Object(a["a"])({url:n+"/teacher/queryPage",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/teacher/get",method:"get",params:e})}function u(e){return Object(a["a"])({url:n+"/teacher/getTeacherMusicClass",method:"get",params:e})}function l(e){return Object(a["a"])({url:n+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function d(e){return Object(a["a"])({url:n+"/teacherAttendance/getTeacherPersonalAttendances",method:"get",params:e})}function p(e){return Object(a["a"])({url:n+"/teacher/queryCloses",method:"get",params:e})}function m(e){return Object(a["a"])({url:n+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function h(e){return Object(a["a"])({url:n+"/teacher/sumTeacherNoPay",method:"get",params:e})}function f(e){return Object(a["a"])({url:n+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function b(e){return Object(a["a"])({url:n+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function g(e){return Object(a["a"])({url:n+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:n+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function y(e){return Object(a["a"])({url:n+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:s.a.stringify(e)})}function T(e){return Object(a["a"])({url:n+"/school/findVipSchoolByTeacher",method:"get",params:e})}function C(e){return Object(a["a"])({url:n+"/teacher/add",method:"post",data:s.a.stringify(e)})}function _(e){return Object(a["a"])({url:n+"/teacher/update",method:"post",data:s.a.stringify(e)})}function w(e){return Object(a["a"])({url:n+"/teacherFreeTime/query",method:"get",params:e})}function F(e){return Object(a["a"])({url:n+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function L(e){return Object(a["a"])({url:n+"/teacherFreeTime/updateSet",method:"post",data:s.a.stringify(e)})}function k(e){return Object(a["a"])({url:n+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function D(e){return Object(a["a"])({url:n+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function S(e){return Object(a["a"])({url:n+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function O(e){return Object(a["a"])({url:n+"/sysTenantAccount/addMinutes",method:"post",data:s.a.stringify(e)})}function I(e){return Object(a["a"])({url:n+"/sysTenantAccount/subtractMinutes",method:"post",data:s.a.stringify(e)})}function j(e){return Object(a["a"])({url:n+"/sysTenantAccount/get",method:"get",params:e})}function x(e){return Object(a["a"])({url:n+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function M(e){return Object(a["a"])({url:n+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:s.a.stringify(e)})}function $(e){return Object(a["a"])({url:n+"/teacher/queryStudent",method:"get",params:e})}function V(e){return Object(a["a"])({url:n+"/studentManage/batchUpdateAdviser",method:"post",data:s.a.stringify(e)})}},a504:function(e,t,r){},c0b9:function(e,t,r){"use strict";var a=r("de4e"),i=r.n(a);i.a},c466:function(e,t,r){"use strict";r.d(t,"f",(function(){return a})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"e",(function(){return c}));r("a481");function a(e){var t=e.getFullYear(),r=e.getMonth()+1,a=e.getDate();return r=r<10?"0"+r:r,a=a<10?"0"+a:a,t+"-"+r+"-"+a}function i(e){return e.setDate(1),e}function s(e){var t=e.getMonth(),r=++t,a=new Date(e.getFullYear(),r,1),i=864e5;return new Date(a-i)}function n(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e);0==r.getDay()&&(t-=6048e5);var a=t-24*(r.getDay()-1)*60*60*1e3,i=new Date(a),s=i.getFullYear(),n=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate(),c=s+"-"+n+"-"+o;return c}function o(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e),a=7-r.getDay();7==a&&(a=0);var i=t+24*a*60*60*1e3,s=new Date(i),n=s.getFullYear(),o=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate(),u=n+"-"+o+"-"+c;return u}function c(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}},de4e:function(e,t,r){},ec8a:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("6762"),r("2fdb"),r("28a5");function a(e,t){var r=window.localStorage.getItem("permission");return r=r.split(","),t=t||null,!(!r.includes(e)||t)||!(!r.includes(e)||!r.includes(t))}},ef40:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("el-calendar",{staticStyle:{minWidth:"810px"},scopedSlots:e._u([{key:"dateCell",fn:function(t){return[r("div",{staticStyle:{height:"100%"},on:{click:function(r){return e.showDate(t)}}},[r("p",[e._v("\n "+e._s(t.data.day.substring(8))+"\n ")]),e._v(" "),r("div",[e._l(e.newList,(function(a,i){return a.classDate.substring(0,10)===t.data.day&&"PRACTICE"===a.groupType?r("span",{key:a.id,staticClass:"newDot"},[e._v("\n 网\n ")]):e._e()})),e._v(" "),e._l(e.vipList,(function(a,i){return a.classDate.substring(0,10)===t.data.day&&"VIP"===a.groupType?r("span",{key:a.id,staticClass:"vipDot"},[e._v("\n vip\n ")]):e._e()})),e._v(" "),e._l(e.teamList,(function(a,i){return a.classDate.substring(0,10)===t.data.day&&"MUSIC"===a.groupType?r("span",{key:a.id,staticClass:"teamDot"},[e._v("\n 乐\n ")]):e._e()}))],2)])]}}])}),e._v(" "),r("resetList",{attrs:{startTimes:e.startTime},on:{getCalendatList:e.getCalendatList}})],1)},i=[],s=r("1cc7"),n=r("c466"),o=(r("8018"),r("5120")),c=r("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 r=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(2)");r.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(n["f"])(Object(n["a"])(this.value)),r=Object(n["f"])(Object(n["b"])(this.value));Object(s["hc"])({teacherIdList:this.teacherIdList,rows:9999,page:1,startTime:t,endTime:r}).then((function(t){if(200===t.code){for(var r in e.dataList=t.data.rows,e.vipList=[],e.teamList=[],e.newList=[],e.dataList)"VIP"===e.dataList[r].groupType&&e.vipList.push(e.dataList[r]),"MUSIC"===e.dataList[r].groupType&&e.teamList.push(e.dataList[r]),"PRACTICE"===e.dataList[r].groupType&&e.newList.push(e.dataList[r]);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 r={};return e=e.reduce((function(e,a){return!r[a[t]]&&(r[a[t]]=e.push(a)),e}),[]),e},setCourseList:function(e){this.startTime=Object(n["f"])(e),this.endTime=Object(n["f"])(e),this.getCalendatList()},permission:function(e,t){return Object(c["a"])(e,t)}}},l=u,d=(r("1479"),r("2877")),p=Object(d["a"])(l,a,i,!1,null,"4cb4ceb8",null);t["default"]=p.exports}}]);