chunk-d9d60650.2697f835.js 29 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d9d60650"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",function(){return i}),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function u(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,r){var i=u(),o=e-i,s=20,c=0;t="undefined"===typeof t?500:t;var d=function e(){c+=s;var u=Math.easeInOutQuad(c,i,o,t);n(u),c<t?a(e):r&&"function"===typeof r&&r()};d()}},"0a7d":function(e,t,r){"use strict";var a=r("94df"),n=r.n(a);n.a},"333d":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[r("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},n=[],u=(r("c5f6"),r("09f4")),i={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(u["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(u["a"])(0,800)}}},o=i,s=(r("c0b9"),r("2877")),c=Object(s["a"])(o,a,n,!1,null,"31cb099a",null);t["a"]=c.exports},"7e78":function(e,t,r){"use strict";r.d(t,"I",function(){return o}),r.d(t,"k",function(){return s}),r.d(t,"o",function(){return c}),r.d(t,"c",function(){return d}),r.d(t,"D",function(){return l}),r.d(t,"z",function(){return m}),r.d(t,"a",function(){return p}),r.d(t,"A",function(){return f}),r.d(t,"x",function(){return h}),r.d(t,"j",function(){return b}),r.d(t,"G",function(){return g}),r.d(t,"H",function(){return v}),r.d(t,"b",function(){return y}),r.d(t,"B",function(){return j}),r.d(t,"y",function(){return O}),r.d(t,"v",function(){return S}),r.d(t,"t",function(){return C}),r.d(t,"m",function(){return k}),r.d(t,"w",function(){return T}),r.d(t,"n",function(){return _}),r.d(t,"u",function(){return F}),r.d(t,"r",function(){return w}),r.d(t,"C",function(){return G}),r.d(t,"s",function(){return M}),r.d(t,"i",function(){return V}),r.d(t,"h",function(){return L}),r.d(t,"E",function(){return x}),r.d(t,"l",function(){return $}),r.d(t,"g",function(){return q}),r.d(t,"F",function(){return P}),r.d(t,"e",function(){return D}),r.d(t,"q",function(){return A}),r.d(t,"p",function(){return I}),r.d(t,"d",function(){return B}),r.d(t,"f",function(){return z});var a=r("b775"),n=r("4328"),u=r.n(n),i="/api-web";function o(e){return Object(a["a"])({url:i+"/vipGroupCategory/queryAll",method:"get",params:e})}function s(e){return Object(a["a"])({url:i+"/vipGroupCategory/findTeacherDefaultSalary",method:"post",data:u.a.stringify(e)})}function c(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:e})}function d(e){return Object(a["a"])({url:i+"/vipGroupCategory/add",method:"post",data:u.a.stringify(e)})}function l(e){return Object(a["a"])({url:i+"/vipGroupCategory/update",method:"post",data:u.a.stringify(e)})}function m(e){return Object(a["a"])({url:i+"/vipGroupCategory/delete",method:"post",data:u.a.stringify(e)})}function p(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/add",method:"post",data:u.a.stringify(e)})}function f(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/update",method:"post",data:u.a.stringify(e)})}function h(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/delete",method:"post",data:u.a.stringify(e)})}function b(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:u.a.stringify(e)})}function g(e){return Object(a["a"])({url:i+"/vipGroupActivity/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:i+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:e})}function y(e){return Object(a["a"])({url:i+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:e})}function j(e){return Object(a["a"])({url:i+"/vipGroupActivity/update",method:"POST",data:e})}function O(e){return Object(a["a"])({url:i+"/vipGroupActivity/delete",method:"POST",data:u.a.stringify(e)})}function S(e){return Object(a["a"])({url:i+"/vipGroupManage/queryAll",method:"GET",params:e})}function C(e){return Object(a["a"])({url:i+"/vipGroupManage/getVipGroupDetail",method:"GET",params:e})}function k(e){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupStudents",method:"GET",params:e})}function T(e){return Object(a["a"])({url:i+"/vipGroupManage/applyRefundForStudent",method:"POST",data:u.a.stringify(e)})}function _(e){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:e})}function F(e){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupSalarys",method:"get",params:e})}function w(e){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:e})}function G(e){return Object(a["a"])({url:i+"/vipGroupManage/classStartDateAdjust",method:"POST",data:u.a.stringify(e)})}function M(e){return Object(a["a"])({url:i+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:e})}function V(e){return Object(a["a"])({url:i+"/vipGroupManage/vipGroupApply",method:"POST",data:e})}function L(e){return Object(a["a"])({url:i+"/vipGroupManage/stopVipGroup",method:"POST",data:u.a.stringify(e)})}function x(e){return Object(a["a"])({url:i+"/vipGroupManage/updateVipBaseInfo",method:"POST",data:e})}function $(e){return Object(a["a"])({url:i+"/courseSchedule/findVipGroupCourseSchedules",method:"POST",data:u.a.stringify(e)})}function q(e){return Object(a["a"])({url:i+"/courseSchedule/bathDelete",method:"POST",data:u.a.stringify(e)})}function P(e){return Object(a["a"])({url:i+"/courseSchedule/vipCourseAdjust",method:"POST",data:e})}function D(e){return Object(a["a"])({url:i+"/vipGroupManage/appendVipGroupCourseSchedules",method:"POST",data:e})}function A(e){return Object(a["a"])({url:i+"/vipGroupManage/getStudentSurplusCourseFee",method:"get",params:e})}function I(e){return Object(a["a"])({url:i+"/vipGroupManage/findHaveCourseBalanceStudents",method:"get",params:e})}function B(e){return Object(a["a"])({url:i+"/vipGroupManage/addVipGroupStudents",method:"get",params:e})}function z(e){return Object(a["a"])({url:i+"/courseSchedule/batchAppendVipGroupCourses",method:"POST",data:e})}},8018:function(e,t,r){"use strict";r.d(t,"j",function(){return o}),r.d(t,"g",function(){return s}),r.d(t,"c",function(){return c}),r.d(t,"a",function(){return d}),r.d(t,"d",function(){return l}),r.d(t,"i",function(){return m}),r.d(t,"h",function(){return p}),r.d(t,"e",function(){return f}),r.d(t,"o",function(){return h}),r.d(t,"p",function(){return b}),r.d(t,"l",function(){return g}),r.d(t,"k",function(){return v}),r.d(t,"n",function(){return y}),r.d(t,"b",function(){return j}),r.d(t,"f",function(){return O}),r.d(t,"m",function(){return S});var a=r("b775"),n=r("4328"),u=r.n(n),i="/api-web";function o(e){return Object(a["a"])({url:i+"/teacher/queryPage",method:"get",params:e})}function s(e){return Object(a["a"])({url:i+"/teacher/get",method:"get",params:e})}function c(e){return Object(a["a"])({url:i+"/teacher/getTeacherMusicClass",method:"get",params:e})}function d(e){return Object(a["a"])({url:i+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function l(e){return Object(a["a"])({url:i+"/teacherAttendance/getTeacherPersonalAttendances",method:"get",params:e})}function m(e){return Object(a["a"])({url:i+"/teacher/queryCloses",method:"get",params:e})}function p(e){return Object(a["a"])({url:i+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function f(e){return Object(a["a"])({url:i+"/teacher/sumTeacherNoPay",method:"get",params:e})}function h(e){return Object(a["a"])({url:i+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function b(e){return Object(a["a"])({url:i+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function g(e){return Object(a["a"])({url:i+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:i+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function y(e){return Object(a["a"])({url:i+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:u.a.stringify(e)})}function j(e){return Object(a["a"])({url:i+"/school/findVipSchoolByTeacher",method:"get",params:e})}function O(e){return Object(a["a"])({url:i+"/teacher/add",method:"post",data:u.a.stringify(e)})}function S(e){return Object(a["a"])({url:i+"/teacher/update",method:"post",data:u.a.stringify(e)})}},"84f0":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("h2",[r("el-page-header",{attrs:{content:"VIP修改"},on:{back:e.goBack}})],1),e._v(" "),r("div",{staticClass:"vipwrap"},[r("div",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupManage/appendVipGroupCourseSchedules",expression:"'vipGroupManage/appendVipGroupCourseSchedules'"}],staticClass:"newBand",on:{click:e.addCourse}},[e._v("VIP加课")]),e._v(" "),r("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/vipCourseAdjust",expression:"'courseSchedule/vipCourseAdjust'"}],staticClass:"newBand",on:{click:e.adjustment}},[e._v("批量调整")]),e._v(" "),r("div",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupManage/updateVipBaseInfo",expression:"'vipGroupManage/updateVipBaseInfo'"}],staticClass:"newBand",on:{click:function(t){e.addrVisible=!0}}},[e._v("修改教学点")])]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",selectable:e.isDisabled,width:"55"}}),e._v(" "),r("el-table-column",{attrs:{label:"课程名称",align:"center",prop:"name"}}),e._v(" "),r("el-table-column",{attrs:{label:"上课日期",align:"center",prop:"classDate"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.classDate))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"课程状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("coursesStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"结算状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.isSettlement?"已结算":"未结算")+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"开始时间",align:"center",prop:"startClassTimeStr"}}),e._v(" "),r("el-table-column",{attrs:{label:"结束时间",align:"center",prop:"endClassTimeStr"}}),e._v(" "),r("el-table-column",{attrs:{label:"课程类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("teachMode")(t.row.teachMode))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"教学点",align:"center",prop:"schoolName"}}),e._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[t.row.isSettlement?e._e():r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/classStartDateAdjust",expression:"'courseSchedule/classStartDateAdjust'"}],attrs:{type:"text"},on:{click:function(r){return e.resetClass(t.row)}}},[e._v("调整")]),e._v(" "),"OVER"!=t.row.status?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/bathDelete",expression:"'courseSchedule/bathDelete'"}],attrs:{type:"text"},on:{click:function(r){return e.removeClass(t.row)}}},[e._v("删除")]):e._e()],1)]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),r("el-dialog",{attrs:{title:"课程调整",width:"400px","before-close":e.handleClose,visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t}}},[r("el-form",{ref:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"80px;",inline:!0}},[r("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[r("el-date-picker",{staticStyle:{width:"200px!important"},attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date",t)},expression:"maskForm.date"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[r("el-time-select",{staticStyle:{width:"200px!important"},attrs:{placeholder:"起始时间","picker-options":{start:"04:30",step:"00:05",end:"23:30"}},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime",t)},expression:"maskForm.startTime"}})],1),e._v(" "),"OFFLINE"==e.maskForm.teachMode?r("el-form-item",{attrs:{label:"教学地点"}},[r("el-select",{model:{value:e.maskForm.address,callback:function(t){e.$set(e.maskForm,"address",t)},expression:"maskForm.address"}},e._l(e.schoolList,function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})}),1)],1):e._e()],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.courseVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:e.adjustmentName,width:"800px",visible:e.adjustmentVisible},on:{"update:visible":function(t){e.adjustmentVisible=t}}},[r("el-form",{ref:"adjustmentForm",attrs:{model:e.adjustmentForm,rules:e.adjustmentRules,inline:!0}},[e.isaddCourse?e._e():r("el-form-item",{attrs:{label:"已选择课时数"}},[r("el-input",{attrs:{disabled:""},model:{value:e.adjustmentForm.count,callback:function(t){e.$set(e.adjustmentForm,"count",t)},expression:"adjustmentForm.count"}})],1),e._v(" "),e.isaddCourse?r("el-form-item",{attrs:{label:"添加课时数",prop:"addCount"}},[r("el-input",{model:{value:e.adjustmentForm.addCount,callback:function(t){e.$set(e.adjustmentForm,"addCount",t)},expression:"adjustmentForm.addCount"}})],1):e._e(),e._v(" "),e.isaddCourse?r("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[r("el-select",{attrs:{clearable:""},model:{value:e.adjustmentForm.courseType,callback:function(t){e.$set(e.adjustmentForm,"courseType",t)},expression:"adjustmentForm.courseType"}},[r("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),r("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),r("br"),e._v(" "),r("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[r("el-date-picker",{staticStyle:{width:"200px!important"},attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.adjustmentForm.courseTime,callback:function(t){e.$set(e.adjustmentForm,"courseTime",t)},expression:"adjustmentForm.courseTime"}}),e._v(" "),r("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.adjustmentForm.checked,callback:function(t){e.$set(e.adjustmentForm,"checked",t)},expression:"adjustmentForm.checked"}},[e._v("是否跳过节假日")])],1)],1),e._v(" "),r("div",{staticClass:"WeekWrap "},[r("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("循环次数 "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),r("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,function(t,a){return r("div",{key:a,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[r("span",[e._v("循环周期: ")]),e._v(" "),r("el-select",{model:{value:t.dayOfWeek,callback:function(r){e.$set(t,"dayOfWeek",r)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),r("span",{staticStyle:{"margin-left":"10px"}},[e._v("开始时间")]),e._v(" "),r("el-time-select",{staticStyle:{"margin-left":"10px"},attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(r){e.$set(t,"startClassTime",r)},expression:"item.startClassTime"}}),e._v(" "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(r){return e.removeWeek(t)}}})],1)}),0)]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.adjustmentVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isaddCourse?e._e():r("el-button",{attrs:{type:"primary"},on:{click:e.submitAdjustment}},[e._v("确 定")]),e._v(" "),e.isaddCourse?r("el-button",{attrs:{type:"primary"},on:{click:e.addCourseSubmit}},[e._v("确 定")]):e._e()],1)],1),e._v(" "),r("el-dialog",{attrs:{title:"教学点",visible:e.addrVisible},on:{"update:visible":function(t){e.addrVisible=t}}},[r("el-form",{attrs:{model:e.addrForm}},[r("el-form-item",{attrs:{label:"教学点"}},[r("el-select",{model:{value:e.addrForm.address,callback:function(t){e.$set(e.addrForm,"address",t)},expression:"addrForm.address"}},e._l(e.schoolList,function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})}),1)],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.addrVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.resetAddrSubmit}},[e._v("确 定")])],1)],1)],1)},n=[],u=(r("28a5"),r("1cc7")),i=(r("99b4"),r("333d")),o=r("7e78"),s=r("8018"),c={components:{pagination:i["a"]},data:function(){return{addrVisible:!1,adjustmentVisible:!1,addCourseVisible:!1,courseVisible:!1,tableList:[],addTable:[],courseTime:"",vipid:"",addrForm:{address:""},maskForm:{date:"",startTime:"",endTime:"",id:"",address:"",teachMode:""},rules:{limit:10,page:1,total:0,page_size:[50,100]},maskRules:{date:[{required:!0,message:"请选择上课时间",trigger:"blur"}],startTime:[{required:!0,message:"请选择上课开始时间",trigger:"blur"}],endTime:[{required:!0,message:"请选择上课结束时间",trigger:"blur"}]},schoolList:[],Frules:null,FsearchForm:null,adjustmentForm:{count:"",courseTime:"",checked:!1,addCount:"",courseType:""},adjustmentRules:{courseTime:[{required:!0,message:"请选择开始时间"}],addCount:[{required:!0,message:"请输入加课次数"}],courseType:[{required:!0,message:"请选择课程类型"}]},weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],weekList:[{dayOfWeek:"",startTime:"",endTime:"",moid:(new Date).getTime()}],activeList:[],isaddCourse:!1,adjustmentName:""}},created:function(){this.vipid=this.$route.query.id,this.$route.query.rules&&(this.Frules=this.$route.query.rules),this.$route.query.searchForm&&(this.FsearchForm=this.$route.query.searchForm)},mounted:function(){this.getList()},methods:{getList:function(){var e=this;Object(o["l"])({vipGroupId:this.vipid,rows:this.rules.limit,page:this.rules.page}).then(function(t){200==t.code&&(e.tableList=t.data.pageInfo.rows,e.rules.total=t.data.pageInfo.total,e.courseTime=t.data.singleClassMinutes,Object(s["b"])({userId:t.data.pageInfo.rows[0].teacherId}).then(function(t){200==t.code&&(e.schoolList=t.data)}))})},goBack:function(){this.$router.push({path:"/business/vipList",query:{rules:this.Frules,searchForm:this.FsearchForm}})},resetClass:function(e){this.maskForm.date=e.classDate,this.maskForm.startTime=e.startClassTimeStr,this.maskForm.id=e.id,this.maskForm.address=e.schoolId,this.maskForm.teachMode=e.teachMode,this.courseVisible=!0},handleClose:function(){this.courseVisible=!1,this.$refs["maskForm"].resetFields()},submitResetClass:function(){var e=this,t={startClassTimeStr:this.maskForm.startTime,id:this.maskForm.id,classDate:this.maskForm.date,schoolId:this.maskForm.address||null};Object(u["hb"])(t).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.courseVisible=!1,e.getList())})},removeClass:function(e){var t=this;this.$confirm("是否删除该vip课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o["g"])({courseScheduleIds:e.id}).then(function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())})})},addCourse:function(){this.adjustmentName="vip加课",this.isaddCourse=!0,this.adjustmentVisible=!0},addOneChiose:function(){this.addTable.push({classDate:"",startClassTimeStr:"",endClassTimeStr:"",teachMode:"",moid:(new Date).getTime()})},removeMarkCourse:function(e){for(var t in this.addTable)this.addTable[t].moid==e.moid&&this.addTable.splice(t,1)},submitAdd:function(){var e=this,t=(this.MinutesTest(this.addTable[0].startClassTimeStr,90),{vipGroupApplyBaseInfo:{id:this.vipid},courseSchedules:[]});for(var r in this.addTable){var a={classDate:this.addTable[r].classDate,startClassTimeStr:this.addTable[r].startClassTimeStr,endClassTimeStr:this.MinutesTest(this.addTable[r].startClassTimeStr,this.courseTime),teachMode:this.addTable[r].teachMode};t.courseSchedules.push(a)}Object(o["e"])(t).then(function(t){200==t.code&&(e.addCourseVisible=!1,e.rules.page=1,e.getList())})},isDisabled:function(e,t){return!e.isSettlement},MinutesTest:function(e,t){var r=e.split(":")[0],a=e.split(":")[1],n=new Date(1900,1,1,r,a);n.setMinutes(n.getMinutes()+parseInt(t));var u=n.getHours(),i=n.getMinutes();return u<10&&(u="0"+u),i<10&&(i="0"+i),u+":"+i},handleSelectionChange:function(e){this.adjustmentForm.count=e.length,this.activeList=e},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",id:new Date})},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},adjustment:function(){this.adjustmentName="批量调整",this.isaddCourse=!1,this.adjustmentForm.count<=0?this.$message.error("请至少勾选一节课"):this.adjustmentVisible=!0},submitAdjustment:function(){var e=this;this.$refs["adjustmentForm"].validate(function(t){if(t){var r=e.weekList;if(!r[0]||!r[0].startClassTime||!r[0].dayOfWeek)return void e.$message.error("至少排一节课");var a={};a.courseCreateStartTime=e.adjustmentForm.courseTime;var n=e.activeList.map(function(e){return e.id}),u=n.join(",");a.courseScheduleIds=u,a.courseTimes=e.weekList,a.holiday=e.adjustmentForm.checked,a.vipGroupId=e.vipid,Object(o["F"])(a).then(function(t){200==t.code&&(e.$message.success("恭喜您修改成功"),e.adjustmentVisible=!1,e.getList())})}})},addCourseSubmit:function(){var e=this;this.$refs["adjustmentForm"].validate(function(t){if(t){var r=e.weekList;if(!r[0]||!r[0].startClassTime||!r[0].dayOfWeek)return void e.$message.error("至少排一节课");var a={};a.courseCreateStartTime=e.adjustmentForm.courseTime;var n=e.activeList.map(function(e){return e.id}),u=n.join(",");a.courseScheduleIds=u,a.courseTimes=e.weekList,a.holiday=e.adjustmentForm.checked,a.vipGroupId=e.vipid,a.courseCount=e.adjustmentForm.addCount,a.teachMode=e.adjustmentForm.courseType,Object(o["f"])(a).then(function(t){200==t.code&&(e.$message.success("恭喜您添加成功"),e.adjustmentVisible=!1,e.getList())})}})},resetAddrSubmit:function(){var e=this;this.addrForm.address?Object(o["E"])({id:this.vipid,teacherSchoolId:this.addrForm.address}).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.addrVisible=!1,e.getList())}):this.$message.error("请选择一个教学点")}},watch:{adjustmentVisible:function(e){e||(this.$refs["adjustmentForm"].resetFields(),this.weekList=[],this.addWeek())},addrVisible:function(e){e||(this.addrForm.address="")}}},d=c,l=(r("0a7d"),r("2877")),m=Object(l["a"])(d,a,n,!1,null,"6db2c653",null);t["default"]=m.exports},"94df":function(e,t,r){},"99b4":function(e,t,r){"use strict";r.d(t,"a",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"b",function(){return c}),r.d(t,"x",function(){return d}),r.d(t,"v",function(){return l}),r.d(t,"C",function(){return m}),r.d(t,"B",function(){return p}),r.d(t,"D",function(){return f}),r.d(t,"w",function(){return h}),r.d(t,"h",function(){return b}),r.d(t,"j",function(){return g}),r.d(t,"m",function(){return v}),r.d(t,"i",function(){return y}),r.d(t,"z",function(){return j}),r.d(t,"k",function(){return O}),r.d(t,"A",function(){return S}),r.d(t,"y",function(){return C}),r.d(t,"d",function(){return k}),r.d(t,"f",function(){return T}),r.d(t,"e",function(){return _}),r.d(t,"g",function(){return F}),r.d(t,"n",function(){return w}),r.d(t,"o",function(){return G}),r.d(t,"q",function(){return M}),r.d(t,"p",function(){return V}),r.d(t,"l",function(){return L}),r.d(t,"t",function(){return x}),r.d(t,"r",function(){return $}),r.d(t,"u",function(){return q}),r.d(t,"s",function(){return P});var a=r("b775"),n=r("4328"),u=r.n(n),i="/api-web";function o(e){return Object(a["a"])({url:i+"/cooperationOrgan/add",method:"post",data:u.a.stringify(e)})}function s(e){return Object(a["a"])({url:i+"/cooperationOrgan/update",method:"put",data:u.a.stringify(e)})}function c(e){return Object(a["a"])({url:i+"/cooperationOrgan/del/".concat(e),method:"post"})}function d(e){return Object(a["a"])({url:i+"/cooperationOrgan/queryPage",method:"get",params:e})}function l(e){return Object(a["a"])({url:i+"/cooperationOrgan/queryByOrganId",method:"get",params:e})}function m(e){return Object(a["a"])({url:i+"/school/queryPage",method:"get",params:e})}function p(e){return Object(a["a"])({url:i+"/school/add",method:"post",data:u.a.stringify(e)})}function f(e){return Object(a["a"])({url:i+"/school/update",method:"post",data:u.a.stringify(e)})}function h(e){return Object(a["a"])({url:i+"/employee/queryEmployByOrganId",method:"get",params:e})}function b(e){return Object(a["a"])({url:i+"/employee/add",method:"post",data:e})}function g(e){return Object(a["a"])({url:i+"/employee/update",method:"post",data:e})}function v(e){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function y(e){return Object(a["a"])({url:i+"/employee/employeeOperate",method:"post",data:u.a.stringify(e)})}function j(e){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function O(e){return Object(a["a"])({url:"/api-auth/role/".concat(e.id),method:"get"})}function S(e){return Object(a["a"])({url:"/api-auth/role/update",method:"post",data:e})}function C(e){return Object(a["a"])({url:"/api-auth/role/add",method:"post",data:e})}function k(e){return Object(a["a"])({url:i+"/courseScheduleRewards/queryPage",method:"get",params:e})}function T(e){return Object(a["a"])({url:i+"/courseScheduleRewards/query",method:"get",params:e})}function _(e){return Object(a["a"])({url:i+"/courseScheduleRewards/add",method:"post",data:u.a.stringify(e)})}function F(e){return Object(a["a"])({url:i+"/courseScheduleRewards/update",method:"post",data:u.a.stringify(e)})}function w(e){return Object(a["a"])({url:i+"/hotWordLabelManage/queryPage",method:"get",params:e})}function G(e){return Object(a["a"])({url:i+"/hotWordLabelManage/add",method:"post",data:u.a.stringify(e)})}function M(e){return Object(a["a"])({url:i+"/hotWordLabelManage/update",method:"post",data:u.a.stringify(e)})}function V(e){return Object(a["a"])({url:i+"/hotWordLabelManage/del/".concat(e),method:"post"})}function L(e){return Object(a["a"])({url:i+"/school/queryByOrganId",method:"get",params:e})}function x(e){return Object(a["a"])({url:i+"/paymentConfig/queryPage",method:"get",params:e})}function $(e){return Object(a["a"])({url:i+"/paymentConfig/add",method:"post",data:u.a.stringify(e)})}function q(e){return Object(a["a"])({url:i+"/paymentConfig/update",method:"post",data:u.a.stringify(e)})}function P(e){return Object(a["a"])({url:i+"/paymentConfig/del/"+e.id,method:"post"})}},c0b9:function(e,t,r){"use strict";var a=r("de4e"),n=r.n(a);n.a},de4e:function(e,t,r){}}]);