1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46ce4004"],{"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)},s=[],n=(a("28a5"),a("96cf"),a("3b8d")),o=a("c466"),i=a("1cc7"),l=a("8018"),c=a("99b4"),u=a("e3eb"),m=a.n(u),d=a("5a0c"),p=a.n(d),h={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(n["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=p()(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(i["jc"])(m()(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(i["jc"])(m()(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(o["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(o["a"])(t.maskForm.date,t.maskForm.startTime,e)}))},changeTeacher:function(e){var t=this;e&&(Object(l["g"])({userId:e}).then((function(e){200==e.code&&(t.schoolList=e.data)})),this.maskForm.address=null)},getDetail:function(e){var t=this;Object(i["X"])({courseScheduleId:e}).then(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(a){var r,s,n,u,m;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:p()(a.data.classDate).format("YYYY-MM-DD"),startTime:p()(a.data.startClassTime).format("HH:mm"),endTime:p()(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,s=Object(o["b"])(p()(a.data.classDate).format("YYYY-MM-DD"),p()(a.data.startClassTime).format("HH:mm"),p()(a.data.endClassTime).format("HH:mm")),t.organId=a.data.organId,n=a.data.type,e.prev=7,e.next=10,Object(i["rb"])({organId:t.organId});case 10:for(m in u=e.sent,t.courseTimeList=u.data,t.courseTimeList)m==n&&(t.typeTimeList=t.courseTimeList[m].split(","));e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](7);case 17:t.maskForm.timer=s,t.maskForm.teacher&&"VIP"==t.maskForm.type?Object(l["g"])({userId:t.maskForm.teacher}).then((function(e){200==e.code&&(t.schoolList=e.data)})):Object(c["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(o["a"])(t.maskForm.date,t.maskForm.startTime,e)):t.$set(t.maskForm,"endTime","")}))}}},f=h,v=(a("7291"),a("2877")),b=Object(v["a"])(f,r,s,!1,null,"ed5a5b42",null);t["a"]=b.exports},"201b":function(e,t,a){"use strict";var r=a("a033"),s=a.n(r);s.a},"26a1":function(e,t,a){"use strict";var r=a("8539"),s=a.n(r);s.a},"3b19":function(e,t,a){},4063: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("h2",[a("div",{staticClass:"squrt"}),e._v("\n 课表列表\n "),a("filter-search",{ref:"filterSearch",attrs:{keys:["searchType"],moreKeys:["start","end","organId"]},on:{reload:e.reloadSearch}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.reset,"update:model":function(t){e.searchForm=t}}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"课程组编号/课程名称"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{type:"number",clearable:"",placeholder:"课程编号"},model:{value:e.searchForm.courseIdSearch,callback:function(t){e.$set(e.searchForm,"courseIdSearch","string"===typeof t?t.trim():t)},expression:"searchForm.courseIdSearch"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择教学点"},model:{value:e.searchForm.schoolId,callback:function(t){e.$set(e.searchForm,"schoolId","string"===typeof t?t.trim():t)},expression:"searchForm.schoolId"}},e._l(e.selects.schools,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择老师"},model:{value:e.searchForm.teacherIdList,callback:function(t){e.$set(e.searchForm,"teacherIdList","string"===typeof t?t.trim():t)},expression:"searchForm.teacherIdList"}},e._l(e.selects.teachers,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():t)},expression:"searchForm.organIdList"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程组类型"},model:{value:e.searchForm.groupType,callback:function(t){e.$set(e.searchForm,"groupType","string"===typeof t?t.trim():t)},expression:"searchForm.groupType"}},e._l(e.courseListType,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程类型"},model:{value:e.searchForm.courseType,callback:function(t){e.$set(e.searchForm,"courseType","string"===typeof t?t.trim():t)},expression:"searchForm.courseType"}},e._l(e.courseType,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"教学模式"},model:{value:e.searchForm.teachMode,callback:function(t){e.$set(e.searchForm,"teachMode","string"===typeof t?t.trim():t)},expression:"searchForm.teachMode"}},[a("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程状态"},model:{value:e.searchForm.courseStatus,callback:function(t){e.$set(e.searchForm,"courseStatus","string"===typeof t?t.trim():t)},expression:"searchForm.courseStatus"}},[a("el-option",{attrs:{label:"未开始",value:"NOT_START"}}),e._v(" "),a("el-option",{attrs:{label:"进行中",value:"UNDERWAY"}}),e._v(" "),a("el-option",{attrs:{label:"已结束",value:"OVER"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"合并课程类型"},model:{value:e.searchForm.mergeCourseType,callback:function(t){e.$set(e.searchForm,"mergeCourseType","string"===typeof t?t.trim():t)},expression:"searchForm.mergeCourseType"}},e._l(e.mergeCourseTypeOptions,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"老师类型"},model:{value:e.searchForm.teachType,callback:function(t){e.$set(e.searchForm,"teachType","string"===typeof t?t.trim():t)},expression:"searchForm.teachType"}},e._l(e.workTypeOptions,(function(e){return a("el-option",{key:e.label,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否点名"},model:{value:e.searchForm.isCallNames,callback:function(t){e.$set(e.searchForm,"isCallNames","string"===typeof t?t.trim():t)},expression:"searchForm.isCallNames"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"上课开始日期","end-placeholder":"上课结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.creatTimer,callback:function(t){e.$set(e.searchForm,"creatTimer","string"===typeof t?t.trim():t)},expression:"searchForm.creatTimer"}})],1),e._v(" "),a("el-row",{attrs:{type:"flex",justify:"space-around"}},[a("el-col",[a("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/superFindCourseSchedules",expression:"'export/superFindCourseSchedules'"}],attrs:{type:"primary"},on:{click:e.onCourseExport}},[e._v("导出课表")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/batchDelete?page=teamCourseList",expression:"'courseSchedule/batchDelete?page=teamCourseList'"}],attrs:{disabled:!e.deleteList.length>0,type:"primary"},on:{click:e.removeCourse}},[e._v("批量删除")])],1)],1)],1),e._v(" "),a("div",{staticClass:"tableWrap",staticStyle:{"margin-top":"20px"}},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[e._v("\n >\n "),a("el-table-column",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/batchDelete?page=teamCourseList",expression:"'courseSchedule/batchDelete?page=teamCourseList'"}],attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"130px",prop:"musicGroupId",label:"乐团/课程组编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.musicGroupId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",width:"100px",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),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):""))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",width:"150px",label:"课程名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),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)))])]}}])}),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)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",width:"110",label:"主教老师"}}),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("\n "+e._s(t.row.schoolName?t.row.schoolName:"网络教室")+"\n ")])]}}])}),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)))])]}}])}),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?"是":"否"))])]}}])}),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?"是":"否"))]}}])}),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 ")]}}])}),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?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"详情",fixed:"right",width:"220px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("teamCourseList/details")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("详情")]):e._e(),e._v(" "),e.permission("courseSchedule/classStartDateAdjust?hight")&&(!t.row.isLock||t.row.newCourseId>0)?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),t.row.newCourseId>0?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.common(t.row)}}},[e._v("\n 合并课\n ")]):e._e(),e._v(" "),"MUSIC"==t.row.groupType&&"MUSIC_NETWORK"!=t.row.type&&"HIGH_ONLINE"!=t.row.type&&"NOT_START"==t.row.status&&!e.isAddCom(t.row)&&e.permission("courseSchedule/courseMerge")&&t.row.newCourseId<=0&&!t.row.beMerged&&!t.row.isLock?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addCompound(t.row)}}},[e._v("添加合课")]):e._e(),e._v(" "),e.isAddCom(t.row)&&e.permission("courseSchedule/courseMerge")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.cancleCompound(t.row)}}},[e._v("取消合课")]):e._e(),e._v(" "),t.row.newCourseId==t.row.id&&e.permission("courseSchedule/mergeCourseSplit")&&"OVER"!=t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetCompound(t.row)}}},[e._v("取消合并")]):e._e(),e._v(" "),"OVER"==t.row.status&&!t.row.isSettlement&&e.permission("courseSchedule/cleanAttendance")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.clearAttend(t.row)}}},[e._v("清除考勤")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size,sync:""},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"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)],1),e._v(" "),a("el-dialog",{attrs:{title:"课表详情",visible:e.classVisible,width:"1000px"},on:{"update:visible":function(t){e.classVisible=t}}},[a("el-form",{attrs:{model:e.maskForm,inline:!0}},[a("el-form-item",{attrs:{label:"老师姓名"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.maskForm.teacherName))])]),e._v(" "),a("el-form-item",{attrs:{label:"课程模式"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e._f("teachMode")(e.maskForm.teachMode)))])]),e._v(" "),a("el-form-item",{attrs:{label:"课程类型"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e._f("coursesType")(e.maskForm.type)))])]),e._v(" "),a("el-form-item",{attrs:{label:"课程状态"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e._f("coursesStatus")(e.maskForm.status)))])]),e._v(" "),a("el-form-item",{attrs:{label:"是否点名"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e._f("isCall")(e.maskForm.isCallNames)))])]),e._v(" "),a("el-form-item",{attrs:{label:"上课时间"}},[e._v("\n "+e._s(e.maskForm.startClassTime?e.maskForm.startClassTime.substr(0,16):"")+"-"+e._s(e.maskForm.endClassTime?e.maskForm.endClassTime.substr(11,5):"")+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"上课时长"}},[a("div",{staticClass:"inputStyle",class:e.maskForm.attendClassTime<=120?"":"red"},[e._v("\n "+e._s(e.maskForm.attendClassTime>=0?e.maskForm.attendClassTime:0)+"分钟\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学员和老师同时在教室里的时长。")]),e._v(" "),a("i",{directives:[{name:"permission",rawName:"v-permission",value:"export/teacherSalary",expression:"'export/teacherSalary'"}],staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]),e._v(" "),e.maskForm.school?a("el-form-item",{attrs:{label:"教学点"}},[e._v("\n "+e._s(e.maskForm.school.name)+"\n "),a("el-tooltip",{attrs:{content:"查看教学点","open-delay":.5}},[a("i",{staticClass:"el-icon-map-location",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.openLocation(e.maskForm.school)}}})])],1):e._e()],1),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName="string"===typeof t?t.trim():t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"学员列表",name:"first"}},["first"==e.activeName?a("div",[a("studentRollCall",{attrs:{courseScheduleId:e.maskForm.id,isMainGo:e.isMainGo}})],1):e._e()]),e._v(" "),a("el-tab-pane",{attrs:{label:"老师列表",name:"second"}},["second"==e.activeName?a("div",[a("teacherList",{attrs:{courseScheduleId:e.maskForm.id,teachMode:e.maskForm.teachMode,courseStatus:e.maskForm.status}})],1):e._e()]),e._v(" "),a("el-tab-pane",{attrs:{label:"作业",name:"third"}},["third"==e.activeName?a("div",[a("studentWork",{attrs:{courseScheduleId:e.maskForm.id}})],1):e._e()]),e._v(" "),a("el-tab-pane",{attrs:{label:"评论",name:"four"}},["four"==e.activeName?a("div",[a("courseEvaluate",{attrs:{courseScheduleId:e.maskForm.id}})],1):e._e()]),e._v(" "),e.permission("courseSchedule/queryCourseAdjustDetail")?a("el-tab-pane",{attrs:{label:"调整记录",name:"five"}},["five"==e.activeName?a("div",[a("infoMsg",{attrs:{courseScheduleId:e.maskForm.id}})],1):e._e()]):e._e()],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.show,width:"400px",title:"课程调整"},on:{"update:visible":function(t){e.show=t}}},[e.show?a("resetClass",{attrs:{show:e.show,id:e.id},on:{closeReset:e.closeReset,getList:e.getList}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"查看教学点",visible:e.locationVisible},on:{"update:visible":function(t){e.locationVisible=t}}},[e.maskForm.school?a("school-location",{attrs:{longitudeLatitude:e.maskForm.school.longitudeLatitude,address:e.maskForm.school.address}}):e._e()],1),e._v(" "),e.permission("courseSchedule/courseMerge")?a("addCompound",{attrs:{compoundList:e.compoundList},on:{clearCom:e.clearCom,getList:e.getList,cancleCompound:e.cancleCompound}}):e._e()],1)},s=[],n=(a("ac6a"),a("5df3"),a("4f7f"),a("75fc")),o=a("a8db"),i=(a("386d"),a("96cf"),a("3b8d")),l=(a("c5f6"),a("7618")),c=a("db72"),u=a("333d"),m=a("1cc7"),d=a("7e78"),p=a("267e"),h=a("ed08"),f=a("8018"),v=(a("99b4"),a("92e3")),b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{staticClass:"workForm",staticStyle:{padding:"0 25px"},attrs:{inline:!0}},[a("el-form-item",{attrs:{label:"学生总数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.studentNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"实际上课学生数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.signInNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"请假学生数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.leaveNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"旷课学生数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.truantNum))])])],1),e._v(" "),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:"username",label:"学生姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.username)+"\n "),a("span",{staticStyle:{color:"#f56c6c"}},[e._v("("+e._s(t.row.userId)+")")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"signInTime",label:"签到时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.signInTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"signOutTime",label:"签退时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.signOutTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"考勤状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.courseSchedule&&"NOT_START"!=t.row.courseSchedule.status?a("div",[t.row.status?a("p",[e._v(e._s(e._f("studentRecord")(t.row.status)))]):a("p",[e._v("未签到")])]):e._e()]}}])}),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("yesOrNo")(t.row.visitFlag)))])]}}])}),e._v(" "),e.permission("visit/add?page=teamCourseList")?a("el-table-column",{attrs:{align:"center",prop:"ctrls",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addVisit(t.row)}}},[e._v("新增回访")])]}}],null,!1,755485774)}):e._e()],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit},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._v(" "),a("el-dialog",{attrs:{title:"新增回访",width:"500px",visible:e.visitVisible,"append-to-body":""},on:{"update:visible":function(t){e.visitVisible=t}}},[e.visitVisible&&e.detail?a("visit",{attrs:{detail:e.detail,username:e.detail.username,isMainGo:!0},on:{close:function(t){e.visitVisible=!1},submited:e.getList}}):e._e()],1)],1)},g=[],_=a("ec8a"),y=a("4edf"),k={props:["courseScheduleId","isMainGo"],components:{pagination:u["a"],visit:y["a"]},data:function(){return{tableList:[],visitVisible:!1,detail:null,rules:{limit:10,page:1,total:0},studentNum:null,signInNum:null,leaveNum:null,truantNum:null}},mounted:function(){this.init()},activated:function(){this.init()},methods:{permission:_["a"],init:function(){console.log(this.courseScheduleId),this.getList()},addVisit:function(e){this.visitVisible=!0,this.detail=e},getList:function(){var e=this;Object(m["I"])({search:this.courseScheduleId,rows:this.rules.limit,page:this.rules.page}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)})),Object(m["Dc"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&(e.studentNum=t.data.studentNum,e.signInNum=t.data.signInNum,e.leaveNum=t.data.leaveNum,e.truantNum=t.data.truantNum)}))}}},T=k,w=(a("201b"),a("2877")),F=Object(w["a"])(T,b,g,!1,null,"0fe149e1",null),S=F.exports,L=a("9be9"),C=a("22bb"),x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[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",width:"150",prop:"username",label:"学生姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.username)+"\n "),a("span",{staticStyle:{color:"#f56c6c"}},[e._v("("+e._s(t.row.userId)+")")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"100",prop:"score",label:"星级"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.score?t.row.score+"星":"")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"评价内容"}})],1)],1)])},O=[],I={props:["courseScheduleId"],data:function(){return{tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{getList:function(){var e=this;Object(m["yb"])({courseId:this.courseScheduleId}).then((function(t){200==t.code&&(e.tableList=t.data.courseScheduleComplaints)}))}}},M=I,j=Object(w["a"])(M,x,O,!1,null,"6e814c6e",null),$=j.exports,N=a("bc3a"),D=a.n(N),R=a("5f87"),A=a("3908"),E=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-amap",{ref:"map",staticClass:"amap-demo",staticStyle:{height:"300px"},attrs:{zoom:14,vid:"amapDemo1","amap-manager":e.amapManager,center:e.center}},[a("el-amap-marker",{attrs:{position:e.center,title:"教学点"}}),e._v(" "),a("el-amap-text",{attrs:{text:e.address,position:e.center,offset:[0,20]}})],1)},V=[],H=(a("28a5"),a("8f9b")),q=a.n(H),P=new q.a.AMapManager;q.a.initAMapApiLoader({key:"b1e6ac2eb28902ce91a490edf194e000",plugin:["Autocomplete","PlaceSearch","Scale","OverView","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"});var Y={props:["longitudeLatitude","address"],data:function(){return console.log(this.address),{amapManager:P,center:(this.longitudeLatitude||"").split(",")}}},B=Y,G=Object(w["a"])(B,E,V,!1,null,null,null),W=G.exports,z=a("02ce"),U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return 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:"teacherName",width:"150px",label:"老师姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("span",[e._v(e._s(t.row.teacherName))]),a("br"),e._v(" "),a("span",{staticStyle:{color:"#f56c6c"}},[e._v("("),a("copy-text",[e._v(e._s(t.row.teacherId))]),e._v(")")],1)])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherRole",label:"老师类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("workType")(t.row.teacherRole))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"签到时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormatMinute")(t.row.signInTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"签退时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormatMinute")(t.row.signOutTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"签到状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=e.courseStatus?a("div",[e._v(e._s(e._f("attendanceType")(t.row.signInStatus)))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"签退状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=e.courseStatus?a("div",[e._v(e._s(e._f("attendanceOutType")(t.row.signOutStatus)))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"signOutAttachments",label:"签退照片"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherAttendance&&t.row.teacherAttendance.signOutAttachments?a("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{fit:"cover",src:t.row.teacherAttendance.signOutAttachments,previewSrcList:[t.row.teacherAttendance.signOutAttachments]}}):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"complaintsContent",width:"120",label:"考勤申诉内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherAttendance?a("div",[a("overflow-text",{attrs:{text:t.row.teacherAttendance.complaintsContent,width:"100%"}},[e._v("\n "+e._s(t.row.teacherAttendance.complaintsContent)+"\n ")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"complaintsTime",width:"160",label:"考勤申诉时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.teacherAttendance&&t.row.teacherAttendance.complaintsTime)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"complaintsStatus",width:"140",label:"考勤申诉状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherAttendance?a("div",[e._v("\n "+e._s(e._f("complaintsStatusEnum")(t.row.teacherAttendance.complaintsStatus))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"disposeContent",label:"处理意见"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"100%",text:e.row.teacherAttendance&&e.row.teacherAttendance.disposeContent}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"200px",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["NOT_START"!=e.courseStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"teacherAttendance/updateTeacherAttendance",expression:"'teacherAttendance/updateTeacherAttendance'"}],attrs:{type:"text"},on:{click:function(a){return e.mackAttendance(t.row)}}},[e._v("补考勤")]):e._e(),e._v(" "),"OFFLINE"==e.teachMode&&"NOT_START"!=e.courseStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookGPS(t.row)}}},[e._v("GPS定位")]):e._e(),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/queryTeacherSalary",expression:"'courseSchedule/queryTeacherSalary'"}],attrs:{type:"text"},on:{click:function(a){return e.setCourseInfo(t.row)}}},[e._v("课酬调整")]),e._v(" "),1==t.row.signInStatus&&1==t.row.signOutStatus||"NOT_START"==e.courseStatus?e._e():a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"teacherAttendance/update?page=teamCourseList",expression:"'teacherAttendance/update?page=teamCourseList'"}],attrs:{type:"text"},on:{click:function(a){return e.hand(t.row)}}},[e._v("处理意见")])],1)]}}])})],1),e._v(" "),a("el-dialog",{attrs:{width:"1000px",title:"GPS定位",visible:e.gpsVisible,"append-to-body":""},on:{"update:visible":function(t){e.gpsVisible=t}}},[e.gpsVisible?a("gpsLoction",{attrs:{activeRow:e.activeRow}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"处理意见",width:"400px",visible:e.handVisible,"append-to-body":""},on:{"update:visible":function(t){e.handVisible=t}}},[e.handVisible&&e.detail?a("hand",{attrs:{detail:e.detail},on:{close:function(t){e.handVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{width:"500px",title:e.activeTeacher&&e.activeTeacher.teacherName+" ("+e.activeTeacher.teacherId+")",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[a("el-form",{ref:"teacherMask",attrs:{model:e.teacherMask,rules:e.teacherRules}},[a("el-form-item",{attrs:{label:"原课程课酬",prop:"expectSalary"}},[a("span",[e._v(e._s(e._f("moneyFormat")(e.activeTeacher&&e.activeTeacher.expectSalary)))])]),e._v(" "),a("el-form-item",{attrs:{label:"调整范围",prop:"radio"}},[a("el-radio",{attrs:{label:"all"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("之后剩余课次")]),e._v(" "),a("el-radio",{attrs:{label:"one"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("仅限本次")])],1),e._v(" "),a("el-form-item",{attrs:{label:"课程课酬",prop:"salary"}},[a("el-input",{staticStyle:{width:"180px"},model:{value:e.teacherMask.salary,callback:function(t){e.$set(e.teacherMask,"salary","string"===typeof t?t.trim():t)},expression:"teacherMask.salary"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.innerVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.resetSalary}},[e._v("确 定")])],1)],1)],1)},K=[],J=a("2d63"),Z=a("6ecc"),X={components:{gpsLoction:L["a"],hand:Z["a"]},props:["courseScheduleId","teachMode","courseStatus"],data:function(){return{tableList:[],gpsVisible:!1,activeRow:null,activeTeacherList:[],dialogTableVisible:!1,innerVisible:!1,activeTeacher:null,handVisible:null,detail:null,teacherMask:{salary:"",subsidy:"",radio:""},teacherRules:{salary:[{required:!0,message:"请输入课程课酬",trigger:"blur"}],subsidy:[{required:!0,message:"请输入课时补贴",trigger:"blur"}],radio:[{required:!0,message:"请选择调整范围",trigger:"blur"}]}}},mounted:function(){this.init()},activated:function(){},methods:{getList:function(){var e=this;Object(f["f"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&(e.tableList=t.data)}))},init:function(){this.getList()},lookGPS:function(e){this.activeRow=e,this.gpsVisible=!0},hand:function(e){this.handVisible=!0,this.detail=e},mackAttendance:function(e){var t=this;this.$confirm("确定补考勤","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={teacherId:e.teacherId,courseScheduleId:t.courseScheduleId,signInStatus:1,signOutStatus:1};Object(m["Oc"])(a).then((function(e){200==e.code?(t.$message.success("补卡成功"),t.getList()):t.$message.error(e.msg)}))})).catch((function(){}))},setCourseInfo:function(e){var t=this;Object(m["Ib"])({courseScheduleId:this.courseScheduleId}).then((function(a){if(200==a.code){t.innerVisible=!0;var r,s=Object(J["a"])(a.data);try{for(s.s();!(r=s.n()).done;){var n=r.value;if(e.teacherId==n.teacherId){t.activeTeacher=n;break}}}catch(o){s.e(o)}finally{s.f()}}}))},resetTeacher:function(e){this.innerVisible=!0,this.activeTeacher=e},resetSalary:function(){var e=this;this.$refs["teacherMask"].validate((function(t){t?Object(f["A"])({courseScheduleId:e.courseScheduleId,salary:e.teacherMask.salary,teacherId:e.activeTeacher.teacherId,scope:e.teacherMask.radio}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.teacherMask={salary:"",subsidy:"",radio:""},e.innerVisible=!1)})):e.$message.error("请填写必要参数")}))}}},Q=X,ee=Object(w["a"])(Q,U,K,!1,null,null,null),te=ee.exports,ae=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"fixedBox"},[a("el-card",[a("div",{staticClass:"boxWrap"},[a("p",[e._v("临时合课列表"),a("span",{staticStyle:{color:"red"}},[e._v(" "+e._s(e.compoundList.length)+" ")])]),e._v(" "),a("el-popover",{attrs:{placement:"top",trigger:"click"},model:{value:e.isLook,callback:function(t){e.isLook=t},expression:"isLook"}},[a("div",[a("p",{staticClass:"title"},[e._v("临时合课列表 "),a("i",{staticClass:"el-icon-minus minus",on:{click:function(t){e.isLook=!1}}})]),e._v(" "),a("el-divider")],1),e._v(" "),a("el-button",{staticStyle:{float:"right"},attrs:{type:"text"},on:{click:e.clearCom}},[e._v("清空列表")]),e._v(" "),a("div",[a("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-table",{attrs:{data:e.dataList,height:"300px","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"主课",width:"110"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("el-radio",{attrs:{label:e.row.id}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",label:"课程名称",prop:"name"}}),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("coursesType")(t.row.type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",prop:"teacherName",label:"指导老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.teacherName)+"("+e._s(t.row.actualTeacherId)+")\n ")])]}}])}),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):""))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.cancleCom(t.row)}}},[e._v("取消")])]}}])})],1)],1)],1),e._v(" "),a("el-button",{staticStyle:{float:"right","margin-top":"20px"},attrs:{type:"primary",size:"mini"},on:{click:e.submitClass}},[e._v("确定")]),e._v(" "),a("i",{staticClass:"el-icon-copy-document",attrs:{slot:"reference"},slot:"reference"})],1)],1)]),e._v(" "),a("el-dialog",{attrs:{visible:e.show,title:"临时合课信息","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.show=t}}},[e.show?a("compoundClass",{attrs:{show:e.show,isDisabled:!0,idList:e.idList,id:e.radio},on:{closeReset:e.closeReset,getList:e.getList}}):e._e()],1)],1)},re=[],se=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}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"课程名称",prop:"teacher"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{placeholder:"请输入课程名称"},model:{value:e.maskForm.name,callback:function(t){e.$set(e.maskForm,"name","string"===typeof t?t.trim():t)},expression:"maskForm.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",[a("div",{staticStyle:{width:"220px !important"}},[a("a",{staticClass:"studentTitle",attrs:{href:"#"},on:{click:e.lookStudentList}},[e._v("\n 学生列表>>")])])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:"",filterable:""},on:{change:e.changeTeacher},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher","string"===typeof t?t.trim():t)},expression:"maskForm.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("el-col",{attrs:{span:12}},["MUSIC_NETWORK"!=e.maskForm.type&&"HIGH_ONLINE"!=e.maskForm.type&&"MUSIC"==e.maskForm.groupType?a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant","string"===typeof t?t.trim():t)},expression:"maskForm.assistant"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1):e._e()],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[a("el-date-picker",{attrs:{type:"date","picker-options":{firstDayOfWeek:1},"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)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"课程时长(分钟)",prop:"timer"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"number",disabled:e.isDisabled},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer",t)},expression:"maskForm.timer"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[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)],1),e._v(" "),a("el-col",{attrs:{span:12}},[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)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},["VIP"==e.maskForm.type?a("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:""},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()],1),e._v(" "),a("el-col",{attrs:{span:12}},["OFFLINE"==e.maskForm.teachMode&&"VIP"==e.maskForm.type?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)],1)],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),e._v(" "),a("el-dialog",{attrs:{title:"学员列表",width:"650px","append-to-body":"",visible:e.studentListModalVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[a("viewStudentList",{attrs:{list:e.studentListModal,showOk:!0},on:{close:function(t){e.studentListModalVisible=!1}}})],1)],1)},ne=[],oe=(a("7f7f"),a("c466")),ie=a("a792"),le=(a("e3eb"),a("5a0c")),ce=a.n(le),ue={props:["show","id","isDisabled","idList"],components:{viewStudentList:ie["a"]},data:function(){return{courseVisible:!1,studentListModalVisible:!1,maskForm:{teacher:null,assistant:null,date:null,timer:null,startTime:null,endTime:null,name:null},maskRules:{name:[{required:!0,message:"请输入课程名称",trigger:"blur"}],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:[],studentListModal:[]}},mounted:function(){var e=this;Object(m["Hb"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),this.getDetail(this.id)},methods:{submitResetClass:function(){var e=this,t=this.maskForm;t.startTime&&t.endTime?this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.assistant.join(",");if(a.length<=0);var r=e.idList.split(",");for(var s in r)r[s]==e.id&&r.splice(s,1);var n=r.join(","),o={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,mergeCourseIds:n};Object(m["s"])(o).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.$emit("closeReset")),206==t.code&&e.$confirm("当前课程课酬预计为0,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(t){o.allowZeroSalary=!0,Object(m["s"])(o).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.$emit("closeReset"))}))}))}))})).catch((function(){})):this.$message.error("请填写开始时间或结束时间")},changeStartTime:function(e){var t=this;this.$nextTick((function(a){console.log(Object(oe["a"])(t.maskForm.date,e,t.maskForm.timer)),e?t.$set(t.maskForm,"endTime",Object(oe["a"])(t.maskForm.date,e,t.maskForm.timer)):t.$set(t.maskForm,"endTime","")}))},changeTeacher:function(e){var t=this;e&&(Object(f["g"])({userId:e}).then((function(e){200==e.code&&(t.schoolList=e.data)})),this.maskForm.address="")},getDetail:function(e){var t=this;Object(m["X"])({courseScheduleId:e}).then((function(e){if(200==e.code){for(var a in console.log(e.data.groupType),t.maskForm={id:e.data.id,teacher:e.data.actualTeacherId,assistant:[],date:ce()(e.data.classDate).format("YYYY-MM-DD"),startTime:ce()(e.data.startClassTime).format("HH:mm"),endTime:ce()(e.data.endClassTime).format("HH:mm"),timer:null,type:e.data.type,groupType:e.data.groupType,schoolId:e.data.schoolId,teachMode:e.data.teachMode,name:e.data.name},t.maskForm.assistant=[],e.data.teachingTeachers)"TEACHING"==e.data.teachingTeachers[a].teacherRole&&t.maskForm.assistant.push(e.data.teachingTeachers[a].userId);var r=Object(oe["b"])(ce()(e.data.classDate).format("YYYY-MM-DD"),ce()(e.data.startClassTime).format("HH:mm"),ce()(e.data.endClassTime).format("HH:mm"));console.log(ce()(e.data.startClassTime).format("HH:mm")),t.maskForm.timer=r,t.maskForm.teacher&&Object(f["g"])({userId:t.maskForm.teacher}).then((function(e){200==e.code&&(t.schoolList=e.data)}))}}))},lookStudentList:function(){var e=this;Object(m["Z"])({courseIds:this.idList}).then((function(t){200==t.code&&(e.studentListModal=t.data,e.studentListModalVisible=!0)}))}},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(oe["a"])(t.maskForm.date,t.maskForm.startTime,e)):t.$set(t.maskForm,"endTime","")}))}}},me=ue,de=(a("26a1"),Object(w["a"])(me,se,ne,!1,null,"0c196b73",null)),pe=de.exports,he={props:["compoundList"],components:{compoundClass:pe},data:function(){return{radio:"",dataList:this.compoundList,isLook:!1,show:!1,idList:""}},methods:{cancleCom:function(e){this.$emit("cancleCompound",e)},clearCom:function(){this.$emit("clearCom")},submitClass:function(){if(this.radio){var e=[];this.dataList.forEach((function(t){e.push(t.id)})),this.dataList.length<=1?this.$message.error("请至少选择2节课程"):(this.idList=e.join(","),this.show=!0,this.isLook=!1)}else this.$message.error("请选择一节主课")},getList:function(){},closeReset:function(){this.clearCom(),this.show=!1,this.$emit("getList")}},watch:{compoundList:function(e){console.log(e),this.dataList=e}}},fe=he,ve=(a("5786"),Object(w["a"])(fe,ae,re,!1,null,"216fdde0",null)),be=ve.exports,ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.dataList.length>0?a("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.dataList,(function(t,r){return a("el-collapse-item",{key:r,attrs:{title:e.getTitle(t),name:r}},[a("template",{slot:"title"},[a("header",{staticClass:"header"},[e._v("\n "+e._s(t.operatorName)+" "),a("span",[e._v("在")]),e._v(" "+e._s(t.createTime)+" "),a("span",[e._v("修改了")])])]),e._v(" "),a("infoMsgContent",{attrs:{before:t.previousCourseSchedule,after:t.currentCourseSchedule}})],2)})),1):e._e(),e._v(" "),e.dataList.length<=0?a("div",{staticClass:"noBox"},[a("p",[e._v("暂无调整记录")])]):e._e()],1)},_e=[],ye=(a("55dd"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#f5f7fa"},"max-height":"250"}},[a("el-table-column",{attrs:{prop:"name",label:"字段名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e.nameFormat[t.row.name]||t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"before",label:"修改前"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.diff.hasOwnProperty(t.row.name)?a("div",[t.row.before?a("el-tag",{attrs:{type:"danger"}},[a("s",[e._v(e._s(t.row.before))])]):e._e()],1):a("div",[e._v(e._s(t.row.before))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"after",label:"修改后"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.diff.hasOwnProperty(t.row.name)?a("div",[t.row.after?a("el-tag",{attrs:{type:"success"}},[e._v(e._s(t.row.after))]):e._e()],1):a("div",[e._v(e._s(t.row.after))])]}}])})],1)],1)}),ke=[],Te=(a("456d"),a("5a6c")),we=a.n(Te),Fe={name:"课程名称",actualTeacherName:"主教老师",teachingTeacherNames:"助教老师",startClassTime:"上课时间",teachMode:"课程类型",schoolName:"教学地点",timers:"课程时长"},Se={props:["before","after"],computed:{diff:function(){return we()(this.before,this.after)},list:function(){for(var e=Object.keys(this.before),t=[],a=0;a<e.length;a++){var r=e[a];e[a+1];t.push({name:r,before:this.before[r],after:this.after[r]})}return t}},data:function(){return{nameFormat:Fe}},mounted:function(){console.log(this.diff,this.list)}},Le=Se,Ce=Object(w["a"])(Le,ye,ke,!1,null,"569c757c",null),xe=Ce.exports,Oe={props:["courseScheduleId"],data:function(){return{activeName:0,dataList:[]}},components:{infoMsgContent:xe},mounted:function(){var e=this;Object(m["hc"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&t.data&&(e.dataList=t.data.map((function(t){var a=JSON.parse(t.currentCourseSchedule),r=e.filterKeys(a),s=e.filterKeys(JSON.parse(t.previousCourseSchedule));return Object(c["a"])(Object(c["a"])({},t),{},{operatorName:a.operatorName,currentCourseSchedule:r,previousCourseSchedule:s})})))}))},methods:{getRealTime:function(e){var t=parseInt(e);return(""+e).indexOf(" ")>-1?e:t},filterKeys:function(e){var t=(e.teachingTeacherNames||"").split(",").sort((function(e,t){return(e||"").localeCompare(t||"","zh")}));return{name:e.name,actualTeacherName:e.actualTeacherName,teachingTeacherNames:t.join(","),startClassTime:this.$helpers.dayjs(this.getRealTime(e.startClassTime)).format("YYYY-MM-DD HH:mm"),teachMode:p["teachMode"][e.teachMode],schoolName:e.schoolName,timers:this.getTimers(e)}},getTitle:function(e){return e.operatorName+" 在 "+e.createTime+" 修改了"},getTimers:function(e){return Object(oe["b"])(ce()(e.classDate).format("YYYY-MM-DD"),ce()(this.getRealTime(e.startClassTime)).format("HH:mm"),ce()(this.getRealTime(e.endClassTime)).format("HH:mm"))}},computed:{}},Ie=Oe,Me=(a("6494"),Object(w["a"])(Ie,ge,_e,!1,null,"408655f3",null)),je=Me.exports,$e=new Date;$e=$e.getFullYear()+"-"+($e.getMonth()+1)+"-"+$e.getDate();var Ne={teachMode:null,organIdList:null,courseStatus:null,courseType:null,timer:[$e,$e],class:null,teachType:null,mergeCourseType:null,isCallNames:null,search:null,teacherIdList:null,schoolId:null,creatTimer:[],courseIdSearch:null},De={data:function(){return{classVisible:!1,timerVisible:!1,courseVisible:!1,locationVisible:!1,courseType:v["k"],mergeCourseType:p["mergeCourseType"],courseListType:v["j"],searchForm:Object(c["a"])({},Ne),tableList:[],searchLsit:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},teacherList:[],schoolList:[],maskForm:{},activeName:"first",id:null,show:!1,compoundList:[],deleteList:[],isMainGo:!1}},components:{pagination:u["a"],studentRollCall:S,gpsLoction:L["a"],studentWork:C["a"],courseEvaluate:$,resetClass:z["a"],teacherList:te,addCompound:be,infoMsg:je,SchoolLocation:W},created:function(){this.searchForm.timer=[$e,$e]},computed:{workTypeOptions:function(){return Object(h["b"])(p["workType"])},mergeCourseTypeOptions:function(){return Object(h["b"])(p["mergeCourseType"])}},mounted:function(){var e=this.$route.query;if(e.start||e.end)this.searchForm.timer=[e.start,e.end];else{var t=!1;for(var a in this.searchForm){var r;if("object"==Object(l["a"])(this.searchForm[a]))(null===(r=this.searchForm[a])||void 0===r?void 0:r.length)>0&&(t=!0);else this.searchForm[a]&&(t=!0)}t||(this.searchForm.timer=[$e,$e])}e.organId&&(this.searchForm.organIdList=Number(e.organId)),this.$store.dispatch("setBranchs"),this.$store.dispatch("setTeachers"),this.$store.dispatch("setSchools"),this.init()},methods:{init:function(){this.getList()},permission:function(e,t){return Object(_["a"])(e,t)},reloadSearch:function(){this.searchForm.timer=[$e,$e],this.getList()},removeCourse:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.deleteList.length<1)){e.next=3;break}return this.$message.error("请自少选择一个班级"),e.abrupt("return");case 3:return t=this.deleteList.map((function(e){return e.id})),a=t.join(","),e.prev=5,e.next=8,this.$confirm("是否确认删除此数据?","提示",{type:"warning"});case 8:Object(d["g"])({courseScheduleIds:a}).then((function(e){200==e.code&&(r.$message.success("删除成功"),r.getList())})),e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](5);case 13:case"end":return e.stop()}}),e,this,[[5,11]])})));function t(){return e.apply(this,arguments)}return t}(),reset:function(){this.searchForm=Object(c["a"])({},Ne),this.search()},search:function(){this.rules.page=1,this.$refs.searchForm.save(this.searchForm),this.getList()},common:function(e){this.searchForm=Object(c["a"])(Object(c["a"])({},Ne),{},{timer:[],search:e.newCourseId}),this.search()},getSearchForm:function(){var e=this.searchForm;(!e.timer||e.timer.length<=0)&&(e.timer=[]),(!e.creatTimer||e.creatTimer.length<=0)&&(e.creatTimer=[]);var t=0;for(var a in e)(e[a]&&!Array.isArray(e[a])||Array.isArray(e[a])&&e[a].length>0)&&t++;if(t<=0)return this.$message.error("请至少选择一个搜索条件"),!1;var r=e.creatTimer,s=e.timer,n=Object(o["a"])(e,["creatTimer","timer"]);return Object(c["a"])(Object(c["a"])(Object(c["a"])({},n),{},{page:this.rules.page,rows:this.rules.limit,searchType:this.$route.query.searchType},Object(h["a"])(r,["createStartDate","createEndDate"])),Object(h["a"])(s,["startTime","endTime"]))},openLocation:function(e){this.locationVisible=!0},onCourseExport:function(){var e=this;if(this.getSearchForm()){var t="/api-web/export/superFindCourseSchedules",a={method:"get",headers:{Authorization:Object(R["a"])()},params:this.getSearchForm(),url:t,responseType:"blob"};this.$confirm("您确定导出报表","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){A["a"].startLoading(),D()(a).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(t){if(-1!=t.indexOf("code")){var r=JSON.parse(t);e.$message.error(r.msg)}else{var s=URL.createObjectURL(a),n=document.createElement("a"),o="课表列表"+(new Date).getTime()+".xls";n.href=s,n.setAttribute("download",o),document.body.appendChild(n),n.click()}})),A["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),A["a"].endLoading()}))})).catch((function(){}))}},getList:function(){var e=this;this.getSearchForm()&&Object(m["Fc"])(this.getSearchForm()).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},lookDetail:function(e){var t=this;this.maskForm=e,this.activeName="first",this.classVisible=!0,Object(f["i"])({courseScheduleId:e.id}).then((function(a){var r;200==a.code&&(t.maskForm=Object(c["a"])(Object(c["a"])({},t.maskForm),a.data),t.maskForm.id=e.id,t.activeName="first",t.classVisible=!0,t.isMainGo=null===(r=t.$refs.filterSearch)||void 0===r?void 0:r.show,console.log(t.isMainGo))}))},handleClick:function(e,t){},resetClass:function(e){console.log(e),this.id=e.id,this.show=!0},closeReset:function(){this.show=!1},clearAttend:function(e){var t=this;this.$confirm("是否清除考勤记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["q"])({courseScheduleIds:e.id}).then((function(e){200==e.code?(t.$message.success("清除成功"),t.getList()):t.$message.error(e.msg)}))})).catch((function(){}))},addCompound:function(e){this.compoundList.push(e),this.compoundList=Object(n["a"])(new Set(this.compoundList))},isAddCom:function(e){var t=!1;return this.compoundList.forEach((function(a){a.id==e.id&&(t=!0)})),t},cancleCompound:function(e){var t=null;this.compoundList.forEach((function(a,r){a.id==e.id&&(t=r)})),t+""&&this.compoundList.splice(t,1)},clearCom:function(){this.compoundList=[]},resetCompound:function(e){var t=this;this.$confirm("您确定取消合并该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["k"])({mainCourseId:e.id}).then((function(e){200==e.code&&(t.$message.success("提交成功"),t.getList())}))})).catch((function(){}))},handleSelectionChange:function(e){this.deleteList=e}},filters:{isCall:function(e){return 0==e?"未点名":1==e?"已点名":void 0}},watch:{classVisible:function(e){e||(this.activeName=null)}}},Re=De,Ae=(a("9282"),Object(w["a"])(Re,r,s,!1,null,"57edc29d",null));t["default"]=Ae.exports},"4aad":function(e,t,a){},5786:function(e,t,a){"use strict";var r=a("65fb"),s=a.n(r);s.a},"5a18":function(e,t,a){},"5a6c":function(e,t,a){"use strict";function r(){return n(null,[].slice.call(arguments,0))}function s(e){return n(e,[].slice.call(arguments,1))}function n(e,t){for(var a,r,s,n,i,l=t.length,c=t[0],u={},m=e&&e.equal||o,d=1;d<l;d++)for(a=t[d],r=Object.keys(a),s=r.length,i=0;i<s;i++)n=r[i],m(a[n],c[n])||(u[n]=a[n]);return u}function o(e,t){return e===t}r.custom=s,e.exports=r},6494:function(e,t,a){"use strict";var r=a("b2a2"),s=a.n(r);s.a},"65fb":function(e,t,a){},"6ecc":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:"quitForm",attrs:{model:e.quitForm,rules:e.quitRules}},[a("el-form-item",{attrs:{prop:"disposeContent"}},[a("el-input",{attrs:{type:"textarea",placeholder:"请填写处理意见"},model:{value:e.quitForm.disposeContent,callback:function(t){e.$set(e.quitForm,"disposeContent","string"===typeof t?t.trim():t)},expression:"quitForm.disposeContent"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},s=[],n=a("db72"),o=(a("96cf"),a("3b8d")),i=a("d7a3"),l={props:["detail"],data:function(){return{quitForm:{reason:null},quitRules:{reason:[{required:!0,message:"请填写退团退费原因"}]}}},methods:{submit:function(){var e=this;this.$refs.quitForm.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=11;break}return t.prev=1,t.next=4,Object(i["c"])(Object(n["a"])({id:e.detail.teacherAttendanceId},e.quitForm));case 4:e.$emit("close"),e.$emit("submited"),e.$message.success("提交成功"),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](1);case 11:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e){return t.apply(this,arguments)}}())}}},c=l,u=a("2877"),m=Object(u["a"])(c,r,s,!1,null,null,null);t["a"]=m.exports},7291:function(e,t,a){"use strict";var r=a("5a18"),s=a.n(r);s.a},"7b2e":function(e,t,a){"use strict";var r=a("4aad"),s=a.n(r);s.a},8018:function(e,t,a){"use strict";a.d(t,"w",(function(){return i})),a.d(t,"t",(function(){return l})),a.d(t,"h",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"v",(function(){return m})),a.d(t,"u",(function(){return d})),a.d(t,"n",(function(){return p})),a.d(t,"B",(function(){return h})),a.d(t,"C",(function(){return f})),a.d(t,"y",(function(){return v})),a.d(t,"x",(function(){return b})),a.d(t,"A",(function(){return g})),a.d(t,"g",(function(){return _})),a.d(t,"q",(function(){return y})),a.d(t,"z",(function(){return k})),a.d(t,"s",(function(){return T})),a.d(t,"i",(function(){return w})),a.d(t,"m",(function(){return F})),a.d(t,"r",(function(){return S})),a.d(t,"a",(function(){return L})),a.d(t,"l",(function(){return C})),a.d(t,"o",(function(){return x})),a.d(t,"p",(function(){return O})),a.d(t,"k",(function(){return I})),a.d(t,"d",(function(){return M})),a.d(t,"c",(function(){return j})),a.d(t,"j",(function(){return $})),a.d(t,"b",(function(){return N})),a.d(t,"f",(function(){return D}));var r=a("b775"),s=a("4328"),n=a.n(s),o="/api-web";function i(e){return Object(r["a"])({url:o+"/teacher/queryPage",method:"get",params:e})}function l(e){return Object(r["a"])({url:o+"/teacher/get",method:"get",params:e})}function c(e){return Object(r["a"])({url:o+"/teacher/getTeacherMusicClass",method:"get",params:e})}function u(e){return Object(r["a"])({url:o+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function m(e){return Object(r["a"])({url:o+"/teacher/queryCloses",method:"get",params:e})}function d(e){return Object(r["a"])({url:o+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function p(e){return Object(r["a"])({url:o+"/teacher/sumTeacherNoPay",method:"get",params:e})}function h(e){return Object(r["a"])({url:o+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function f(e){return Object(r["a"])({url:o+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function v(e){return Object(r["a"])({url:o+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function b(e){return Object(r["a"])({url:o+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function g(e){return Object(r["a"])({url:o+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:n.a.stringify(e)})}function _(e){return Object(r["a"])({url:o+"/school/findVipSchoolByTeacher",method:"get",params:e})}function y(e){return Object(r["a"])({url:o+"/teacher/add",method:"post",data:n.a.stringify(e)})}function k(e){return Object(r["a"])({url:o+"/teacher/update",method:"post",data:n.a.stringify(e)})}function T(e){return Object(r["a"])({url:o+"/teacherFreeTime/query",method:"get",params:e})}function w(e){return Object(r["a"])({url:o+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function F(e){return Object(r["a"])({url:o+"/teacherFreeTime/updateSet",method:"post",data:n.a.stringify(e)})}function S(e){return Object(r["a"])({url:o+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function L(e){return Object(r["a"])({url:o+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function C(e){return Object(r["a"])({url:o+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function x(e){return Object(r["a"])({url:o+"/sysTenantAccount/addMinutes",method:"post",data:n.a.stringify(e)})}function O(e){return Object(r["a"])({url:o+"/sysTenantAccount/subtractMinutes",method:"post",data:n.a.stringify(e)})}function I(e){return Object(r["a"])({url:o+"/sysTenantAccount/get",method:"get",params:e})}function M(e){return Object(r["a"])({url:o+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function j(e){return Object(r["a"])({url:o+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:n.a.stringify(e)})}function $(e){return Object(r["a"])({url:o+"/teacher/queryStudent",method:"get",params:e})}function N(e){return Object(r["a"])({url:o+"/studentManage/batchUpdateAdviser",method:"post",data:n.a.stringify(e)})}function D(e){return Object(r["a"])({url:o+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},8539:function(e,t,a){},9282:function(e,t,a){"use strict";var r=a("3b19"),s=a.n(r);s.a},"9be9":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-amap",{ref:"map",staticClass:"amap-demo",attrs:{zoom:e.zoom,vid:"amapDemo","amap-manager":e.amapManager,center:e.center,events:e.markerEvents}},[e._l(e.markers,(function(e,t){return a("el-amap-marker",{key:t,attrs:{position:e.location,title:e.title}})})),e._v(" "),e._l(e.markers,(function(e,t){return a("el-amap-text",{key:t+"xxx",attrs:{text:e.title,position:e.location,offset:[40,-10]}})})),e._v(" "),a("el-amap-polyline",{attrs:{path:e.path,strokeColor:"#4196fc"}}),e._v(" "),e._l(e.texts,(function(e,t){return a("el-amap-text",{key:t+"ooo",attrs:{text:e.text,position:e.position,offset:[-50,0]}})}))],2)],1)},s=[],n=(a("28a5"),a("8f9b")),o=a.n(n);a("1cc7");(function(){var e=EventTarget.prototype.addEventListener,t=!1;try{var a=Object.defineProperty({},"passive",{get:function(){t=!0}});document.addEventListener("testPassive",null,a),document.removeEventListener("testPassive",null,a)}catch(r){}EventTarget.prototype.addEventListener=function(a,r,s){this.func=e,s=s instanceof Object?s:{},s.passive=t,this.func(a,r,s)}})(),o.a.initAMapApiLoader({key:"b1e6ac2eb28902ce91a490edf194e000",plugin:["Autocomplete","PlaceSearch","Scale","OverView","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"});var i=new o.a.AMapManager,l={props:["activeRow"],data:function(){var e=this;return{zoom:20,amapManager:i,center:[114.34371,30.55939],markers:[],distance:"-",schoolLongitudeLatitude:null,signInLongitudeLatitude:null,markerEvents:{complete:function(t){e.$refs.map.$amap.setFitView()}},path:[],texts:[]}},watch:{activeRow:function(e){e&&(console.log(e),this.init())}},mounted:function(){this.init()},activated:function(){},methods:{init:function(){if(this.activeRow.schoolLongitudeLatitude){var e={title:"教学点",location:this.activeRow.schoolLongitudeLatitude.split(",")};this.center=this.activeRow.schoolLongitudeLatitude.split(","),this.schoolLongitudeLatitude=this.activeRow.schoolLongitudeLatitude.split(","),this.markers.push(e)}if(this.activeRow.signInLongitudeLatitude){var t={title:"签到点",location:this.activeRow.signInLongitudeLatitude.split(",")};this.center=this.activeRow.signInLongitudeLatitude.split(","),this.signInLongitudeLatitude=this.activeRow.signInLongitudeLatitude.split(","),this.markers.push(t)}if(this.activeRow.signOutLongitudeLatitude){var a={title:"签退点",location:this.activeRow.signOutLongitudeLatitude.split(",")};this.center=this.activeRow.signOutLongitudeLatitude.split(","),this.signOutLongitudeLatitude=this.activeRow.signOutLongitudeLatitude.split(","),this.markers.push(a)}this.getDistance(this.signInLongitudeLatitude,this.schoolLongitudeLatitude),this.getDistance(this.signOutLongitudeLatitude,this.schoolLongitudeLatitude)},onSearchResult:function(){},getDistance:function(e,t){if(e&&e.length>0&&t&&t.length>0){i.getMap();var a=new AMap.Marker({position:e}),r=new AMap.Marker({position:t}),s=a.getPosition(),n=r.getPosition(),o=s.divideBy(2).add(n.divideBy(2));console.log(o);var l=[o.lng,o.lat],c=Math.round(s.distance(n));this.path.push(e,t),this.texts.push({text:"两点相距".concat(c,"米"),position:l}),this.distance=c}}}},c=l,u=(a("c45e"),a("2877")),m=Object(u["a"])(c,r,s,!1,null,"03796907",null);t["a"]=m.exports},a033:function(e,t,a){},a792: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-table",{ref:"studentTable",attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark","max-height":"300px"},on:{"selection-change":e.handleSelectionChange}},[e.isChiose?a("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"55"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{prop:"userId",align:"center",width:"120",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"nickName",align:"center",width:"120",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("sex")(t.row.gender))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"center",width:"120",label:"联系电话"}}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectNames",align:"center",label:"专业"}})],1),e._v(" "),e.showOk?a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$listeners.close(e.selectList)}}},[e._v("确 定")])],1):e._e(),e._v(" "),e.showOk?a("div",{staticStyle:{clear:"both"}}):e._e()],1)},s=[],n=(a("ac6a"),{props:["list","isChiose","chioseList","showOk","disabledList"],data:function(){return{selectList:this.chioseList}},mounted:function(){var e=this;if(this.chioseList){var t=this.chioseList.map((function(e,t){return e.userId}));this.list.forEach((function(a,r){-1!=t.indexOf(a.userId)&&e.$refs.studentTable.toggleRowSelection(a,!0)}))}},methods:{handleSelectionChange:function(e){this.selectList=e},checkSelectable:function(e){var t=!0;return this.disabledList&&this.disabledList.length>0&&this.disabledList.forEach((function(a){a.userId==e.userId&&(t=!1)})),t}}}),o=n,i=(a("7b2e"),a("2877")),l=Object(i["a"])(o,r,s,!1,null,"b0949258",null);t["a"]=l.exports},b2a2:function(e,t,a){},c45e:function(e,t,a){"use strict";var r=a("d8f9"),s=a.n(r);s.a},c466:function(e,t,a){"use strict";a.d(t,"h",(function(){return o})),a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"g",(function(){return m})),a.d(t,"b",(function(){return d})),a.d(t,"a",(function(){return p}));a("a481");var r=a("5a0c"),s=a.n(r),n=a("56d7");function o(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 i(e){return e.setDate(1),e}function l(e){var t=e.getMonth(),a=++t,r=new Date(e.getFullYear(),a,1),s=864e5;return new Date(r-s)}function c(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,s=new Date(r),n=s.getFullYear(),o=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,i=s.getDate()<10?"0"+s.getDate():s.getDate(),l=n+"-"+o+"-"+i;return l}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),r=7-a.getDay();7==r&&(r=0);var s=t+24*r*60*60*1e3,n=new Date(s),o=n.getFullYear(),i=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,l=n.getDate()<10?"0"+n.getDate():n.getDate(),c=o+"-"+i+"-"+l;return c}function m(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function d(e,t,a){return Math.abs(s()(e+" "+t).diff(e+" "+a,"Minute"))}function p(e,t,a){var r=s()(e+" "+t).add(a,"minute");return console.log(),s()(e+" 23:59").isBefore(r)?(n["$message"].error("课程时间无法跨天请重新设置开始时间"),""):r.format("HH:mm")}},d7a3:function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return n})),a.d(t,"c",(function(){return o}));var r=a("829b"),s=function(e){return Object(r["a"])({url:"/api-web/teacherAttendance/repealComplaints",method:"post",data:e,requestType:"form"})},n=function(e){return Object(r["a"])({url:"/api-web/teacherAttendance/addComplaints",method:"post",data:e,requestType:"form"})},o=function(e){return Object(r["a"])({url:"/api-web/teacherAttendance/update",method:"post",data:e,requestType:"form"})}},d8f9:function(e,t,a){}}]);
|