(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1c5e6dec"],{"0f4d":function(e,t,a){"use strict";a("6180")},"10c8":function(e,t,a){"use strict";a("dbb0")},"1ae8":function(e,t,a){},"1cfc":function(e,t,a){},2253:function(e,t,a){"use strict";a("3a47")},"22bb":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.title||e.content?a("div",{staticClass:"workTitle"},[e._v("\n "+e._s(e.title)+":"),a("span",[e._v(e._s(e.content))])]):a("div",{staticClass:"workTitle"},[e._v("暂未布置作业")]),e._v(" "),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.homeworkStudentNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"已交学生数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.homeworkNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"已回复数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.repliedNum))])])],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:"studentName",width:"160",label:"学生姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.studentName)+"\n "),a("span",{staticStyle:{color:"#f56c6c"}},[e._v("("+e._s(t.row.studentId)+")")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectNames",label:"声部名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"submitTime",width:"150",label:"提交训练时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("dateForMinFormat")(t.row.submitTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否提交"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.submitTime?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isView?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否回复"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isReplied?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"查看训练",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[t.row.urlList&&t.row.submitTime?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookWork(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},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(" "),e.workVisible?a("el-dialog",{attrs:{title:"查看训练",width:"940px","append-to-body":"",visible:e.workVisible},on:{close:e.closeWorkVisible,"update:visible":function(t){e.workVisible=t}}},[a("div",{staticClass:"sliderWrap"},[a("div",{staticClass:"swiperWrap"},[a("swiper",{ref:"mySwiper",attrs:{options:e.swiperOptions,"auto-update":!0,"auto-destroy":!1,"delete-instance-on-destroy":!1,"cleanup-styles-on-destroy":!1}},[e._l(e.activeRow.urlList,(function(t,s){return a("swiper-slide",{key:s,staticClass:"swiper-no-swiping"},[e.activeIndex==s?a("div",{staticClass:"videoWrap"},[a("video",{ref:"dialogVideo",refInFor:!0,staticStyle:{width:"480px"},attrs:{src:t,controls:"controls"}},[e._v("\n 您的浏览器不支持视频播放\n ")])]):e._e()])})),e._v(" "),a("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"}),e._v(" "),e.activeRow.urlList.length>1?a("div",{staticClass:"swiper-button-prev swiper-button-white",attrs:{slot:"button-prev"},on:{click:e.prev},slot:"button-prev"}):e._e(),e._v(" "),e.activeRow.urlList.length>1?a("div",{staticClass:"swiper-button-next swiper-button-white",attrs:{slot:"button-next"},on:{click:e.next},slot:"button-next"}):e._e()],2)],1),e._v(" "),a("div",[a("p",{staticClass:"workContainer"},[e._v("训练回复内容:")]),e._v(" "),a("div",{staticClass:"msgWrap"},[e.activeCommit.length>0?a("div",{class:e.activeCommit.length>0?"":"flex"},[e._l(e.activeCommit,(function(e,t){return a("messageBox",{key:t,attrs:{item:e}})})),e._v(" "),e.activeCommit.length<=0?a("p",{staticClass:"nomore"},[e._v("暂无回复内容")]):e._e()],2):e._e()])])])]):e._e()],1)},r=[],i=(a("28a5"),a("ac6a"),a("7212")),o=(a("bbe3"),a("333d")),n=a("1cc7"),l=a("dc1e"),c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"box",class:{teacher:e.item.isTeacher}},[a("span",{staticClass:"name"},[e._v(e._s(e.item.userName))]),e._v(" "),a("div",{staticClass:"container"},[a("span",{staticClass:"time"},[e._v(e._s(e.item.createTime))]),e._v(" "),"TXT"===e.item.msgType?a("div",{staticClass:"content"},[e._v(e._s(e.item.content))]):e._e(),e._v(" "),"IMG"===e.item.msgType?a("div",{staticClass:"content"},[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.item.content,fit:"cover","preview-src-list":[e.item.content]}})],1):e._e(),e._v(" "),"VC"===e.item.msgType?a("div",{staticClass:"content"},[a("audio",{ref:"dialogVideo",staticStyle:{width:"240px"},attrs:{controls:"",src:e.item.content}},[e._v("您的浏览器不支持音频播放")])]):e._e()])])},u=[],d={name:"message-box",props:["item"],mounted:function(){}},m=d,p=(a("797d"),a("2877")),h=Object(p["a"])(m,c,u,!1,null,"38aec66e",null),f=h.exports,v={props:["courseScheduleId"],components:{pagination:o["a"],Swiper:i["Swiper"],SwiperSlide:i["SwiperSlide"],messageBox:f},directives:{swiper:i["directive"]},data:function(){var e=this;return{tableList:[],rules:{limit:10,page:1,total:0},workVisible:!1,repliedVisible:!1,studentNum:null,homeworkStudentNum:null,homeworkNum:null,repliedNum:null,activeUrl:null,content:null,title:null,activeRow:null,activeIndex:0,swiperOptions:{noSwiping:!0,observer:!0,observeParents:!0,speed:300,loop:!0,pagination:".swiper-pagination",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{slideChange:function(t){e.activeIndex=t.realIndex}}},comUrl:"",comVisible:!1,activeCommit:[]}},computed:{swiper:function(){return this.$refs.mySwiper.$swiper}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;Object(n["Oc"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&(e.studentNum=t.data.studentNum,e.homeworkStudentNum=t.data.homeworkStudentNum,e.homeworkNum=t.data.homeworkNum,e.repliedNum=t.data.repliedNum)})),Object(n["db"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&(t.data&&(e.content=t.data.content,e.title=t.data.title),e.content?e.content:e.content="")})),this.getList()},getList:function(){var e=this;Object(n["O"])({search:this.courseScheduleId,rows:this.rules.limit,page:this.rules.page}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows.map((function(e){return e.urlList=[],e.url&&e.url.split(",").forEach((function(t){t&&e.urlList.push(t)})),e})))}))},lookWork:function(e){var t=this;this.activeRow=e,Object(l["b"])({studentCourseHomeworkId:e.studentCourseHomeworkId,rows:9999}).then((function(e){200==e.code&&(t.activeCommit=e.data.rows,t.workVisible=!0)}))},closeWorkVisible:function(){this.activeUrl=""},prev:function(e){var t=this;this.$nextTick((function(){t.$refs.mySwiper.$swiper.slidePrev()}))},next:function(e){var t=this;this.$nextTick((function(){t.$refs.mySwiper.$swiper.slideNext()}))},lookReplied:function(e){},openAideo:function(e){this.comUrl=e,this.comVisible=!0}},watch:{courseScheduleId:function(e){e&&this.init()}}},b=v,_=(a("6038"),Object(p["a"])(b,s,r,!1,null,"4287e3fd",null));t["a"]=_.exports},"2f80":function(e,t,a){"use strict";a("97be")},3105:function(e,t,a){"use strict";a("5ab2")},3797:function(e,t,a){},"3a47":function(e,t,a){},"3c27":function(e,t,a){},4063:function(e,t,a){"use strict";a.r(t);var s=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 "),e.permission("courseSchedule/abnormal")?a("filter-search",{ref:"filterSearch",attrs:{keys:["searchType"],moreKeys:["start","end","organId"]},on:{reload:e.reloadSearch,setTimeForSearch:e.setTimeForSearch}}):e._e()],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:{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("remote-search",{attrs:{commit:"setTeachers",demissionFlag:!0,isForzenWithQueryCondition:!0},model:{value:e.searchForm.teacherIdList,callback:function(t){e.$set(e.searchForm,"teacherIdList",t)},expression:"searchForm.teacherIdList"}})],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.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-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-button",{attrs:{type:e.isSearch?"primary":"info",icon:"el-icon-circle-plus-outline"},on:{click:function(t){e.showMove=!0}}},[e._v("更多选项")])],1),e._v(" "),a("el-form-item",[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("导出课表")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{ref:"tableList",attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"row-key":"id"},on:{"selection-change":e.handleSelectionChange,select:e.onTableSelect}},[e._v("\n >\n "),a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[a("el-row",{staticStyle:{"margin-left":"64px"}},[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"考勤申诉:"}},[a("span",[e._v(e._s(1==t.row.isComplaints?"是":"否"))])])],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"是否冻结:"}},[a("span",[e._v(e._s(t.row.isLock?"是":"否"))])])],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"云教练课程:"}},[e._v("\n "+e._s(t.row.memberFlag?"是":"否")+"\n ")])],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"是否点名:"}},[e._v("\n "+e._s(t.row.isCallNames?"是":"否")+"\n ")])],1)],1),e._v(" "),t.row.newCourseId?a("el-row",{staticStyle:{"margin-left":"64px"}},[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"合并类型:"}},[a("span",[a("div",[t.row.newCourseId>0&&t.row.newCourseId==t.row.id?a("span",[e._v("合并课\n ")]):e._e(),e._v(" "),t.row.newCourseId>0&&t.row.newCourseId!=t.row.id?a("p",[e._v("\n 被合并课\n ")]):e._e(),e._v(" "),0==t.row.newCourseId?a("p",[e._v("无")]):e._e()])])])],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"主课编号:"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.common(t.row)}}},[e._v("\n "+e._s(t.row.newCourseId)+"\n ")])],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"被合并课编号:"}},e._l(t.row.mergedCourseIds.split(","),(function(t,s){return a("el-button",{key:s,attrs:{type:"text"},on:{click:function(a){return e.common1(t)}}},[e._v("\n "+e._s(t)+"\n ")])})),1)],1)],1):e._e()],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left",prop:"organName",label:"分部名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"170px",prop:"musicGroupId",label:"乐团/课程组编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticStyle:{color:"var(--color-primary)"},on:{click:function(a){return e.gotoCourse(t.row)}}},[a("copy-text",[e._v(e._s(t.row.musicGroupId))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left",prop:"id",label:"课程类型/编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",{staticStyle:{color:"#ff802c"}},[e._v(e._s(e._f("coursesType")(t.row.type)))]),e._v(" "),a("copy-text",[e._v(e._s(t.row.id))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"200px",label:"课程状态/时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",{class:e.getColor(t.row.status)},[e._v("\n "+e._s(e._f("coursesStatus")(t.row.status))+"\n ")]),e._v(" "),a("p",[e._v("\n "+e._s(t.row.startClassTime?t.row.startClassTime.substr(0,16):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(11,5):"")+"\n ")])])]}}])}),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("div",[a("p",{staticStyle:{color:"#ff802c"}},[e._v(e._s(t.row.teacherName))]),e._v(" "),a("copy-text",[e._v(e._s(t.row.name))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"teachingUserNames",width:"150px",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.teachingUserNames))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"教学模式/教学点"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",{staticStyle:{color:"#ff802c"}},[e._v("\n "+e._s(e._f("teachMode")(t.row.teachMode))+"\n ")]),e._v(" "),a("p",[e._v("\n "+e._s(t.row.schoolName?t.row.schoolName:"LIVE"===t.row.type?"线上直播间":"网络教室")+"\n ")])])]}}])}),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",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("详情")]),e._v(" "),!e.permission("courseSchedule/classStartDateAdjust?hight")||t.row.isLock||t.row.newCourseId>0&&t.row.newCourseId!=t.row.id||"UNDERWAY"==t.row.status?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]),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(" "),"NOT_START"!=e.maskForm.status?a("el-form-item",{attrs:{label:"学员考勤"}},[a("div",{staticClass:"inputStyle",class:0!=e.maskForm.errorAttendanceNum?"red":"green"},[e._v("\n "+e._s(0!=e.maskForm.errorAttendanceNum?"异常":"正常")+"\n ")])]):e._e(),e._v(" "),"NOT_START"!=e.maskForm.status?a("el-form-item",{attrs:{label:"老师考勤"}},[a("div",{staticClass:"inputStyle",class:1==e.maskForm.signInStatusEnum&&1==e.maskForm.signOutStatusEnum?"green":"red"},[e._v("\n "+e._s(1==e.maskForm.signInStatusEnum&&1==e.maskForm.signOutStatusEnum?"正常":"异常")+"\n ")])]):e._e(),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"}},[e.permission("/teamCourseListDetailStudnetList")?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._e(),e._v(" "),e.permission("/teamCourseListDetailTeacherList")?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},on:{syncTeacherAttend:e.syncTeacherAttend}})],1):e._e()]):e._e(),e._v(" "),e.permission("/teamCourseListDetailWorkList")&&"OVER"==e.maskForm.status?a("el-tab-pane",{attrs:{label:"训练",name:"third"}},["third"==e.activeName?a("div",["v1"==e.maskForm.versionTag?a("studentWork",{attrs:{courseScheduleId:e.maskForm.id}}):a("studentWorks",{attrs:{courseScheduleId:e.maskForm.id}})],1):e._e()]):e._e(),e._v(" "),e.permission("/teamCourseListDetailCommentList")?a("el-tab-pane",{attrs:{label:"评论",name:"four"}},["four"==e.activeName?a("div",[a("courseEvaluate",{attrs:{courseScheduleId:e.maskForm.id}})],1):e._e()]):e._e(),e._v(" "),e.permission("/teamCourseListDetailAdjust")?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.showMove?a("el-dialog",{attrs:{title:"更多选项",visible:e.showMove,width:"700px"},on:{"update:visible":function(t){e.showMove=t}}},[a("el-form",{ref:"searchForm2",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm,"label-width":"120px"},on:{submit:e.search,reset:e.reset,"update:model":function(t){e.searchForm=t}}},[a("el-form-item",{attrs:{label:"课程组编号/名称",prop:"search"}},[a("el-input",{staticStyle:{width:"180px !important"},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",{attrs:{label:"教学点",prop:"schoolId"}},[a("el-select",{staticStyle:{width:"180px !important"},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",{attrs:{label:"分部",prop:"organIdList"}},[a("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},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",{attrs:{label:"课程组类型",prop:"groupType"}},[a("el-select",{staticStyle:{width:"180px !important"},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",{attrs:{label:"教学模式",prop:"teachMode"}},[a("el-select",{staticStyle:{width:"180px !important"},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",{attrs:{label:"合并课类型",prop:"mergeCourseType"}},[a("el-select",{staticStyle:{width:"180px !important"},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",{attrs:{label:"老师类型",prop:"teachType"}},[a("el-select",{staticStyle:{width:"180px !important"},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",{attrs:{label:"是否点名",prop:"isCallNames"}},[a("el-select",{staticStyle:{width:"180px !important"},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",{attrs:{label:"云教练课程",prop:"memberFlag"}},[a("el-select",{staticStyle:{width:"180px !important"},attrs:{clearable:"",filterable:"",placeholder:"云教练课程"},model:{value:e.searchForm.memberFlag,callback:function(t){e.$set(e.searchForm,"memberFlag","string"===typeof t?t.trim():t)},expression:"searchForm.memberFlag"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"是否有助教",prop:"hasTeaching"}},[a("el-select",{staticStyle:{width:"180px !important"},attrs:{clearable:"",filterable:"",placeholder:"是否有助教"},model:{value:e.searchForm.hasTeaching,callback:function(t){e.$set(e.searchForm,"hasTeaching","string"===typeof t?t.trim():t)},expression:"searchForm.hasTeaching"}},[a("el-option",{attrs:{label:"有助教",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"无助教",value:"0"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"创建日期",prop:"creatTimer"}},[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-form-item",{attrs:{label:"课程时间",prop:"courseTime"}},[a("el-time-picker",{staticStyle:{width:"350px !important"},attrs:{"is-range":"","picker-options":{selectableRange:"06:00:00 - 23:59:59"},"range-separator":"-","start-placeholder":"上课开始时间","end-placeholder":"上课结束时间",placeholder:"选择时间范围","value-format":"HH:mm:ss",format:"HH:mm"},on:{change:e.changeCourseTime},model:{value:e.searchForm.courseTime,callback:function(t){e.$set(e.searchForm,"courseTime",t)},expression:"searchForm.courseTime"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancleMore}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.okMore}},[e._v("确 定")])],1)],1):e._e(),e._v(" "),e.permission("courseSchedule/courseMerge")?a("addCompound",{directives:[{name:"show",rawName:"v-show",value:e.deleteList.length>0,expression:"deleteList.length > 0"}],ref:"addCompound",attrs:{compoundList:e.deleteList},on:{clearCom:e.clearCom,getList:e.getList,removeCourse:e.removeCourse,cancleCompound:e.cancleCompound}}):e._e()],1)},r=[],i=(a("ac6a"),a("a8db")),o=a("c80c"),n=(a("96cf"),a("3b8d")),l=(a("c5f6"),a("7618")),c=(a("386d"),a("db72")),u=a("333d"),d=a("1cc7"),m=a("7e78"),p=a("267e"),h=a("ed08"),f=a("8018"),v=a("99b4"),b=a("92e3"),_=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",[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",{class:"NORMAL"==t.row.status?"green":"red"},[e._v("\n "+e._s(e._f("studentRecord")(t.row.status))+"\n ")]):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(" "),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("joinCourseType")(t.row.joinCourseType)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"ctrls",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[!t.row.visitFlag&&e.permission("visit/add?page=teamCourseList")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addVisit(t.row)}}},[e._v("新增回访")]):e._e(),e._v(" "),t.row.visitFlag&&e.permission("visit/queryPage?page=teamCourseList")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookVisit(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},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:"760px",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=[],y=a("ec8a"),k=a("4edf"),w={props:["courseScheduleId","isMainGo"],components:{pagination:u["a"],visit:k["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:y["a"],init:function(){this.getList()},addVisit:function(e){this.visitVisible=!0,this.detail=e},lookVisit:function(e){console.log({search:e.id,tabrouter:"2"}),this.$router.push({path:"/studentManager/returnVisitList",query:{search:e.id,tabrouter:"2"}})},getList:function(){var e=this;Object(d["N"])({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(d["Oc"])({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=w,S=(a("2f80"),a("2877")),F=Object(S["a"])(T,_,g,!1,null,"2f7feb1e",null),L=F.exports,C=a("9be9"),x=a("22bb"),O=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)])},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(d["Gb"])({courseId:this.courseScheduleId}).then((function(t){200==t.code&&(e.tableList=t.data.courseScheduleComplaints)}))}}},j=$,M=Object(S["a"])(j,O,I,!1,null,"6e814c6e",null),N=M.exports,E=a("bc3a"),D=a.n(E),R=a("5f87"),V=a("3908"),A=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)},H=[],q=(a("28a5"),a("8f9b")),Y=a.n(q),G=new Y.a.AMapManager;Y.a.initAMapApiLoader({key:"ac943ac1522de0d63eb8a99b71fe2601",plugin:["Autocomplete","PlaceSearch","Scale","OverView","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"});var P={props:["longitudeLatitude","address"],data:function(){return console.log(this.address),{amapManager:G,center:(this.longitudeLatitude||"").split(",")}}},W=P,B=Object(S["a"])(W,A,H,!1,null,null,null),U=B.exports,z=a("02ce"),K=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)+"-"+e._s(e._f("workType")(t.row.teacherRole)))]),a("br"),e._v(" "),a("span",[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:"teacherPhone",label:"签到签退",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return"NOT_START"!=e.courseStatus?[a("div",[e._v("\n "+e._s(e._f("dayjsFormatMinute")(t.row.signInTime))+"\n ("),a("span",{class:1==t.row.signInStatus?"green":"red"},[e._v(e._s(e._f("attendanceType")(t.row.signInStatus)))]),e._v(") -\n "+e._s(e._f("dayjsFormatMinute")(t.row.signOutTime))+"\n ("),a("span",{class:1==t.row.signOutStatus?"green":"red"},[e._v(e._s(e._f("attendanceOutType")(t.row.signOutStatus)))]),e._v(")\n ")])]:void 0}}],null,!0)}),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",[a("p",[a("span",{class:e.complaintscolor(t.row.teacherAttendance.complaintsStatus)},[e._v("\n "+e._s(e._f("complaintsStatusEnum")(t.row.teacherAttendance.complaintsStatus))+"\n ")])]),e._v(" "),a("p",[e._v("\n "+e._s(t.row.teacherAttendance&&t.row.teacherAttendance.complaintsTime)+"\n ")])])]}}])}),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:"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",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.split(",")[0],previewSrcList:t.row.teacherAttendance.signOutAttachments.split(",")}}):e._e()]}}])}),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("auth",{attrs:{auths:"teacherAttendance/updateTeacherAttendance/3485"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.mackAttendance(t.row)}}},[e._v("补考勤")])],1):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(" "),t.row.settlementTime?e._e():a("auth",{attrs:{auths:"courseSchedule/queryTeacherSalary"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.setCourseInfo(t.row)}}},[e._v("课酬调剂")])],1),e._v(" "),"NOT_START"!=e.courseStatus?a("auth",{attrs:{auths:"teacherAttendance/update?page=teamCourseList"}},[1==t.row.signInStatus&&1==t.row.signOutStatus||"NOT_START"==e.courseStatus?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.hand(t.row)}}},[e._v("处理意见")])],1):e._e(),e._v(" "),"NOT_START"!=e.courseStatus?a("auth",{attrs:{auths:"teacherAttendance/repealComplaints/4300"}},["FULL_TIME"!=t.row.jobNature&&2==t.row.teacherAttendance.complaintsStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.unappeal(t.row)}}},[e._v("撤销申诉")]):e._e()],1):e._e(),e._v(" "),"NOT_START"!=e.courseStatus?a("auth",{attrs:{auths:"teacherAttendance/addComplaints/4299"}},["FULL_TIME"==t.row.jobNature||null!=t.row.teacherAttendance.complaintsStatus&&3!=t.row.teacherAttendance.complaintsStatus?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.appeal(t.row)}}},[e._v("考勤申诉")])],1):e._e()],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,inline:!0,rules:e.teacherRules},nativeOn:{submit:function(e){e.preventDefault()}}},[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:"expectSalary"}},[a("span",[e._v(e._s(e._f("moneyFormat")(e.activeTeacher&&e.activeTeacher.subsidy)))])]),e._v(" "),a("el-form-item",{attrs:{label:"总课酬",prop:"expectSalary"}},[a("span",[e._v(e._s(e._f("moneyFormat")((e.activeTeacher&&e.activeTeacher.expectSalary)+(e.activeTeacher&&e.activeTeacher.subsidy))))])]),e._v(" "),a("br"),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("br"),e._v(" "),a("el-form-item",{attrs:{label:"课程补贴",prop:"subsidy"}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"180px"},attrs:{controls:!1,min:e.activeTeacher&&e.activeTeacher.expectSalary?0-e.activeTeacher.expectSalary:0},model:{value:e.teacherMask.subsidy,callback:function(t){e.$set(e.teacherMask,"subsidy",e._n(t))},expression:"teacherMask.subsidy"}})],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),e._v(" "),a("el-dialog",{attrs:{title:"申诉",width:"400px",visible:e.appealVisible,"append-to-body":""},on:{"update:visible":function(t){e.appealVisible=t}}},[e.appealVisible&&e.detail?a("appeal",{attrs:{detail:e.detail},on:{close:function(t){e.appealVisible=!1},submited:e.getList}}):e._e()],1)],1)},Z=[],J=a("2d63"),Q=a("bd86"),X=a("447e"),ee=a("d7a3"),te=a("6ecc"),ae={components:{gpsLoction:C["a"],hand:te["a"],appeal:X["a"]},props:["courseScheduleId","teachMode","courseStatus"],data:function(){var e,t;return{appealVisible:!1,tableList:[],gpsVisible:!1,activeRow:null,activeTeacherList:[],dialogTableVisible:!1,innerVisible:!1,activeTeacher:null,handVisible:null,detail:null,teacherMask:(e={subsidy:""},Object(Q["a"])(e,"subsidy",""),Object(Q["a"])(e,"radio","one"),e),teacherRules:(t={subsidy:[{required:!0,message:"请输入课程补贴",trigger:"blur"}]},Object(Q["a"])(t,"subsidy",[{required:!0,message:"请输入课时补贴",trigger:"blur"}]),Object(Q["a"])(t,"radio",[{required:!0,message:"请选择调整范围",trigger:"blur"}]),t)}},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.detail=e,this.handVisible=!0},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(d["ad"])(a).then((function(e){200==e.code?(t.$message.success("补卡成功"),t.getList(),t.$emit("syncTeacherAttend")):t.$message.error(e.msg)}))})).catch((function(){}))},setCourseInfo:function(e){var t=this;Object(d["Qb"])({courseScheduleId:this.courseScheduleId}).then((function(a){if(200==a.code){t.innerVisible=!0;var s,r=Object(J["a"])(a.data);try{for(r.s();!(s=r.n()).done;){var i=s.value;if(e.teacherId==i.teacherId){t.activeTeacher=i,t.teacherMask.subsidy=i.subsidy;break}}}catch(o){r.e(o)}finally{r.f()}}}))},resetTeacher:function(e){this.innerVisible=!0,this.activeTeacher=e},complaintscolor:function(e){return 0==e||2==e?"red":1==e?"green":""},resetSalary:function(){var e=this;this.$refs["teacherMask"].validate((function(t){t?Object(f["B"])({courseScheduleId:e.courseScheduleId,subsidy:e.teacherMask.subsidy,teacherId:e.activeTeacher.teacherId,scope:e.teacherMask.radio}).then((function(t){var a;200==t.code&&(e.$message.success("修改成功"),e.teacherMask=(a={subsidy:""},Object(Q["a"])(a,"subsidy",""),Object(Q["a"])(a,"radio","one"),a),e.innerVisible=!1)})):e.$message.error("请填写必要参数")}))},appeal:function(e){var t;this.appealVisible=!0,this.detail=e,this.detail.courseScheduleId=null===(t=e.teacherAttendance)||void 0===t?void 0:t.courseScheduleId},unappeal:function(){var e=Object(n["a"])(Object(o["a"])().mark((function e(t){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认撤销申诉?","提示",{type:"warning"});case 3:return e.next=5,Object(ee["b"])({courseScheduleId:t.teacherAttendance.courseScheduleId,userId:t.teacherId});case 5:this.$message.success("撤销成功"),this.getList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}()}},se=ae,re=(a("a2ee"),Object(S["a"])(se,K,Z,!1,null,"47f1388e",null)),ie=re.exports,oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"fixedBox",on:{click:function(t){e.isLook=!0}}},[a("el-card",[a("div",{staticClass:"boxWrap"},[a("p",[e._v("\n 待处理课程列表"),a("span",{staticStyle:{color:"red"}},[e._v("\n "+e._s(e.compoundList.length)+"\n ")])]),e._v(" "),a("el-popover",{attrs:{placement:"top",trigger:"manual"},model:{value:e.isLook,callback:function(t){e.isLook=t},expression:"isLook"}},[a("div",[a("p",{staticClass:"title"},[e._v("\n 待处理课程列表"),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-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(t){return[a("div",[e._v(e._s(t.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(e._s(t.row.teacherName)+"("+e._s(t.row.actualTeacherId)+")")])]}}])}),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",width:"100px",label:"是否结算"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.isSettlement?"是":"否")+"\n ")])]}}])}),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),e._v(" "),a("div",{staticClass:"addBtnList"},[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/batchDelete?page=teamCourseList",expression:"'courseSchedule/batchDelete?page=teamCourseList'"}],attrs:{disabled:!e.dataList.length>0,type:"primary"},on:{click:e.removeCourse}},[e._v("批量删除")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/batchCourseAdjust",expression:"'courseSchedule/batchCourseAdjust'"}],attrs:{type:"primary"},on:{click:e.resetClass}},[e._v("课程调整")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/courseMerge",expression:"'courseSchedule/courseMerge'"}],attrs:{type:"primary"},on:{click:e.submitClass}},[e._v("课程合并")])],1),e._v(" "),a("i",{staticClass:"el-icon-copy-document",attrs:{slot:"reference"},slot:"reference"})],1)],1)]),e._v(" "),e.show?a("el-dialog",{attrs:{visible:e.show,title:"临时合课信息","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("compoundClass",{attrs:{isDisabled:!0,idList:e.idList,dataList:e.dataList},on:{closeReset:e.closeReset,cancaleMerge:e.cancaleMerge,getList:e.getList}})],1):e._e(),e._v(" "),e.resetCourseVisible?a("el-dialog",{attrs:{visible:e.resetCourseVisible,title:"课程调整","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.resetCourseVisible=t},closeReset:e.closeReset}},[a("resetCourse",{attrs:{idList:e.idList,dataList:e.dataList},on:{getList:e.getList,cancaleMerge:e.cancaleMerge,closeReset:e.closeReset}})],1):e._e()],1)},ne=[],le=(a("5df3"),a("4f7f"),a("75fc")),ce=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:"id"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:"",filterable:""},on:{change:e.changeId},model:{value:e.maskForm.id,callback:function(t){e.$set(e.maskForm,"id","string"===typeof t?t.trim():t)},expression:"maskForm.id"}},e._l(e.dataList,(function(t,s){return a("el-option",{key:s,attrs:{value:t.id,label:t.name}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"课程名称",prop:"name"}},[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("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)],1),e._v(" "),e.$helpers.permission("is/teacher/findTeachers")?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("remote-search",{attrs:{commit:"setTeachers",multiple:!0,width:220},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant",t)},expression:"maskForm.assistant"}})],1)],1):e._e()],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:"06:00: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.cancaleMerge}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1),e._v(" "),e.studentListModalVisible?a("el-dialog",{attrs:{title:"学员列表",width:"650px","append-to-body":"",visible:e.studentListModalVisible},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[a("viewStudentList",{attrs:{list:e.studentListModal,showOk:!0},on:{close:function(t){e.studentListModalVisible=!1}}})],1):e._e()],1)},ue=[],de=(a("7f7f"),a("c466")),me=a("a792"),pe=a("e3eb"),he=a.n(pe),fe=a("5a0c"),ve=a.n(fe),be={props:["show","dataList","isDisabled","idList"],components:{viewStudentList:me["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"}],id:[{required:!0,message:"请选择一节主课",trigger:"blur"}]},teacherList:[],schoolList:[],studentListModal:[]}},mounted:function(){var e=this;Object(d["Pb"])().then((function(t){200==t.code&&(e.teacherList=t.data)}))},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 s=e.idList.split(",");for(var r in s)s[r]==e.id&&s.splice(r,1);var i=s.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:i};Object(d["x"])(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(d["x"])(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(de["d"])(t.maskForm.date,e,t.maskForm.timer)),e?t.$set(t.maskForm,"endTime",Object(de["d"])(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="")},changeId:function(e){e?this.getDetail(e):this.$refs.maskForm.resetFields()},getDetail:function(e){var t=this;Object(d["cb"])({courseScheduleId:e}).then((function(e){if(200==e.code){for(var a in t.maskForm={id:e.data.id,teacher:e.data.actualTeacherId,assistant:[],date:ve()(e.data.classDate).format("YYYY-MM-DD"),startTime:ve()(e.data.startClassTime).format("HH:mm"),endTime:ve()(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 s=Object(de["e"])(ve()(e.data.classDate).format("YYYY-MM-DD"),ve()(e.data.startClassTime).format("HH:mm"),ve()(e.data.endClassTime).format("HH:mm"));console.log(ve()(e.data.startClassTime).format("HH:mm")),t.maskForm.timer=s,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(d["eb"])({courseIds:this.idList}).then((function(t){200==t.code&&(e.studentListModal=t.data,e.studentListModalVisible=!0)}))},cancaleMerge:function(){this.$emit("cancaleMerge")}},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(de["d"])(t.maskForm.date,t.maskForm.startTime,e)):t.$set(t.maskForm,"endTime","")}))}}},_e=be,ge=(a("10c8"),Object(S["a"])(_e,ce,ue,!1,null,"363a6168",null)),ye=ge.exports,ke=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"老师调整",name:"first"}},["first"==e.activeName?a("resetTeacher",{attrs:{idList:e.idList,dataList:e.dataList},on:{cancaleMerge:e.cancaleMerge,submit:e.submit}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"课程顺延",name:"second"}},["second"==e.activeName?a("couresPostpone",{attrs:{idList:e.idList,dataList:e.dataList},on:{cancaleMerge:e.cancaleMerge,submit:e.submit}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"课程调整",name:"third"}},["third"==e.activeName?a("courseResets",{attrs:{idList:e.idList,dataList:e.dataList},on:{cancaleMerge:e.cancaleMerge,submit:e.submit}}):e._e()],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"班级预览",visible:e.previewVisible,"append-to-body":"",width:"900px"},on:{"update:visible":function(t){e.previewVisible=t}}},[a("preview",{attrs:{details:e.previewList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.previewVisible=!1}}},[e._v("上一步")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.resetsubmit}},[e._v("确认调整")])],1)],1)],1)},we=[],Te=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",inline:!0}},[a("el-row",[a("el-col",{attrs:{span:12}},[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)],1),e._v(" "),e.$helpers.permission("is/teacher/findTeachers")?a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("remote-search",{attrs:{commit:"setTeachers",multiple:!0,width:220},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant",t)},expression:"maskForm.assistant"}})],1)],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"buttonWrap"},[a("el-button",{attrs:{type:"primary"},on:{click:e.gotoNext}},[e._v("下一步")]),e._v(" "),a("el-button",{on:{click:function(){e.$emit("cancaleMerge")}}},[e._v("取 消")])],1)],1)},Se=[],Fe={props:["idList","dataList"],data:function(){return{maskForm:{teacher:"",assistant:[]},maskRules:{teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}]}}},methods:{cancaleMerge:function(){this.$emit("cancaleMerge")},gotoNext:function(){var e=this;this.$refs.maskForm.validate((function(t){if(t){var a=[{userId:e.maskForm.teacher,teacherRole:"BISHOP"}];for(var s in e.maskForm.assistant)a.push({userId:e.maskForm.assistant[s],teacherRole:"TEACHING"});var r={courseScheduleIds:e.idList,changeMainTeacher:!0,changeTeachingTeacher:!0,startDate:null,startTime:"",pauseDate:"",recoveryDate:"",classGroupTeacherMapperList:a,teachMode:null,allowZeroSalary:!1,schoolId:null,confirmGenerate:!1,holiday:!1};e.$emit("submit",r)}}))}}},Le=Fe,Ce=(a("92e33"),Object(S["a"])(Le,Te,Se,!1,null,"74a6604e",null)),xe=Ce.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"postponeForm",attrs:{model:e.postponeForm,rules:e.postponeRules}},[a("el-form-item",{attrs:{label:"开始日期",prop:"pauseDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:!0,"picker-options":{firstDayOfWeek:1},"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.pauseDate,callback:function(t){e.$set(e.postponeForm,"pauseDate","string"===typeof t?t.trim():t)},expression:"postponeForm.pauseDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺延日期",prop:"recoveryDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.processDate(),"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.recoveryDate,callback:function(t){e.$set(e.postponeForm,"recoveryDate","string"===typeof t?t.trim():t)},expression:"postponeForm.recoveryDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"跳过节假日"}},[a("el-checkbox",{model:{value:e.postponeForm.holiday,callback:function(t){e.$set(e.postponeForm,"holiday","string"===typeof t?t.trim():t)},expression:"postponeForm.holiday"}})],1),e._v(" "),a("span",{staticStyle:{color:"#f56c6c"}},[e._v("注意:课程顺延会将「开始日期」之后的全部未开始课程;"),a("br"),e._v("\n 调整到「顺延日期」之后重新排课 支持将课程批量提前;")])],1),e._v(" "),a("div",{staticClass:"buttonWrap"},[a("el-button",{attrs:{type:"primary"},on:{click:e.gotoNext}},[e._v("下一步")]),e._v(" "),a("el-button",{on:{click:function(){e.$emit("cancaleMerge")}}},[e._v("取 消")])],1)],1)},Ie=[],$e={props:["idList","dataList"],data:function(){return{postponeForm:{pauseDate:"",recoveryDate:"",holiday:""},postponeRules:{pauseDate:[{required:!0,message:"请选择开始日期",trigger:"blur"}],recoveryDate:[{required:!0,message:"请选择顺延日期",trigger:"blur"}]}}},mounted:function(){this.getFirstDate()},methods:{processDate:function(){var e=this,t=this.$helpers.dayjs;return{firstDayOfWeek:1,disabledDate:function(a){var s=t(e.postponeForm.pauseDate).format("YYYY-MM-DD")==t(a).format("YYYY-MM-DD");return a.getTime()+864e5<=Date.now()||s}}},gotoNext:function(){var e=this;this.$refs.postponeForm.validate((function(t){if(t){var a={courseScheduleIds:e.idList,changeMainTeacher:!1,changeTeachingTeacher:!1,startDate:null,startTime:"",pauseDate:e.$helpers.dayjs(e.postponeForm.pauseDate).format("YYYY-MM-DD"),recoveryDate:e.postponeForm.recoveryDate,classGroupTeacherMapperList:null,teachMode:null,allowZeroSalary:!1,schoolId:null,confirmGenerate:!1,holiday:e.postponeForm.holiday};e.$emit("submit",a)}}))},getFirstDate:function(){var e=this;this.dataList.forEach((function(t,a){if(0==a)e.postponeForm.pauseDate=t.classDate;else{var s=e.$helpers.dayjs;s(t.classDate).valueOf()-s(e.postponeForm.pauseDate).valueOf()>0?e.postponeForm.pauseDate:e.postponeForm.pauseDate=t.classDate}}))}}},je=$e,Me=(a("2253"),Object(S["a"])(je,Oe,Ie,!1,null,"47341f2b",null)),Ne=Me.exports,Ee=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"timeForm",attrs:{inline:!0},model:{value:e.timeForm,callback:function(t){e.timeForm=t},expression:"timeForm"}},[a("el-form-item",{attrs:{label:"开始时间",prop:"starttime"}},[a("el-time-picker",{attrs:{format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"06:00:00 - 23:59:00"},placeholder:"选择时间"},on:{change:e.changeStartTime},model:{value:e.timeForm.starttime,callback:function(t){e.$set(e.timeForm,"starttime",t)},expression:"timeForm.starttime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("el-time-picker",{attrs:{format:"HH:mm","value-format":"HH:mm",disabled:!0,placeholder:"选择时间"},model:{value:e.timeForm.endTime,callback:function(t){e.$set(e.timeForm,"endTime",t)},expression:"timeForm.endTime"}})],1),e._v(" "),"VIP"==e.groupType?a("el-form-item",{attrs:{label:" 上课模式",prop:"teachMode"}},[a("el-select",{staticStyle:{width:"220px !important"},on:{change:function(){e.timeForm.address=""}},model:{value:e.timeForm.teachMode,callback:function(t){e.$set(e.timeForm,"teachMode","string"===typeof t?t.trim():t)},expression:"timeForm.teachMode"}},[a("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下课",value:"OFFLINE"}}),e._v(" "),a("el-option",{attrs:{label:"不修改",value:""}})],1)],1):e._e(),e._v(" "),"OFFLINE"==e.timeForm.teachMode&&"VIP"==e.groupType?a("el-form-item",{attrs:{label:" 教学地点",prop:"address"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{filterable:"",clearable:""},model:{value:e.timeForm.address,callback:function(t){e.$set(e.timeForm,"address","string"===typeof t?t.trim():t)},expression:"timeForm.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(),e._v(" "),"MUSIC"==e.groupType?a("el-form-item",{attrs:{label:" 教学地点",prop:"address"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{filterable:"",clearable:""},model:{value:e.timeForm.address,callback:function(t){e.$set(e.timeForm,"address","string"===typeof t?t.trim():t)},expression:"timeForm.address"}},[a("el-option",{attrs:{label:"不修改",value:""}}),e._v(" "),e._l(e.schoolList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})}))],2)],1):e._e()],1),e._v(" "),a("div",{staticClass:"buttonWrap"},[a("el-button",{attrs:{type:"primary"},on:{click:e.gotoNext}},[e._v("下一步")]),e._v(" "),a("el-button",{on:{click:function(){e.$emit("cancaleMerge")}}},[e._v("取 消")])],1)],1)},De=[],Re={props:["idList","dataList"],data:function(){return{timeForm:{starttime:null,endTime:"",teachMode:"",address:""},timeRules:{endTime:[{required:!0,message:"请选择结束时间",trigger:"blur"}],address:[{required:!0,message:"请选教学地点",trigger:"blur"}]},schoolList:[],groupType:""}},mounted:function(){var e=this;this.groupType=this.dataList[0].groupType,Object(v["t"])().then((function(t){200==t.code&&(e.schoolList=t.data)}))},methods:{changeStartTime:function(e){var t,a,s,r,i=this,o=this.$helpers.dayjs,n=Object(de["e"])(o(null===(t=this.dataList[0])||void 0===t?void 0:t.classDate).format("YYYY-MM-DD"),o(null===(a=this.dataList[0])||void 0===a?void 0:a.startClassTime).format("HH:mm"),o(null===(s=this.dataList[0])||void 0===s?void 0:s.endClassTime).format("HH:mm"));e?(this.$nextTick((function(t){i.$set(i.timeForm,"starttime",e)})),this.$set(this.timeForm,"endTime",Object(de["d"])(o(null===(r=this.dataList[0])||void 0===r?void 0:r.classDate).format("YYYY-MM-DD"),this.timeForm.starttime,n))):this.$set(this.timeForm,"endTime","")},gotoNext:function(){if(this.timeForm.starttime)if("OFFLINE"!=this.timeForm.teachMode||"VIP"!=this.groupType||this.timeForm.address){var e={courseScheduleIds:this.idList,changeMainTeacher:!1,changeTeachingTeacher:!1,startDate:null,startTime:this.timeForm.starttime+":00",pauseDate:null,recoveryDate:null,classGroupTeacherMapperList:null,teachMode:this.timeForm.teachMode,allowZeroSalary:!1,schoolId:this.timeForm.address,confirmGenerate:!1,holiday:null};this.$emit("submit",e)}else this.$message.error("请选择教学点");else this.$message.error("请选择开始时间")}}},Ve=Re,Ae=(a("4e0f"),Object(S["a"])(Ve,Ee,De,!1,null,"239f2557",null)),He=Ae.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.details}},[a("el-table-column",{attrs:{label:"乐团/课程组编号",width:"130px",prop:"musicGroupId"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100px",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)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",label:"声部"}}),e._v(" "),a("el-table-column",{attrs:{label:"课程名称",prop:"name",width:"150px"}}),e._v(" "),a("el-table-column",{key:"time",attrs:{label:"课程时长(分钟)"},scopedSlots:e._u([{key:"default",fn:function(t){return a("span",{},[e._v(e._s(e.getTimers(t.row)))])}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",width:"110",label:"主教老师"}}),e._v(" "),a("el-table-column",{attrs:{label:"助教老师",prop:"teachingTeacherNames"}}),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:{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:{label:"上课模式",prop:"teachMode"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("paymentType")(t.row.teachMode))+"课\n ")])]}}])})],1)],1)},Ye=[],Ge={props:["details"],data:function(){return{}},methods:{getTimers:function(e){var t=Object(de["e"])(ve()(e.classDate).format("YYYY-MM-DD"),ve()(e.startClassTime).format("HH:mm"),ve()(e.endClassTime).format("HH:mm"));return t}}},Pe=Ge,We=Object(S["a"])(Pe,qe,Ye,!1,null,null,null),Be=We.exports,Ue={components:{resetTeacher:xe,preview:Be,couresPostpone:Ne,courseResets:He},props:["dataList","idList"],data:function(){return{activeName:"first",previewVisible:!1,previewList:[],obj:{}}},methods:{handleClick:function(e){},cancaleMerge:function(){this.$emit("cancaleMerge")},submit:function(){var e=Object(n["a"])(Object(o["a"])().mark((function e(t){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["j"])(t);case 3:a=e.sent,206==a.code&&(this.previewList=a.data,this.previewVisible=!0,this.obj=t),200==a.code&&(this.$message.success("调整成功"),this.$emit("closeReset")),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(t){return e.apply(this,arguments)}return t}(),resetsubmit:function(){var e=Object(n["a"])(Object(o["a"])().mark((function e(){var t;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.obj.confirmGenerate=!0,e.next=4,Object(d["j"])(this.obj);case 4:if(t=e.sent,200==t.code&&(this.$message.success("调整成功"),this.$emit("closeReset")),207!=t.code){e.next=14;break}return e.next=9,this.$confirm(t.msg||"当前课程课酬预计为0,是否继续","提示",{type:"warning"});case 9:return this.obj.allowZeroSalary=!0,e.next=12,Object(d["j"])(this.obj);case 12:this.$message.success("调整成功"),this.$emit("closeReset");case 14:e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](0),console.log(e.t0);case 19:case"end":return e.stop()}}),e,this,[[0,16]])})));function t(){return e.apply(this,arguments)}return t}()}},ze=Ue,Ke=Object(S["a"])(ze,ke,we,!1,null,"f00b995c",null),Ze=Ke.exports,Je={props:["compoundList"],components:{compoundClass:ye,resetCourse:Ze},data:function(){return{radio:"",dataList:this.compoundList,isLook:!1,show:!1,idList:"",courseTime:0,resetCourseVisible:!1}},methods:{cancleCom:function(e){this.$emit("cancleCompound",e)},clearCom:function(){this.$emit("clearCom")},submitClass:function(){var e=this,t=[],a=[],s=!1;this.dataList.forEach((function(r){return t.push(r.type),a.push(r.id),"MUSIC"!=r.groupType||"MUSIC_NETWORK"==r.type?(e.$message.error("只有乐团的线下课可以合并"),void(s=!0)):"NOT_START"!=r.status?(e.$message.error("只有未开始的课可以合并"),void(s=!0)):r.newCourseId>0||r.beMerged?(e.$message.error("已经合并课程不可再次合并"),void(s=!0)):r.isLock?(e.$message.error("已锁定的课程不能合并"),void(s=!0)):void 0})),s||(-1==t.indexOf("HIGH")||(t=Object(le["a"])(new Set(t)),1==t.length)?-1==t.indexOf("HIGH_ONLINE")||(t=Object(le["a"])(new Set(t)),1==t.length)?this.dataList.length<=1?this.$message.error("请至少选择2节课程"):(this.idList=a.join(","),this.show=!0):this.$message.error("线上基础技能课只能和线上基础技能课合并"):this.$message.error("基础技能课只能和基础技能课合并"))},getList:function(){},closeReset:function(){this.clearCom(),this.show=!1,this.isLook=!1,this.resetCourseVisible=!1,this.$emit("getList")},cancaleMerge:function(){this.show=!1,this.resetCourseVisible=!1,this.isLook=!0},removeCourse:function(){this.$emit("removeCourse")},resetClass:function(){var e=this;if(this.checkCourseTimer()){var t=!1,a=[];if(this.dataList.forEach((function(s){return a.push(s.id),"NOT_START"!=s.status&&(e.$message.error("请选择未开始的课程"),t=!0),s.newCourseId>0||s.beMerged?(e.$message.error("已经合并课程不能调整"),void(t=!0)):s.isLock?(e.$message.error("已锁定的课程不能调整"),void(t=!0)):void 0})),!t){var s=this.dataList.every((function(t){return t.musicGroupId==e.dataList[0].musicGroupId&&t.groupType==e.dataList[0].groupType}));s?(this.idList=a,this.resetCourseVisible=!0):this.$message.error("请选择相同的课程组")}}else this.$message.error("请选择相同的课程时长")},checkCourseTimer:function(){var e=this,t=[];return this.dataList.forEach((function(a){var s=e.$helpers.dayjs;t.push(Math.abs(s(a.startClassTime).diff(a.endClassTime,"Minute")))})),!(t=1!=Object(le["a"])(new Set(t)).length)&&(this.courseTime=t[0],!0)}},watch:{compoundList:function(e){this.dataList=e}}},Qe=Je,Xe=(a("8a42"),Object(S["a"])(Qe,oe,ne,!1,null,"e203dbc8",null)),et=Xe.exports,tt=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,s){return a("el-collapse-item",{key:s,attrs:{title:e.getTitle(t),name:s}},[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)},at=[],st=(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)}),rt=[],it=(a("456d"),a("5a6c")),ot=a.n(it),nt={name:"课程名称",actualTeacherName:"主教老师",teachingTeacherNames:"助教老师",startClassTime:"上课时间",teachMode:"课程类型",schoolName:"教学地点",timers:"课程时长"},lt={props:["before","after"],computed:{diff:function(){return ot()(this.before,this.after)},list:function(){for(var e=Object.keys(this.before),t=[],a=0;a-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(de["e"])(ve()(e.classDate).format("YYYY-MM-DD"),ve()(this.getRealTime(e.startClassTime)).format("HH:mm"),ve()(this.getRealTime(e.endClassTime)).format("HH:mm"))}},computed:{}},pt=mt,ht=(a("7774"),Object(S["a"])(pt,tt,at,!1,null,"3a2339c3",null)),ft=ht.exports,vt=a("da46"),bt=["creatTimer","timer","courseTime"],_t=new Date;_t=_t.getFullYear()+"-"+(_t.getMonth()+1)+"-"+_t.getDate();var gt={teachMode:null,organIdList:null,courseStatus:null,courseType:null,timer:[],class:null,teachType:null,mergeCourseType:null,isCallNames:null,search:null,teacherIdList:null,schoolId:null,creatTimer:[],courseIdSearch:null,memberFlag:null,hasTeaching:null,courseTime:["",""]},yt={name:"teamCourseList",data:function(){return{classVisible:!1,timerVisible:!1,courseVisible:!1,locationVisible:!1,courseType:b["u"],mergeCourseType:p["mergeCourseType"],courseListType:b["s"],searchForm:Object(c["a"])({},gt),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,isDetele:!1,showMove:!1}},components:{pagination:u["a"],studentRollCall:L,gpsLoction:C["a"],studentWork:x["a"],courseEvaluate:N,resetClass:z["a"],teacherList:ie,addCompound:et,infoMsg:ft,SchoolLocation:U,studentWorks:vt["a"]},created:function(){},computed:{workTypeOptions:function(){return Object(h["c"])(p["workType"])},mergeCourseTypeOptions:function(){return Object(h["c"])(p["mergeCourseType"])},isSearch:function(){var e,t;return this.searchForm.search||this.searchForm.schoolId||this.searchForm.organIdList||this.searchForm.groupType||this.searchForm.teachMode||this.searchForm.mergeCourseType||this.searchForm.teachType||this.searchForm.isCallNames||this.searchForm.memberFlag||this.searchForm.hasTeaching||(null===(e=this.searchForm.creatTimer)||void 0===e?void 0:e.length)>0||(null===(t=this.searchForm.courseTime)||void 0===t?void 0:t.length)>0&&this.searchForm.courseTime[0]}},mounted:function(){var e=this.$route,t=e.query,a=e.params;if(a.courseIdSearch&&(this.searchForm.courseIdSearch=a.courseIdSearch),t.start||t.end)this.searchForm.timer=[t.start,t.end];else{var s=!1;for(var r in this.searchForm){var i;if("object"==Object(l["a"])(this.searchForm[r]))(null===(i=this.searchForm[r])||void 0===i?void 0:i.length)>0&&this.searchForm[r][0]&&(s=!0);else this.searchForm[r]&&(s=!0)}s||(this.searchForm.timer=[_t,_t])}"COURSE_TIME_ERROR"==t.searchType&&(this.searchForm.timer=[]),t.organId&&(this.searchForm.organIdList=Number(t.organId)),this.$store.dispatch("setBranchs"),this.$store.dispatch("setTeachers"),this.$store.dispatch("setSchools"),this.init()},methods:{changeCourseTime:function(e){console.log(e)},init:function(){this.getList()},setTimeForSearch:function(){var e=this.$route.query;e.start||e.end?this.searchForm.timer=[e.start,e.end]:(this.searchForm.timer=[],this.searchForm=Object(c["a"])({},gt))},permission:function(e,t){return Object(y["a"])(e,t)},reloadSearch:function(e){e||(this.searchForm.timer=[_t,_t]),this.rules.page=1,this.getList()},removeCourse:function(){var e=Object(n["a"])(Object(o["a"])().mark((function e(t){var a,s,r,i=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.deleteList.length<1)||t){e.next=3;break}return this.$message.error("请自少选择一节课"),e.abrupt("return");case 3:if(a=!1,s=this.deleteList.map((function(e){return(e.isSettlement||"UNDERWAY"==e.status)&&(a=!0),e.id})),!a){e.next=8;break}return this.$message.error("已结算或进行中的课程无法删除"),e.abrupt("return");case 8:r=s.join(",")||t.id,this.$confirm("是否确认删除此数据?","提示",{type:"warning"}).then((function(){Object(m["i"])({courseScheduleIds:r}).then((function(e){200==e.code&&(i.$message.success("删除成功"),i.getList(),i.clearCom())})).catch((function(e){i.$refs.addCompound.isLook=!0}))})).catch((function(e){i.$refs.addCompound.isLook=!0}));case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),reset:function(){this.searchForm=Object(c["a"])({},gt),this.search()},search:function(){this.rules.page=1,this.getList()},common:function(e){this.searchForm=Object(c["a"])(Object(c["a"])({},gt),{},{timer:[],courseIdSearch:e.newCourseId}),this.search()},common1:function(e){this.searchForm=Object(c["a"])(Object(c["a"])({},gt),{},{timer:[],courseIdSearch:e}),this.search()},getSearchForm:function(){var e,t=this.searchForm;(!t.timer||t.timer.length<=0)&&(t.timer=[]),(!t.creatTimer||t.creatTimer.length<=0)&&(t.creatTimer=[]);for(var a in t)(t[a]&&!Array.isArray(t[a])||Array.isArray(t[a])&&t[a].length>0)&&0;(null===(e=t.courseTime)||void 0===e?void 0:e.length)>0?(t.startClassTimeStr=t.courseTime[0],t.endClassTimeStr=t.courseTime[1]):(t.startClassTimeStr=null,t.endClassTimeStr=null);var s=t.creatTimer,r=t.timer,o=(t.courseTime,Object(i["a"])(t,bt));return Object(c["a"])(Object(c["a"])(Object(c["a"])({},o),{},{page:this.rules.page,rows:this.rules.limit,searchType:this.$route.query.searchType},Object(h["b"])(s,["createStartDate","createEndDate"])),Object(h["b"])(r,["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["b"])(),tenantId:Object(R["a"])()},params:he()(this.getSearchForm()),url:t};this.$confirm("您确定导出报表","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){V["a"].startLoading(),D()(a).then((function(t){200==t.data.code?e.$message.success(t.data.msg):403==t.data.code?(e.$message.error("登录过期,请重新登录!"),setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3)):e.$message.error(t.data.msg),V["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),V["a"].endLoading()}))})).catch((function(){}))}},getList:function(){var e=this;this.getSearchForm()&&Object(d["Qc"])(this.getSearchForm()).then((function(t){if(200==t.code){e.tableList=t.data.rows,e.rules.total=t.data.total;var a=e.deleteList.map((function(e){return e.id}));e.isDetele=!0,e.$nextTick((function(){e.tableList.forEach((function(t){-1!=a.indexOf(t.id)&&e.$refs.tableList.toggleRowSelection(t,!0)})),e.isDetele=!1})),e.$refs.searchForm&&e.$refs.searchForm.save(e.searchForm)}}))},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 s;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===(s=t.$refs.filterSearch)||void 0===s?void 0:s.show)}))},syncTeacherAttend:function(){var e=this;this.maskForm.id&&Object(f["i"])({courseScheduleId:this.maskForm.id}).then((function(t){var a;200==t.code&&(e.maskForm=Object(c["a"])(Object(c["a"])({},e.maskForm),t.data),e.isMainGo=null===(a=e.$refs.filterSearch)||void 0===a?void 0:a.show)}))},handleClick:function(e,t){},resetClass:function(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(d["u"])({courseScheduleIds:e.id}).then((function(e){200==e.code?(t.$message.success("清除成功"),t.getList()):t.$message.error(e.msg)}))})).catch((function(){}))},cancleMore:function(){this.showMove=!1},okMore:function(){this.getList(),this.showMove=!1},cancleCompound:function(e){var t=this,a=null;this.deleteList.forEach((function(t,s){t.id==e.id&&(a=s)})),a+""&&this.deleteList.splice(a,1),this.tableList.forEach((function(a,s){a.id==e.id&&t.$refs.tableList.toggleRowSelection(a,!1)})),this.deleteList.length<=0&&this.clearCom()},clearCom:function(){this.$set(this,"deleteList",[]),this.$refs.tableList.clearSelection(),this.$refs.addCompound.isLook=!1},resetCompound:function(e){var t=this;this.$confirm("您确定取消合并该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["m"])({mainCourseId:e.id}).then((function(e){200==e.code&&(t.$message.success("提交成功"),t.getList())}))})).catch((function(){}))},handleSelectionChange:function(e){var t=this;if(e.length>0)this.deleteList=this.deleteList.concat(e),this.deleteList=this.$helpers.lodash.uniqBy(this.deleteList,"id");else{if(this.isDetele)return;var a=this.deleteList.map((function(e){return e.id}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(s){e.push(s.id),-1!=a.indexOf(s.id)&&t.$refs.tableList.toggleRowSelection(s,!1)})),t.deleteList=t.$helpers.lodash.remove(t.deleteList,(function(t){return-1==e.indexOf(t.id)})),t.deleteList.length<=0&&t.clearCom()}))}},gotoCourse:function(e){"MUSIC"==e.groupType?this.$router.push({path:"/teamList",query:{search:e.musicGroupId}}):"VIP"==e.groupType?this.$router.push({path:"/vipManager/vipList",query:{search:e.musicGroupId}}):"PRACTICE"==e.groupType&&this.$router.push({path:"/accompanyManager/accompany",query:{search:e.musicGroupId}})},onTableSelect:function(e,t){var a=this.deleteList.map((function(e){return e.id}));-1!=a.indexOf(t.id)&&(this.deleteList.splice(a.indexOf(t.id),1),this.deleteList.length<=0&&this.clearCom())},getColor:function(e){var t={NOT_START:"coruseGreen",UNDERWAY:"courseYellow",OVER:"courseRed"};return t[e]}},filters:{isCall:function(e){return 0==e?"未点名":1==e?"已点名":void 0}},watch:{classVisible:function(e){e||(this.activeName=null)}}},kt=yt,wt=(a("e77e"),Object(S["a"])(kt,s,r,!1,null,"00900b64",null));t["default"]=wt.exports},"443d":function(e,t,a){},"447e":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"申诉图片",prop:"url"}},[a("div",{staticStyle:{width:"100%"}},[a("upload",{ref:"uploadImg",staticClass:"uploadImg",model:{value:e.form.url,callback:function(t){e.$set(e.form,"url",t)},expression:"form.url"}})],1)]),e._v(" "),a("el-form-item",{attrs:{label:"申诉内容",prop:"content",rules:[{required:!0,message:"请输入申诉内容"}]}},[a("el-input",{attrs:{type:"textarea",placeholder:"请输入申诉内容"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content",t)},expression:"form.content"}})],1)],1),e._v(" "),a("div",{staticStyle:{"text-align":"right","margin-top":"20px"},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)},r=[],i=a("c80c"),o=a("db72"),n=(a("96cf"),a("3b8d")),l=a("d7a3"),c=a("c7f0"),u=a("5f87"),d={props:["detail"],components:{Upload:c["a"]},data:function(){return{headers:{Authorization:Object(u["b"])()},form:{content:"",url:""}}},methods:{handleSuccess:function(e){this.$set(this.form,"url",e.data.url)},submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(n["a"])(Object(i["a"])().mark((function t(a){return Object(i["a"])().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(l["a"])(Object(o["a"])(Object(o["a"])({},e.form),{},{courseScheduleId:e.detail.courseScheduleId,userId:e.detail.teacherId}));case 4:e.$message.success("提交成功"),e.$emit("submited"),e.$emit("close"),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)}}())}}},m=d,p=(a("0f4d"),a("2877")),h=Object(p["a"])(m,s,r,!1,null,null,null);t["a"]=h.exports},"4e0f":function(e,t,a){"use strict";a("3c27")},"4f20":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return n})),a.d(t,"d",(function(){return l}));var s=a("b775"),r=(a("4328"),"/api-web");function i(e){return Object(s["a"])({url:r+"/webCurseHomework/queryHomePage",method:"get",params:e})}function o(e){return Object(s["a"])({url:r+"/teacher/findCourseHomeworkDetail",method:"get",params:e})}function n(e){return Object(s["a"])({url:r+"/teacher/findCourseStudentsPublic/v2",method:"post",data:e,requestType:"json"})}function l(e){return Object(s["a"])({url:r+"/teacher/findCourseStudentsSubjectPublic/v2",method:"post",data:e,requestType:"json"})}},"5a6c":function(e,t,a){"use strict";function s(){return i(null,[].slice.call(arguments,0))}function r(e){return i(e,[].slice.call(arguments,1))}function i(e,t){for(var a,s,r,i,n,l=t.length,c=t[0],u={},d=e&&e.equal||o,m=1;m0&&t&&t.length>0){n.getMap();var a=new AMap.Marker({position:e}),s=new AMap.Marker({position:t}),r=a.getPosition(),i=s.getPosition(),o=r.divideBy(2).add(i.divideBy(2));console.log(o);var l=[o.lng,o.lat],c=Math.round(r.distance(i));this.path.push(e,t),this.texts.push({text:"两点相距".concat(c,"米"),position:l}),this.distance=c}}}},c=l,u=(a("3105"),a("2877")),d=Object(u["a"])(c,s,r,!1,null,"7158b01d",null);t["a"]=d.exports},a2ee:function(e,t,a){"use strict";a("6b89")},a792:function(e,t,a){"use strict";var s=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)},r=[],i=(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,s){-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=i,n=(a("d721"),a("2877")),l=Object(n["a"])(o,s,r,!1,null,"3a81cf3f",null);t["a"]=l.exports},af10:function(e,t,a){},b346:function(e,t,a){},c5ea:function(e,t,a){},d721:function(e,t,a){"use strict";a("c5ea")},d7a3:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return o}));var s=a("829b"),r=function(e){return Object(s["a"])({url:"/api-web/teacherAttendance/repealComplaints",method:"post",data:e,requestType:"form"})},i=function(e){return Object(s["a"])({url:"/api-web/teacherAttendance/addComplaints",method:"post",data:e,requestType:"form"})},o=function(e){return Object(s["a"])({url:"/api-web/teacherAttendance/update",method:"post",data:e,requestType:"form"})}},da46:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"studentWroks"},[e.subjectList.length>1?a("el-checkbox-group",{staticStyle:{"margin-bottom":"20px"},attrs:{size:"medium"},on:{change:e.checkSubject},model:{value:e.subjectId,callback:function(t){e.subjectId=t},expression:"subjectId"}},e._l(e.subjectList,(function(t,s){return a("el-checkbox-button",{key:s,class:1==e.subjectList.length?"one":"",attrs:{label:t.id}},[e._v(e._s(t.name))])})),1):e._e(),e._v(" "),a("el-table",{attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.list}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.studentLessonTrainingDetail,(function(t,s){return a("el-row",{key:s,attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"rowFirst"},[e._v(e._s(t.musicScoreName))])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"rowSecond"},[a("span",[e._v(e._s(t.trainingSpeed))]),e._v(" 速度\n ")])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("div",{staticClass:"rowlast"},[a("span",{class:t.trainingTimes>=t.times?"":"red"},[e._v(e._s(t.trainingTimes))]),e._v("\n / "+e._s(t.times)+" 次\n ")])])],1)}))}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"userName",align:"left",label:"学生姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"left",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"left",label:"声部名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"submitTime",align:"left",label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("dateForMinFormat")(t.row.submitTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"finishFlag",align:"right",label:"训练情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.finishFlag?"已完成":"未完成"))])]}}])})],1)],1)},r=[],i=a("c80c"),o=(a("96cf"),a("3b8d")),n=a("4f20"),l={props:["courseScheduleId"],data:function(){return{subjectId:[],list:[],subjectList:[]}},mounted:function(){console.log(this.courseScheduleId,"mounted"),this.courseScheduleId&&(this.getStudentList(this.courseScheduleId),this.getPublicSubject())},methods:{getStudentList:function(){var e=Object(o["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(n["c"])({courseScheduleId:this.courseScheduleId,type:"HOMEWORK",subjectId:this.subjectId[0]?this.subjectId[0]:""});case 3:t=e.sent,this.list=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getPublicSubject:function(){var e=Object(o["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(n["d"])({courseScheduleId:this.courseScheduleId,type:"HOMEWORK"});case 3:t=e.sent,this.subjectList=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),checkSubject:function(e){this.subjectId.length>1&&this.subjectId.shift(),this.getStudentList()}}},c=l,u=(a("8129"),a("2877")),d=Object(u["a"])(c,s,r,!1,null,"11683d60",null);t["a"]=d.exports},dbb0:function(e,t,a){},dc1e:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return l}));var s=a("b775"),r=(a("4328"),"/api-web");function i(e){return Object(s["a"])({url:r+"/studentManage/getOperatingStudents",method:"GET",params:e})}function o(e){return Object(s["a"])({url:r+"/teacherCourseReward/queryPage",method:"GET",params:e})}function n(e){return Object(s["a"])({url:r+"/exercisesSituation/findServiceStudentDetail",method:"GET",params:e})}function l(e){return Object(s["a"])({url:r+"/exercisesSituation/findStudentHomeworkComments",method:"GET",params:e})}},e77e:function(e,t,a){"use strict";a("1ae8")}}]);