chunk-ddec259c.8531a32e.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ddec259c"],{"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(),i=t-u,s=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=s;var o=Math.easeInOutQuad(l,u,i,e);n(o),l<e?a(t):r&&"function"===typeof r&&r()};c()}},"333d":function(t,e,r){"use strict";var a=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)},n=[],o=(r("c5f6"),r("09f4")),u={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(o["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},i=u,s=(r("c0b9"),r("2877")),l=Object(s["a"])(i,a,n,!1,null,"31cb099a",null);e["a"]=l.exports},"7e78":function(t,e,r){"use strict";r.d(e,"G",function(){return i}),r.d(e,"j",function(){return s}),r.d(e,"n",function(){return l}),r.d(e,"c",function(){return c}),r.d(e,"C",function(){return d}),r.d(e,"y",function(){return p}),r.d(e,"a",function(){return m}),r.d(e,"z",function(){return f}),r.d(e,"w",function(){return h}),r.d(e,"i",function(){return b}),r.d(e,"E",function(){return g}),r.d(e,"F",function(){return v}),r.d(e,"b",function(){return y}),r.d(e,"A",function(){return O}),r.d(e,"x",function(){return T}),r.d(e,"u",function(){return k}),r.d(e,"s",function(){return S}),r.d(e,"l",function(){return j}),r.d(e,"v",function(){return C}),r.d(e,"m",function(){return _}),r.d(e,"t",function(){return w}),r.d(e,"q",function(){return F}),r.d(e,"B",function(){return G}),r.d(e,"r",function(){return M}),r.d(e,"h",function(){return q}),r.d(e,"g",function(){return P}),r.d(e,"D",function(){return V}),r.d(e,"k",function(){return $}),r.d(e,"f",function(){return D}),r.d(e,"e",function(){return z}),r.d(e,"p",function(){return x}),r.d(e,"o",function(){return A}),r.d(e,"d",function(){return L});var a=r("b775"),n=r("4328"),o=r.n(n),u="/api-web";function i(t){return Object(a["a"])({url:u+"/vipGroupCategory/queryAll",method:"get",params:t})}function s(t){return Object(a["a"])({url:u+"/vipGroupCategory/findTeacherDefaultSalary",method:"post",data:o.a.stringify(t)})}function l(t){return Object(a["a"])({url:u+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:t})}function c(t){return Object(a["a"])({url:u+"/vipGroupCategory/add",method:"post",data:o.a.stringify(t)})}function d(t){return Object(a["a"])({url:u+"/vipGroupCategory/update",method:"post",data:o.a.stringify(t)})}function p(t){return Object(a["a"])({url:u+"/vipGroupCategory/delete",method:"post",data:o.a.stringify(t)})}function m(t){return Object(a["a"])({url:u+"/vipGroupDefaultClassesCycle/add",method:"post",data:o.a.stringify(t)})}function f(t){return Object(a["a"])({url:u+"/vipGroupDefaultClassesCycle/update",method:"post",data:o.a.stringify(t)})}function h(t){return Object(a["a"])({url:u+"/vipGroupDefaultClassesCycle/delete",method:"post",data:o.a.stringify(t)})}function b(t){return Object(a["a"])({url:u+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:o.a.stringify(t)})}function g(t){return Object(a["a"])({url:u+"/vipGroupActivity/queryPage",method:"get",params:t})}function v(t){return Object(a["a"])({url:u+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})}function y(t){return Object(a["a"])({url:u+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:t})}function O(t){return Object(a["a"])({url:u+"/vipGroupActivity/update",method:"POST",data:t})}function T(t){return Object(a["a"])({url:u+"/vipGroupActivity/delete",method:"POST",data:o.a.stringify(t)})}function k(t){return Object(a["a"])({url:u+"/vipGroupManage/queryAll",method:"GET",params:t})}function S(t){return Object(a["a"])({url:u+"/vipGroupManage/getVipGroupDetail",method:"GET",params:t})}function j(t){return Object(a["a"])({url:u+"/vipGroupManage/findVipGroupStudents",method:"GET",params:t})}function C(t){return Object(a["a"])({url:u+"/vipGroupManage/applyRefundForStudent",method:"POST",data:o.a.stringify(t)})}function _(t){return Object(a["a"])({url:u+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:t})}function w(t){return Object(a["a"])({url:u+"/vipGroupManage/findVipGroupSalarys",method:"get",params:t})}function F(t){return Object(a["a"])({url:u+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:t})}function G(t){return Object(a["a"])({url:u+"/vipGroupManage/classStartDateAdjust",method:"POST",data:o.a.stringify(t)})}function M(t){return Object(a["a"])({url:u+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:t})}function q(t){return Object(a["a"])({url:u+"/vipGroupManage/vipGroupApply",method:"POST",data:t})}function P(t){return Object(a["a"])({url:u+"/vipGroupManage/stopVipGroup",method:"POST",data:o.a.stringify(t)})}function V(t){return Object(a["a"])({url:u+"/vipGroupManage/updateVipBaseInfo",method:"POST",data:t})}function $(t){return Object(a["a"])({url:u+"/courseSchedule/findVipGroupCourseSchedules",method:"POST",data:o.a.stringify(t)})}function D(t){return Object(a["a"])({url:u+"/courseSchedule/bathDelete",method:"POST",data:o.a.stringify(t)})}function z(t){return Object(a["a"])({url:u+"/vipGroupManage/appendVipGroupCourseSchedules",method:"POST",data:t})}function x(t){return Object(a["a"])({url:u+"/vipGroupManage/getStudentSurplusCourseFee",method:"get",params:t})}function A(t){return Object(a["a"])({url:u+"/vipGroupManage/findHaveCourseBalanceStudents",method:"get",params:t})}function L(t){return Object(a["a"])({url:u+"/vipGroupManage/addVipGroupStudents",method:"get",params:t})}},"84f0":function(t,e,r){"use strict";r.r(e);var a=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:"课程类型",width:"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("teachMode")(e.row.teachMode))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"教学点",align:"center",width:"300",prop:"schoolName"}}),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:05",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:05",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),t._v(" "),"OFFLINE"==t.maskForm.teachMode?r("el-form-item",{attrs:{label:"教学地点"}},[r("el-select",{model:{value:t.maskForm.address,callback:function(e){t.$set(t.maskForm,"address",e)},expression:"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: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:05",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)},n=[],o=(r("28a5"),r("1cc7")),u=r("99b4"),i=r("333d"),s=r("7e78"),l={components:{pagination:i["a"]},data:function(){return{addCourseVisible:!1,courseVisible:!1,tableList:[],addTable:[],courseTime:"",vipid:"",maskForm:{date:"",startTime:"",endTime:"",id:"",address:"",teachMode:""},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"}]},schoolList:[],Frules:null,FsearchForm:null}},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(){var t=this;this.getList(),Object(u["l"])({organId:null}).then(function(e){200==e.code&&(t.schoolList=e.data)})},methods:{getList:function(){var t=this;Object(s["k"])({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.push({path:"/business/vipList",query:{rules:this.Frules,searchForm:this.FsearchForm}})},resetClass:function(t){this.maskForm.date=t.classDate,this.maskForm.startTime=t.startClassTimeStr,this.maskForm.endTime=t.endClassTimeStr,this.maskForm.id=t.id,this.maskForm.address=t.schoolId,this.maskForm.teachMode=t.teachMode,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,schoolId:this.maskForm.address||null};Object(o["fb"])(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 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};e.courseSchedules.push(a)}Object(s["e"])(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],a=t.split(":")[1],n=new Date(1900,1,1,r,a);n.setMinutes(n.getMinutes()+parseInt(e));var o=n.getHours(),u=n.getMinutes();return o<10&&(o="0"+o),u<10&&(u="0"+u),o+":"+u}}},c=l,d=r("2877"),p=Object(d["a"])(c,a,n,!1,null,null,null);e["default"]=p.exports},"99b4":function(t,e,r){"use strict";r.d(e,"a",function(){return i}),r.d(e,"c",function(){return s}),r.d(e,"b",function(){return l}),r.d(e,"t",function(){return c}),r.d(e,"r",function(){return d}),r.d(e,"y",function(){return p}),r.d(e,"x",function(){return m}),r.d(e,"z",function(){return f}),r.d(e,"s",function(){return h}),r.d(e,"h",function(){return b}),r.d(e,"j",function(){return g}),r.d(e,"m",function(){return v}),r.d(e,"i",function(){return y}),r.d(e,"v",function(){return O}),r.d(e,"k",function(){return T}),r.d(e,"w",function(){return k}),r.d(e,"u",function(){return S}),r.d(e,"d",function(){return j}),r.d(e,"f",function(){return C}),r.d(e,"e",function(){return _}),r.d(e,"g",function(){return w}),r.d(e,"n",function(){return F}),r.d(e,"o",function(){return G}),r.d(e,"q",function(){return M}),r.d(e,"p",function(){return q}),r.d(e,"l",function(){return P});var a=r("b775"),n=r("4328"),o=r.n(n),u="/api-web";function i(t){return Object(a["a"])({url:u+"/cooperationOrgan/add",method:"post",data:o.a.stringify(t)})}function s(t){return Object(a["a"])({url:u+"/cooperationOrgan/update",method:"put",data:o.a.stringify(t)})}function l(t){return Object(a["a"])({url:u+"/cooperationOrgan/del/".concat(t),method:"post"})}function c(t){return Object(a["a"])({url:u+"/cooperationOrgan/queryPage",method:"get",params:t})}function d(t){return Object(a["a"])({url:u+"/cooperationOrgan/queryByOrganId",method:"get",params:t})}function p(t){return Object(a["a"])({url:u+"/school/queryPage",method:"get",params:t})}function m(t){return Object(a["a"])({url:u+"/school/add",method:"post",data:o.a.stringify(t)})}function f(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 b(t){return Object(a["a"])({url:u+"/employee/add",method:"post",data:t})}function g(t){return Object(a["a"])({url:u+"/employee/update",method:"post",data:t})}function v(t){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function y(t){return Object(a["a"])({url:u+"/employee/employeeOperate",method:"post",data:o.a.stringify(t)})}function O(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 k(t){return Object(a["a"])({url:"/api-auth/role/update",method:"post",data:t})}function S(t){return Object(a["a"])({url:"/api-auth/role/add",method:"post",data:t})}function j(t){return Object(a["a"])({url:u+"/courseScheduleRewards/queryPage",method:"get",params:t})}function C(t){return Object(a["a"])({url:u+"/courseScheduleRewards/query",method:"get",params:t})}function _(t){return Object(a["a"])({url:u+"/courseScheduleRewards/add",method:"post",data:o.a.stringify(t)})}function w(t){return Object(a["a"])({url:u+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(t)})}function F(t){return Object(a["a"])({url:u+"/hotWordLabelManage/queryPage",method:"get",params:t})}function G(t){return Object(a["a"])({url:u+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(t)})}function M(t){return Object(a["a"])({url:u+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(t)})}function q(t){return Object(a["a"])({url:u+"/hotWordLabelManage/del/".concat(t),method:"post"})}function P(t){return Object(a["a"])({url:u+"/school/queryByOrganId",method:"get",params:t})}},c0b9:function(t,e,r){"use strict";var a=r("de4e"),n=r.n(a);n.a},de4e:function(t,e,r){}}]);