chunk-1450b0a7.7360b8a5.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1450b0a7"],{"02ce":function(t,e,r){"use strict";var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:t.maskForm,rules:t.maskRules,"label-position":"right","label-width":"120px",inline:!0}},["VIP"==t.maskForm.type?r("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[r("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:"",filterable:""},on:{change:t.changeTeacher},model:{value:t.maskForm.teacher,callback:function(e){t.$set(t.maskForm,"teacher","string"===typeof e?e.trim():e)},expression:"maskForm.teacher"}},t._l(t.teacherList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.realName}})})),1)],1):r("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[r("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:"",filterable:""},model:{value:t.maskForm.teacher,callback:function(e){t.$set(t.maskForm,"teacher","string"===typeof e?e.trim():e)},expression:"maskForm.teacher"}},t._l(t.teacherList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.realName}})})),1)],1),t._v(" "),"MUSIC_NETWORK"!=t.maskForm.type&&"HIGH_ONLINE"!=t.maskForm.type&&"MUSIC"==t.maskForm.groupType?r("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[r("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:t.maskForm.assistant,callback:function(e){t.$set(t.maskForm,"assistant","string"===typeof e?e.trim():e)},expression:"maskForm.assistant"}},t._l(t.teacherList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.realName}})})),1)],1):t._e(),t._v(" "),r("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[r("el-date-picker",{attrs:{type:"date","picker-options":{firstDayOfWeek:1},"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.maskForm.date,callback:function(e){t.$set(t.maskForm,"date","string"===typeof e?e.trim():e)},expression:"maskForm.date"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"课程时长",prop:"timer"}},[r("el-input",{staticStyle:{width:"220px!important"},attrs:{type:"number",disabled:t.isDisabled},model:{value:t.maskForm.timer,callback:function(e){t.$set(t.maskForm,"timer",e)},expression:"maskForm.timer"}},[r("template",{slot:"append"},[t._v("分钟")])],2)],1),t._v(" "),r("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[r("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"04:30:00 - 23:30:00"}},on:{change:t.changeStartTime},model:{value:t.maskForm.startTime,callback:function(e){t.$set(t.maskForm,"startTime","string"===typeof e?e.trim():e)},expression:"maskForm.startTime"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[r("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:t.maskForm.startTime}},model:{value:t.maskForm.endTime,callback:function(e){t.$set(t.maskForm,"endTime","string"===typeof e?e.trim():e)},expression:"maskForm.endTime"}})],1),t._v(" "),"VIP"==t.maskForm.type?r("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[r("el-select",{staticStyle:{width:"220px!important"},attrs:{clearable:""},model:{value:t.maskForm.teachMode,callback:function(e){t.$set(t.maskForm,"teachMode","string"===typeof e?e.trim():e)},expression:"maskForm.teachMode"}},[r("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),t._v(" "),r("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1):t._e(),t._v(" "),"OFFLINE"==t.maskForm.teachMode?r("el-form-item",{attrs:{label:"教学地点"}},[r("el-select",{staticStyle:{width:"220px!important"},attrs:{filterable:"",clearable:""},model:{value:t.maskForm.address,callback:function(e){t.$set(t.maskForm,"address","string"===typeof e?e.trim():e)},expression:"\n maskForm.address"}},t._l(t.schoolList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1):t._e()],1),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:t.$listeners.closeReset}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.submitResetClass}},[t._v("确 定")])],1)],1)},n=[],o=r("c466"),u=r("1cc7"),c=r("8018"),i=r("99b4"),s=r("e3eb"),d=r.n(s),m=r("5a0c"),l=r.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 t=this;Object(u["ub"])().then((function(e){200==e.code&&(t.teacherList=e.data)})),this.getDetail(this.id)},methods:{submitResetClass:function(){var t=this,e=this.maskForm;e.startTime&&e.endTime?this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r=e.assistant.join(",");if(r.length<=0);var a={actualTeacherId:e.teacher,startClassTimeStr:e.startTime,endClassTimeStr:e.endTime,id:e.id,teachingTeacherIdList:r,classDate:e.date,type:e.type,groupType:e.groupType,schoolId:t.maskForm.address,teachMode:t.maskForm.teachMode};Object(u["Ub"])(d()(a)).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.$emit("getList"),t.$emit("closeReset"))}))})).catch((function(){})):this.$message.error("请填写开始时间或结束时间")},changeStartTime:function(t){var e=this;this.$nextTick((function(r){console.log(e.maskForm.date,t,e.maskForm.timer),console.log(Object(o["a"])(e.maskForm.date,t,e.maskForm.timer)),t?e.$set(e.maskForm,"endTime",Object(o["a"])(e.maskForm.date,t,e.maskForm.timer)):e.$set(e.maskForm,"endTime","")}))},changeTeacher:function(t){var e=this;t&&(Object(c["g"])({userId:t}).then((function(t){200==t.code&&(e.schoolList=t.data)})),this.maskForm.address="")},getDetail:function(t){var e=this;Object(u["S"])({courseScheduleId:t}).then((function(t){if(200==t.code){for(var r in e.maskForm={id:t.data.id,teacher:t.data.actualTeacherId,assistant:[],date:l()(t.data.classDate).format("YYYY-MM-DD"),startTime:l()(t.data.startClassTime).format("HH:mm"),endTime:l()(t.data.endClassTime).format("HH:mm"),timer:null,type:t.data.type,groupType:t.data.groupType,address:t.data.schoolId,teachMode:t.data.teachMode},e.maskForm.assistant=[],t.data.teachingTeachers)"TEACHING"==t.data.teachingTeachers[r].teacherRole&&e.maskForm.assistant.push(t.data.teachingTeachers[r].userId);var a=Object(o["b"])(l()(t.data.classDate).format("YYYY-MM-DD"),l()(t.data.startClassTime).format("HH:mm"),l()(t.data.endClassTime).format("HH:mm"));console.log(l()(t.data.startClassTime).format("HH:mm")),e.maskForm.timer=a,e.maskForm.teacher&&"VIP"==e.maskForm.type?Object(c["g"])({userId:e.maskForm.teacher}).then((function(t){200==t.code&&(e.schoolList=t.data)})):Object(i["o"])({organId:t.data.organId}).then((function(t){200==t.code&&(e.schoolList=t.data)}))}}))}},watch:{id:function(t){t&&this.getDetail(t)},"maskForm.timer":function(t){var e=this;this.$nextTick((function(r){t?e.$set(e.maskForm,"endTime",Object(o["a"])(e.maskForm.date,e.maskForm.startTime,t)):e.$set(e.maskForm,"endTime","")}))}}},p=f,h=(r("2ee0"),r("2877")),g=Object(h["a"])(p,a,n,!1,null,"2c41d198",null);e["a"]=g.exports},"09f4":function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),Math.easeInOutQuad=function(t,e,r,a){return t/=a/2,t<1?r/2*t*t+e:(t--,-r/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function n(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(t,e,r){var u=o(),c=t-u,i=20,s=0;e="undefined"===typeof e?500:e;var d=function t(){s+=i;var o=Math.easeInOutQuad(s,u,c,e);n(o),s<e?a(t):r&&"function"===typeof r&&r()};d()}},"2ee0":function(t,e,r){"use strict";r("ba00")},8018:function(t,e,r){"use strict";r.d(e,"x",(function(){return c})),r.d(e,"u",(function(){return i})),r.d(e,"h",(function(){return s})),r.d(e,"e",(function(){return d})),r.d(e,"j",(function(){return m})),r.d(e,"w",(function(){return l})),r.d(e,"v",(function(){return f})),r.d(e,"o",(function(){return p})),r.d(e,"C",(function(){return h})),r.d(e,"D",(function(){return g})),r.d(e,"z",(function(){return b})),r.d(e,"y",(function(){return y})),r.d(e,"B",(function(){return O})),r.d(e,"g",(function(){return k})),r.d(e,"r",(function(){return T})),r.d(e,"A",(function(){return j})),r.d(e,"t",(function(){return F})),r.d(e,"i",(function(){return v})),r.d(e,"n",(function(){return D})),r.d(e,"s",(function(){return w})),r.d(e,"a",(function(){return M})),r.d(e,"m",(function(){return I})),r.d(e,"p",(function(){return S})),r.d(e,"q",(function(){return q})),r.d(e,"l",(function(){return C})),r.d(e,"d",(function(){return H})),r.d(e,"c",(function(){return _})),r.d(e,"k",(function(){return x})),r.d(e,"b",(function(){return $})),r.d(e,"f",(function(){return L}));var a=r("b775"),n=r("4328"),o=r.n(n),u="/api-web";function c(t){return Object(a["a"])({url:u+"/teacher/queryPage",method:"get",params:t})}function i(t){return Object(a["a"])({url:u+"/teacher/get",method:"get",params:t})}function s(t){return Object(a["a"])({url:u+"/teacher/getTeacherMusicClass",method:"get",params:t})}function d(t){return Object(a["a"])({url:u+"/demoGroup/findTeacherDemoGroups",method:"get",params:t})}function m(t){return Object(a["a"])({url:u+"/teacherAttendance/getTeacherPersonalAttendances",method:"get",params:t})}function l(t){return Object(a["a"])({url:u+"/teacher/queryCloses",method:"get",params:t})}function f(t){return Object(a["a"])({url:u+"/teacherLeaveRecord/queryPage",method:"get",params:t})}function p(t){return Object(a["a"])({url:u+"/teacher/sumTeacherNoPay",method:"get",params:t})}function h(t){return Object(a["a"])({url:u+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:t})}function g(t){return Object(a["a"])({url:u+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:t})}function b(t){return Object(a["a"])({url:u+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:t})}function y(t){return Object(a["a"])({url:u+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:t})}function O(t){return Object(a["a"])({url:u+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:o.a.stringify(t)})}function k(t){return Object(a["a"])({url:u+"/school/findVipSchoolByTeacher",method:"get",params:t})}function T(t){return Object(a["a"])({url:u+"/teacher/add",method:"post",data:o.a.stringify(t)})}function j(t){return Object(a["a"])({url:u+"/teacher/update",method:"post",data:o.a.stringify(t)})}function F(t){return Object(a["a"])({url:u+"/teacherFreeTime/query",method:"get",params:t})}function v(t){return Object(a["a"])({url:u+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:t})}function D(t){return Object(a["a"])({url:u+"/teacherFreeTime/updateSet",method:"post",data:o.a.stringify(t)})}function w(t){return Object(a["a"])({url:u+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:t})}function M(t){return Object(a["a"])({url:u+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:t})}function I(t){return Object(a["a"])({url:u+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:t})}function S(t){return Object(a["a"])({url:u+"/sysTenantAccount/addMinutes",method:"post",data:o.a.stringify(t)})}function q(t){return Object(a["a"])({url:u+"/sysTenantAccount/subtractMinutes",method:"post",data:o.a.stringify(t)})}function C(t){return Object(a["a"])({url:u+"/sysTenantAccount/get",method:"get",params:t})}function H(t){return Object(a["a"])({url:u+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:t})}function _(t){return Object(a["a"])({url:u+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:o.a.stringify(t)})}function x(t){return Object(a["a"])({url:u+"/teacher/queryStudent",method:"get",params:t})}function $(t){return Object(a["a"])({url:u+"/studentManage/batchUpdateAdviser",method:"post",data:o.a.stringify(t)})}function L(t){return Object(a["a"])({url:u+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:t})}},"99b4":function(t,e,r){"use strict";r.d(e,"c",(function(){return c})),r.d(e,"e",(function(){return i})),r.d(e,"d",(function(){return s})),r.d(e,"B",(function(){return d})),r.d(e,"z",(function(){return m})),r.d(e,"H",(function(){return l})),r.d(e,"G",(function(){return f})),r.d(e,"I",(function(){return p})),r.d(e,"A",(function(){return h})),r.d(e,"j",(function(){return g})),r.d(e,"l",(function(){return b})),r.d(e,"p",(function(){return y})),r.d(e,"k",(function(){return O})),r.d(e,"E",(function(){return k})),r.d(e,"n",(function(){return T})),r.d(e,"F",(function(){return j})),r.d(e,"D",(function(){return F})),r.d(e,"f",(function(){return v})),r.d(e,"h",(function(){return D})),r.d(e,"g",(function(){return w})),r.d(e,"i",(function(){return M})),r.d(e,"r",(function(){return I})),r.d(e,"s",(function(){return S})),r.d(e,"u",(function(){return q})),r.d(e,"t",(function(){return C})),r.d(e,"o",(function(){return H})),r.d(e,"x",(function(){return _})),r.d(e,"v",(function(){return x})),r.d(e,"y",(function(){return $})),r.d(e,"w",(function(){return L})),r.d(e,"m",(function(){return P})),r.d(e,"b",(function(){return A})),r.d(e,"a",(function(){return R})),r.d(e,"C",(function(){return G})),r.d(e,"q",(function(){return N})),r.d(e,"J",(function(){return B}));var a=r("b775"),n=r("4328"),o=r.n(n),u="/api-web";function c(t){return Object(a["a"])({url:u+"/cooperationOrgan/add",method:"post",data:o.a.stringify(t)})}function i(t){return Object(a["a"])({url:u+"/cooperationOrgan/update",method:"put",data:o.a.stringify(t)})}function s(t){return Object(a["a"])({url:u+"/cooperationOrgan/del/".concat(t),method:"post"})}function d(t){return Object(a["a"])({url:u+"/cooperationOrgan/queryPage",method:"get",params:t})}function m(t){return Object(a["a"])({url:u+"/cooperationOrgan/queryByOrganId",method:"get",params:t})}function l(t){return Object(a["a"])({url:u+"/school/queryPage",method:"get",params:t})}function f(t){return Object(a["a"])({url:u+"/school/add",method:"post",data:o.a.stringify(t)})}function p(t){return Object(a["a"])({url:u+"/school/update",method:"post",data:o.a.stringify(t)})}function h(t){return Object(a["a"])({url:u+"/employee/queryEmployByOrganId",method:"get",params:t})}function g(t){return Object(a["a"])({url:u+"/employee/add",method:"post",data:t})}function b(t){return Object(a["a"])({url:u+"/employee/update",method:"post",data:t})}function y(t){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function O(t){return Object(a["a"])({url:u+"/employee/employeeOperate",method:"post",data:o.a.stringify(t)})}function k(t){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function T(t){return Object(a["a"])({url:"/api-auth/role/".concat(t.id),method:"get"})}function j(t){return Object(a["a"])({url:"/api-auth/role/update",method:"post",data:t})}function F(t){return Object(a["a"])({url:"/api-auth/role/add",method:"post",data:t})}function v(t){return Object(a["a"])({url:u+"/courseScheduleRewards/queryPage",method:"get",params:t})}function D(t){return Object(a["a"])({url:u+"/courseScheduleRewards/query",method:"get",params:t})}function w(t){return Object(a["a"])({url:u+"/courseScheduleRewards/add",method:"post",data:o.a.stringify(t)})}function M(t){return Object(a["a"])({url:u+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(t)})}function I(t){return Object(a["a"])({url:u+"/hotWordLabelManage/queryPage",method:"get",params:t})}function S(t){return Object(a["a"])({url:u+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(t)})}function q(t){return Object(a["a"])({url:u+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(t)})}function C(t){return Object(a["a"])({url:u+"/hotWordLabelManage/del/".concat(t),method:"post"})}function H(t){return Object(a["a"])({url:u+"/school/queryByOrganId",method:"get",params:t})}function _(t){return Object(a["a"])({url:u+"/paymentConfig/queryPage",method:"get",params:t})}function x(t){return Object(a["a"])({url:u+"/paymentConfig/add",method:"post",data:o.a.stringify(t)})}function $(t){return Object(a["a"])({url:u+"/paymentConfig/update",method:"post",data:o.a.stringify(t)})}function L(t){return Object(a["a"])({url:u+"/paymentConfig/del/"+t.id,method:"post"})}function P(t){return Object(a["a"])({url:u+"/teacher/findTeacherByOrganId",method:"get",params:t})}function A(t){return Object(a["a"])({url:u+"/appVersionInfo/list",method:"get",params:t})}function R(t){return Object(a["a"])({url:u+"/appVersionInfo/add",method:"post",data:o.a.stringify(t)})}function G(t){return Object(a["a"])({url:u+"/appVersionInfo/update",method:"post",data:o.a.stringify(t)})}function N(t){return Object(a["a"])({url:u+"/employee/hasCourseGroupRelation",method:"post",data:o.a.stringify(t)})}function B(t){return Object(a["a"])({url:u+"/employee/updateEducationTeacherId",method:"post",data:o.a.stringify(t)})}},ba00:function(t,e,r){},c466:function(t,e,r){"use strict";r.d(e,"h",(function(){return u})),r.d(e,"c",(function(){return c})),r.d(e,"d",(function(){return i})),r.d(e,"e",(function(){return s})),r.d(e,"f",(function(){return d})),r.d(e,"g",(function(){return m})),r.d(e,"b",(function(){return l})),r.d(e,"a",(function(){return f}));r("a481");var a=r("5a0c"),n=r.n(a),o=r("56d7");function u(t){var e=t.getFullYear(),r=t.getMonth()+1,a=t.getDate();return r=r<10?"0"+r:r,a=a<10?"0"+a:a,e+"-"+r+"-"+a}function c(t){return t.setDate(1),t}function i(t){var e=t.getMonth(),r=++e,a=new Date(t.getFullYear(),r,1),n=864e5;return new Date(a-n)}function s(t){var e=new Date(t.replace(/-/g,"/")).getTime(),r=new Date(t);0==r.getDay()&&(e-=6048e5);var a=e-24*(r.getDay()-1)*60*60*1e3,n=new Date(a),o=n.getFullYear(),u=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),i=o+"-"+u+"-"+c;return i}function d(t){var e=new Date(t.replace(/-/g,"/")).getTime(),r=new Date(t),a=7-r.getDay();7==a&&(a=0);var n=e+24*a*60*60*1e3,o=new Date(n),u=o.getFullYear(),c=o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1,i=o.getDate()<10?"0"+o.getDate():o.getDate(),s=u+"-"+c+"-"+i;return s}function m(t){var e=new Date(t.replace(/-/g,"/")).getDay();return 0===e&&(e=7),e}function l(t,e,r){return Math.abs(n()(t+" "+e).diff(t+" "+r,"Minute"))}function f(t,e,r){var a=n()(t+" "+e).add(r,"minute");return console.log(),n()(t+" 23:59").isBefore(a)?(o["$message"].error("课程时间无法跨天请重新设置开始时间"),""):a.format("HH:mm")}},ec8a:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("6762"),r("2fdb"),r("28a5");function a(t,e){var r=window.localStorage.getItem("permission");return r=r.split(","),e=e||null,!(!r.includes(t)||e)||!(!r.includes(t)||!r.includes(e))}}}]);