1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5aee05b2"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,a){var o=i(),s=t-o,u=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=u;var i=Math.easeInOutQuad(l,o,s,e);r(i),l<e?n(t):a&&"function"===typeof a&&a()};c()}},"333d":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("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)},r=[],i=(a("c5f6"),a("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(i["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(i["a"])(0,800)}}},s=o,u=(a("c0b9"),a("2877")),l=Object(u["a"])(s,n,r,!1,null,"31cb099a",null);e["a"]=l.exports},"7e78":function(t,e,a){"use strict";a.d(e,"F",(function(){return s})),a.d(e,"m",(function(){return u})),a.d(e,"c",(function(){return l})),a.d(e,"B",(function(){return c})),a.d(e,"x",(function(){return d})),a.d(e,"a",(function(){return p})),a.d(e,"y",(function(){return m})),a.d(e,"v",(function(){return f})),a.d(e,"i",(function(){return b})),a.d(e,"D",(function(){return g})),a.d(e,"E",(function(){return h})),a.d(e,"b",(function(){return v})),a.d(e,"z",(function(){return T})),a.d(e,"w",(function(){return y})),a.d(e,"t",(function(){return C})),a.d(e,"r",(function(){return S})),a.d(e,"k",(function(){return k})),a.d(e,"u",(function(){return O})),a.d(e,"l",(function(){return _})),a.d(e,"s",(function(){return G})),a.d(e,"p",(function(){return w})),a.d(e,"A",(function(){return j})),a.d(e,"q",(function(){return M})),a.d(e,"h",(function(){return F})),a.d(e,"g",(function(){return V})),a.d(e,"C",(function(){return D})),a.d(e,"j",(function(){return P})),a.d(e,"f",(function(){return $})),a.d(e,"e",(function(){return z})),a.d(e,"o",(function(){return A})),a.d(e,"n",(function(){return x})),a.d(e,"d",(function(){return q}));var n=a("b775"),r=a("4328"),i=a.n(r),o="/api-web";function s(t){return Object(n["a"])({url:o+"/vipGroupCategory/queryAll",method:"get",params:t})}function u(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:t})}function l(t){return Object(n["a"])({url:o+"/vipGroupCategory/add",method:"post",data:i.a.stringify(t)})}function c(t){return Object(n["a"])({url:o+"/vipGroupCategory/update",method:"post",data:i.a.stringify(t)})}function d(t){return Object(n["a"])({url:o+"/vipGroupCategory/delete",method:"post",data:i.a.stringify(t)})}function p(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/add",method:"post",data:i.a.stringify(t)})}function m(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/update",method:"post",data:i.a.stringify(t)})}function f(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/delete",method:"post",data:i.a.stringify(t)})}function b(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:i.a.stringify(t)})}function g(t){return Object(n["a"])({url:o+"/vipGroupActivity/queryPage",method:"get",params:t})}function h(t){return Object(n["a"])({url:o+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})}function v(t){return Object(n["a"])({url:o+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:t})}function T(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:i.a.stringify(t)})}function C(t){return Object(n["a"])({url:o+"/vipGroupManage/queryAll",method:"GET",params:t})}function S(t){return Object(n["a"])({url:o+"/vipGroupManage/getVipGroupDetail",method:"GET",params:t})}function k(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupStudents",method:"GET",params:t})}function O(t){return Object(n["a"])({url:o+"/vipGroupManage/applyRefundForStudent",method:"POST",data:i.a.stringify(t)})}function _(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:t})}function G(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupSalarys",method:"get",params:t})}function w(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:t})}function j(t){return Object(n["a"])({url:o+"/vipGroupManage/classStartDateAdjust",method:"POST",params:t})}function M(t){return Object(n["a"])({url:o+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:t})}function F(t){return Object(n["a"])({url:o+"/vipGroupManage/vipGroupApply",method:"POST",data:t})}function V(t){return Object(n["a"])({url:o+"/vipGroupManage/stopVipGroup",method:"POST",data:i.a.stringify(t)})}function D(t){return Object(n["a"])({url:o+"/vipGroupManage/updateVipBaseInfo",method:"POST",data:t})}function P(t){return Object(n["a"])({url:o+"/courseSchedule/findVipGroupCourseSchedules",method:"POST",data:i.a.stringify(t)})}function $(t){return Object(n["a"])({url:o+"/courseSchedule/bathDelete",method:"POST",data:i.a.stringify(t)})}function z(t){return Object(n["a"])({url:o+"/vipGroupManage/appendVipGroupCourseSchedules",method:"POST",data:t})}function A(t){return Object(n["a"])({url:o+"/vipGroupManage/getStudentSurplusCourseFee",method:"get",params:t})}function x(t){return Object(n["a"])({url:o+"/vipGroupManage/findHaveCourseBalanceStudents",method:"get",params:t})}function q(t){return Object(n["a"])({url:o+"/vipGroupManage/addVipGroupStudents",method:"get",params:t})}},"84f0":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:"vip修改"},on:{back:t.goBack}})],1),t._v(" "),a("div",{staticClass:"newBand",on:{click:t.addCourse}},[t._v("vip加课")]),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"课程名称",width:"150",align:"center",prop:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"班级id",width:"150",align:"center",prop:"classGroupId"}}),t._v(" "),a("el-table-column",{attrs:{label:"上课日期",align:"center",width:"150",prop:"classDate"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("formatTimer")(e.row.classDate))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"课程状态",align:"center",width:"150",prop:"status"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("coursesStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"上课开始时间",align:"center",width:"150",prop:"startClassTimeStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"上课结束时间",align:"center",width:"150",prop:"endClassTimeStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.resetClass(e.row)}}},[t._v("调整")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.removeClass(e.row)}}},[t._v("删除")])],1)]}}])})],1),t._v(" "),a("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(" "),a("el-dialog",{attrs:{title:"课程调整",width:"400px","before-close":t.handleClose,visible:t.courseVisible},on:{"update:visible":function(e){t.courseVisible=e}}},[a("el-form",{ref:"maskForm",attrs:{model:t.maskForm,rules:t.maskRules,"label-position":"right","label-width":"80px;",inline:!0}},[a("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[a("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(" "),a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("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(" "),a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("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(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.courseVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitResetClass}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"课程调整",visible:t.addCourseVisible},on:{"update:visible":function(e){t.addCourseVisible=e}}},[a("el-button",{attrs:{type:"text"},on:{click:t.addOneChiose}},[t._v("添加")]),t._v(" "),a("el-table",{attrs:{data:t.addTable}},[a("el-table-column",{attrs:{label:"上课日期",align:"center",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:e.row.classDate,callback:function(a){t.$set(e.row,"classDate",a)},expression:"scope.row.classDate"}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"课程开始时间",align:"center",prop:"startClassTimeStr"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-time-select",{attrs:{"picker-options":{start:"06:30",step:"00:15",end:"23:30"},placeholder:"选择时间"},model:{value:e.row.startClassTimeStr,callback:function(a){t.$set(e.row,"startClassTimeStr",a)},expression:"scope.row.startClassTimeStr"}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"课程形态",align:"center",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-select",{model:{value:e.row.teachMode,callback:function(a){t.$set(e.row,"teachMode",a)},expression:"scope.row.teachMode"}},[a("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),t._v(" "),a("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.removeMarkCourse(e.row)}}},[t._v("删除")])],1)]}}])})],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.addCourseVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitAdd}},[t._v("确 定")])],1)],1)],1)},r=[],i=(a("28a5"),a("1cc7")),o=a("333d"),s=a("7e78"),u={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(s["j"])({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(i["ib"])(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(s["f"])({courseScheduleIds:t.id}).then((function(t){200==t.code&&(e.$message.success("删除成功"),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 a in this.addTable){var n={classDate:this.addTable[a].classDate,startClassTimeStr:this.addTable[a].startClassTimeStr,endClassTimeStr:this.MinutesTest(this.addTable[a].startClassTimeStr,this.courseTime),teachMode:this.addTable[a].teachMode};e.courseSchedules.push(n)}Object(s["e"])(e).then((function(e){200==e.code&&(t.addCourseVisible=!1,t.rules.page=1,t.getList())}))},MinutesTest:function(t,e){var a=t.split(":")[0],n=t.split(":")[1],r=new Date(1900,1,1,a,n);r.setMinutes(r.getMinutes()+parseInt(e));var i=r.getHours(),o=r.getMinutes();return i<10&&(i="0"+i),o<10&&(o="0"+o),i+":"+o}}},l=u,c=a("2877"),d=Object(c["a"])(l,n,r,!1,null,null,null);e["default"]=d.exports},c0b9:function(t,e,a){"use strict";var n=a("de4e"),r=a.n(n);r.a},de4e:function(t,e,a){}}]);
|