1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-df5037f0"],{"0cde1":function(e,t,a){"use strict";a("b44a")},"111c":function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var l=a("b775"),r=a("4328"),s=a.n(r),n="/api-web";function i(e){return Object(l["a"])({url:n+"/teacherAttendance/queryTeacherAttendances",method:"post",data:s.a.stringify(e)})}},"163e":function(e,t,a){"use strict";a("1828")},1828:function(e,t,a){},"25ef":function(e,t,a){},"3e2f":function(e,t,a){"use strict";a("87fc")},4891:function(e,t,a){},"52ec":function(e,t,a){},6255:function(e,t,a){e.exports=a.p+"static/img/weekTimer.f983eb26.png"},6616:function(e,t,a){"use strict";a("7b45")},"6e22":function(e,t,a){},"727e":function(e,t,a){},"7b45":function(e,t,a){},"7c28":function(e,t,a){e.exports=a.p+"static/img/woman.9995a81d.png"},"87fc":function(e,t,a){},8902:function(e,t,a){"use strict";a("6e22")},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return o})),a.d(t,"F",(function(){return c})),a.d(t,"s",(function(){return u})),a.d(t,"c",(function(){return m})),a.d(t,"C",(function(){return p})),a.d(t,"S",(function(){return d})),a.d(t,"R",(function(){return f})),a.d(t,"d",(function(){return h})),a.d(t,"J",(function(){return b})),a.d(t,"w",(function(){return v})),a.d(t,"U",(function(){return g})),a.d(t,"t",(function(){return _})),a.d(t,"o",(function(){return y})),a.d(t,"T",(function(){return I})),a.d(t,"M",(function(){return k})),a.d(t,"W",(function(){return L})),a.d(t,"X",(function(){return S})),a.d(t,"L",(function(){return T})),a.d(t,"P",(function(){return w})),a.d(t,"A",(function(){return F})),a.d(t,"l",(function(){return C})),a.d(t,"Q",(function(){return E})),a.d(t,"V",(function(){return O})),a.d(t,"G",(function(){return D})),a.d(t,"m",(function(){return N})),a.d(t,"v",(function(){return $})),a.d(t,"K",(function(){return x})),a.d(t,"f",(function(){return R})),a.d(t,"e",(function(){return j})),a.d(t,"I",(function(){return A})),a.d(t,"H",(function(){return M})),a.d(t,"O",(function(){return G})),a.d(t,"E",(function(){return W})),a.d(t,"a",(function(){return P})),a.d(t,"x",(function(){return V})),a.d(t,"p",(function(){return U})),a.d(t,"n",(function(){return z})),a.d(t,"q",(function(){return q})),a.d(t,"g",(function(){return H})),a.d(t,"D",(function(){return Y})),a.d(t,"r",(function(){return B})),a.d(t,"B",(function(){return X})),a.d(t,"z",(function(){return K})),a.d(t,"y",(function(){return J})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"N",(function(){return ae})),a.d(t,"b",(function(){return re}));var l=a("b85c"),r=a("3835"),s=a("267e"),n=sessionStorage.getItem("tenantConfig");n=n?JSON.parse(n):{};var i=n.tenantId,o=null,c=null;1==i?(c=[{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:"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"}]):(c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]);var u=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],m=[{label:"正常签到",value:1},{label:"异常签到",value:0}],p=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],h=[].concat(f,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),b=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",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:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"}],v=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],g=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],_=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],y=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],I=[{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:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],L=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],S=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"VIP课回访",label:"VIP课回访"},{value:"乐理课回访",label:"乐理课回访"},{value:"网管课回访",label:"网管课回访"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{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:"其它"}],F=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],C=[{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:"高三"}],E=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],O=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],D=le(s["musicGroupType"]),N=le(s["classTime"]),$=le(s["courseViewType"]),x=le(s["payOrderType"]),R=le(s["auditType"]),j=le(s["auditPaymentType"]),A=le(s["orderServerType"]),M=le(s["orderAuditType"]),G=le(s["rewardModeType"]),W=le(s["musicClassType"]),P=le(s["ProbationPeriodStatus"]),V=le(s["downListType"]),U=le(s["conclusion"]),z=le(s["clientType"]),q=le(s["couponType"]),H=le(s["backType"]),Y=le(s["memberEnum"]),B=le(s["coupontypeDetail"]),X=le(s["issue"]),K=le(s["feedbackType"]),J=le(s["feedbackTypeDesc"]),Q=le(s["campState"]),Z=le(s["catgGoupType"]),ee=le(s["catRole"]),te=le(s["catType"]),ae=le(s["quiteReason"]);function le(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(r["a"])(t,2),s=a[0],n=a[1],i={};if(e&&e.length){var o,c=Object(l["a"])(e);try{for(c.s();!(o=c.n()).done;){var u=o.value;i[u[s]]=u[n]}}catch(m){c.e(m)}finally{c.f()}}return i}},9485:function(e,t,a){"use strict";a("4891")},ae24:function(e,t,a){"use strict";a("f2f9")},b44a:function(e,t,a){},bdb9:function(e,t,a){"use strict";a("ef5d9")},c5b1:function(e,t,a){"use strict";a("52ec")},e257:function(e,t,a){"use strict";a("727e")},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return i}));var l=a("ade3"),r=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("53ca"),a("5a0c")),s=a.n(r);var n=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var l=e[a],r=a.toLocaleUpperCase();t.push({label:l,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:a})}return t},i=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(l["a"])(t,a[0]||"start",s()(e[0]).isValid()?s()(e[0]).format(r):""),Object(l["a"])(t,a[1]||"end",s()(e[1]).isValid()?s()(e[1]).format(r):""),t):{}}},ef5d9:function(e,t,a){},f2f9:function(e,t,a){},f769:function(e,t,a){"use strict";a("25ef")},f947:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",{staticClass:"mo-tilte"},[a("el-page-header",{attrs:{content:e.teacherName},on:{back:e.onCancel}}),e._v(" "),a("div",[e.teacherInfos&&e.permission("/operateStudent")?a("el-button",{attrs:{type:"text"},on:{click:e.gotoOperating}},[e._v("运营指标:"),a("span",{staticStyle:{color:"red"}},[e._v(e._s(e.teacherInfos.operatingIndex)+"%")])]):e._e(),e._v(" "),e.teacherInfos&&e.permission("/serverIndexList")?a("el-button",{attrs:{type:"text"},on:{click:e.gotoAfterSchool}},[e._v("服务指标(每周):"),a("span",{staticStyle:{color:"red"}},[e._v(e._s(e.teacherInfos.serviceIndex)+"%")])]):e._e()],1)],1),e._v(" "),a("div",{staticClass:"m-core"},[a("tab-router",{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.permissionList.teacherInfo?a("el-tab-pane",{attrs:{label:"基本信息",lazy:"",name:"0"}},[0==e.activeName&&e.teacherInfos?a("teacherInfo",{attrs:{teacherInfo:e.teacherInfos}}):e._e()],1):e._e(),e._v(" "),e.permissionList.musicGroup?a("el-tab-pane",{attrs:{label:"乐团课",lazy:"",name:"1"}},[1==e.activeName?a("courseInfo"):e._e()],1):e._e(),e._v(" "),e.permissionList.VipCourse?a("el-tab-pane",{attrs:{label:"VIP课",lazy:"",name:"2"}},[2==e.activeName?a("courseInfo1"):e._e()],1):e._e(),e._v(" "),e.permissionList.teacherNetwork?a("el-tab-pane",{attrs:{label:"网管课",lazy:"",name:"8"}},[8==e.activeName?a("teacherNetwork"):e._e()],1):e._e(),e._v(" "),e.permissionList.outCourseList?a("el-tab-pane",{attrs:{label:"对外课",lazy:"",name:"3"}},[3==e.activeName?a("outCourseList"):e._e()],1):e._e(),e._v(" "),e.permissionList.teacherRecord?a("el-tab-pane",{attrs:{label:"课表详情",lazy:"",name:"4"}},[4==e.activeName?a("teacherRecord"):e._e()],1):e._e(),e._v(" "),e.permissionList.leaveRecord?a("el-tab-pane",{attrs:{label:"请假记录",lazy:"",name:"5"}},[5==e.activeName?a("leaveRecord"):e._e()],1):e._e(),e._v(" "),e.permissionList.settlement?a("el-tab-pane",{attrs:{label:"上课结算列表",lazy:"",name:"6"}},[6==e.activeName?a("settlement"):e._e()],1):e._e(),e._v(" "),e.permissionList.timerList?a("el-tab-pane",{attrs:{label:"时间记录",lazy:"",name:"7"}},[7==e.activeName?a("timerList"):e._e()],1):e._e(),e._v(" "),e.permissionList.serveStudentList?a("el-tab-pane",{attrs:{label:"学员",lazy:"",name:"9"}},[9==e.activeName?a("serveStudentList"):e._e()],1):e._e(),e._v(" "),e.permissionList.calendarList?a("el-tab-pane",{attrs:{label:"月历课表",lazy:"",name:"10"}},[10==e.activeName?a("calendarList"):e._e()],1):e._e(),e._v(" "),e.permissionList.weeklyCalendar?a("el-tab-pane",{attrs:{label:"周历课表",lazy:"",name:"11"}},[11==e.activeName?a("weeklyCalendar"):e._e()],1):e._e()],1)],1)])},r=[],s=(a("7f7f"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tr-cotainer"},[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"teacherDetail-record",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"课程编号/课程名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),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-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.courseDate,callback:function(t){e.$set(e.searchForm,"courseDate","string"===typeof t?t.trim():t)},expression:"searchForm.courseDate"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程类型"},model:{value:e.searchForm.courseScheduleType,callback:function(t){e.$set(e.searchForm,"courseScheduleType","string"===typeof t?t.trim():t)},expression:"searchForm.courseScheduleType"}},e._l(e.courseType,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"签到状态"},model:{value:e.searchForm.signInStatus,callback:function(t){e.$set(e.searchForm,"signInStatus","string"===typeof t?t.trim():t)},expression:"searchForm.signInStatus"}},[a("el-option",{attrs:{value:1,label:"正常签到"}}),e._v(" "),a("el-option",{attrs:{value:0,label:"异常签到"}}),e._v(" "),a("el-option",{attrs:{value:3,label:"未签到"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"签退状态"},model:{value:e.searchForm.signOutStatus,callback:function(t){e.$set(e.searchForm,"signOutStatus","string"===typeof t?t.trim():t)},expression:"searchForm.signOutStatus"}},[a("el-option",{attrs:{value:1,label:"正常签退"}}),e._v(" "),a("el-option",{attrs:{value:0,label:"异常签退"}}),e._v(" "),a("el-option",{attrs:{value:3,label:"未签退"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"search",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[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:"courseScheduleId",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.courseScheduleId)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.courseScheduleName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"上课日期",prop:"classDate",width:"150"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"上课时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.startClassTime+"-"+t.row.endClassTime)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("coursesType")(t.row.courseScheduleType)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"签到时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.signInTime)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"签到状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v("\n "+e._s(e._f("attendanceType")(t.row.signInStatus))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"签退时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.signOutTime)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"签退状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?a("div",[e._v("\n "+e._s(e._f("attendanceOutType")(t.row.signOutStatus))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"备注"}})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teacherDetail-record",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)])],1)}),n=[],i=a("5530"),o=a("15fd"),c=a("111c"),u=a("333d"),m=(a("4360"),a("92e3")),p=a("ed08"),d=a("e3eb"),f=a.n(d),h={name:"teacherRecord",components:{pagination:u["a"]},data:function(){return{courseType:m["u"],attendance:m["c"],searchForm:{courseStartDate:null,courseEndDate:null,search:null,courseScheduleType:null,signInStatus:null,signOutStatus:null,courseDate:[]},tableList:[],organId:null,teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm,a=t.courseDate,l=Object(o["a"])(t,["courseDate"]),r=Object(i["a"])(Object(i["a"])(Object(i["a"])({},l),Object(p["a"])(a,["courseStartDate","courseEndDate"])),{},{page:this.pageInfo.page,rows:this.pageInfo.limit,teacherId:this.teacherId});Object(c["a"])(f()(r)).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},searchCourseDate:function(e){e?(this.searchForm.courseStartDate=e[0],this.searchForm.courseEndDate=e[1]):(this.searchForm.courseStartDate=null,this.searchForm.courseEndDate=null)},onReSet:function(){this.courseDate=null,this.searchForm={courseStartDate:null,courseEndDate:null,search:null,courseScheduleType:null,signInStatus:null,signOutStatus:null},this.getList()}}},b=h,v=(a("6616"),a("2877")),g=Object(v["a"])(b,s,n,!1,null,null,null),_=g.exports,y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("save-form",{staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm,"save-key":"teacherDetail-leaveRecord"},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},"range-separator":"至","start-placeholder":"请假开始日期","end-placeholder":"请假结束日期"},on:{change:e.searchCourseDate},model:{value:e.searchForm.courseDate,callback:function(t){e.$set(e.searchForm,"courseDate","string"===typeof t?t.trim():t)},expression:"searchForm.courseDate"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],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:"createTime",label:"请假发起时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.createTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"请假时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.startTime))+" -\n "+e._s(e._f("dateForMinFormat")(t.row.endTime))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"请假说明"}})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teacherDetail-leaveRecord",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)},I=[],k=a("ade3"),L=a("8018"),S={name:"leaveRecord",components:{pagination:u["a"]},data:function(){var e;return e={attendance:m["c"],searchForm:{startTime:null,endTime:null,status:"PASS",courseDate:[]},tableList:[]},Object(k["a"])(e,"tableList",[]),Object(k["a"])(e,"organId",null),Object(k["a"])(e,"teacherId",this.$route.query.teacherId),Object(k["a"])(e,"pageInfo",{limit:10,page:1,total:1,page_size:[10,20,40,50]}),e},mounted:function(){this.teacherId=this.$route.query.teacherId,this.getList()},activated:function(){this.teacherId=this.$route.query.teacherId,this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm,a=t.courseDate,l=Object(o["a"])(t,["courseDate"]),r=Object(i["a"])(Object(i["a"])(Object(i["a"])({},l),Object(p["a"])(a,["startTime","endTime"])),{},{page:this.pageInfo.page,rows:this.pageInfo.limit,teacherId:this.teacherId});Object(L["u"])(r).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},searchCourseDate:function(e){e?(this.searchForm.startTime=e[0],this.searchForm.endTime=e[1]):(this.searchForm.startTime=null,this.searchForm.endTime=null)},onReSet:function(){this.courseDate=null,this.searchForm={startTime:null,endTime:null},this.getList()}}},T=S,w=Object(v["a"])(T,y,I,!1,null,null,null),F=w.exports,C=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"teacherInfo"},[l("div",{staticClass:"infoWrap"},[l("div",{staticClass:"left"},[l("h4",[e._v("基本信息")]),e._v(" "),l("el-form",{attrs:{model:e.topForm}},[l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"姓名","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.realName,callback:function(t){e.$set(e.topForm,"realName","string"===typeof t?t.trim():t)},expression:"topForm.realName"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"姓名(备注)","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.memo,callback:function(t){e.$set(e.topForm,"memo","string"===typeof t?t.trim():t)},expression:"topForm.memo"}})],1)],1)],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"老师编号","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.id,callback:function(t){e.$set(e.topForm,"id","string"===typeof t?t.trim():t)},expression:"topForm.id"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"性别","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.gender,callback:function(t){e.$set(e.topForm,"gender","string"===typeof t?t.trim():t)},expression:"topForm.gender"}})],1)],1)],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"出生日期","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.birthdate,callback:function(t){e.$set(e.topForm,"birthdate","string"===typeof t?t.trim():t)},expression:"topForm.birthdate"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"工作类别","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.jobNature,callback:function(t){e.$set(e.topForm,"jobNature","string"===typeof t?t.trim():t)},expression:"topForm.jobNature"}})],1)],1)],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"入职日期","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.entryDate,callback:function(t){e.$set(e.topForm,"entryDate","string"===typeof t?t.trim():t)},expression:"topForm.entryDate"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"教学点","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.teacherSchools,callback:function(t){e.$set(e.topForm,"teacherSchools","string"===typeof t?t.trim():t)},expression:"topForm.teacherSchools"}})],1)],1)],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"所属分部","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.organName,callback:function(t){e.$set(e.topForm,"organName","string"===typeof t?t.trim():t)},expression:"topForm.organName"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"流动范围","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.flowOrganRange,callback:function(t){e.$set(e.topForm,"flowOrganRange","string"===typeof t?t.trim():t)},expression:"topForm.flowOrganRange"}})],1)],1)],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"老师简介","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:"",type:"textarea"},model:{value:e.topForm.introduction,callback:function(t){e.$set(e.topForm,"introduction","string"===typeof t?t.trim():t)},expression:"topForm.introduction"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"开放陪练","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.isSupportExtraPracticeLesson,callback:function(t){e.isSupportExtraPracticeLesson="string"===typeof t?t.trim():t},expression:"isSupportExtraPracticeLesson"}})],1)],1)],1),e._v(" "),l("h4",[e._v("资料学历")]),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"手机号","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.phone,callback:function(t){e.$set(e.topForm,"phone","string"===typeof t?t.trim():t)},expression:"topForm.phone"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"毕业学校","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.graduateSchool,callback:function(t){e.$set(e.topForm,"graduateSchool","string"===typeof t?t.trim():t)},expression:"topForm.graduateSchool"}})],1)],1)],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"电子邮箱","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.email,callback:function(t){e.$set(e.topForm,"email","string"===typeof t?t.trim():t)},expression:"topForm.email"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"最高学历","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.educationBackground,callback:function(t){e.$set(e.topForm,"educationBackground","string"===typeof t?t.trim():t)},expression:"topForm.educationBackground"}})],1)],1)],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"专业技能","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.subjectName,callback:function(t){e.$set(e.topForm,"subjectName","string"===typeof t?t.trim():t)},expression:"topForm.subjectName"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"职称","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.technicalTitles,callback:function(t){e.$set(e.topForm,"technicalTitles","string"===typeof t?t.trim():t)},expression:"topForm.technicalTitles"}})],1)],1)],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"证件类型","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.certificateType,callback:function(t){e.$set(e.topForm,"certificateType","string"===typeof t?t.trim():t)},expression:"topForm.certificateType"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"证件号码","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.certificateNum,callback:function(t){e.$set(e.topForm,"certificateNum","string"===typeof t?t.trim():t)},expression:"topForm.certificateNum"}})],1)],1)],1),e._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"转正日期","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.formalStaffDate,callback:function(t){e.$set(e.topForm,"formalStaffDate","string"===typeof t?t.trim():t)},expression:"topForm.formalStaffDate"}})],1)],1),e._v(" "),l("el-col",{attrs:{span:12}},[l("el-form-item",{attrs:{label:"离职日期","label-width":e.formLabelWidth}},[l("el-input",{attrs:{disabled:""},model:{value:e.topForm.demissionDate,callback:function(t){e.$set(e.topForm,"demissionDate","string"===typeof t?t.trim():t)},expression:"topForm.demissionDate"}})],1)],1)],1)],1)],1),e._v(" "),l("div",{staticClass:"right"},[l("div",{staticClass:"teacherIcon"},[e.topForm.avatar?l("img",{attrs:{src:e.topForm.avatar,alt:""}}):l("img",{attrs:{src:a("7c28"),alt:""}})])])])])},E=[],O=(a("28a5"),a("ac6a"),a("53ca")),D=a("5a0c"),N=a.n(D),$={name:"teacherInfo",props:["teacherInfo"],data:function(){return{formLabelWidth:"80px",teacherId:this.$route.query.teacherId,topForm:{}}},mounted:function(){this.teacherId=this.$route.query.teacherId,this.teacherGet()},methods:{teacherGet:function(){var e=this.teacherInfo;e.subjectName=this.joinArray(e.subjectName);var t=[];e.teacherSchools&&"object"==Object(O["a"])(e.teacherSchools)&&e.teacherSchools.length>0?e.teacherSchools.forEach((function(e){t.push(e.name)})):t.push(e.teacherSchools),e.teacherSchools=this.joinArray(t,","),e.entryDate=this.formatTimer(e.entryDate),e.jobNature=this.jobNature(e.jobNature),e.birthdate=this.formatTimer(e.birthdate),"男"!=e.gender&&"女"!=e.gender&&(e.gender=e.gender?"男":"女"),this.topForm=this.teacherInfo,this.topForm.demissionDate&&(this.topForm.demissionDate=N()(this.topForm.demissionDate).format("YYYY-MM-DD")),this.topForm.formalStaffDate&&(this.topForm.formalStaffDate=N()(this.topForm.formalStaffDate).format("YYYY-MM-DD"))},joinArray:function(e,t){return t||(t=" "),"object"==Object(O["a"])(e)&&null!=e?e.join(t):e},formatTimer:function(e){return e?e.split(" ")[0]:e},jobNature:function(e){var t={PART_TIME:"兼职",FULL_TIME:"全职",LABOUR:"劳务"};return t[e]}},computed:{isSupportExtraPracticeLesson:function(){var e="";return e=this.topForm.isSupportExtraPracticeLesson?"是":"否",e}}},x=$,R=(a("3e2f"),Object(v["a"])(x,C,E,!1,null,"765634b8",null)),j=R.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"courseInfo"},[a("save-form",{attrs:{model:e.searchList,inline:!0,"save-key":"teacherDetail-courseInfo"},on:{submit:e.search}},[a("el-form-item",{attrs:{label:"乐团状态"}},[a("el-select",{attrs:{clearable:""},model:{value:e.searchList.status,callback:function(t){e.$set(e.searchList,"status","string"===typeof t?t.trim():t)},expression:"searchList.status"}},e._l(e.musicGroupStatus,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1),e._v(" "),a("el-form-item",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/classGroupTeacherAdjust/batch",expression:"'courseSchedule/classGroupTeacherAdjust/batch'"}],attrs:{type:"primary"},on:{click:e.resetCourses}},[e._v("课程移交")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.selectable,width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"乐团编号",align:"center",prop:"musicGroupId"}}),e._v(" "),a("el-table-column",{attrs:{label:"乐团名称",align:"center",prop:"musicGroupName"}}),e._v(" "),a("el-table-column",{attrs:{label:"老师类型",align:"center",prop:"jobType"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("jobNature")(t.row.jobNature))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"乐团职位",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("workType")(t.row.teacherRole))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"执教班级",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("joinArray")(t.row.classGroupNames))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"乐团状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("musicGroupType")(t.row.status))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"出勤次数",align:"center",prop:"attendanceNum"}}),e._v(" "),a("el-table-column",{attrs:{label:"是否可调整",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["PROGRESS"==t.row.status?a("p",[e._v("\n "+e._s(t.row.hasRestClass>0?"是":"否")+"\n ")]):a("p",[e._v("否")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[t.row.hasRestClass>0&&"PROGRESS"==t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/classGroupTeacherAdjust",expression:"'courseSchedule/classGroupTeacherAdjust'"}],attrs:{type:"text"},on:{click:function(a){return e.resetCourse(t.row)}}},[e._v("课程移交")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teacherDetail-courseInfo",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课程移交",visible:e.maskVisible,width:"400px"},on:{"update:visible":function(t){e.maskVisible=t}}},[a("el-form",{ref:"maskForm",attrs:{model:e.maskForm}},[a("el-form-item",{attrs:{label:"选择老师",prop:"targetTeacherId",rules:[{required:!0,message:"请选择老师",trigger:"blur"}]}},[a("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.maskForm.targetTeacherId,callback:function(t){e.$set(e.maskForm,"targetTeacherId",t)},expression:"maskForm.targetTeacherId"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.maskVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitReset}},[e._v("确定")])],1)],1)],1)},M=[],G=a("1cc7"),W={name:"courseInfo",components:{pagination:u["a"]},data:function(){return{tableList:[],teacherId:this.$route.query.teacherId,organId:null,searchList:{status:""},musicGroupStatus:m["G"],teacherList:[],pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]},activeRow:null,maskVisible:!1,maskForm:{targetTeacherId:null,memo:null},isMultiple:!1,chioseList:[]}},activated:function(){this.teacherId=this.$route.query.teacherId,this.getList(),this.musicGroupStatus=m["G"]},mounted:function(){this.teacherId=this.$route.query.teacherId,this.getList(),this.musicGroupStatus=m["G"]},methods:{selectable:function(e,t){return e.hasRestClass>0&&"PROGRESS"==e.status},handleSelectionChange:function(e){this.chioseList=e},search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=this;Object(L["h"])({rows:this.pageInfo.limit,page:this.pageInfo.page,search:this.teacherId,status:this.searchList.status||null}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},resetCourse:function(e){this.activeRow=e,this.isMultiple=!1,this.maskVisible=!0},resetCourses:function(){this.chioseList.length<=0?this.$message.error("请至少选择一个乐团"):(this.isMultiple=!0,this.maskVisible=!0)},submitReset:function(){var e=this;this.$refs["maskForm"].validate((function(t){if(t){var a={};e.isMultiple?a.classGroupIds=e.chioseList.map((function(e){return e.classGroupIds})).join(","):a.classGroupIds=e.activeRow.classGroupIds,a.targetTeacherId=e.maskForm.targetTeacherId,a.teacherId=e.teacherId,Object(L["c"])(a).then((function(t){200==t.code&&(e.maskVisible=!1,e.$message.success("修改成功"),e.getList()),206==t.code&&e.$confirm("当前课程课酬预计为0,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.allowZeroSalary=!0,Object(L["c"])(a).then((function(t){200==t.code&&(e.maskVisible=!1,e.$message.success("修改成功"),e.getList())}))})).catch((function(){}))}))}}))}},watch:{maskVisible:function(e){e||(this.maskForm.targetTeacherId=null,this.maskForm.memo=null)}}},P=W,V=(a("9485"),Object(v["a"])(P,A,M,!1,null,null,null)),U=V.exports,z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"courseInfo"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchList,"save-key":"teacherDetail-courseInfo1"},on:{submit:e.search}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"vip编号/名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchList.search,callback:function(t){e.$set(e.searchList,"search","string"===typeof t?t.trim():t)},expression:"searchList.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",placeholder:"请选择课程状态"},model:{value:e.searchList.status,callback:function(t){e.$set(e.searchList,"status","string"===typeof t?t.trim():t)},expression:"searchList.status"}},e._l(e.vipGroupStatus,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.text}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"search"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.teamList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"VIP编号",prop:"id"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.id)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"VIP课名称",prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"VIP课状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"班级人数",prop:"studentNum"}}),e._v(" "),a("el-table-column",{attrs:{label:"课程单价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 线上:"+e._s(t.row.onlineClassesUnitPrice)+" "),a("br"),e._v("\n 线下:"+e._s(t.row.offlineClassesUnitPrice)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活动方案",prop:"vipGroupActivityName"}}),e._v(" "),a("el-table-column",{attrs:{label:"当前课次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",[e._v("\n "+e._s(t.row.currentClassTimes+"/"+t.row.totalClassTimes)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"月均消耗"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.monthConsumeRate)+"%\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"开课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatterTime")(t.row.courseStartDate))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"截止时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimer")(t.row.coursesExpireDate))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申请时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatterTime")(t.row.createTime))+"\n ")]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teacherDetail-courseInfo1",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)},q=[],H=(a("386d"),a("7e78")),Y={name:"courseInfo1",components:{pagination:u["a"]},data:function(){return{searchList:{status:"",search:""},teamList:[],organId:null,vipGroupStatus:null,teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},activated:function(){this.teacherId=this.$route.query.teacherId,this.vipGroupStatus=m["U"],this.getList()},mounted:function(){this.teacherId=this.$route.query.teacherId,this.vipGroupStatus=m["U"],this.getList()},methods:{getList:function(){var e=this;Object(H["L"])({rows:this.pageInfo.limit,page:this.pageInfo.page,teacherId:this.teacherId,status:this.searchList.status||null,search:this.searchList.search||null}).then((function(t){200==t.code&&(e.teamList=t.data.rows,e.pageInfo.total=t.data.total)}))},search:function(){this.pageInfo.page=1,this.getList()}},filters:{formatterTime:function(e){var t;return t=e?e.split(" ")[0]:"",t},formatterStatus:function(e){var t=["未开始","报名中","进行中","取消","已结束","报名结束","暂停"];return t[e]}}},B=Y,X=(a("c5b1"),Object(v["a"])(B,z,q,!1,null,null,null)),K=X.exports,J=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"courseInfo"},[a("div",{staticClass:"tableWrap tableMargin"},[a("el-table",{attrs:{data:e.teamList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"星期",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatWeek")(t.row.classDate))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"试听安排",prop:"startTimes"}}),e._v(" "),a("el-table-column",{attrs:{label:"试听专业",prop:"subjectNames"}})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teacherDetail-courseInfo2",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)])},Q=[],Z=(a("a481"),{name:"courseInfo2",components:{pagination:u["a"]},data:function(){return{teamList:[],organId:null,teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},mounted:function(){this.teacherId=this.$route.query.teacherId,this.getList()},activated:function(){this.teacherId=this.$route.query.teacherId,this.getList()},methods:{getList:function(){var e=this;Object(L["e"])({rows:this.pageInfo.limit,page:this.pageInfo.page,teacherId:this.teacherId}).then((function(t){if(200==t.code){var a=t.data.rows;a.forEach((function(e){e.startTimes&&(e.startTimes=e.startTimes.replace(/\s+/g,"-"))})),e.teamList=a,e.pageInfo.total=t.data.total}}))}}}),ee=Z,te=(a("e257"),Object(v["a"])(ee,J,Q,!1,null,null,null)),ae=te.exports,le=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"headWrap"},[a("div",{staticClass:"left"},[a("div",{staticClass:"headItem"},[a("p",[e._v("\n 未结算总额:"),a("span",[e._v(e._s(e._f("moneyFormat")(e.teacherNoPay)))])])])])]),e._v(" "),a("save-form",{attrs:{inline:!0,model:e.searchForm,"save-key":"teacherDetail-settlement"},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.courseDate,callback:function(t){e.$set(e.searchForm,"courseDate","string"===typeof t?t.trim():t)},expression:"searchForm.courseDate"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"课程类型"},model:{value:e.searchForm.courseScheduleType,callback:function(t){e.$set(e.searchForm,"courseScheduleType","string"===typeof t?t.trim():t)},expression:"searchForm.courseScheduleType"}},e._l(e.courseType,(function(e,t){return a("el-option",{key:t,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.signInStatus,callback:function(t){e.$set(e.searchForm,"signInStatus","string"===typeof t?t.trim():t)},expression:"searchForm.signInStatus"}},e._l(e.attendance,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],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:{label:"上课时间",align:"center",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.classDate+" "+t.row.classTime.substring(0,5))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"班级名称",prop:"className"}}),e._v(" "),a("el-table-column",{attrs:{label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("coursesType")(t.row.courseScheduleType))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"上课类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("workType")(t.row.teacherRole))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"签到"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("attendanceType")(t.row.signInStatus))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"签退"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("attendanceOutType")(t.row.signOutStatus))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"预计发放",prop:"expectSalary"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectSalary))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"实际发放",prop:"actualSalary"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.actualSalary))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课时补贴",prop:"subsidy"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.subsidy))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"结算状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.settlementTime?"已结算":"未结算")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.settlementTime?void 0:[a("auth",{attrs:{auths:"courseSchedule/updateTeacherCoursesSalary/settlement"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onUpdate(t.row)}}},[e._v("课酬调剂")])],1)]}}],null,!0)})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teacherDetail-settlement",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),e.settlementStatus?a("el-dialog",{attrs:{title:"课酬调剂",visible:e.settlementStatus,width:"500px"},on:{"update:visible":function(t){e.settlementStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules,inline:!0},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:"课程课酬","label-width":e.formLabelWidth}},[a("div",[e._v(e._s(e._f("moneyFormat")(e.form.expectSalary)))])]),e._v(" "),a("el-form-item",{attrs:{label:"课程补贴"}},[a("span",[e._v(e._s(e._f("moneyFormat")(e.activeRow.subsidy)))])]),e._v(" "),a("el-form-item",{attrs:{label:"总课酬"}},[a("span",[e._v(e._s(e._f("moneyFormat")(e.form.expectSalary+e.activeRow.subsidy)))])]),e._v(" "),a("br"),e._v(" "),a("el-form-item",{attrs:{label:"调整范围",prop:"scope","label-width":e.formLabelWidth}},[a("el-radio-group",{model:{value:e.form.scope,callback:function(t){e.$set(e.form,"scope","string"===typeof t?t.trim():t)},expression:"form.scope"}},[a("el-radio",{attrs:{label:"all"}},[e._v("之后剩余课次")]),e._v(" "),a("el-radio",{attrs:{label:"one"}},[e._v("仅限本次")])],1)],1),e._v(" "),a("br"),e._v(" "),a("el-form-item",{attrs:{label:"课酬调剂",prop:"subsidy","label-width":e.formLabelWidth}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"180px"},attrs:{autocomplete:"off",controls:!1,min:e.activeRow&&e.activeRow.expectSalary?0-e.activeRow.expectSalary:0},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.subsidy,callback:function(t){e.$set(e.form,"subsidy",e._n(t))},expression:"form.subsidy"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.settlementStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onSettlementSubmit("ruleForm")}}},[e._v("确 定")])],1)],1):e._e()],1)},re=[],se={name:"settlement",components:{pagination:u["a"]},data:function(){return{teacherNoPay:0,searchForm:{courseStartDate:null,courseEndDate:null,courseScheduleType:null,signInStatus:null,courseDate:[]},courseType:m["u"],attendance:m["c"],organId:null,teacherId:this.$route.query.teacherId,tableList:[],pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]},formLabelWidth:"120px",settlementStatus:!1,form:{courseScheduleId:null,salary:null,subsidy:null,scope:"one",expectSalary:null,subsidys:null},activeRow:null,rules:{salary:[{required:!0,message:"请输入课酬",trigger:"blur"}],subsidy:[{required:!0,message:"请输入课时补贴",trigger:"blur"}],scope:[{required:!0,message:"请选择调整范围",trigger:"change"}]}}},activated:function(){var e=this;this.teacherId=this.$route.query.teacherId,this.getList(),Object(L["n"])({teacherId:this.teacherId}).then((function(t){200==t.code&&(e.teacherNoPay=t.data)}))},mounted:function(){var e=this;this.teacherId=this.$route.query.teacherId,this.getList(),Object(L["n"])({teacherId:this.teacherId}).then((function(t){200==t.code&&(e.teacherNoPay=t.data)}))},methods:{search:function(){this.pageInfo.page=1,this.getList()},onSettlementSubmit:function(e){var t=this;this.$refs[e].validate((function(e){e&&(t.form.teacherId=t.teacherId,Object(L["B"])(t.form).then((function(e){t.messageTips("修改",e)})))}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.settlementStatus=!1,this.getList(),this.form={courseScheduleId:null,salary:null,subsidy:null,scope:"one",expectSalary:null,subsidys:null}):this.$message.error(t.msg)},getList:function(){var e=this,t=this.searchForm,a=t.courseDate,l=Object(o["a"])(t,["courseDate"]),r=Object(i["a"])(Object(i["a"])(Object(i["a"])({},l),Object(p["a"])(a,["courseStartDate","courseEndDate"])),{},{page:this.pageInfo.page,rows:this.pageInfo.limit,teacherId:this.teacherId});Object(L["v"])(r).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},searchCourseDate:function(e){e?(this.searchForm.courseStartDate=e[0],this.searchForm.courseEndDate=e[1]):(this.searchForm.courseStartDate=null,this.searchForm.courseEndDate=null)},onFormClose:function(e){this.$refs[e].resetFields()},onUpdate:function(e){this.activeRow=Object(i["a"])({},e),this.form.courseScheduleId=e.courseScheduleId,this.settlementStatus=!0,this.form.expectSalary=e.expectSalary,this.form.subsidy=e.subsidy},onReSet:function(){this.courseDate=null,this.searchForm={courseStartDate:null,courseEndDate:null,courseScheduleType:null,signInStatus:null},this.getList()}}},ne=se,ie=(a("163e"),Object(v["a"])(ne,le,re,!1,null,"49f98224",null)),oe=ie.exports,ce=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("div",{staticClass:"wrap"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"sysTenantAccount/addMinutes",expression:"'sysTenantAccount/addMinutes'"}],staticClass:"newBand",staticStyle:{"margin-right":"20px"},on:{click:e.addTimer}},[e._v("系统充值")]),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"sysTenantAccount/subtractMinutes",expression:"'sysTenantAccount/subtractMinutes'"}],staticClass:"newBand",on:{click:e.subTimer}},[e._v("系统扣除")])]),e._v(" "),a("save-form",{staticClass:"searchForm",attrs:{inline:!0,"save-key":"teacherDetail-timerList",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-select",{attrs:{clearable:"",placeholder:"操作类型"},model:{value:e.searchForm.transType,callback:function(t){e.$set(e.searchForm,"transType",t)},expression:"searchForm.transType"}},e._l(e.teacherTimeStatus,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"操作开始日期","end-placeholder":"操作结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.courseDate,callback:function(t){e.$set(e.searchForm,"courseDate","string"===typeof t?t.trim():t)},expression:"searchForm.courseDate"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticStyle:{"font-size":"14px",color:"#F85043","padding-bottom":"10px"}},[e._v("可用时间:"+e._s(e.totalTransMinutes)+"分钟 ")]),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:"updateTime",label:"操作时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("dateForMinFormat")(t.row.updateTime)))])]}}])}),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("transTypeFilter")(t.row.transType)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"operatorId",label:"操作人"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.operatorId?t.row.operatorId:t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"transMinutes",label:"时间变动/分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.transMinutes+"分钟"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"totalAvailableMinutes",label:"剩余时间/分钟"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.totalAvailableMinutes+"分钟"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注"}})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teacherDetail-timerList",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:e.maskTitle,width:"440px",visible:e.timerVisible},on:{"update:visible":function(t){e.timerVisible=t}}},[a("el-form",{ref:"timerForm",attrs:{model:e.timerForm}},[a("el-form-item",{attrs:{label:e.isAdd?"本次充值":"本次扣除",prop:"minutes",rules:[{required:!0,message:"请输入时间"}]}},[a("el-row",[a("el-col",{attrs:{span:28}},[a("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()},keyup:function(t){return e.handleInput(t)}},model:{value:e.timerForm.minutes,callback:function(t){e.$set(e.timerForm,"minutes","string"===typeof t?t.trim():t)},expression:"timerForm.minutes"}},[a("template",{slot:"append"},[e._v("分钟")])],2)],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"操作备注",prop:"memo",rules:[{required:!0,message:"请输入备注"}]}},[a("el-row",[a("el-col",{attrs:{span:28}},[a("el-input",{attrs:{type:"textarea",rows:3},model:{value:e.timerForm.memo,callback:function(t){e.$set(e.timerForm,"memo","string"===typeof t?t.trim():t)},expression:"timerForm.memo"}})],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.timerVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addTimerSub(e.isAdd)}}},[e._v("确 定")])],1)],1)],1)},ue=[],me={components:{pagination:u["a"]},data:function(){return{teacherId:null,teacherTimeStatus:m["T"],searchForm:{courseDate:[],transType:null},maskTitle:"",isAdd:!1,totalTransMinutes:0,tableList:[],timerVisible:!1,timerForm:{minutes:null,memo:null},pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){this.teacherId=this.$route.query.teacherId,this.getList()},search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.searchForm={courseDate:[],transType:null},this.search()},getTime:function(){var e=this;Object(L["k"])({teacherId:this.teacherId}).then((function(t){200==t.code&&t.data&&(e.totalTransMinutes=t.data.availableMinutes)}))},getList:function(){var e=this,t={};this.searchForm.courseDate&&this.searchForm.courseDate.length>0&&(t.startTime=this.searchForm.courseDate[0]+" 00:00:00",t.endTime=this.searchForm.courseDate[1]+" 23:59:59"),this.searchForm.transType&&(t.transType=this.searchForm.transType),t.userId=this.teacherId,t.page=this.pageInfo.page,t.rows=this.pageInfo.limit,Object(L["l"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)})),this.getTime()},addTimer:function(){this.isAdd=!0,this.maskTitle="充值时间",this.timerVisible=!0},subTimer:function(){this.isAdd=!1,this.maskTitle="扣除时间",this.timerVisible=!0},addTimerSub:function(e){var t=this;this.$refs["timerForm"].validate((function(a){if(a){var l={teacherId:t.teacherId,minutes:t.timerForm.minutes,memo:t.timerForm.memo};e?Object(L["o"])(l).then((function(e){200==e.code&&(t.$message.success("添加成功"),t.timerVisible=!1,t.getList())})):Object(L["p"])(l).then((function(e){200==e.code&&(t.$message.success("扣除成功"),t.timerVisible=!1,t.getList())}))}}))},handleInput:function(){this.timerForm.minutes=this.timerForm.minutes.replace(/[^\.\d]/g,""),this.timerForm.minutes=this.timerForm.minutes.replace(".","")}},watch:{timerVisible:function(e){e||(this.timerForm={minutes:null,memo:null},this.$refs["timerForm"].resetFields())}}},pe=me,de=(a("8902"),Object(v["a"])(pe,ce,ue,!1,null,"6de28838",null)),fe=de.exports,he=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"courseInfo"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchList,"save-key":"teacherDetail-outCourseList"},on:{submit:e.search}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"课程组名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchList.search,callback:function(t){e.$set(e.searchList,"search","string"===typeof t?t.trim():t)},expression:"searchList.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",placeholder:"请选择课程状态"},model:{value:e.searchList.status,callback:function(t){e.$set(e.searchList,"status","string"===typeof t?t.trim():t)},expression:"searchList.status"}},e._l(e.commGroupStatus,(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-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.teamList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"编号",prop:"id",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.id)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程组名称",prop:"name",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程组状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("courseGroup")(t.row.status)))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"班级人数",prop:"studentNum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"课程组时间",prop:"groupClassesTotalDuration",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"消耗时间",prop:"groupClassesConsumeDuration",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"当前课次",align:"center",prop:"currentClassTimes"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.currentClassTimes)+"/"+e._s(t.row.totalClassTimes)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"开课时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatterTime")(t.row.firstClassesStartTime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"结束时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatTimer")(t.row.lastClassesEndTime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"申请时间",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatterTime")(t.row.createTime)))]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teacherDetail-outCourseList",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)},be=[],ve={name:"courseInfo1",components:{pagination:u["a"]},data:function(){return{searchList:{status:"",search:""},teamList:[],organId:null,commGroupStatus:m["o"],teacherId:this.$route.query.teacherId,pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},activated:function(){this.getList()},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.teacherId=this.$route.query.teacherId,Object(L["d"])({rows:this.pageInfo.limit,page:this.pageInfo.page,teacherId:this.teacherId,groupStatus:this.searchList.status||null,search:this.searchList.search||null}).then((function(t){200==t.code&&(e.teamList=t.data.rows,e.pageInfo.total=t.data.total)}))},search:function(){this.pageInfo.page=1,this.getList()}},filters:{formatterTime:function(e){var t;return t=e?e.split(" ")[0]:"",t},formatterStatus:function(e){var t=["未开始","报名中","进行中","取消","已结束","报名结束","暂停"];return t[e]}}},ge=ve,_e=(a("0cde1"),Object(v["a"])(ge,he,be,!1,null,"166e07a0",null)),ye=_e.exports,Ie=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/batchPracticeGroupTeacherAdjust/batch",expression:"'courseSchedule/batchPracticeGroupTeacherAdjust/batch'"}],staticClass:"newBand",on:{click:e.resetCourses}},[e._v("课程移交")]),e._v(" "),a("div",{staticClass:"m-core"},[a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.selectable,width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"课程组编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"课程组名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"type",label:"课程组类型",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("comType")(t.row.type)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"groupStatus",label:"课程组状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("comCourseGroup")(t.row.groupStatus)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"开始时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("div",[e._v(e._s(e._f("dateForMinFormat")(t.row.coursesStartDate)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"结束时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("div",[e._v(e._s(e._f("dateForMinFormat")(t.row.coursesExpireDate)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否可调整",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.totalClassTimes-t.row.currentClassTimes>0?"是":"否")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[t.row.totalClassTimes-t.row.currentClassTimes>0?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/batchPracticeGroupTeacherAdjust/single",expression:"'courseSchedule/batchPracticeGroupTeacherAdjust/single'"}],attrs:{type:"text"},on:{click:function(a){return e.resetCourse(t.row)}}},[e._v("课程移交")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},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)]),e._v(" "),a("el-dialog",{attrs:{title:"课程移交",visible:e.maskVisible,width:"400px"},on:{"update:visible":function(t){e.maskVisible=t}}},[a("el-form",{ref:"maskForm",attrs:{model:e.maskForm}},[a("el-form-item",{attrs:{label:"选择老师",prop:"teacherId",rules:[{required:!0,message:"请选择老师",trigger:"blur"}]}},[a("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.maskForm.teacherId,callback:function(t){e.$set(e.maskForm,"teacherId",t)},expression:"maskForm.teacherId"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.maskVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitReset}},[e._v("确定")])],1)],1)],1)},ke=[],Le=(a("3908"),{components:{pagination:u["a"]},data:function(){return{searchForm:{search:null},teacherId:null,tableList:[],isMultiple:!1,maskVisible:!1,teacherList:[],chioseList:[],maskForm:{teacherId:null,memo:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){var e=this;Object(G["Pb"])({}).then((function(t){200==t.code&&(e.teacherList=t.data)})),this.init()},activated:function(){this.init()},methods:{selectable:function(e,t){return e.totalClassTimes-e.currentClassTimes>0},init:function(){this.teacherId=this.$route.query.teacherId,this.getList()},getList:function(){var e=this;Object(G["kc"])({teacherId:this.teacherId,page:this.rules.page,rows:this.rules.limit}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},resetCourse:function(e){this.activeRow=e,this.isMultiple=!1,this.maskVisible=!0},resetCourses:function(){this.chioseList.length<=0?this.$message.error("请至少选择一个乐团"):(this.isMultiple=!0,this.maskVisible=!0)},handleSelectionChange:function(e){this.chioseList=e},submitReset:function(){var e=this;this.$refs["maskForm"].validate((function(t){if(t){var a={};e.isMultiple?a.practiceGroupId=e.chioseList.map((function(e){return e.id})).join(","):a.practiceGroupId=e.activeRow.id,a.teacherId=e.maskForm.teacherId,a.oldTeacherId=e.teacherId,Object(G["k"])(a).then((function(t){200==t.code&&(e.maskVisible=!1,e.$message.success("修改成功"),e.getList())}))}}))}},watch:{maskVisible:function(e){e||(this.maskForm.teacherId=null,this.maskForm.memo=null)}}}),Se=Le,Te=Object(v["a"])(Se,Ie,ke,!1,null,"43b82372",null),we=Te.exports,Fe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"courseInfo"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"studentManage/batchUpdateAdviser/batch",expression:"'studentManage/batchUpdateAdviser/batch'"}],staticClass:"newBand",on:{click:e.resetCourses}},[e._v("学员移交")]),e._v(" "),a("div",{staticClass:"tableWrap tableMargin"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"学员编号",width:"150",prop:"userId"}}),e._v(" "),a("el-table-column",{attrs:{label:"学员名字",width:"150",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"right",prop:"subjectNames"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentManage/batchUpdateAdviser",expression:"'studentManage/batchUpdateAdviser'"}],attrs:{type:"text"},on:{click:function(a){return e.resetCourse(t.row)}}},[e._v("学员移交")])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"40",align:"right"}})],1),e._v(" "),a("pagination",{attrs:{"save-key":"teacherDetail-serveStudentList",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"学员移交",visible:e.maskVisible,width:"400px"},on:{"update:visible":function(t){e.maskVisible=t}}},[a("el-form",{ref:"maskForm",attrs:{model:e.maskForm}},[a("el-form-item",{attrs:{label:"选择老师",prop:"teacherId",rules:[{required:!0,message:"请选择老师",trigger:"blur"}]}},[a("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.maskForm.teacherId,callback:function(t){e.$set(e.maskForm,"teacherId",t)},expression:"maskForm.teacherId"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.maskVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitReset}},[e._v("确定")])],1)],1)],1)},Ce=[],Ee={name:"courseInfo2",components:{pagination:u["a"]},data:function(){return{tableList:[],organId:null,teacherId:this.$route.query.teacherId,isMultiple:!1,maskVisible:!1,teacherList:[],chioseList:[],maskForm:{educationalTeacherId:null,memo:null},pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]}}},mounted:function(){var e=this;this.teacherId=this.$route.query.teacherId,Object(G["Pb"])({}).then((function(t){200==t.code&&(e.teacherList=t.data)})),this.getList()},activated:function(){this.getList()},methods:{getList:function(){var e=this;Object(L["j"])({search:this.teacherId,page:this.pageInfo.page,rows:this.pageInfo.limit}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},resetCourse:function(e){this.activeRow=e,this.isMultiple=!1,this.maskVisible=!0},resetCourses:function(){this.chioseList.length<=0?this.$message.error("请至少选择一个学员"):(this.isMultiple=!0,this.maskVisible=!0)},handleSelectionChange:function(e){this.chioseList=e},submitReset:function(){var e=this;this.$refs["maskForm"].validate((function(t){if(t){var a={};e.isMultiple?a.studentIds=e.chioseList.map((function(e){return e.userId})).join(","):a.studentIds=e.activeRow.userId,a.teacherId=e.maskForm.teacherId,Object(L["b"])(a).then((function(t){200==t.code&&(e.maskVisible=!1,e.$message.success("修改成功"),e.getList())}))}}))}},watch:{maskVisible:function(e){e||(this.maskForm.teacherId=null)}}},Oe=Ee,De=(a("ae24"),Object(v["a"])(Oe,Fe,Ce,!1,null,null,null)),Ne=De.exports,$e=a("ef40"),xe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("el-date-picker",{attrs:{type:"week",format:"yyyy-MM 第 WW 周",placeholder:"选择周","picker-options":{firstDayOfWeek:1}},on:{change:e.changeWeek},model:{value:e.week,callback:function(t){e.week=t},expression:"week"}}),e._v(" "),a("div",{staticClass:"timeWrap"},[a("div",{staticClass:"weekDotList"},e._l(e.weekList,(function(t,l){return a("div",{key:l,staticClass:"weekDot",class:l==e.active?"active":"",on:{click:function(a){return e.setWeekDotList(t,l)}}},[a("p",{staticClass:"week"},[e._v(e._s(t.week))]),e._v(" "),a("p",{staticClass:"date"},[e._v(e._s(t.dateStr))])])})),0),e._v(" "),a("div",{staticClass:"timer"},[a("div",{directives:[{name:"drag",rawName:"v-drag"}],staticClass:"imgWrap"},[a("img",{attrs:{src:e.timerImg}}),e._v(" "),e._l(e.newList,(function(t,l){return a("div",{key:l+"new"},[a("el-popover",{attrs:{placement:"top",trigger:"hover"}},[a("p",[e._v("课程名称:"+e._s(t.name))]),e._v(" "),a("p",[e._v("上课时间:"+e._s(t.startClassTime.split(" ")[1].substring(0,5)+"~"+t.endClassTime.split(" ")[1].substring(0,5)))]),e._v(" "),a("div",{staticClass:"newDot dot",style:t.style,attrs:{slot:"reference"},slot:"reference"},[e._v("网")])])],1)})),e._v(" "),e._l(e.vipList,(function(t,l){return a("div",{key:l+"vip"},[a("el-popover",{attrs:{placement:"top",trigger:"hover"}},[a("p",[e._v("课程名称:"+e._s(t.name))]),e._v(" "),a("p",[e._v("上课时间:"+e._s(t.startClassTime.split(" ")[1].substring(0,5)+"~"+t.endClassTime.split(" ")[1].substring(0,5)))]),e._v(" "),a("div",{staticClass:"vipDot dot",style:t.style,attrs:{slot:"reference"},slot:"reference"},[e._v("vip")])])],1)})),e._v(" "),e._l(e.teamList,(function(t,l){return a("div",{key:l+"team"},[a("el-popover",{attrs:{placement:"top",trigger:"hover"}},[a("p",[e._v("课程名称:"+e._s(t.name))]),e._v(" "),a("p",[e._v("上课时间:"+e._s(t.startClassTime.split(" ")[1].substring(0,5)+"~"+t.endClassTime.split(" ")[1].substring(0,5)))]),e._v(" "),a("div",{staticClass:"teamDot dot",style:t.style,attrs:{slot:"reference"},slot:"reference"},[e._v("乐")])])],1)}))],2)])]),e._v(" "),a("resetList",{attrs:{startTimes:e.tableTime},on:{getCalendatList:e.getCalendatList}})],1)},Re=[],je=a("c466"),Ae=a("5120d"),Me={components:{resetList:Ae["a"]},data:function(){return{timerImg:a("6255"),active:-1,week:new Date,weekList:[],startTime:"",endTime:"",vipList:[],teamList:[],newList:[],weekDay:["周一","周二","周三","周四","周五","周六","周日"],tableTime:""}},mounted:function(){this.getCalendatList(),this.setWeekList()},methods:{setStartTimeAndEndTime:function(e){console.log(Object(je["n"])(e)),this.startTime=Object(je["h"])(Object(je["n"])(e)),-1===this.active&&(this.active=0,this.tableTime=this.startTime),this.endTime=Object(je["i"])(Object(je["n"])(e))},getCalendatList:function(){var e=this;this.teacherIdList=this.$route.query.teacherId,this.setStartTimeAndEndTime(this.week),Object(G["Pc"])({teacherIdList:this.teacherIdList,rows:9999,page:1,startTime:this.startTime,endTime:this.endTime}).then((function(t){if(200===t.code)for(var a in e.dataList=t.data.rows,e.vipList=[],e.teamList=[],e.newList=[],e.dataList)e.setCourseTime(e.dataList[a]),"VIP"===e.dataList[a].groupType&&e.vipList.push(e.dataList[a]),"MUSIC"===e.dataList[a].groupType&&e.teamList.push(e.dataList[a]),"PRACTICE"===e.dataList[a].groupType&&e.newList.push(e.dataList[a])}))},setCourseTime:function(e){var t=this.getMinutes(e.startClassTime.split(" ")[1]),a=this.getMinutes(e.endClassTime.split(" ")[1]),l=1.8*(a-t),r=t-240>0?1.8*(t-240)+17:17,s=1===Object(je["j"])(e.classDate)?40:60*Object(je["j"])(e.classDate)-16;e.style={width:l+"px",top:s+"px",left:r+"px"}},getMinutes:function(e){return 60*parseInt(e.split(":")[0])+parseInt(e.split(":")[1])},setWeekList:function(){this.weekList=[];var e=new Date(this.startTime.replace(/-/g,"/"));e.setTime(e.getTime()-864e5);for(var t=0;t<7;t++)e.setTime(e.getTime()+864e5),this.weekList.push({week:this.weekDay[t],dateStr:e.getMonth()+1+"月"+e.getDate()+"日",date:Object(je["n"])(e)})},setWeekDotList:function(e,t){this.active=t,this.tableTime=e.date},changeWeek:function(e){this.week=e,this.active=-1,this.getCalendatList(),this.setWeekList()}},directives:{drag:function(e){var t=e;t.onmousedown=function(e){var a=e.clientX-t.offsetLeft,l=(e.clientY,t.offsetTop,document.querySelector(".timer").offsetWidth),r=document.querySelector(".imgWrap").offsetWidth;return document.onmousemove=function(e){var s=e.clientX-a;e.clientY;s>0?s=0:s<2-(r-l)&&(s=2-(r-l)),t.style.left=s+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null},!1}}}},Ge=Me,We=(a("bdb9"),Object(v["a"])(Ge,xe,Re,!1,null,"61f2881c",null)),Pe=We.exports,Ve=a("ec8a"),Ue={components:{teacherRecord:_,leaveRecord:F,teacherInfo:j,courseInfo:U,courseInfo1:K,courseInfo2:ae,settlement:oe,timerList:fe,outCourseList:ye,teacherNetwork:we,serveStudentList:Ne,calendarList:$e["default"],weeklyCalendar:Pe},name:"teacherDetail",data:function(){return{teacherName:this.$route.query.teacherName,activeName:"",permissionList:{teacherInfo:Object(Ve["a"])("/teacherDetail/teacherInfo"),musicGroup:Object(Ve["a"])("/teacherDetail/musicGroupCourse"),VipCourse:Object(Ve["a"])("/teacherDetail/VIPCourse"),domeCourse:Object(Ve["a"])("/teacherDetail/domeCourse"),teacherRecord:Object(Ve["a"])("/teacherDetail/teacherRecord"),leaveRecord:Object(Ve["a"])("/teacherDetail/leaveRecord"),settlement:Object(Ve["a"])("/teacherDetail/settlement"),timerList:Object(Ve["a"])("/teacherDetail/timerList"),outCourseList:Object(Ve["a"])("/teacherDetail/outCourseList"),teacherNetwork:Object(Ve["a"])("/teacherDetail/teacherNetwork"),serveStudentList:Object(Ve["a"])("/teacherDetail/serveStudentList"),calendarList:Object(Ve["a"])("/teacherDetail/calendarList"),weeklyCalendar:Object(Ve["a"])("/teacherDetail/weeklyCalendar")},teacherInfos:null}},activated:function(){},mounted:function(){var e=this;this.teacherName=this.$route.query.teacherName,this.teacherId=this.$route.query.teacherId,Object(L["t"])({teacherId:this.teacherId}).then((function(t){200==t.code&&(e.teacherInfos=t.data)}))},methods:{permission:Ve["a"],handleClick:function(e,t){this.activeName=e.name},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teacherManager/teacherList"})},gotoAfterSchool:function(){this.$router.push({path:"/serverIndexManager/serverIndexList",query:{teacherId:1*this.teacherId,activeIndex:"2"}})},gotoOperating:function(){this.$router.push({path:"/operateManager/operateStudent",query:{teacherId:1*this.teacherId,operatingTag:"1"}})}}},ze=Ue,qe=(a("f769"),Object(v["a"])(ze,l,r,!1,null,"5ad95498",null));t["default"]=qe.exports}}]);
|