chunk-c38de4c8.7eb2716c.js 52 KB

12345
  1. <<<<<<< HEAD:dist/static/js/chunk-c38de4c8.7eb2716c.js
  2. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c38de4c8"],{"02ce":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},["VIP"==e.maskForm.type?a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220},on:{change:e.changeTeacher},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher",t)},expression:"maskForm.teacher"}})],1):a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher",t)},expression:"maskForm.teacher"}})],1),e._v(" "),"MUSIC_NETWORK"!=e.maskForm.type&&"HIGH_ONLINE"!=e.maskForm.type&&"MUSIC"==e.maskForm.groupType?a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220,multiple:!0},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant",t)},expression:"maskForm.assistant"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.bigin,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date","string"===typeof t?t.trim():t)},expression:"maskForm.date"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课程时长",prop:"timer"}},[a("el-select",{staticStyle:{width:"220px !important"},on:{change:e.changeTime},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer",t)},expression:"maskForm.timer"}},e._l(e.typeTimeList,(function(e,t){return a("el-option",{key:t,attrs:{value:parseInt(e),label:e}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"04:30:00 - 23:30:00"}},on:{change:e.changeStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("el-time-picker",{attrs:{placeholder:"结束时间",disabled:"",format:"HH:mm","value-format":"HH:mm","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.maskForm.startTime}},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}})],1),e._v(" "),"VIP"==e.maskForm.type?a("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:""},on:{change:e.typeChange},model:{value:e.maskForm.teachMode,callback:function(t){e.$set(e.maskForm,"teachMode","string"===typeof t?t.trim():t)},expression:"maskForm.teachMode"}},[a("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),"OFFLINE"==e.maskForm.teachMode?a("el-form-item",{attrs:{label:"教学地点"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{filterable:"",clearable:""},model:{value:e.maskForm.address,callback:function(t){e.$set(e.maskForm,"address","string"===typeof t?t.trim():t)},expression:"maskForm.address"}},e._l(e.schoolList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.closeReset}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1)},n=[],s=(a("28a5"),a("96cf"),a("3b8d")),i=a("c466"),o=a("1cc7"),c=a("8018"),u=a("99b4"),l=a("e3eb"),d=a.n(l),m=a("5a0c"),h=a.n(m),p={props:["show","id","isDisabled"],data:function(){return{courseVisible:!1,maskForm:{teacher:null,assistant:null,date:null,timer:null,startTime:null,endTime:null},maskRules:{teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}],date:[{required:!0,message:"请选择上课时间",trigger:"blur"}],startTime:[{required:!0,message:"请选择上课开始时间",trigger:"blur"}],endTime:[{required:!0,message:"请选择上课结束时间",trigger:"blur"}]},teacherList:[],schoolList:[],typeTimeList:[],courseTimeList:{},organId:"",bigin:this.beginDate()}},created:function(){this},mounted:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$store.dispatch("setTeachers"),this.getDetail(this.id);case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{submitResetClass:function(){var e=this,t=this.maskForm;if(t.startTime&&t.endTime){var a=h()(t.date+" "+t.startTime).diff(new Date,"second");a<=0?this.$message.error("课程开始时间必须大于当前时间"):this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.assistant.join(",");if(a.length<=0);var r={actualTeacherId:t.teacher,startClassTimeStr:t.startTime,endClassTimeStr:t.endTime,id:t.id,teachingTeacherIdList:a,classDate:t.date,type:t.type,groupType:t.groupType,schoolId:e.maskForm.address,teachMode:e.maskForm.teachMode};Object(o["ic"])(d()(r)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.$emit("getList"),e.$emit("closeReset")),206==t.code&&e.$confirm("当前课程课酬预计为0,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(t){r.allowZeroSalary=!0,Object(o["ic"])(d()(r)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.$emit("getList"),e.$emit("closeReset"))}))}))}))})).catch((function(){}))}else this.$message.error("请填写开始时间或结束时间")},typeChange:function(){this.$set(this.maskForm,"address",null)},changeStartTime:function(e){var t=this;this.$nextTick((function(a){e?t.$set(t.maskForm,"endTime",Object(i["a"])(t.maskForm.date,e,t.maskForm.timer)):t.$set(t.maskForm,"endTime","")}))},changeTime:function(e){var t=this;this.$nextTick((function(a){t.maskForm.endTime=Object(i["a"])(t.maskForm.date,t.maskForm.startTime,e)}))},changeTeacher:function(e){var t=this;e&&(Object(c["g"])({userId:e}).then((function(e){200==e.code&&(t.schoolList=e.data)})),this.maskForm.address=null)},getDetail:function(e){var t=this;Object(o["X"])({courseScheduleId:e}).then(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(a){var r,n,s,l,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=a.code){e.next=19;break}for(r in t.maskForm={id:a.data.id,teacher:a.data.actualTeacherId,assistant:[],date:h()(a.data.classDate).format("YYYY-MM-DD"),startTime:h()(a.data.startClassTime).format("HH:mm"),endTime:h()(a.data.endClassTime).format("HH:mm"),timer:null,type:a.data.type,groupType:a.data.groupType,address:a.data.schoolId,teachMode:a.data.teachMode},t.courseTimeList)r==row.courseScheduleType&&(t.typeTimeList=t.courseTimeList[r].split(","));return t.maskForm.assistant=a.data.teachingTeacherIdList,n=Object(i["b"])(h()(a.data.classDate).format("YYYY-MM-DD"),h()(a.data.startClassTime).format("HH:mm"),h()(a.data.endClassTime).format("HH:mm")),t.organId=a.data.organId,s=a.data.type,e.prev=7,e.next=10,Object(o["qb"])({organId:t.organId});case 10:for(d in l=e.sent,t.courseTimeList=l.data,t.courseTimeList)d==s&&(t.typeTimeList=t.courseTimeList[d].split(","));e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](7);case 17:t.maskForm.timer=n,t.maskForm.teacher&&"VIP"==t.maskForm.type?Object(c["g"])({userId:t.maskForm.teacher}).then((function(e){200==e.code&&(t.schoolList=e.data)})):Object(u["o"])({organId:a.data.organId}).then((function(e){200==e.code&&(t.schoolList=e.data)}));case 19:case"end":return e.stop()}}),e,null,[[7,15]])})));return function(t){return e.apply(this,arguments)}}())},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},watch:{id:function(e){e&&this.getDetail(e)},"maskForm.timer":function(e){var t=this;this.$nextTick((function(a){e?t.$set(t.maskForm,"endTime",Object(i["a"])(t.maskForm.date,t.maskForm.startTime,e)):t.$set(t.maskForm,"endTime","")}))}}},f=p,g=(a("7291"),a("2877")),b=Object(g["a"])(f,r,n,!1,null,"ed5a5b42",null);t["a"]=b.exports},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=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 s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,a){var i=s(),o=e-i,c=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=c;var s=Math.easeInOutQuad(u,i,o,t);n(s),u<t?r(e):a&&"function"===typeof a&&a()};l()}},1963:function(e,t,a){},5120:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.tableList.length>0?a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"130px",prop:"musicGroupId",label:"乐团/课程组编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"课程编号"}}),e._v(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesType")(t.row.type)))])]}}],null,!1,2613307558)}),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(e._f("teachMode")(t.row.teachMode)))])]}}],null,!1,465778248)}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"教学点"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.schoolName?t.row.schoolName:"网络教室"))])]}}],null,!1,699114148)}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesStatus")(t.row.status)))])]}}],null,!1,3895776102)}),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(1==t.row.isComplaints?"是":"否"))])]}}],null,!1,1937261994)}),e._v(" "),a("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(" "),a("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(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[!t.row.isSettlement&&e.permission("courseSchedule/classStartDateAdjust")&&"MUSIC"===t.row.groupType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),!t.row.isSettlement&&e.permission("courseSchedule/classStartDateAdjust")&&"VIP"===t.row.groupType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),!t.row.isSettlement&&e.permission("courseSchedule/practiceCourseAdjust")&&"PRACTICE"===t.row.groupType?a("el-button",{attrs:{type:"text"},on:{click:function(a){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")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetTeacher(t.row)}}},[e._v("更换老师")]):e._e()],1)]}}],null,!1,1406133920)})],1),e._v(" "),a("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(" "),a("el-dialog",{attrs:{title:"老师调整",width:"400px",visible:e.teacherVisible},on:{"update:visible":function(t){e.teacherVisible=t}}},[a("el-form",{ref:"teacherForm",attrs:{model:e.teacherForm,rules:e.teacherRules,"label-position":"right","label-width":"80px;",inline:!0}},[a("el-form-item",{attrs:{label:"指导老师"}},[a("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 a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.teacherVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.subresetTeacher}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.show,title:"调整",width:"400px"},on:{"update:visible":function(t){e.show=t}}},[a("resetClass",{attrs:{show:e.show,id:e.id,isDisabled:!0},on:{closeReset:e.closeReset,getList:e.getList}})],1)],1)},n=[],s=(a("a481"),a("1cc7")),i=(a("c466"),a("8018"),a("333d")),o=a("ec8a"),c=a("02ce"),u=(a("5a0c"),{components:{pagination:i["a"],resetClass:c["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(s["Gb"])().then((function(t){200==t.code&&(e.teacherList=t.data)}))},methods:{getList:function(){var e=this;this.$emit("getCalendatList"),this.startTime&&this.endTime&&Object(s["Dc"])({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(s["Zb"])({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()}}}),l=u,d=a("2877"),m=Object(d["a"])(l,r,n,!1,null,"ede4c17c",null);t["a"]=m.exports},"5a18":function(e,t,a){},7291:function(e,t,a){"use strict";var r=a("5a18"),n=a.n(r);n.a},8018:function(e,t,a){"use strict";a.d(t,"x",(function(){return o})),a.d(t,"u",(function(){return c})),a.d(t,"h",(function(){return u})),a.d(t,"e",(function(){return l})),a.d(t,"j",(function(){return d})),a.d(t,"w",(function(){return m})),a.d(t,"v",(function(){return h})),a.d(t,"o",(function(){return p})),a.d(t,"C",(function(){return f})),a.d(t,"D",(function(){return g})),a.d(t,"z",(function(){return b})),a.d(t,"y",(function(){return v})),a.d(t,"B",(function(){return T})),a.d(t,"g",(function(){return y})),a.d(t,"r",(function(){return k})),a.d(t,"A",(function(){return w})),a.d(t,"t",(function(){return _})),a.d(t,"i",(function(){return L})),a.d(t,"n",(function(){return F})),a.d(t,"s",(function(){return C})),a.d(t,"a",(function(){return D})),a.d(t,"m",(function(){return O})),a.d(t,"p",(function(){return I})),a.d(t,"q",(function(){return j})),a.d(t,"l",(function(){return S})),a.d(t,"d",(function(){return x})),a.d(t,"c",(function(){return M})),a.d(t,"k",(function(){return $})),a.d(t,"b",(function(){return A})),a.d(t,"f",(function(){return R}));var r=a("b775"),n=a("4328"),s=a.n(n),i="/api-web";function o(e){return Object(r["a"])({url:i+"/teacher/queryPage",method:"get",params:e})}function c(e){return Object(r["a"])({url:i+"/teacher/get",method:"get",params:e})}function u(e){return Object(r["a"])({url:i+"/teacher/getTeacherMusicClass",method:"get",params:e})}function l(e){return Object(r["a"])({url:i+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function d(e){return Object(r["a"])({url:i+"/teacherAttendance/getTeacherPersonalAttendances",method:"get",params:e})}function m(e){return Object(r["a"])({url:i+"/teacher/queryCloses",method:"get",params:e})}function h(e){return Object(r["a"])({url:i+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function p(e){return Object(r["a"])({url:i+"/teacher/sumTeacherNoPay",method:"get",params:e})}function f(e){return Object(r["a"])({url:i+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function g(e){return Object(r["a"])({url:i+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function b(e){return Object(r["a"])({url:i+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function v(e){return Object(r["a"])({url:i+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function T(e){return Object(r["a"])({url:i+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:s.a.stringify(e)})}function y(e){return Object(r["a"])({url:i+"/school/findVipSchoolByTeacher",method:"get",params:e})}function k(e){return Object(r["a"])({url:i+"/teacher/add",method:"post",data:s.a.stringify(e)})}function w(e){return Object(r["a"])({url:i+"/teacher/update",method:"post",data:s.a.stringify(e)})}function _(e){return Object(r["a"])({url:i+"/teacherFreeTime/query",method:"get",params:e})}function L(e){return Object(r["a"])({url:i+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function F(e){return Object(r["a"])({url:i+"/teacherFreeTime/updateSet",method:"post",data:s.a.stringify(e)})}function C(e){return Object(r["a"])({url:i+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function D(e){return Object(r["a"])({url:i+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function O(e){return Object(r["a"])({url:i+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function I(e){return Object(r["a"])({url:i+"/sysTenantAccount/addMinutes",method:"post",data:s.a.stringify(e)})}function j(e){return Object(r["a"])({url:i+"/sysTenantAccount/subtractMinutes",method:"post",data:s.a.stringify(e)})}function S(e){return Object(r["a"])({url:i+"/sysTenantAccount/get",method:"get",params:e})}function x(e){return Object(r["a"])({url:i+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function M(e){return Object(r["a"])({url:i+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:s.a.stringify(e)})}function $(e){return Object(r["a"])({url:i+"/teacher/queryStudent",method:"get",params:e})}function A(e){return Object(r["a"])({url:i+"/studentManage/batchUpdateAdviser",method:"post",data:s.a.stringify(e)})}function R(e){return Object(r["a"])({url:i+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},c466:function(e,t,a){"use strict";a.d(t,"h",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"f",(function(){return l})),a.d(t,"g",(function(){return d})),a.d(t,"b",(function(){return m})),a.d(t,"a",(function(){return h}));a("a481");var r=a("5a0c"),n=a.n(r),s=a("56d7");function i(e){var t=e.getFullYear(),a=e.getMonth()+1,r=e.getDate();return a=a<10?"0"+a:a,r=r<10?"0"+r:r,t+"-"+a+"-"+r}function o(e){return e.setDate(1),e}function c(e){var t=e.getMonth(),a=++t,r=new Date(e.getFullYear(),a,1),n=864e5;return new Date(r-n)}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var r=t-24*(a.getDay()-1)*60*60*1e3,n=new Date(r),s=n.getFullYear(),i=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),c=s+"-"+i+"-"+o;return c}function l(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),r=7-a.getDay();7==r&&(r=0);var n=t+24*r*60*60*1e3,s=new Date(n),i=s.getFullYear(),o=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate(),u=i+"-"+o+"-"+c;return u}function d(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function m(e,t,a){return Math.abs(n()(e+" "+t).diff(e+" "+a,"Minute"))}function h(e,t,a){var r=n()(e+" "+t).add(a,"minute");return console.log(),n()(e+" 23:59").isBefore(r)?(s["$message"].error("课程时间无法跨天请重新设置开始时间"),""):r.format("HH:mm")}},ccd0:function(e,t,a){"use strict";var r=a("1963"),n=a.n(r);n.a},ef40:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("el-calendar",{staticStyle:{minWidth:"810px"},scopedSlots:e._u([{key:"dateCell",fn:function(t){return[a("div",{staticStyle:{height:"100%"},on:{click:function(a){return e.showDate(t)}}},[a("p",[e._v("\n "+e._s(t.data.day.substring(8))+"\n ")]),e._v(" "),a("div",[e._l(e.newList,(function(r,n){return r.classDate.substring(0,10)===t.data.day&&"PRACTICE"===r.groupType?a("span",{key:r.id,staticClass:"newDot"},[e._v("\n 网\n ")]):e._e()})),e._v(" "),e._l(e.vipList,(function(r,n){return r.classDate.substring(0,10)===t.data.day&&"VIP"===r.groupType?a("span",{key:r.id,staticClass:"vipDot"},[e._v("\n vip\n ")]):e._e()})),e._v(" "),e._l(e.teamList,(function(r,n){return r.classDate.substring(0,10)===t.data.day&&"MUSIC"===r.groupType?a("span",{key:r.id,staticClass:"teamDot"},[e._v("\n 乐\n ")]):e._e()}))],2)])]}}])}),e._v(" "),a("resetList",{attrs:{startTimes:e.startTime},on:{getCalendatList:e.getCalendatList}})],1)},n=[],s=a("1cc7"),i=a("c466"),o=(a("8018"),a("5120")),c=a("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 a=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(2)");a.addEventListener("click",(function(){e.value=new Date,e.setCourseList(e.value)}));var r=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(3)");r.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["h"])(Object(i["c"])(this.value)),a=Object(i["h"])(Object(i["d"])(this.value));Object(s["Dc"])({teacherIdList:this.teacherIdList,rows:9999,page:1,startTime:t,endTime:a}).then((function(t){if(200===t.code){for(var a in e.dataList=t.data.rows,e.vipList=[],e.teamList=[],e.newList=[],e.dataList)"VIP"===e.dataList[a].groupType&&e.vipList.push(e.dataList[a]),"MUSIC"===e.dataList[a].groupType&&e.teamList.push(e.dataList[a]),"PRACTICE"===e.dataList[a].groupType&&e.newList.push(e.dataList[a]);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 a={};return e=e.reduce((function(e,r){return!a[r[t]]&&(a[r[t]]=e.push(r)),e}),[]),e},setCourseList:function(e){this.startTime=Object(i["h"])(e),this.endTime=Object(i["h"])(e),this.getCalendatList()},permission:function(e,t){return Object(c["a"])(e,t)}}},l=u,d=(a("ccd0"),a("2877")),m=Object(d["a"])(l,r,n,!1,null,"cd4b7950",null);t["default"]=m.exports}}]);
  3. =======
  4. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c38de4c8"],{"02ce":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},["VIP"==e.maskForm.type?a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220},on:{change:e.changeTeacher},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher",t)},expression:"maskForm.teacher"}})],1):a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher",t)},expression:"maskForm.teacher"}})],1),e._v(" "),"MUSIC_NETWORK"!=e.maskForm.type&&"HIGH_ONLINE"!=e.maskForm.type&&"MUSIC"==e.maskForm.groupType?a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("remote-search",{attrs:{commit:"setTeachers",width:220,multiple:!0},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant",t)},expression:"maskForm.assistant"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.bigin,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date","string"===typeof t?t.trim():t)},expression:"maskForm.date"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课程时长",prop:"timer"}},[a("el-select",{staticStyle:{width:"220px !important"},on:{change:e.changeTime},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer",t)},expression:"maskForm.timer"}},e._l(e.typeTimeList,(function(e,t){return a("el-option",{key:t,attrs:{value:parseInt(e),label:e}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"04:30:00 - 23:30:00"}},on:{change:e.changeStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("el-time-picker",{attrs:{placeholder:"结束时间",disabled:"",format:"HH:mm","value-format":"HH:mm","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.maskForm.startTime}},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}})],1),e._v(" "),"VIP"==e.maskForm.type?a("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:""},on:{change:e.typeChange},model:{value:e.maskForm.teachMode,callback:function(t){e.$set(e.maskForm,"teachMode","string"===typeof t?t.trim():t)},expression:"maskForm.teachMode"}},[a("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),"OFFLINE"==e.maskForm.teachMode?a("el-form-item",{attrs:{label:"教学地点"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{filterable:"",clearable:""},model:{value:e.maskForm.address,callback:function(t){e.$set(e.maskForm,"address","string"===typeof t?t.trim():t)},expression:"maskForm.address"}},e._l(e.schoolList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.closeReset}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1)},n=[],s=(a("28a5"),a("96cf"),a("1da1")),i=a("c466"),o=a("1cc7"),c=a("8018"),u=a("99b4"),l=a("e3eb"),d=a.n(l),m=a("5a0c"),h=a.n(m),p={props:["show","id","isDisabled"],data:function(){return{courseVisible:!1,maskForm:{teacher:null,assistant:null,date:null,timer:null,startTime:null,endTime:null},maskRules:{teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}],date:[{required:!0,message:"请选择上课时间",trigger:"blur"}],startTime:[{required:!0,message:"请选择上课开始时间",trigger:"blur"}],endTime:[{required:!0,message:"请选择上课结束时间",trigger:"blur"}]},teacherList:[],schoolList:[],typeTimeList:[],courseTimeList:{},organId:"",bigin:this.beginDate()}},created:function(){this},mounted:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$store.dispatch("setTeachers"),this.getDetail(this.id);case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{submitResetClass:function(){var e=this,t=this.maskForm;if(t.startTime&&t.endTime){var a=h()(t.date+" "+t.startTime).diff(new Date,"second");a<=0?this.$message.error("课程开始时间必须大于当前时间"):this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.assistant.join(",");if(a.length<=0);var r={actualTeacherId:t.teacher,startClassTimeStr:t.startTime,endClassTimeStr:t.endTime,id:t.id,teachingTeacherIdList:a,classDate:t.date,type:t.type,groupType:t.groupType,schoolId:e.maskForm.address,teachMode:e.maskForm.teachMode};Object(o["jc"])(d()(r)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.$emit("getList"),e.$emit("closeReset")),206==t.code&&e.$confirm("当前课程课酬预计为0,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(t){r.allowZeroSalary=!0,Object(o["jc"])(d()(r)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.$emit("getList"),e.$emit("closeReset"))}))}))}))})).catch((function(){}))}else this.$message.error("请填写开始时间或结束时间")},typeChange:function(){this.$set(this.maskForm,"address",null)},changeStartTime:function(e){var t=this;this.$nextTick((function(a){e?t.$set(t.maskForm,"endTime",Object(i["a"])(t.maskForm.date,e,t.maskForm.timer)):t.$set(t.maskForm,"endTime","")}))},changeTime:function(e){var t=this;this.$nextTick((function(a){t.maskForm.endTime=Object(i["a"])(t.maskForm.date,t.maskForm.startTime,e)}))},changeTeacher:function(e){var t=this;e&&(Object(c["g"])({userId:e}).then((function(e){200==e.code&&(t.schoolList=e.data)})),this.maskForm.address=null)},getDetail:function(e){var t=this;Object(o["X"])({courseScheduleId:e}).then(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(a){var r,n,s,l,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=a.code){e.next=19;break}for(r in t.maskForm={id:a.data.id,teacher:a.data.actualTeacherId,assistant:[],date:h()(a.data.classDate).format("YYYY-MM-DD"),startTime:h()(a.data.startClassTime).format("HH:mm"),endTime:h()(a.data.endClassTime).format("HH:mm"),timer:null,type:a.data.type,groupType:a.data.groupType,address:a.data.schoolId,teachMode:a.data.teachMode},t.courseTimeList)r==row.courseScheduleType&&(t.typeTimeList=t.courseTimeList[r].split(","));return t.maskForm.assistant=a.data.teachingTeacherIdList,n=Object(i["b"])(h()(a.data.classDate).format("YYYY-MM-DD"),h()(a.data.startClassTime).format("HH:mm"),h()(a.data.endClassTime).format("HH:mm")),t.organId=a.data.organId,s=a.data.type,e.prev=7,e.next=10,Object(o["rb"])({organId:t.organId});case 10:for(d in l=e.sent,t.courseTimeList=l.data,t.courseTimeList)d==s&&(t.typeTimeList=t.courseTimeList[d].split(","));e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](7);case 17:t.maskForm.timer=n,t.maskForm.teacher&&"VIP"==t.maskForm.type?Object(c["g"])({userId:t.maskForm.teacher}).then((function(e){200==e.code&&(t.schoolList=e.data)})):Object(u["o"])({organId:a.data.organId}).then((function(e){200==e.code&&(t.schoolList=e.data)}));case 19:case"end":return e.stop()}}),e,null,[[7,15]])})));return function(t){return e.apply(this,arguments)}}())},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},watch:{id:function(e){e&&this.getDetail(e)},"maskForm.timer":function(e){var t=this;this.$nextTick((function(a){e?t.$set(t.maskForm,"endTime",Object(i["a"])(t.maskForm.date,t.maskForm.startTime,e)):t.$set(t.maskForm,"endTime","")}))}}},f=p,g=(a("7291"),a("2877")),b=Object(g["a"])(f,r,n,!1,null,"ed5a5b42",null);t["a"]=b.exports},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=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 s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,a){var i=s(),o=e-i,c=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=c;var s=Math.easeInOutQuad(u,i,o,t);n(s),u<t?r(e):a&&"function"===typeof a&&a()};l()}},1963:function(e,t,a){},5120:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.tableList.length>0?a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"130px",prop:"musicGroupId",label:"乐团/课程组编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"课程编号"}}),e._v(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesType")(t.row.type)))])]}}],null,!1,2613307558)}),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(e._f("teachMode")(t.row.teachMode)))])]}}],null,!1,465778248)}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"教学点"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.schoolName?t.row.schoolName:"网络教室"))])]}}],null,!1,699114148)}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesStatus")(t.row.status)))])]}}],null,!1,3895776102)}),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(1==t.row.isComplaints?"是":"否"))])]}}],null,!1,1937261994)}),e._v(" "),a("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(" "),a("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(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[!t.row.isSettlement&&e.permission("courseSchedule/classStartDateAdjust")&&"MUSIC"===t.row.groupType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),!t.row.isSettlement&&e.permission("courseSchedule/classStartDateAdjust")&&"VIP"===t.row.groupType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),!t.row.isSettlement&&e.permission("courseSchedule/practiceCourseAdjust")&&"PRACTICE"===t.row.groupType?a("el-button",{attrs:{type:"text"},on:{click:function(a){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")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetTeacher(t.row)}}},[e._v("更换老师")]):e._e()],1)]}}],null,!1,1406133920)})],1),e._v(" "),a("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(" "),a("el-dialog",{attrs:{title:"老师调整",width:"400px",visible:e.teacherVisible},on:{"update:visible":function(t){e.teacherVisible=t}}},[a("el-form",{ref:"teacherForm",attrs:{model:e.teacherForm,rules:e.teacherRules,"label-position":"right","label-width":"80px;",inline:!0}},[a("el-form-item",{attrs:{label:"指导老师"}},[a("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 a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.teacherVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.subresetTeacher}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.show,title:"调整",width:"400px"},on:{"update:visible":function(t){e.show=t}}},[a("resetClass",{attrs:{show:e.show,id:e.id,isDisabled:!0},on:{closeReset:e.closeReset,getList:e.getList}})],1)],1)},n=[],s=(a("a481"),a("1cc7")),i=(a("c466"),a("8018"),a("333d")),o=a("ec8a"),c=a("02ce"),u=(a("5a0c"),{components:{pagination:i["a"],resetClass:c["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(s["Hb"])().then((function(t){200==t.code&&(e.teacherList=t.data)}))},methods:{getList:function(){var e=this;this.$emit("getCalendatList"),this.startTime&&this.endTime&&Object(s["Fc"])({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(s["ac"])({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()}}}),l=u,d=a("2877"),m=Object(d["a"])(l,r,n,!1,null,"ede4c17c",null);t["a"]=m.exports},"5a18":function(e,t,a){},7291:function(e,t,a){"use strict";a("5a18")},8018:function(e,t,a){"use strict";a.d(t,"w",(function(){return o})),a.d(t,"t",(function(){return c})),a.d(t,"h",(function(){return u})),a.d(t,"e",(function(){return l})),a.d(t,"v",(function(){return d})),a.d(t,"u",(function(){return m})),a.d(t,"n",(function(){return h})),a.d(t,"B",(function(){return p})),a.d(t,"C",(function(){return f})),a.d(t,"y",(function(){return g})),a.d(t,"x",(function(){return b})),a.d(t,"A",(function(){return v})),a.d(t,"g",(function(){return T})),a.d(t,"q",(function(){return y})),a.d(t,"z",(function(){return k})),a.d(t,"s",(function(){return w})),a.d(t,"i",(function(){return _})),a.d(t,"m",(function(){return L})),a.d(t,"r",(function(){return F})),a.d(t,"a",(function(){return C})),a.d(t,"l",(function(){return D})),a.d(t,"o",(function(){return j})),a.d(t,"p",(function(){return I})),a.d(t,"k",(function(){return O})),a.d(t,"d",(function(){return S})),a.d(t,"c",(function(){return x})),a.d(t,"j",(function(){return M})),a.d(t,"b",(function(){return $})),a.d(t,"f",(function(){return A}));var r=a("b775"),n=a("4328"),s=a.n(n),i="/api-web";function o(e){return Object(r["a"])({url:i+"/teacher/queryPage",method:"get",params:e})}function c(e){return Object(r["a"])({url:i+"/teacher/get",method:"get",params:e})}function u(e){return Object(r["a"])({url:i+"/teacher/getTeacherMusicClass",method:"get",params:e})}function l(e){return Object(r["a"])({url:i+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function d(e){return Object(r["a"])({url:i+"/teacher/queryCloses",method:"get",params:e})}function m(e){return Object(r["a"])({url:i+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function h(e){return Object(r["a"])({url:i+"/teacher/sumTeacherNoPay",method:"get",params:e})}function p(e){return Object(r["a"])({url:i+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function f(e){return Object(r["a"])({url:i+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function g(e){return Object(r["a"])({url:i+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function b(e){return Object(r["a"])({url:i+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function v(e){return Object(r["a"])({url:i+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:s.a.stringify(e)})}function T(e){return Object(r["a"])({url:i+"/school/findVipSchoolByTeacher",method:"get",params:e})}function y(e){return Object(r["a"])({url:i+"/teacher/add",method:"post",data:s.a.stringify(e)})}function k(e){return Object(r["a"])({url:i+"/teacher/update",method:"post",data:s.a.stringify(e)})}function w(e){return Object(r["a"])({url:i+"/teacherFreeTime/query",method:"get",params:e})}function _(e){return Object(r["a"])({url:i+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function L(e){return Object(r["a"])({url:i+"/teacherFreeTime/updateSet",method:"post",data:s.a.stringify(e)})}function F(e){return Object(r["a"])({url:i+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function C(e){return Object(r["a"])({url:i+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function D(e){return Object(r["a"])({url:i+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function j(e){return Object(r["a"])({url:i+"/sysTenantAccount/addMinutes",method:"post",data:s.a.stringify(e)})}function I(e){return Object(r["a"])({url:i+"/sysTenantAccount/subtractMinutes",method:"post",data:s.a.stringify(e)})}function O(e){return Object(r["a"])({url:i+"/sysTenantAccount/get",method:"get",params:e})}function S(e){return Object(r["a"])({url:i+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function x(e){return Object(r["a"])({url:i+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:s.a.stringify(e)})}function M(e){return Object(r["a"])({url:i+"/teacher/queryStudent",method:"get",params:e})}function $(e){return Object(r["a"])({url:i+"/studentManage/batchUpdateAdviser",method:"post",data:s.a.stringify(e)})}function A(e){return Object(r["a"])({url:i+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},c466:function(e,t,a){"use strict";a.d(t,"h",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"f",(function(){return l})),a.d(t,"g",(function(){return d})),a.d(t,"b",(function(){return m})),a.d(t,"a",(function(){return h}));a("a481");var r=a("5a0c"),n=a.n(r),s=a("56d7");function i(e){var t=e.getFullYear(),a=e.getMonth()+1,r=e.getDate();return a=a<10?"0"+a:a,r=r<10?"0"+r:r,t+"-"+a+"-"+r}function o(e){return e.setDate(1),e}function c(e){var t=e.getMonth(),a=++t,r=new Date(e.getFullYear(),a,1),n=864e5;return new Date(r-n)}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var r=t-24*(a.getDay()-1)*60*60*1e3,n=new Date(r),s=n.getFullYear(),i=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),c=s+"-"+i+"-"+o;return c}function l(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),r=7-a.getDay();7==r&&(r=0);var n=t+24*r*60*60*1e3,s=new Date(n),i=s.getFullYear(),o=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,c=s.getDate()<10?"0"+s.getDate():s.getDate(),u=i+"-"+o+"-"+c;return u}function d(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function m(e,t,a){return Math.abs(n()(e+" "+t).diff(e+" "+a,"Minute"))}function h(e,t,a){var r=n()(e+" "+t).add(a,"minute");return console.log(),n()(e+" 23:59").isBefore(r)?(s["$message"].error("课程时间无法跨天请重新设置开始时间"),""):r.format("HH:mm")}},ccd0:function(e,t,a){"use strict";a("1963")},ef40:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("el-calendar",{staticStyle:{minWidth:"810px"},scopedSlots:e._u([{key:"dateCell",fn:function(t){return[a("div",{staticStyle:{height:"100%"},on:{click:function(a){return e.showDate(t)}}},[a("p",[e._v("\n "+e._s(t.data.day.substring(8))+"\n ")]),e._v(" "),a("div",[e._l(e.newList,(function(r,n){return r.classDate.substring(0,10)===t.data.day&&"PRACTICE"===r.groupType?a("span",{key:r.id,staticClass:"newDot"},[e._v("\n 网\n ")]):e._e()})),e._v(" "),e._l(e.vipList,(function(r,n){return r.classDate.substring(0,10)===t.data.day&&"VIP"===r.groupType?a("span",{key:r.id,staticClass:"vipDot"},[e._v("\n vip\n ")]):e._e()})),e._v(" "),e._l(e.teamList,(function(r,n){return r.classDate.substring(0,10)===t.data.day&&"MUSIC"===r.groupType?a("span",{key:r.id,staticClass:"teamDot"},[e._v("\n 乐\n ")]):e._e()}))],2)])]}}])}),e._v(" "),a("resetList",{attrs:{startTimes:e.startTime},on:{getCalendatList:e.getCalendatList}})],1)},n=[],s=a("1cc7"),i=a("c466"),o=(a("8018"),a("5120")),c=a("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 a=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(2)");a.addEventListener("click",(function(){e.value=new Date,e.setCourseList(e.value)}));var r=document.querySelector(".el-calendar__button-group .el-button-group>button:nth-child(3)");r.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["h"])(Object(i["c"])(this.value)),a=Object(i["h"])(Object(i["d"])(this.value));Object(s["Fc"])({teacherIdList:this.teacherIdList,rows:9999,page:1,startTime:t,endTime:a}).then((function(t){if(200===t.code){for(var a in e.dataList=t.data.rows,e.vipList=[],e.teamList=[],e.newList=[],e.dataList)"VIP"===e.dataList[a].groupType&&e.vipList.push(e.dataList[a]),"MUSIC"===e.dataList[a].groupType&&e.teamList.push(e.dataList[a]),"PRACTICE"===e.dataList[a].groupType&&e.newList.push(e.dataList[a]);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 a={};return e=e.reduce((function(e,r){return!a[r[t]]&&(a[r[t]]=e.push(r)),e}),[]),e},setCourseList:function(e){this.startTime=Object(i["h"])(e),this.endTime=Object(i["h"])(e),this.getCalendatList()},permission:function(e,t){return Object(c["a"])(e,t)}}},l=u,d=(a("ccd0"),a("2877")),m=Object(d["a"])(l,r,n,!1,null,"cd4b7950",null);t["default"]=m.exports}}]);
  5. >>>>>>> test:dist/static/js/chunk-c38de4c8.9af77410.js