1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f0dcf22"],{"02ce":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},["VIP"==e.maskForm.type?a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:"",filterable:""},on:{change:e.changeTeacher},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher","string"===typeof t?t.trim():t)},expression:"maskForm.teacher"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1):a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:"",filterable:""},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher","string"===typeof t?t.trim():t)},expression:"maskForm.teacher"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1),e._v(" "),"MUSIC_NETWORK"!=e.maskForm.type&&"HIGH_ONLINE"!=e.maskForm.type&&"MUSIC"==e.maskForm.groupType?a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant","string"===typeof t?t.trim():t)},expression:"maskForm.assistant"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1):e._e(),e._v(" "),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),e._v(" "),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"}},[a("template",{slot:"append"},[e._v("分钟")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"04:30:00 - 23:30:00"}},on:{change:e.changeStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("el-time-picker",{attrs:{placeholder:"结束时间",disabled:"",format:"HH:mm","value-format":"HH:mm","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.maskForm.startTime}},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}})],1),e._v(" "),"VIP"==e.maskForm.type?a("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:""},on:{change:e.typeChange},model:{value:e.maskForm.teachMode,callback:function(t){e.$set(e.maskForm,"teachMode","string"===typeof t?t.trim():t)},expression:"maskForm.teachMode"}},[a("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),"OFFLINE"==e.maskForm.teachMode?a("el-form-item",{attrs:{label:"教学地点"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{filterable:"",clearable:""},model:{value:e.maskForm.address,callback:function(t){e.$set(e.maskForm,"address","string"===typeof t?t.trim():t)},expression:"\n maskForm.address"}},e._l(e.schoolList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.closeReset}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1)},s=[],n=(a("96cf"),a("1da1")),l=a("c466"),i=a("1cc7"),o=a("8018"),c=a("99b4"),u=a("e3eb"),d=a.n(u),m=a("5a0c"),p=a.n(m),f={props:["show","id","isDisabled"],data:function(){return{courseVisible:!1,maskForm:{teacher:null,assistant:null,date:null,timer:null,startTime:null,endTime:null},maskRules:{teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}],date:[{required:!0,message:"请选择上课时间",trigger:"blur"}],startTime:[{required:!0,message:"请选择上课开始时间",trigger:"blur"}],endTime:[{required:!0,message:"请选择上课结束时间",trigger:"blur"}]},teacherList:[],schoolList:[]}},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["Ab"])().then((function(e){200==e.code&&(t.teacherList=e.data)}));case 2:this.getDetail(this.id);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{submitResetClass:function(){var e=this,t=this.maskForm;t.startTime&&t.endTime?this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.assistant.join(",");if(a.length<=0);var r={actualTeacherId:t.teacher,startClassTimeStr:t.startTime,endClassTimeStr:t.endTime,id:t.id,teachingTeacherIdList:a,classDate:t.date,type:t.type,groupType:t.groupType,schoolId:e.maskForm.address,teachMode:e.maskForm.teachMode};Object(i["cc"])(d()(r)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.$emit("getList"),e.$emit("closeReset"))}))})).catch((function(){})):this.$message.error("请填写开始时间或结束时间")},typeChange:function(){this.$set(this.maskForm,"address",null)},changeStartTime:function(e){var t=this;this.$nextTick((function(a){e?t.$set(t.maskForm,"endTime",Object(l["a"])(t.maskForm.date,e,t.maskForm.timer)):t.$set(t.maskForm,"endTime","")}))},changeTeacher:function(e){var t=this;e&&(Object(o["g"])({userId:e}).then((function(e){200==e.code&&(t.schoolList=e.data)})),this.maskForm.address=null)},getDetail:function(e){var t=this;Object(i["T"])({courseScheduleId:e}).then((function(e){if(200==e.code){t.maskForm={id:e.data.id,teacher:e.data.actualTeacherId,assistant:[],date:p()(e.data.classDate).format("YYYY-MM-DD"),startTime:p()(e.data.startClassTime).format("HH:mm"),endTime:p()(e.data.endClassTime).format("HH:mm"),timer:null,type:e.data.type,groupType:e.data.groupType,address:e.data.schoolId,teachMode:e.data.teachMode},t.maskForm.assistant=e.data.teachingTeacherIdList;var a=Object(l["b"])(p()(e.data.classDate).format("YYYY-MM-DD"),p()(e.data.startClassTime).format("HH:mm"),p()(e.data.endClassTime).format("HH:mm"));console.log(p()(e.data.startClassTime).format("HH:mm")),t.maskForm.timer=a,t.maskForm.teacher&&"VIP"==t.maskForm.type?Object(o["g"])({userId:t.maskForm.teacher}).then((function(e){200==e.code&&(t.schoolList=e.data)})):Object(c["o"])({organId:e.data.organId}).then((function(e){200==e.code&&(t.schoolList=e.data)}))}}))}},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(l["a"])(t.maskForm.date,t.maskForm.startTime,e)):t.$set(t.maskForm,"endTime","")}))}}},h=f,v=(a("847e"),a("2877")),b=Object(v["a"])(h,r,s,!1,null,"ba4d1aec",null);t["a"]=b.exports},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function s(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,a){var l=n(),i=e-l,o=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=o;var n=Math.easeInOutQuad(c,l,i,t);s(n),c<t?r(e):a&&"function"===typeof a&&a()};u()}},"17f4":function(e,t,a){"use strict";a("8c2a")},"22bb":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"workTitle"},[e._v("\n 作业标题 : "),a("span",[e._v(" "+e._s(e.content))])]),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.studentNum))])]),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:"createTime",width:"150",label:"交作业时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("dateForMinFormat")(t.row.createTime)))])]}}])}),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.createTime?"是":"否"))])]}}])}),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.createTime?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(" "),a("el-dialog",{attrs:{title:"查看作业",width:"940px","append-to-body":"",visible:e.workVisible},on:{close:e.closeWorkVisible,"update:visible":function(t){e.workVisible=t}}},[e.workVisible?a("div",{staticClass:"sliderWrap"},[a("div",{staticClass:"swiperWrap"},[e.activeRow?a("swiper",{ref:"mySwiper",attrs:{options:e.swiperOptions}},[e._l(e.activeRow.urlList,(function(t,r){return a("swiper-slide",{key:r},[a("video",{ref:"dialogVideo",refInFor:!0,staticStyle:{width:"480px"},attrs:{src:t,controls:"controls"}},[e._v("\n 您的浏览器不支持视频播放\n ")])])})),e._v(" "),a("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"}),e._v(" "),a("div",{staticClass:"swiper-button-prev swiper-button-white",attrs:{slot:"button-prev"},on:{click:e.prev},slot:"button-prev"}),e._v(" "),a("div",{staticClass:"swiper-button-next swiper-button-white",attrs:{slot:"button-next"},on:{click:e.next},slot:"button-next"})],2):e._e()],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)},s=[],n=(a("28a5"),a("7212")),l=(a("bbe3"),a("333d")),i=a("1cc7"),o=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("df11"),a("2877")),f=Object(p["a"])(m,c,u,!1,null,"3ff54e66",null),h=f.exports,v={props:["courseScheduleId"],components:{pagination:l["a"],Swiper:n["Swiper"],SwiperSlide:n["SwiperSlide"],messageBox:h},directives:{swiper:n["directive"]},data:function(){var e=this;return{tableList:[],rules:{limit:10,page:1,total:0},workVisible:!1,repliedVisible:!1,studentNum:null,homeworkNum:null,repliedNum:null,activeUrl:null,content:null,activeRow:null,swiperOptions:{loop:!0,pagination:".swiper-pagination",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{slideChange:function(){console.log(e.activeRow)}}},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(i["tc"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&(e.studentNum=t.data.studentNum,e.homeworkNum=t.data.homeworkNum,e.repliedNum=t.data.repliedNum)})),Object(i["U"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&(t.data&&(e.content=t.data.content),e.content?e.content:e.content="")})),this.getList()},getList:function(){var e=this;Object(i["H"])({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(","):[],e})),console.log(e.tableList))}))},lookWork:function(e){var t=this;this.activeRow=e,Object(o["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){this.swiper.slidePrev()},next:function(e){this.swiper.slideNext()},lookReplied:function(e){},openAideo:function(e){this.comUrl=e,this.comVisible=!0}},watch:{courseScheduleId:function(e){e&&this.init()}}},b=v,g=(a("c0ff"),Object(p["a"])(b,r,s,!1,null,"cd1ea5a0",null));t["a"]=g.exports},"2a0e":function(e,t,a){},"3e58":function(e,t,a){},4063:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{"update:model":function(t){e.searchForm=t}}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"课程(组)编号/课程名称"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择教学点"},model:{value:e.searchForm.schoolId,callback:function(t){e.$set(e.searchForm,"schoolId","string"===typeof t?t.trim():t)},expression:"searchForm.schoolId"}},e._l(e.selects.schools,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择老师"},model:{value:e.searchForm.teacherIdList,callback:function(t){e.$set(e.searchForm,"teacherIdList","string"===typeof t?t.trim():t)},expression:"searchForm.teacherIdList"}},e._l(e.selects.teachers,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():t)},expression:"searchForm.organIdList"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程组类型"},model:{value:e.searchForm.groupType,callback:function(t){e.$set(e.searchForm,"groupType","string"===typeof t?t.trim():t)},expression:"searchForm.groupType"}},e._l(e.courseListType,(function(e,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.courseType,callback:function(t){e.$set(e.searchForm,"courseType","string"===typeof t?t.trim():t)},expression:"searchForm.courseType"}},e._l(e.courseType,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"教学模式"},model:{value:e.searchForm.teachMode,callback:function(t){e.$set(e.searchForm,"teachMode","string"===typeof t?t.trim():t)},expression:"searchForm.teachMode"}},[a("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程状态"},model:{value:e.searchForm.courseStatus,callback:function(t){e.$set(e.searchForm,"courseStatus","string"===typeof t?t.trim():t)},expression:"searchForm.courseStatus"}},[a("el-option",{attrs:{label:"未开始",value:"NOT_START"}}),e._v(" "),a("el-option",{attrs:{label:"进行中",value:"UNDERWAY"}}),e._v(" "),a("el-option",{attrs:{label:"已结束",value:"OVER"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"老师类型"},model:{value:e.searchForm.teachType,callback:function(t){e.$set(e.searchForm,"teachType","string"===typeof t?t.trim():t)},expression:"searchForm.teachType"}},e._l(e.workTypeOptions,(function(e){return a("el-option",{key:e.label,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否点名"},model:{value:e.searchForm.isCallNames,callback:function(t){e.$set(e.searchForm,"isCallNames","string"===typeof t?t.trim():t)},expression:"searchForm.isCallNames"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"上课开始日期","end-placeholder":"上课结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.creatTimer,callback:function(t){e.$set(e.searchForm,"creatTimer","string"===typeof t?t.trim():t)},expression:"searchForm.creatTimer"}})],1),e._v(" "),a("el-row",{attrs:{type:"flex",justify:"space-around"}},[a("el-col",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.reset}},[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)],1),e._v(" "),a("div",{staticClass:"btnWraps"}),e._v(" "),a("div",{staticClass:"tableWrap",staticStyle:{"margin-top":"20px"}},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"130px",prop:"musicGroupId",label:"乐团/课程组编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"课程编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"200px",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.startClassTime?t.row.startClassTime.substr(0,16):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(11,5):""))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesType")(t.row.type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"教学模式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("teachMode")(t.row.teachMode)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"教学点"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.schoolName?t.row.schoolName:"网络教室"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesStatus")(t.row.status)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"考勤申诉"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(1==t.row.isComplaints?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isLock",label:"是否冻结"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isLock?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"newCourseId",label:"是否被合并",width:"130px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.newCourseId>0?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isCallNames",label:"是否点名",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCallNames?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"详情",fixed:"right",width:"220px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("teamCourseList/details")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("详情")]):e._e(),e._v(" "),e.permission("courseSchedule/classStartDateAdjust?hight")&&(!t.row.isLock||t.row.newCourseId>0)?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),t.row.newCourseId>0?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.common(t.row)}}},[e._v("\n 合并课\n ")]):e._e(),e._v(" "),"MUSIC"==t.row.groupType&&"MUSIC_NETWORK"!=t.row.type&&"HIGH_ONLINE"!=t.row.type&&"NOT_START"==t.row.status&&!e.isAddCom(t.row)&&e.permission("courseSchedule/courseMerge")&&t.row.newCourseId<=0&&!t.row.beMerged?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addCompound(t.row)}}},[e._v("添加合课")]):e._e(),e._v(" "),e.isAddCom(t.row)&&e.permission("courseSchedule/courseMerge")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.cancleCompound(t.row)}}},[e._v("取消合课")]):e._e(),e._v(" "),"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(e._s(e.maskForm.attendClassTime>=0?e.maskForm.attendClassTime:0)+"分钟 "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 学员和老师同时在教室里的时长。\n ")]),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)])],1),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName="string"===typeof t?t.trim():t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"学员列表",name:"first"}},["first"==e.activeName?a("div",[a("studentRollCall",{attrs:{courseScheduleId:e.maskForm.id}})],1):e._e()]),e._v(" "),a("el-tab-pane",{attrs:{label:"老师列表",name:"second"}},["second"==e.activeName?a("div",[a("teacherList",{attrs:{courseScheduleId:e.maskForm.id,teachMode:e.maskForm.teachMode}})],1):e._e()]),e._v(" "),a("el-tab-pane",{attrs:{label:"作业",name:"third"}},["third"==e.activeName?a("div",[a("studentWork",{attrs:{courseScheduleId:e.maskForm.id}})],1):e._e()]),e._v(" "),a("el-tab-pane",{attrs:{label:"评论",name:"four"}},["four"==e.activeName?a("div",[a("courseEvaluate",{attrs:{courseScheduleId:e.maskForm.id}})],1):e._e()]),e._v(" "),e.permission("courseSchedule/queryCourseAdjustDetail")?a("el-tab-pane",{attrs:{label:"调整记录",name:"five"}},["five"==e.activeName?a("div",[a("infoMsg",{attrs:{courseScheduleId:e.maskForm.id}})],1):e._e()]):e._e()],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.show,width:"400px"},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(" "),e.permission("courseSchedule/courseMerge")?a("addCompound",{attrs:{compoundList:e.compoundList},on:{clearCom:e.clearCom,getList:e.getList,cancleCompound:e.cancleCompound}}):e._e()],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("课表列表\n ")])}],n=(a("ac6a"),a("5df3"),a("4f7f"),a("2909")),l=a("15fd"),i=(a("386d"),a("5530")),o=a("333d"),c=a("1cc7"),u=a("267e"),d=a("ed08"),m=a("8018"),p=(a("99b4"),a("92e3")),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{attrs:{inline:!0}},[a("el-form-item",{attrs:{label:"学生总数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.studentNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"实际上课学生数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.signInNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"请假学生数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.leaveNum))])]),e._v(" "),a("el-form-item",{attrs:{label:"旷课学生数"}},[a("div",{staticClass:"inputStyle"},[e._v(e._s(e.truantNum))])])],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"username",label:"学生姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.username)+"\n "),a("span",{staticStyle:{color:"#f56c6c"}},[e._v("("+e._s(t.row.userId)+")")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"signInTime",label:"签到时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.signInTime?t.row.signInTime:t.row.createTime))+"\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[a("div",[t.row.status?a("p",[e._v(e._s(e._f("studentRecord")(t.row.status)))]):a("p",[e._v("未签到")])])]}}])})],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)],1)},h=[],v={props:["courseScheduleId"],components:{pagination:o["a"]},data:function(){return{tableList:[],rules:{limit:10,page:1,total:0},studentNum:null,signInNum:null,leaveNum:null,truantNum:null}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){console.log(this.courseScheduleId),this.getList()},getList:function(){var e=this;Object(c["G"])({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(c["tc"])({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)}))}}},b=v,g=(a("5870"),a("2877")),_=Object(g["a"])(b,f,h,!1,null,"74365950",null),k=_.exports,y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-amap",{ref:"map",staticClass:"amap-demo",attrs:{zoom:e.zoom,vid:"amapDemo","amap-manager":e.amapManager,center:e.center,events:e.markerEvents}},[e._l(e.markers,(function(e,t){return a("el-amap-marker",{key:t,attrs:{position:e.location,title:e.title}})})),e._v(" "),e._l(e.markers,(function(e,t){return a("el-amap-text",{key:t+"xxx",attrs:{text:e.title,position:e.location,offset:[40,-10]}})})),e._v(" "),a("el-amap-polyline",{attrs:{path:e.path,strokeColor:"#4196fc"}}),e._v(" "),e._l(e.texts,(function(e,t){return a("el-amap-text",{key:t+"ooo",attrs:{text:e.text,position:e.position,offset:[-50,0]}})}))],2)],1)},T=[],w=(a("28a5"),a("8f9b")),S=a.n(w);(function(){var e=EventTarget.prototype.addEventListener,t=!1;try{var a=Object.defineProperty({},"passive",{get:function(){t=!0}});document.addEventListener("testPassive",null,a),document.removeEventListener("testPassive",null,a)}catch(r){}EventTarget.prototype.addEventListener=function(a,r,s){this.func=e,s=s instanceof Object?s:{},s.passive=t,this.func(a,r,s)}})(),S.a.initAMapApiLoader({key:"b1e6ac2eb28902ce91a490edf194e000",plugin:["Autocomplete","PlaceSearch","Scale","OverView","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"});var L=new S.a.AMapManager,F={props:["activeRow"],data:function(){var e=this;return{zoom:20,amapManager:L,center:[114.34371,30.55939],markers:[],distance:"-",schoolLongitudeLatitude:null,signInLongitudeLatitude:null,markerEvents:{complete:function(t){e.$refs.map.$amap.setFitView()}},path:[],texts:[]}},watch:{activeRow:function(e){e&&(console.log(e),this.init())}},mounted:function(){this.init()},activated:function(){},methods:{init:function(){if(this.activeRow.schoolLongitudeLatitude){var e={title:"教学点",location:this.activeRow.schoolLongitudeLatitude.split(",")};this.center=this.activeRow.schoolLongitudeLatitude.split(","),this.schoolLongitudeLatitude=this.activeRow.schoolLongitudeLatitude.split(","),this.markers.push(e)}if(this.activeRow.signInLongitudeLatitude){var t={title:"签到点",location:this.activeRow.signInLongitudeLatitude.split(",")};this.center=this.activeRow.signInLongitudeLatitude.split(","),this.signInLongitudeLatitude=this.activeRow.signInLongitudeLatitude.split(","),this.markers.push(t)}if(this.activeRow.signOutLongitudeLatitude){var a={title:"签退点",location:this.activeRow.signOutLongitudeLatitude.split(",")};this.center=this.activeRow.signOutLongitudeLatitude.split(","),this.signOutLongitudeLatitude=this.activeRow.signOutLongitudeLatitude.split(","),this.markers.push(a)}this.getDistance(this.signInLongitudeLatitude,this.schoolLongitudeLatitude),this.getDistance(this.signOutLongitudeLatitude,this.schoolLongitudeLatitude)},onSearchResult:function(){},getDistance:function(e,t){if(e&&e.length>0&&t&&t.length>0){L.getMap();var a=new AMap.Marker({position:e}),r=new AMap.Marker({position:t}),s=a.getPosition(),n=r.getPosition(),l=s.divideBy(2).add(n.divideBy(2));console.log(l);var i=[l.lng,l.lat],o=Math.round(s.distance(n));this.path.push(e,t),this.texts.push({text:"两点相距".concat(o,"米"),position:i}),this.distance=o}}}},C=F,O=(a("9a94"),Object(g["a"])(C,y,T,!1,null,"292f1f4e",null)),I=O.exports,x=a("22bb"),N=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)])},E=[],M={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(c["sb"])({courseId:this.courseScheduleId}).then((function(t){200==t.code&&(e.tableList=t.data.courseScheduleComplaints)}))}}},R=M,j=Object(g["a"])(R,N,E,!1,null,"6e814c6e",null),A=j.exports,$=a("ec8a"),D=a("bc3a"),H=a.n(D),V=a("5f87"),P=a("3908"),G=a("02ce"),U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"teacherName",width:"150px",label:"老师姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.teacherName)+"\n "),a("span",{staticStyle:{color:"#f56c6c"}},[e._v("("+e._s(t.row.teacherId)+")")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherRole",label:"老师类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("workType")(t.row.teacherRole))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"签到时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormatMinute")(t.row.signInTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"签退时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormatMinute")(t.row.signOutTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"签到状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("attendanceType")(t.row.signInStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"签退状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("attendanceOutType")(t.row.signOutStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"200px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"teacherAttendance/updateTeacherAttendance",expression:"'teacherAttendance/updateTeacherAttendance'"}],attrs:{type:"text",size:"small"},on:{click:function(a){return e.mackAttendance(t.row)}}},[e._v("补考勤")]),e._v(" "),"OFFLINE"==e.teachMode?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.lookGPS(t.row)}}},[e._v("GPS定位")]):e._e(),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/queryTeacherSalary",expression:"'courseSchedule/queryTeacherSalary'"}],attrs:{type:"text",size:"small"},on:{click:function(a){return e.setCourseInfo(t.row)}}},[e._v("课酬调整")])],1)]}}])})],1),e._v(" "),a("el-dialog",{attrs:{width:"1000px",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:{width:"500px",title:e.activeTeacher&&e.activeTeacher.teacherName+" ("+e.activeTeacher.teacherId+")",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[a("el-form",{ref:"teacherMask",attrs:{model:e.teacherMask,rules:e.teacherRules}},[a("el-form-item",{attrs:{label:"原课程课酬",prop:"expectSalary"}},[a("span",[e._v(e._s(e._f("moneyFormat")(e.activeTeacher&&e.activeTeacher.expectSalary)))])]),e._v(" "),a("el-form-item",{attrs:{label:"调整范围",prop:"radio"}},[a("el-radio",{attrs:{label:"all"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("之后剩余课次")]),e._v(" "),a("el-radio",{attrs:{label:"one"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("仅限本次")])],1),e._v(" "),a("el-form-item",{attrs:{label:"课程课酬",prop:"salary"}},[a("el-input",{staticStyle:{width:"180px"},model:{value:e.teacherMask.salary,callback:function(t){e.$set(e.teacherMask,"salary","string"===typeof t?t.trim():t)},expression:"teacherMask.salary"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.innerVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.resetSalary}},[e._v("确 定")])],1)],1)],1)},Y=[],q=a("b85c"),B={components:{gpsLoction:I},props:["courseScheduleId","teachMode"],data:function(){return{tableList:[],gpsVisible:!1,activeRow:null,activeTeacherList:[],dialogTableVisible:!1,innerVisible:!1,activeTeacher:null,teacherMask:{salary:"",subsidy:"",radio:""},teacherRules:{salary:[{required:!0,message:"请输入课程课酬",trigger:"blur"}],subsidy:[{required:!0,message:"请输入课时补贴",trigger:"blur"}],radio:[{required:!0,message:"请选择调整范围",trigger:"blur"}]}}},mounted:function(){this.init(),console.log(this.teachMode)},activated:function(){},methods:{getList:function(){var e=this;Object(m["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},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(c["Dc"])(a).then((function(e){200==e.code?(t.$message.success("补卡成功"),t.getList()):t.$message.error(e.msg)}))})).catch((function(){}))},setCourseInfo:function(e){var t=this;Object(c["Bb"])({courseScheduleId:this.courseScheduleId}).then((function(a){if(200==a.code){t.innerVisible=!0;var r,s=Object(q["a"])(a.data);try{for(s.s();!(r=s.n()).done;){var n=r.value;if(e.teacherId==n.teacherId){t.activeTeacher=n;break}}}catch(l){s.e(l)}finally{s.f()}}}))},resetTeacher:function(e){this.innerVisible=!0,this.activeTeacher=e},resetSalary:function(){var e=this;this.$refs["teacherMask"].validate((function(t){t?Object(m["B"])({courseScheduleId:e.courseScheduleId,salary:e.teacherMask.salary,teacherId:e.activeTeacher.teacherId,scope:e.teacherMask.radio}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.teacherMask={salary:"",subsidy:"",radio:""},e.innerVisible=!1)})):e.$message.error("请填写必要参数")}))}}},W=B,z=Object(g["a"])(W,U,Y,!1,null,null,null),K=z.exports,J=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"fixedBox"},[a("el-card",[a("div",{staticClass:"boxWrap"},[a("p",[e._v("临时合课列表"),a("span",{staticStyle:{color:"red"}},[e._v(" "+e._s(e.compoundList.length)+" ")])]),e._v(" "),a("el-popover",{attrs:{placement:"top",trigger:"click"},model:{value:e.isLook,callback:function(t){e.isLook=t},expression:"isLook"}},[a("div",[a("p",{staticClass:"title"},[e._v("临时合课列表 "),a("i",{staticClass:"el-icon-minus minus",on:{click:function(t){e.isLook=!1}}})]),e._v(" "),a("el-divider")],1),e._v(" "),a("el-button",{staticStyle:{float:"right"},attrs:{type:"text"},on:{click:e.clearCom}},[e._v("清空课表")]),e._v(" "),a("div",[a("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-table",{attrs:{data:e.dataList,height:"300px","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"主课",width:"110"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("el-radio",{attrs:{label:e.row.id}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",label:"课程名称",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesType")(t.row.type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",prop:"teacherName",label:"指导老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.teacherName)+"("+e._s(t.row.actualTeacherId)+")\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"200px",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.startClassTime?t.row.startClassTime.substr(0,16):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(11,5):""))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.cancleCom(t.row)}}},[e._v("取消")])]}}])})],1)],1)],1),e._v(" "),a("el-button",{staticStyle:{float:"right","margin-top":"20px"},attrs:{type:"primary",size:"mini"},on:{click:e.submitClass}},[e._v("确定")]),e._v(" "),a("i",{staticClass:"el-icon-copy-document",attrs:{slot:"reference"},slot:"reference"})],1)],1)]),e._v(" "),a("el-dialog",{attrs:{visible:e.show,title:"临时合课信息","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.show=t}}},[e.show?a("compoundClass",{attrs:{show:e.show,isDisabled:!0,idList:e.idList,id:e.radio},on:{closeReset:e.closeReset,getList:e.getList}}):e._e()],1)],1)},X=[],Q=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"课程名称",prop:"teacher"}},[a("el-input",{staticStyle:{width:"220px!important"},attrs:{placeholder:"请输入课程名称"},model:{value:e.maskForm.name,callback:function(t){e.$set(e.maskForm,"name","string"===typeof t?t.trim():t)},expression:"maskForm.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",[a("div",{staticStyle:{width:"220px!important"}},[a("a",{staticClass:"studentTitle",attrs:{href:"#"},on:{click:e.lookStudentList}},[e._v(" 学生列表>>")])])])],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:"",filterable:""},on:{change:e.changeTeacher},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher","string"===typeof t?t.trim():t)},expression:"maskForm.teacher"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},["MUSIC_NETWORK"!=e.maskForm.type&&"HIGH_ONLINE"!=e.maskForm.type&&"MUSIC"==e.maskForm.groupType?a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant","string"===typeof t?t.trim():t)},expression:"maskForm.assistant"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1):e._e()],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[a("el-date-picker",{attrs:{type:"date","picker-options":{firstDayOfWeek:1},"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date","string"===typeof t?t.trim():t)},expression:"maskForm.date"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"课程时长(分钟)",prop:"timer"}},[a("el-input",{staticStyle:{width:"220px!important"},attrs:{type:"number",disabled:e.isDisabled},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer",t)},expression:"maskForm.timer"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"04:30:00 - 23:30:00"}},on:{change:e.changeStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("el-time-picker",{attrs:{placeholder:"结束时间",disabled:"",format:"HH:mm","value-format":"HH:mm","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.maskForm.startTime}},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},["VIP"==e.maskForm.type?a("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:""},model:{value:e.maskForm.teachMode,callback:function(t){e.$set(e.maskForm,"teachMode","string"===typeof t?t.trim():t)},expression:"maskForm.teachMode"}},[a("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1):e._e()],1),e._v(" "),a("el-col",{attrs:{span:12}},["OFFLINE"==e.maskForm.teachMode&&"VIP"==e.maskForm.type?a("el-form-item",{attrs:{label:"教学地点"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{filterable:"",clearable:""},model:{value:e.maskForm.address,callback:function(t){e.$set(e.maskForm,"address","string"===typeof t?t.trim():t)},expression:"maskForm.address"}},e._l(e.schoolList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.closeReset}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1),e._v(" "),a("el-dialog",{attrs:{title:"学员列表",width:"650px","append-to-body":"",visible:e.studentListModalVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[a("viewStudentList",{attrs:{list:e.studentListModal,showOk:!0},on:{close:function(t){e.studentListModalVisible=!1}}})],1)],1)},Z=[],ee=(a("7f7f"),a("c466")),te=a("a792"),ae=(a("e3eb"),a("5a0c")),re=a.n(ae),se={props:["show","id","isDisabled","idList"],components:{viewStudentList:te["a"]},data:function(){return{courseVisible:!1,studentListModalVisible:!1,maskForm:{teacher:null,assistant:null,date:null,timer:null,startTime:null,endTime:null,name:null},maskRules:{name:[{required:!0,message:"请输入课程名称",trigger:"blur"}],teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}],date:[{required:!0,message:"请选择上课时间",trigger:"blur"}],startTime:[{required:!0,message:"请选择上课开始时间",trigger:"blur"}],endTime:[{required:!0,message:"请选择上课结束时间",trigger:"blur"}]},teacherList:[],schoolList:[],studentListModal:[]}},mounted:function(){var e=this;Object(c["Ab"])().then((function(t){200==t.code&&(e.teacherList=t.data)})),this.getDetail(this.id)},methods:{submitResetClass:function(){var e=this,t=this.maskForm;t.startTime&&t.endTime?this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.assistant.join(",");if(a.length<=0);var r=e.idList.split(",");for(var s in r)r[s]==e.id&&r.splice(s,1);var n=r.join(","),l={actualTeacherId:t.teacher,startClassTimeStr:t.startTime,endClassTimeStr:t.endTime,id:t.id,teachingTeacherIdList:a,classDate:t.date,type:t.type,groupType:t.groupType,schoolId:e.maskForm.address,teachMode:e.maskForm.teachMode,mergeCourseIds:n};Object(c["q"])(l).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(ee["a"])(t.maskForm.date,e,t.maskForm.timer)),e?t.$set(t.maskForm,"endTime",Object(ee["a"])(t.maskForm.date,e,t.maskForm.timer)):t.$set(t.maskForm,"endTime","")}))},changeTeacher:function(e){var t=this;e&&(Object(m["g"])({userId:e}).then((function(e){200==e.code&&(t.schoolList=e.data)})),this.maskForm.address="")},getDetail:function(e){var t=this;Object(c["T"])({courseScheduleId:e}).then((function(e){if(200==e.code){for(var a in console.log(e.data.groupType),t.maskForm={id:e.data.id,teacher:e.data.actualTeacherId,assistant:[],date:re()(e.data.classDate).format("YYYY-MM-DD"),startTime:re()(e.data.startClassTime).format("HH:mm"),endTime:re()(e.data.endClassTime).format("HH:mm"),timer:null,type:e.data.type,groupType:e.data.groupType,schoolId:e.data.schoolId,teachMode:e.data.teachMode,name:e.data.name},t.maskForm.assistant=[],e.data.teachingTeachers)"TEACHING"==e.data.teachingTeachers[a].teacherRole&&t.maskForm.assistant.push(e.data.teachingTeachers[a].userId);var r=Object(ee["b"])(re()(e.data.classDate).format("YYYY-MM-DD"),re()(e.data.startClassTime).format("HH:mm"),re()(e.data.endClassTime).format("HH:mm"));console.log(re()(e.data.startClassTime).format("HH:mm")),t.maskForm.timer=r,t.maskForm.teacher&&Object(m["g"])({userId:t.maskForm.teacher}).then((function(e){200==e.code&&(t.schoolList=e.data)}))}}))},lookStudentList:function(){var e=this;Object(c["V"])({courseIds:this.idList}).then((function(t){200==t.code&&(e.studentListModal=t.data,e.studentListModalVisible=!0)}))}},watch:{id:function(e){e&&this.getDetail(e)},"maskForm.timer":function(e){var t=this;this.$nextTick((function(a){e?t.$set(t.maskForm,"endTime",Object(ee["a"])(t.maskForm.date,t.maskForm.startTime,e)):t.$set(t.maskForm,"endTime","")}))}}},ne=se,le=(a("17f4"),Object(g["a"])(ne,Q,Z,!1,null,"127f5e25",null)),ie=le.exports,oe={props:["compoundList"],components:{compoundClass:ie},data:function(){return{radio:"",dataList:this.compoundList,isLook:!1,show:!1,idList:""}},methods:{cancleCom:function(e){this.$emit("cancleCompound",e)},clearCom:function(){this.$emit("clearCom")},submitClass:function(){if(this.radio){var e=[],t=[];this.dataList.forEach((function(a){e.push(a.type),t.push(a.id)})),e=Object(n["a"])(new Set(e)),1==e.length?this.dataList.length<=1?this.$message.error("请至少选择2节课程"):(this.idList=t.join(","),this.show=!0,this.isLook=!1):this.$message.error("请选择相同的课程类型")}else this.$message.error("请选择一节主课")},getList:function(){},closeReset:function(){this.clearCom(),this.show=!1,this.$emit("getList")}},watch:{compoundList:function(e){console.log(e),this.dataList=e}}},ce=oe,ue=(a("52a1"),Object(g["a"])(ce,J,X,!1,null,"c2cb7342",null)),de=ue.exports,me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.dataList.length>0?a("el-collapse",{attrs:{accordion:""},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.dataList,(function(t,r){return a("el-collapse-item",{key:r,attrs:{title:e.getTitle(t),name:r}},[a("template",{slot:"title"},[a("header",{staticClass:"header"},[e._v("\n "+e._s(t.operatorName)+" "),a("span",[e._v("在")]),e._v(" "+e._s(t.createTime)+" "),a("span",[e._v("修改了")])])]),e._v(" "),a("infoMsgContent",{attrs:{before:t.previousCourseSchedule,after:t.currentCourseSchedule}})],2)})),1):e._e(),e._v(" "),e.dataList.length<=0?a("div",{staticClass:"noBox"},[a("p",[e._v("暂无调整记录")])]):e._e()],1)},pe=[],fe=(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)}),he=[],ve=(a("456d"),a("5a6c")),be=a.n(ve),ge={name:"课程名称",actualTeacherName:"主教老师",teachingTeacherNames:"助教老师",startClassTime:"上课时间",teachMode:"课程类型",schoolName:"教学地点",timers:"课程时长"},_e={props:["before","after"],computed:{diff:function(){return be()(this.before,this.after)},list:function(){for(var e=Object.keys(this.before),t=[],a=0;a<e.length;a++){var r=e[a];e[a+1];t.push({name:r,before:this.before[r],after:this.before[r]})}return t}},data:function(){return{nameFormat:ge}},mounted:function(){console.log(this.diff,this.list)}},ke=_e,ye=Object(g["a"])(ke,fe,he,!1,null,"f0337606",null),Te=ye.exports,we={props:["courseScheduleId"],data:function(){return{activeName:0,dataList:[]}},components:{infoMsgContent:Te},mounted:function(){var e=this;Object(c["ac"])({courseScheduleId:this.courseScheduleId}).then((function(t){200==t.code&&t.data&&(e.dataList=t.data.map((function(t){var a=JSON.parse(t.currentCourseSchedule),r=e.filterKeys(a),s=e.filterKeys(JSON.parse(t.previousCourseSchedule));return Object(i["a"])(Object(i["a"])({},t),{},{operatorName:a.operatorName,currentCourseSchedule:r,previousCourseSchedule:s})})))}))},methods:{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:e.startClassTime,teachMode:u["s"][e.teachMode],schoolName:e.schoolName,timers:this.getTimers(e)}},getTitle:function(e){return e.operatorName+" 在 "+e.createTime+" 修改了"},getTimers:function(e){return Object(ee["b"])(re()(e.classDate).format("YYYY-MM-DD"),re()(e.startClassTime).format("HH:mm"),re()(e.endClassTime).format("HH:mm"))}},computed:{}},Se=we,Le=(a("f796"),Object(g["a"])(Se,me,pe,!1,null,"bc0d4638",null)),Fe=Le.exports,Ce=new Date;Ce=Ce.getFullYear()+"-"+(Ce.getMonth()+1)+"-"+Ce.getDate();var Oe={teachMode:null,organIdList:null,courseStatus:null,courseType:null,timer:[Ce,Ce],class:null,teachType:null,isCallNames:null,search:null,teacherIdList:null,schoolId:null,creatTimer:[]},Ie={data:function(){return{classVisible:!1,timerVisible:!1,courseVisible:!1,courseType:p["k"],courseListType:p["i"],searchForm:Object(i["a"])({},Oe),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:[]}},components:{pagination:o["a"],studentRollCall:k,gpsLoction:I,studentWork:x["a"],courseEvaluate:A,resetClass:G["a"],teacherList:K,addCompound:de,infoMsg:Fe},activated:function(){this.init()},computed:{workTypeOptions:function(){return Object(d["b"])(u["v"])}},mounted:function(){this.$store.dispatch("setBranchs"),this.$store.dispatch("setTeachers"),this.$store.dispatch("setSchools"),this.init()},methods:{init:function(){this.getList()},permission:function(e,t){return Object($["a"])(e,t)},reset:function(){this.searchForm=Object(i["a"])({},Oe),this.search()},search:function(){this.rules.page=1,this.$refs.searchForm.save(this.searchForm),this.getList()},common:function(e){this.searchForm=Object(i["a"])(Object(i["a"])({},Oe),{},{timer:[],search:e.newCourseId}),this.search()},getSearchForm:function(){var e=this.searchForm;(!e.timer||e.timer.length<=0)&&(e.timer=[]),(!e.creatTimer||e.creatTimer.length<=0)&&(e.creatTimer=[]);var t=0;for(var a in e)(e[a]&&!Array.isArray(e[a])||Array.isArray(e[a])&&e[a].length>0)&&t++;if(!(t<=0)){var r=e.creatTimer,s=e.timer,n=Object(l["a"])(e,["creatTimer","timer"]);return Object(i["a"])(Object(i["a"])(Object(i["a"])({},n),{},{page:this.rules.page,rows:this.rules.limit},Object(d["a"])(r,["createStartDate","createEndDate"])),Object(d["a"])(s,["startTime","endTime"]))}this.$message.error("请至少选择一个搜索条件")},onCourseExport:function(){var e=this,t="/api-web/export/superFindCourseSchedules",a={method:"get",headers:{Authorization:Object(V["a"])()},params:this.getSearchForm(),url:t,responseType:"blob"};this.$confirm("您确定导出报表","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){P["a"].startLoading(),H()(a).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(t){if(-1!=t.indexOf("code")){var r=JSON.parse(t);e.$message.error(r.msg)}else{var s=URL.createObjectURL(a),n=document.createElement("a"),l="课表列表"+(new Date).getTime();n.href=s,n.setAttribute("download",l),document.body.appendChild(n),n.click()}})),P["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),P["a"].endLoading()}))})).catch((function(){}))},getList:function(){var e=this;Object(c["vc"])(this.getSearchForm()).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},lookDetail:function(e){var t=this;this.maskForm=e,this.activeName="first",this.classVisible=!0,Object(m["i"])({courseScheduleId:e.id}).then((function(a){200==a.code&&(t.maskForm=Object(i["a"])(Object(i["a"])({},t.maskForm),a.data),t.maskForm.id=e.id,t.activeName="first",t.classVisible=!0)}))},handleClick:function(e,t){},resetClass:function(e){console.log(e),this.id=e.id,this.show=!0},closeReset:function(){this.show=!1},clearAttend:function(e){var t=this;this.$confirm("是否清除考勤记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["o"])({courseScheduleIds:e.id}).then((function(e){200==e.code?(t.$message.success("清除成功"),t.getList()):t.$message.error(e.msg)}))})).catch((function(){}))},addCompound:function(e){this.compoundList.push(e),this.compoundList=Object(n["a"])(new Set(this.compoundList))},isAddCom:function(e){var t=!1;return this.compoundList.forEach((function(a){a.id==e.id&&(t=!0)})),t},cancleCompound:function(e){var t=null;this.compoundList.forEach((function(a,r){a.id==e.id&&(t=r)})),t+""&&this.compoundList.splice(t,1)},clearCom:function(){this.compoundList=[]}},filters:{isCall:function(e){return 0==e?"未点名":1==e?"已点名":void 0}},watch:{classVisible:function(e){e||(this.activeName=null)}}},xe=Ie,Ne=(a("e74f"),Object(g["a"])(xe,r,s,!1,null,"1f1d7fea",null));t["default"]=Ne.exports},"52a1":function(e,t,a){"use strict";a("c619")},5547:function(e,t,a){},5664:function(e,t,a){"use strict";a("3e58")},5870:function(e,t,a){"use strict";a("5547")},"5a6c":function(e,t,a){"use strict";function r(){return n(null,[].slice.call(arguments,0))}function s(e){return n(e,[].slice.call(arguments,1))}function n(e,t){for(var a,r,s,n,i,o=t.length,c=t[0],u={},d=e&&e.equal||l,m=1;m<o;m++)for(a=t[m],r=Object.keys(a),s=r.length,i=0;i<s;i++)n=r[i],d(a[n],c[n])||(u[n]=a[n]);return u}function l(e,t){return e===t}r.custom=s,e.exports=r},"5ef2":function(e,t,a){},"7f1d":function(e,t,a){},8018:function(e,t,a){"use strict";a.d(t,"x",(function(){return i})),a.d(t,"u",(function(){return o})),a.d(t,"h",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"j",(function(){return d})),a.d(t,"w",(function(){return m})),a.d(t,"v",(function(){return p})),a.d(t,"o",(function(){return f})),a.d(t,"C",(function(){return h})),a.d(t,"D",(function(){return v})),a.d(t,"z",(function(){return b})),a.d(t,"y",(function(){return g})),a.d(t,"B",(function(){return _})),a.d(t,"g",(function(){return k})),a.d(t,"r",(function(){return y})),a.d(t,"A",(function(){return T})),a.d(t,"t",(function(){return w})),a.d(t,"i",(function(){return S})),a.d(t,"n",(function(){return L})),a.d(t,"s",(function(){return F})),a.d(t,"a",(function(){return C})),a.d(t,"m",(function(){return O})),a.d(t,"p",(function(){return I})),a.d(t,"q",(function(){return x})),a.d(t,"l",(function(){return N})),a.d(t,"d",(function(){return E})),a.d(t,"c",(function(){return M})),a.d(t,"k",(function(){return R})),a.d(t,"b",(function(){return j})),a.d(t,"f",(function(){return A}));var r=a("b775"),s=a("4328"),n=a.n(s),l="/api-web";function i(e){return Object(r["a"])({url:l+"/teacher/queryPage",method:"get",params:e})}function o(e){return Object(r["a"])({url:l+"/teacher/get",method:"get",params:e})}function c(e){return Object(r["a"])({url:l+"/teacher/getTeacherMusicClass",method:"get",params:e})}function u(e){return Object(r["a"])({url:l+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function d(e){return Object(r["a"])({url:l+"/teacherAttendance/getTeacherPersonalAttendances",method:"get",params:e})}function m(e){return Object(r["a"])({url:l+"/teacher/queryCloses",method:"get",params:e})}function p(e){return Object(r["a"])({url:l+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function f(e){return Object(r["a"])({url:l+"/teacher/sumTeacherNoPay",method:"get",params:e})}function h(e){return Object(r["a"])({url:l+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function v(e){return Object(r["a"])({url:l+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function b(e){return Object(r["a"])({url:l+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function g(e){return Object(r["a"])({url:l+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function _(e){return Object(r["a"])({url:l+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:n.a.stringify(e)})}function k(e){return Object(r["a"])({url:l+"/school/findVipSchoolByTeacher",method:"get",params:e})}function y(e){return Object(r["a"])({url:l+"/teacher/add",method:"post",data:n.a.stringify(e)})}function T(e){return Object(r["a"])({url:l+"/teacher/update",method:"post",data:n.a.stringify(e)})}function w(e){return Object(r["a"])({url:l+"/teacherFreeTime/query",method:"get",params:e})}function S(e){return Object(r["a"])({url:l+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function L(e){return Object(r["a"])({url:l+"/teacherFreeTime/updateSet",method:"post",data:n.a.stringify(e)})}function F(e){return Object(r["a"])({url:l+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function C(e){return Object(r["a"])({url:l+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function O(e){return Object(r["a"])({url:l+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function I(e){return Object(r["a"])({url:l+"/sysTenantAccount/addMinutes",method:"post",data:n.a.stringify(e)})}function x(e){return Object(r["a"])({url:l+"/sysTenantAccount/subtractMinutes",method:"post",data:n.a.stringify(e)})}function N(e){return Object(r["a"])({url:l+"/sysTenantAccount/get",method:"get",params:e})}function E(e){return Object(r["a"])({url:l+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function M(e){return Object(r["a"])({url:l+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:n.a.stringify(e)})}function R(e){return Object(r["a"])({url:l+"/teacher/queryStudent",method:"get",params:e})}function j(e){return Object(r["a"])({url:l+"/studentManage/batchUpdateAdviser",method:"post",data:n.a.stringify(e)})}function A(e){return Object(r["a"])({url:l+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},"847e":function(e,t,a){"use strict";a("a37f")},"8c2a":function(e,t,a){},"92e3":function(e,t,a){"use strict";a.d(t,"k",(function(){return l})),a.d(t,"o",(function(){return i})),a.d(t,"i",(function(){return o})),a.d(t,"b",(function(){return c})),a.d(t,"n",(function(){return u})),a.d(t,"y",(function(){return d})),a.d(t,"c",(function(){return m})),a.d(t,"s",(function(){return p})),a.d(t,"l",(function(){return f})),a.d(t,"p",(function(){return h})),a.d(t,"A",(function(){return v})),a.d(t,"j",(function(){return b})),a.d(t,"h",(function(){return g})),a.d(t,"z",(function(){return _})),a.d(t,"v",(function(){return k})),a.d(t,"B",(function(){return y})),a.d(t,"u",(function(){return T})),a.d(t,"w",(function(){return w})),a.d(t,"m",(function(){return S})),a.d(t,"f",(function(){return L})),a.d(t,"x",(function(){return F})),a.d(t,"g",(function(){return C})),a.d(t,"t",(function(){return O})),a.d(t,"e",(function(){return I})),a.d(t,"d",(function(){return x})),a.d(t,"r",(function(){return N})),a.d(t,"q",(function(){return E})),a.d(t,"a",(function(){return R}));var r=a("b85c"),s=a("3835"),n=a("267e"),l=[{label:"单技课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训单技课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}],i=[{label:"单技课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训单技课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],c=[{label:"正常签到",value:1},{label:"异常签到",value:0}],u=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"临时工",value:"TEMPORARY"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],m=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"},{value:"QUIT_SCHOOL",label:"退学"}],p=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"OTHER",label:"其他"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"双十一活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"}],f=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],h=[{value:"APPLY",text:"报名中"},{value:"PAY",text:"缴费中"},{value:"PREPARE",text:"筹备中"},{value:"PROGRESS",text:"进行中"},{value:"PAUSE",text:"暂停"},{value:"DRAFT",text:"编辑中"},{value:"AUDIT",text:"审核中"},{value:"AUDIT_FAILED",text:"审核失败"},{value:"CANCELED",text:"取消"},{value:"FEE_AUDIT",text:"费用审核中"}],v=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],b=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],g=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],_=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],k=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"}],y=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],T=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],w=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],S=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"}],L=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],F=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],C=M(n["d"]),O=M(n["m"]),I=M(n["b"]),x=M(n["a"]),N=M(n["l"]),E=M(n["k"]);function M(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(s["a"])(t,2),n=a[0],l=a[1],i={};if(e&&e.length){var o,c=Object(r["a"])(e);try{for(c.s();!(o=c.n()).done;){var u=o.value;i[u[n]]=u[l]}}catch(d){c.e(d)}finally{c.f()}}return i}},"9a94":function(e,t,a){"use strict";a("ea0a")},a37f:function(e,t,a){},a792:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{ref:"studentTable",attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[e.isChiose?a("el-table-column",{attrs:{type:"selection",width:"55"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{prop:"userId",align:"center",width:"120",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"nickName",align:"center",width:"120",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("sex")(t.row.gender))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"center",width:"120",label:"联系电话"}}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectNames",align:"center",label:"专业"}})],1),e._v(" "),e.showOk?a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$listeners.close(e.selectList)}}},[e._v("确 定")])],1):e._e(),e._v(" "),e.showOk?a("div",{staticStyle:{clear:"both"}}):e._e()],1)},s=[],n=(a("ac6a"),{props:["list","isChiose","chioseList","showOk"],data:function(){return{selectList:this.chioseList}},mounted:function(){var e=this;if(this.chioseList){var t=this.chioseList.map((function(e,t){return e.userId}));this.list.forEach((function(a,r){-1!=t.indexOf(a.userId)&&e.$refs.studentTable.toggleRowSelection(a,!0)}))}},methods:{handleSelectionChange:function(e){this.selectList=e}}}),l=n,i=(a("5664"),a("2877")),o=Object(i["a"])(l,r,s,!1,null,"274e7764",null);t["a"]=o.exports},c0ff:function(e,t,a){"use strict";a("7f1d")},c466:function(e,t,a){"use strict";a.d(t,"h",(function(){return l})),a.d(t,"c",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"e",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"g",(function(){return d})),a.d(t,"b",(function(){return m})),a.d(t,"a",(function(){return p}));a("a481");var r=a("5a0c"),s=a.n(r),n=a("56d7");function l(e){var t=e.getFullYear(),a=e.getMonth()+1,r=e.getDate();return a=a<10?"0"+a:a,r=r<10?"0"+r:r,t+"-"+a+"-"+r}function i(e){return e.setDate(1),e}function o(e){var t=e.getMonth(),a=++t,r=new Date(e.getFullYear(),a,1),s=864e5;return new Date(r-s)}function c(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var r=t-24*(a.getDay()-1)*60*60*1e3,s=new Date(r),n=s.getFullYear(),l=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,i=s.getDate()<10?"0"+s.getDate():s.getDate(),o=n+"-"+l+"-"+i;return o}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),r=7-a.getDay();7==r&&(r=0);var s=t+24*r*60*60*1e3,n=new Date(s),l=n.getFullYear(),i=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),c=l+"-"+i+"-"+o;return c}function d(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function m(e,t,a){return Math.abs(s()(e+" "+t).diff(e+" "+a,"Minute"))}function p(e,t,a){var r=s()(e+" "+t).add(a,"minute");return console.log(),s()(e+" 23:59").isBefore(r)?(n["$message"].error("课程时间无法跨天请重新设置开始时间"),""):r.format("HH:mm")}},c619:function(e,t,a){},dc1e:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"d",(function(){return l})),a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return o}));var r=a("b775"),s=(a("4328"),"/api-web");function n(e){return Object(r["a"])({url:s+"/studentManage/getOperatingStudents",method:"GET",params:e})}function l(e){return Object(r["a"])({url:s+"/teacherCourseReward/queryPage",method:"GET",params:e})}function i(e){return Object(r["a"])({url:s+"/exercisesSituation/findServiceStudentDetail",method:"GET",params:e})}function o(e){return Object(r["a"])({url:s+"/exercisesSituation/findStudentHomeworkComments",method:"GET",params:e})}},df11:function(e,t,a){"use strict";a("2a0e")},e74f:function(e,t,a){"use strict";a("5ef2")},ea0a:function(e,t,a){},ec8a:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));a("6762"),a("2fdb"),a("28a5");function r(e,t){var a=window.localStorage.getItem("permission");return a=a.split(","),t=t||null,!(!a.includes(e)||t)||!(!a.includes(e)||!a.includes(t))}},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return i}));var r=a("ade3"),s=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("53ca"),a("5a0c")),n=a.n(s);var l=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var r=e[a],s=a.toLocaleUpperCase();t.push({label:r,value:"TRUE"===s||"FALSE"===s?"TRUE"===s:a})}return t},i=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(r["a"])(t,a[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(s):""),Object(r["a"])(t,a[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(s):""),t):{}}},f796:function(e,t,a){"use strict";a("fa44")},fa44:function(e,t,a){}}]);
|