1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b4e88244","chunk-2d0b66fc"],{"09f4":function(t,e,r){"use strict";r.d(e,"a",function(){return o}),Math.easeInOutQuad=function(t,e,r,n){return t/=n/2,t<1?r/2*t*t+e:(t--,-r/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function u(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,r){var o=a(),i=t-o,s=20,c=0;e="undefined"===typeof e?500:e;var d=function t(){c+=s;var a=Math.easeInOutQuad(c,o,i,e);u(a),c<e?n(t):r&&"function"===typeof r&&r()};d()}},"1cc7":function(t,e,r){"use strict";r.d(e,"H",function(){return i}),r.d(e,"W",function(){return s}),r.d(e,"x",function(){return c}),r.d(e,"r",function(){return d}),r.d(e,"N",function(){return l}),r.d(e,"L",function(){return p}),r.d(e,"z",function(){return f}),r.d(e,"C",function(){return m}),r.d(e,"j",function(){return b}),r.d(e,"S",function(){return h}),r.d(e,"I",function(){return g}),r.d(e,"K",function(){return O}),r.d(e,"F",function(){return v}),r.d(e,"G",function(){return y}),r.d(e,"d",function(){return j}),r.d(e,"fb",function(){return G}),r.d(e,"p",function(){return S}),r.d(e,"b",function(){return T}),r.d(e,"s",function(){return C}),r.d(e,"eb",function(){return k}),r.d(e,"h",function(){return M}),r.d(e,"B",function(){return _}),r.d(e,"nb",function(){return P}),r.d(e,"t",function(){return w}),r.d(e,"u",function(){return F}),r.d(e,"rb",function(){return q}),r.d(e,"J",function(){return A}),r.d(e,"q",function(){return D}),r.d(e,"m",function(){return V}),r.d(e,"i",function(){return x}),r.d(e,"Q",function(){return z}),r.d(e,"c",function(){return $}),r.d(e,"n",function(){return I}),r.d(e,"mb",function(){return B}),r.d(e,"D",function(){return E}),r.d(e,"E",function(){return N}),r.d(e,"V",function(){return R}),r.d(e,"X",function(){return L}),r.d(e,"M",function(){return Q}),r.d(e,"U",function(){return H}),r.d(e,"T",function(){return J}),r.d(e,"a",function(){return U}),r.d(e,"w",function(){return W}),r.d(e,"y",function(){return K}),r.d(e,"gb",function(){return X}),r.d(e,"pb",function(){return Y}),r.d(e,"P",function(){return Z}),r.d(e,"jb",function(){return tt}),r.d(e,"ab",function(){return et}),r.d(e,"bb",function(){return rt}),r.d(e,"R",function(){return nt}),r.d(e,"Y",function(){return ut}),r.d(e,"hb",function(){return at}),r.d(e,"Z",function(){return ot}),r.d(e,"l",function(){return it}),r.d(e,"lb",function(){return st}),r.d(e,"kb",function(){return ct}),r.d(e,"cb",function(){return dt}),r.d(e,"g",function(){return lt}),r.d(e,"ib",function(){return pt}),r.d(e,"o",function(){return ft}),r.d(e,"qb",function(){return mt}),r.d(e,"f",function(){return bt}),r.d(e,"e",function(){return ht}),r.d(e,"ob",function(){return gt}),r.d(e,"v",function(){return Ot}),r.d(e,"A",function(){return vt}),r.d(e,"db",function(){return yt}),r.d(e,"O",function(){return jt}),r.d(e,"k",function(){return Gt});var n=r("b775"),u=r("4328"),a=r.n(u),o="/api-web";function i(t){return Object(n["a"])({url:o+"/organization/queryPage",method:"get",params:t})}function s(t){return Object(n["a"])({url:o+"/chargeType/queryPage",method:"get",params:t})}function c(t){return Object(n["a"])({url:o+"/cooperationOrgan/queryPage",method:"get",params:t})}function d(t){return Object(n["a"])({url:o+"/school/queryPage",method:"get",params:t})}function l(t){return Object(n["a"])({url:o+"/teacher/findTeachers",method:"get",params:t})}function p(t){return Object(n["a"])({url:o+"/subject/findSubSubjects",method:"get",params:t})}function f(t){return Object(n["a"])({url:o+"/subject/findDefaultSubByChargeTypeId",method:"get",params:t})}function m(t){return Object(n["a"])({url:o+"/goods/queryGoodsBySubId",method:"get",params:t})}function b(t){return Object(n["a"])({url:o+"/musicGroup/createGroup",method:"post",data:t})}function h(t){return Object(n["a"])({url:o+"/musicGroupSubjectPlan/getMusicSubjectClass",method:"get",params:t})}function g(t){return Object(n["a"])({url:o+"/classGroup/findMusicGroupClass",method:"get",params:t})}function O(t){return Object(n["a"])({url:o+"/studentRegistration/queryStudentApplyDetail",method:"get",params:t})}function v(t){return Object(n["a"])({url:o+"/studentRegistration/getNoClassStu",method:"get",params:t})}function y(t){return Object(n["a"])({url:o+"/studentRegistration/getMusicGroupNoClassStu",method:"get",params:t})}function j(t){return Object(n["a"])({url:o+"/classGroup/add",method:"post",data:t})}function G(t){return Object(n["a"])({url:o+"/classGroup/delSingle",method:"post",data:a.a.stringify(t)})}function S(t){return Object(n["a"])({url:o+"/classGroup/findNoClassSubjects",method:"get",params:t})}function T(t){return Object(n["a"])({url:o+"/classGroup/addMixClass",method:"post",data:a.a.stringify(t)})}function C(t){return Object(n["a"])({url:o+"/classGroup/findMixMusicGroupClass",method:"get",params:t})}function k(t){return Object(n["a"])({url:o+"/classGroup/delMix",method:"post",data:a.a.stringify(t)})}function M(t){return Object(n["a"])({url:o+"/classGroup/addMusicGroupTeam",method:"POST",data:a.a.stringify(t)})}function _(t){return Object(n["a"])({url:o+"/classGroup/findMusicGroupClassTeacher",method:"get",params:t})}function P(t){return Object(n["a"])({url:o+"/classGroup/addClassGroupTeacher",method:"post",data:t})}function w(t){return Object(n["a"])({url:o+"/classGroup/findClassGroupAboutMix",method:"get",params:t})}function F(t){return Object(n["a"])({url:o+"/classGroup/classGroupAndTeacher",method:"get",params:t})}function q(t){return Object(n["a"])({url:o+"/courseSchedule/batchAddCourseSchedule",method:"post",data:t})}function A(t){return Object(n["a"])({url:o+"/subject/queryPageTree",method:"get",params:t})}function D(t){return Object(n["a"])({url:o+"/subject/querySubByMusicGroupId",method:"get",params:t})}function V(t){return Object(n["a"])({url:o+"/teacher/findMusicGroupTeachers",method:"get",params:t})}function x(t){return Object(n["a"])({url:o+"/courseSchedule/checkMusicGroupClassCourse",method:"post",data:a.a.stringify(t)})}function z(t){return Object(n["a"])({url:o+"/musicGroup/get/",method:"get",params:t})}function $(t){return Object(n["a"])({url:o+"/classGroup/addHighClass",method:"POST",data:t})}function I(t){return Object(n["a"])({url:o+"/classGroup/findMusicGroupClassTeacherSalary",method:"GET",params:t})}function B(t){return Object(n["a"])({url:o+"/classGroup/setClassGroupTeacherSalary",method:"post",data:t})}function E(t){return Object(n["a"])({url:o+"/musicGroup/get",method:"get",params:t})}function N(t){return Object(n["a"])({url:o+"/recharge/findAll",method:"get",params:t})}function R(t){return Object(n["a"])({url:o+"/teacher/queryMusicGroupTeachers",method:"get",params:t})}function L(t){return Object(n["a"])({url:o+"/subject/findSubApplyDetail",method:"get",params:t})}function Q(t){return Object(n["a"])({url:o+"/teacher/queryTeacherAttendance",method:"get",params:t})}function H(t){return Object(n["a"])({url:o+"/studentManage/queryMusicGroupStudent",method:"get",params:t})}function J(t){return Object(n["a"])({url:o+"/studentManage/musicGroupStudentsSum",method:"get",params:t})}function U(t){return Object(n["a"])({url:o+"/musicGroupQuit/directQuitMusicGroup",method:"post",data:a.a.stringify(t)})}function W(t){return Object(n["a"])({url:o+"/classGroup/queryMusicGroupClassGroup",method:"get",params:t})}function K(t){return Object(n["a"])({url:o+"/classGroup/queryMusicGroupCourseSchedule",method:"get",params:t})}function X(t){return Object(n["a"])({url:o+"/courseSchedule/classStartDateAdjust",method:"post",data:a.a.stringify(t)})}function Y(t){return Object(n["a"])({url:o+"/studentRegistration/getMusicGroupStu",method:"get",params:t})}function Z(t){return Object(n["a"])({url:o+"/musicGroup/findMusicGroupBasicInfo",method:"POST",data:a.a.stringify(t)})}function tt(t){return Object(n["a"])({url:o+"/musicGroup/update",method:"POST",data:t})}function et(t){return Object(n["a"])({url:o+"/musicGroup/openPay",method:"POST",data:a.a.stringify(t)})}function rt(t){return Object(n["a"])({url:o+"/studentRegistration/openPayment",method:"POST",data:a.a.stringify(t)})}function nt(t){return Object(n["a"])({url:o+"/order/getMusicalList",method:"get",params:t})}function ut(t){return Object(n["a"])({url:o+"/classGroup/highClassGroups",method:"get",params:t})}function at(t){return Object(n["a"])({url:o+"/classGroupStudent/adjustClassGroup",method:"POST",data:a.a.stringify(t)})}function ot(t){return Object(n["a"])({url:o+"/musicGroup/found",method:"POST",data:a.a.stringify(t)})}function it(t){return Object(n["a"])({url:o+"/musicGroup/extensionPayment",method:"POST",data:a.a.stringify(t)})}function st(t){return Object(n["a"])({url:o+"/classGroup/revisionClassGroup",method:"POST",data:t})}function ct(t){return Object(n["a"])({url:o+"/classGroup/revisionAddClassGroup",method:"POST",data:t})}function dt(t){return Object(n["a"])({url:o+"/musicGroup/pauseMusicGroup",method:"POST",data:a.a.stringify(t)})}function lt(t){return Object(n["a"])({url:o+"/musicGroup/cancelMusicGroup",method:"POST",data:a.a.stringify(t)})}function pt(t){return Object(n["a"])({url:o+"/musicGroup/updateExpectedStudentNum",method:"POST",data:t})}function ft(t){return Object(n["a"])({url:o+"/musicGroup/findMusicGroupSubjectInfo",method:"get",params:t})}function mt(t){return Object(n["a"])({url:o+"/musicGroup/updateSubjectInfo",method:"POST",data:t})}function bt(t){return Object(n["a"])({url:o+"/musicGroup/auditSuccess",method:"POST",data:a.a.stringify(t)})}function ht(t){return Object(n["a"])({url:o+"/musicGroup/auditFailed",method:"POST",data:a.a.stringify(t)})}function gt(t){return Object(n["a"])({url:o+"/musicGroup/action",method:"POST",data:a.a.stringify(t)})}function Ot(t){return Object(n["a"])({url:o+"/courseSchedule/findCourseScheduleByClassGroup",method:"get",params:t})}function vt(t){return Object(n["a"])({url:o+"/organization/queryEmployeeOrgan",method:"get",params:t})}function yt(t){return Object(n["a"])({url:o+"/musicGroup/pushMessage",method:"post",data:a.a.stringify(t)})}function jt(t){return Object(n["a"])({url:o+"/courseSchedule/queryTeacherSalary",method:"get",params:t})}function Gt(t){return Object(n["a"])({url:o+"/courseSchedule/batchDeleteMusicGroupNotStartCourse",method:"get",params:t})}},"333d":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[r("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},u=[],a=(r("c5f6"),r("09f4")),o={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(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(a["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(a["a"])(0,800)}}},i=o,s=(r("c0b9"),r("2877")),c=Object(s["a"])(i,n,u,!1,null,"31cb099a",null);e["a"]=c.exports},"7e78":function(t,e,r){"use strict";r.d(e,"C",function(){return i}),r.d(e,"l",function(){return s}),r.d(e,"c",function(){return c}),r.d(e,"y",function(){return d}),r.d(e,"u",function(){return l}),r.d(e,"a",function(){return p}),r.d(e,"v",function(){return f}),r.d(e,"s",function(){return m}),r.d(e,"h",function(){return b}),r.d(e,"A",function(){return h}),r.d(e,"B",function(){return g}),r.d(e,"b",function(){return O}),r.d(e,"w",function(){return v}),r.d(e,"t",function(){return y}),r.d(e,"q",function(){return j}),r.d(e,"o",function(){return G}),r.d(e,"j",function(){return S}),r.d(e,"r",function(){return T}),r.d(e,"k",function(){return C}),r.d(e,"p",function(){return k}),r.d(e,"m",function(){return M}),r.d(e,"x",function(){return _}),r.d(e,"n",function(){return P}),r.d(e,"g",function(){return w}),r.d(e,"f",function(){return F}),r.d(e,"z",function(){return q}),r.d(e,"i",function(){return A}),r.d(e,"e",function(){return D}),r.d(e,"d",function(){return V});var n=r("b775"),u=r("4328"),a=r.n(u),o="/api-web";function i(t){return Object(n["a"])({url:o+"/vipGroupCategory/queryAll",method:"get",params:t})}function s(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:t})}function c(t){return Object(n["a"])({url:o+"/vipGroupCategory/add",method:"post",data:a.a.stringify(t)})}function d(t){return Object(n["a"])({url:o+"/vipGroupCategory/update",method:"post",data:a.a.stringify(t)})}function l(t){return Object(n["a"])({url:o+"/vipGroupCategory/delete",method:"post",data:a.a.stringify(t)})}function p(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/add",method:"post",data:a.a.stringify(t)})}function f(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/update",method:"post",data:a.a.stringify(t)})}function m(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/delete",method:"post",data:a.a.stringify(t)})}function b(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:a.a.stringify(t)})}function h(t){return Object(n["a"])({url:o+"/vipGroupActivity/queryPage",method:"get",params:t})}function g(t){return Object(n["a"])({url:o+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})}function O(t){return Object(n["a"])({url:o+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:t})}function v(t){return Object(n["a"])({url:o+"/vipGroupActivity/update",method:"POST",data:t})}function y(t){return Object(n["a"])({url:o+"/vipGroupActivity/delete",method:"POST",data:a.a.stringify(t)})}function j(t){return Object(n["a"])({url:o+"/vipGroupManage/queryAll",method:"GET",params:t})}function G(t){return Object(n["a"])({url:o+"/vipGroupManage/getVipGroupDetail",method:"GET",params:t})}function S(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupStudents",method:"GET",params:t})}function T(t){return Object(n["a"])({url:o+"/vipGroupManage/applyRefundForStudent",method:"POST",data:a.a.stringify(t)})}function C(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:t})}function k(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupSalarys",method:"get",params:t})}function M(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:t})}function _(t){return Object(n["a"])({url:o+"/vipGroupManage/classStartDateAdjust",method:"POST",params:t})}function P(t){return Object(n["a"])({url:o+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:t})}function w(t){return Object(n["a"])({url:o+"/vipGroupManage/vipGroupApply",method:"POST",data:t})}function F(t){return Object(n["a"])({url:o+"/vipGroupManage/stopVipGroup",method:"POST",data:a.a.stringify(t)})}function q(t){return Object(n["a"])({url:o+"/vipGroupManage/updateVipBaseInfo",method:"POST",data:t})}function A(t){return Object(n["a"])({url:o+"/courseSchedule/findVipGroupCourseSchedules",method:"POST",data:a.a.stringify(t)})}function D(t){return Object(n["a"])({url:o+"/courseSchedule/bathDelete",method:"POST",data:a.a.stringify(t)})}function V(t){return Object(n["a"])({url:o+"/vipGroupManage/appendVipGroupCourseSchedules",method:"POST",data:t})}},"84f0":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"m-container"},[r("h2",[r("el-page-header",{attrs:{content:"vip修改"},on:{back:t.goBack}})],1),t._v(" "),r("div",{staticClass:"newBand",on:{click:t.addCourse}},[t._v("vip加课")]),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{label:"课程名称",width:"150",align:"center",prop:"name"}}),t._v(" "),r("el-table-column",{attrs:{label:"班级id",width:"150",align:"center",prop:"classGroupId"}}),t._v(" "),r("el-table-column",{attrs:{label:"上课日期",align:"center",width:"150",prop:"classDate"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("formatTimer")(e.row.classDate))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"课程状态",align:"center",width:"150",prop:"status"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("coursesStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"上课开始时间",align:"center",width:"150",prop:"startClassTimeStr"}}),t._v(" "),r("el-table-column",{attrs:{label:"上课结束时间",align:"center",width:"150",prop:"endClassTimeStr"}}),t._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.resetClass(e.row)}}},[t._v("调整")]),t._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.removeClass(e.row)}}},[t._v("删除")])],1)]}}])})],1),t._v(" "),r("pagination",{attrs:{total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1),t._v(" "),r("el-dialog",{attrs:{title:"课程调整",width:"400px","before-close":t.handleClose,visible:t.courseVisible},on:{"update:visible":function(e){t.courseVisible=e}}},[r("el-form",{ref:"maskForm",attrs:{model:t.maskForm,rules:t.maskRules,"label-position":"right","label-width":"80px;",inline:!0}},[r("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[r("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.maskForm.date,callback:function(e){t.$set(t.maskForm,"date",e)},expression:"maskForm.date"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[r("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"06:30",step:"00:15",end:"23:30"}},model:{value:t.maskForm.startTime,callback:function(e){t.$set(t.maskForm,"startTime",e)},expression:"maskForm.startTime"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[r("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"06:30",step:"00:15",end:"23:30",minTime:t.maskForm.startTime}},model:{value:t.maskForm.endTime,callback:function(e){t.$set(t.maskForm,"endTime",e)},expression:"maskForm.endTime"}})],1)],1),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.courseVisible=!1}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.submitResetClass}},[t._v("确 定")])],1)],1),t._v(" "),r("el-dialog",{attrs:{title:"课程调整",visible:t.addCourseVisible},on:{"update:visible":function(e){t.addCourseVisible=e}}},[r("el-button",{attrs:{type:"text"},on:{click:t.addOneChiose}},[t._v("添加")]),t._v(" "),r("el-table",{attrs:{data:t.addTable}},[r("el-table-column",{attrs:{label:"上课日期",align:"center",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.row.classDate,callback:function(r){t.$set(e.row,"classDate",r)},expression:"scope.row.classDate"}})],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"课程开始时间",align:"center",prop:"startClassTimeStr"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("el-time-select",{attrs:{"picker-options":{start:"06:30",step:"00:15",end:"23:30"},placeholder:"选择时间"},model:{value:e.row.startClassTimeStr,callback:function(r){t.$set(e.row,"startClassTimeStr",r)},expression:"scope.row.startClassTimeStr"}})],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"课程形态",align:"center",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("el-select",{model:{value:e.row.teachMode,callback:function(r){t.$set(e.row,"teachMode",r)},expression:"scope.row.teachMode"}},[r("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),t._v(" "),r("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.removeMarkCourse(e.row)}}},[t._v("删除")])],1)]}}])})],1),t._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.addCourseVisible=!1}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.submitAdd}},[t._v("确 定")])],1)],1)],1)},u=[],a=(r("28a5"),r("1cc7")),o=r("333d"),i=r("7e78"),s={components:{pagination:o["a"]},data:function(){return{addCourseVisible:!1,courseVisible:!1,tableList:[],addTable:[],courseTime:"",vipid:"",maskForm:{date:"",startTime:"",endTime:"",id:""},rules:{limit:10,page:1,total:0,page_size:[10,20,30,40]},maskRules:{date:[{required:!0,message:"请选择上课时间",trigger:"blur"}],startTime:[{required:!0,message:"请选择上课开始时间",trigger:"blur"}],endTime:[{required:!0,message:"请选择上课结束时间",trigger:"blur"}]}}},created:function(){this.vipid=this.$route.query.id},mounted:function(){this.getList()},methods:{getList:function(){var t=this;Object(i["i"])({vipGroupId:this.vipid,rows:this.rules.limit,page:this.rules.page}).then(function(e){200==e.code&&(t.tableList=e.data.pageInfo.rows,t.rules.total=e.data.pageInfo.total,t.courseTime=e.data.singleClassMinutes)})},goBack:function(){this.$router.go(-1)},resetClass:function(t){this.maskForm.date=t.classDate,this.maskForm.startTime=t.startClassTimeStr,this.maskForm.endTime=t.endClassTimeStr,this.maskForm.id=t.id,this.courseVisible=!0},handleClose:function(){this.courseVisible=!1,this.$refs["maskForm"].resetFields()},submitResetClass:function(){var t=this,e={startClassTimeStr:this.maskForm.startTime,endClassTimeStr:this.maskForm.endTime,id:this.maskForm.id,classDate:this.maskForm.date};Object(a["gb"])(e).then(function(e){200==e.code&&(t.$message.success("修改成功"),t.courseVisible=!1,t.getList())})},removeClass:function(t){var e=this;this.$confirm("是否删除该vip课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i["e"])({courseScheduleIds:t.id}).then(function(t){200==t.code&&(e.$message({type:"success",message:"删除成功!"}),e.getList())})})},addCourse:function(){this.addCourseVisible=!0},addOneChiose:function(){this.addTable.push({classDate:"",startClassTimeStr:"",endClassTimeStr:"",teachMode:"",moid:(new Date).getTime()})},removeMarkCourse:function(t){for(var e in this.addTable)this.addTable[e].moid==t.moid&&this.addTable.splice(e,1)},submitAdd:function(){var t=this,e=(this.MinutesTest(this.addTable[0].startClassTimeStr,90),{vipGroupApplyBaseInfo:{id:this.vipid},courseSchedules:[]});for(var r in this.addTable){var n={classDate:this.addTable[r].classDate,startClassTimeStr:this.addTable[r].startClassTimeStr,endClassTimeStr:this.MinutesTest(this.addTable[r].startClassTimeStr,this.courseTime),teachMode:this.addTable[r].teachMode};e.courseSchedules.push(n)}Object(i["d"])(e).then(function(e){200==e.code&&(t.addCourseVisible=!1,t.rules.page=1,t.getList())})},MinutesTest:function(t,e){var r=t.split(":")[0],n=t.split(":")[1],u=new Date(1900,1,1,r,n);u.setMinutes(u.getMinutes()+parseInt(e));var a=u.getHours(),o=u.getMinutes();return a<10&&(a="0"+a),o<10&&(o="0"+o),a+":"+o}}},c=s,d=r("2877"),l=Object(d["a"])(c,n,u,!1,null,null,null);e["default"]=l.exports},c0b9:function(t,e,r){"use strict";var n=r("de4e"),u=r.n(n);u.a},de4e:function(t,e,r){}}]);
|