chunk-64c33787.e2c69063.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64c33787"],{"09f4":function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),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 a(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 u(t,e,r){var u=i(),o=t-u,s=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=s;var i=Math.easeInOutQuad(l,u,o,e);a(i),l<e?n(t):r&&"function"===typeof r&&r()};c()}},"270e":function(t,e,r){},"2f71":function(t,e,r){"use strict";var n=r("270e"),a=r.n(n);a.a},"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)},a=[],i=(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(i["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(i["a"])(0,800)}}},o=u,s=(r("c0b9"),r("2877")),l=Object(s["a"])(o,n,a,!1,null,"31cb099a",null);e["a"]=l.exports},"7e78":function(t,e,r){"use strict";r.d(e,"I",(function(){return o})),r.d(e,"k",(function(){return s})),r.d(e,"o",(function(){return l})),r.d(e,"c",(function(){return c})),r.d(e,"D",(function(){return p})),r.d(e,"z",(function(){return d})),r.d(e,"a",(function(){return f})),r.d(e,"A",(function(){return m})),r.d(e,"x",(function(){return h})),r.d(e,"j",(function(){return v})),r.d(e,"G",(function(){return g})),r.d(e,"H",(function(){return b})),r.d(e,"b",(function(){return y})),r.d(e,"B",(function(){return _})),r.d(e,"y",(function(){return O})),r.d(e,"v",(function(){return S})),r.d(e,"t",(function(){return G})),r.d(e,"m",(function(){return j})),r.d(e,"w",(function(){return C})),r.d(e,"n",(function(){return w})),r.d(e,"u",(function(){return F})),r.d(e,"r",(function(){return k})),r.d(e,"C",(function(){return T})),r.d(e,"s",(function(){return $})),r.d(e,"i",(function(){return x})),r.d(e,"h",(function(){return V})),r.d(e,"E",(function(){return P})),r.d(e,"l",(function(){return I})),r.d(e,"g",(function(){return D})),r.d(e,"F",(function(){return z})),r.d(e,"e",(function(){return q})),r.d(e,"q",(function(){return A})),r.d(e,"p",(function(){return M})),r.d(e,"d",(function(){return N})),r.d(e,"f",(function(){return L}));var n=r("b775"),a=r("4328"),i=r.n(a),u="/api-web";function o(t){return Object(n["a"])({url:u+"/vipGroupCategory/queryAll",method:"get",params:t})}function s(t){return Object(n["a"])({url:u+"/vipGroupCategory/findTeacherDefaultSalary",method:"post",data:i.a.stringify(t)})}function l(t){return Object(n["a"])({url:u+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:t})}function c(t){return Object(n["a"])({url:u+"/vipGroupCategory/add",method:"post",data:i.a.stringify(t)})}function p(t){return Object(n["a"])({url:u+"/vipGroupCategory/update",method:"post",data:i.a.stringify(t)})}function d(t){return Object(n["a"])({url:u+"/vipGroupCategory/delete",method:"post",data:i.a.stringify(t)})}function f(t){return Object(n["a"])({url:u+"/vipGroupDefaultClassesCycle/add",method:"post",data:i.a.stringify(t)})}function m(t){return Object(n["a"])({url:u+"/vipGroupDefaultClassesCycle/update",method:"post",data:i.a.stringify(t)})}function h(t){return Object(n["a"])({url:u+"/vipGroupDefaultClassesCycle/delete",method:"post",data:i.a.stringify(t)})}function v(t){return Object(n["a"])({url:u+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:i.a.stringify(t)})}function g(t){return Object(n["a"])({url:u+"/vipGroupActivity/queryPage",method:"get",params:t})}function b(t){return Object(n["a"])({url:u+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})}function y(t){return Object(n["a"])({url:u+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:t})}function _(t){return Object(n["a"])({url:u+"/vipGroupActivity/update",method:"POST",data:t})}function O(t){return Object(n["a"])({url:u+"/vipGroupActivity/delete",method:"POST",data:i.a.stringify(t)})}function S(t){return Object(n["a"])({url:u+"/vipGroupManage/queryAll",method:"GET",params:t})}function G(t){return Object(n["a"])({url:u+"/vipGroupManage/getVipGroupDetail",method:"GET",params:t})}function j(t){return Object(n["a"])({url:u+"/vipGroupManage/findVipGroupStudents",method:"GET",params:t})}function C(t){return Object(n["a"])({url:u+"/vipGroupManage/applyRefundForStudent",method:"POST",data:i.a.stringify(t)})}function w(t){return Object(n["a"])({url:u+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:t})}function F(t){return Object(n["a"])({url:u+"/vipGroupManage/findVipGroupSalarys",method:"get",params:t})}function k(t){return Object(n["a"])({url:u+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:t})}function T(t){return Object(n["a"])({url:u+"/vipGroupManage/classStartDateAdjust",method:"POST",data:i.a.stringify(t)})}function $(t){return Object(n["a"])({url:u+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:t})}function x(t){return Object(n["a"])({url:u+"/vipGroupManage/vipGroupApply",method:"POST",data:t})}function V(t){return Object(n["a"])({url:u+"/vipGroupManage/stopVipGroup",method:"POST",data:i.a.stringify(t)})}function P(t){return Object(n["a"])({url:u+"/vipGroupManage/updateVipBaseInfo",method:"POST",data:t})}function I(t){return Object(n["a"])({url:u+"/courseSchedule/findVipGroupCourseSchedules",method:"POST",data:i.a.stringify(t)})}function D(t){return Object(n["a"])({url:u+"/courseSchedule/bathDelete",method:"POST",data:i.a.stringify(t)})}function z(t){return Object(n["a"])({url:u+"/courseSchedule/vipCourseAdjust",method:"POST",data:t})}function q(t){return Object(n["a"])({url:u+"/vipGroupManage/appendVipGroupCourseSchedules",method:"POST",data:t})}function A(t){return Object(n["a"])({url:u+"/vipGroupManage/getStudentSurplusCourseFee",method:"get",params:t})}function M(t){return Object(n["a"])({url:u+"/vipGroupManage/findHaveCourseBalanceStudents",method:"get",params:t})}function N(t){return Object(n["a"])({url:u+"/vipGroupManage/addVipGroupStudents",method:"get",params:t})}function L(t){return Object(n["a"])({url:u+"/courseSchedule/batchAppendVipGroupCourses",method:"POST",data:t})}},"8e19":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"},[t._m(0),t._v(" "),r("div",{directives:[{name:"permission",rawName:"v-permission",value:"/buildVip",expression:"'/buildVip'"}],staticClass:"newBand",on:{click:t.gotoBuildVip}},[t._v("新建VIP课")]),t._v(" "),r("div",{staticClass:"m-core"},[r("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:t.searchForm,callback:function(e){t.searchForm=e},expression:"searchForm"}},[r("el-form-item",[r("el-input",{attrs:{placeholder:"课程名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search",e)},expression:"searchForm.search"}})],1),t._v(" "),r("el-form-item",{attrs:{prop:"orgin"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"请选择分部"},model:{value:t.searchForm.orgin,callback:function(e){t.$set(t.searchForm,"orgin",e)},expression:"searchForm.orgin"}},t._l(t.organList,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"status"}},[r("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"请选课程状态"},model:{value:t.searchForm.status,callback:function(e){t.$set(t.searchForm,"status",e)},expression:"searchForm.status"}},t._l(t.statusList,(function(t,e){return r("el-option",{key:e,attrs:{label:t.lable,value:t.value}})})),1)],1),t._v(" "),r("el-form-item",[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"指导老师"},model:{value:t.searchForm.teacherId,callback:function(e){t.$set(t.searchForm,"teacherId",e)},expression:"searchForm.teacherId"}},t._l(t.teacherList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.username}})})),1)],1),t._v(" "),r("el-form-item",[r("el-select",{attrs:{clearable:"",placeholder:"活动方案"},model:{value:t.searchForm.activityId,callback:function(e){t.$set(t.searchForm,"activityId",e)},expression:"searchForm.activityId"}},t._l(t.activeList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableData}},[r("el-table-column",{attrs:{align:"center",prop:"id",label:"VIP编号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"课程名称"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"status",label:"课程状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("formatterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"userName",label:"指导老师"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"班级人数"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"课程单价"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("p",[t._v("线上:"+t._s(e.row.onlineClassesUnitPrice))]),t._v(" "),r("p",[t._v("线下:"+t._s(e.row.offlineClassesUnitPrice))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"vipGroupActivityName",label:"活动方案"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"当前课次"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("p",[t._v(t._s(e.row.currentClassTimes+"/"+e.row.totalClassTimes))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"月均消耗"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.monthConsumeRate)+"%\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"paymentExpireDate",label:"开课时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("p",[t._v(t._s(t._f("formatterTime")(e.row.courseStartDate)))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"coursesExpireDate",label:"结束时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("p",[t._v(t._s(t._f("formatterTime")(e.row.coursesExpireDate)))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"申请时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("p",[t._v(t._s(t._f("formatterTime")(e.row.createTime)))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"150px",fixed:"right",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/vipDetail",expression:"'/vipDetail'"}],attrs:{type:"text"},on:{click:function(r){return t.gotoVipDetail(e.row.id)}}},[t._v("查看")]),t._v(" "),e.row.status<3?r("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupManage/stopVipGroup",expression:"'vipGroupManage/stopVipGroup'"}],ref:e.$index,attrs:{placement:"top",width:"160"}},[r("p",{staticStyle:{"margin-bottom":"10px"}},[t._v("确定停止该vip课?")]),t._v(" "),r("el-input",{attrs:{placeholder:"请输入关闭原因"},model:{value:e.row.stopReason,callback:function(r){t.$set(e.row,"stopReason",r)},expression:"scope.row.stopReason"}}),t._v(" "),r("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[r("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e._self.$refs[e.$index].doClose()}}},[t._v("取消")]),t._v(" "),r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(r){return t.closeVip(e)}}},[t._v("确定")])],1),t._v(" "),r("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("停止")])],1):t._e(),t._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/vipReset",expression:"'/vipReset'"}],attrs:{type:"text"},on:{click:function(r){return t.resetVip(e.row.id)}}},[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)],1)])},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("h2",[r("div",{staticClass:"squrt"}),t._v("VIP课列表\n ")])}],i=(r("28a5"),r("333d")),u=r("7e78"),o=r("1cc7"),s=(r("4360"),{components:{pagination:i["a"]},name:"vipList",data:function(){return{organId:null,searchForm:{teacherId:null,activityId:null,search:null,orgin:null,status:null},teacherList:[],activeList:[],tableData:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},statusList:[{lable:"未开始",value:"0"},{lable:"报名中",value:"1"},{lable:"报名结束",value:"5"},{lable:"进行中",value:"2"},{lable:"已结束",value:"4"},{lable:"取消",value:"3"}]}},created:function(){this.$route.query.searchForm&&(this.$route.query.searchForm instanceof Object?this.searchForm=this.$route.query.searchForm:this.searchForm=JSON.parse(this.$route.query.searchForm)),this.$route.query.rules&&(this.$route.query.rules instanceof Object?this.rules=this.$route.query.rules:this.rules=JSON.parse(this.$route.query.rules))},mounted:function(){var t=this;Object(o["A"])().then((function(e){200==e.code&&(t.organList=e.data)})),this.getList(),Object(o["O"])({organId:this.organId}).then((function(e){200==e.code&&(t.teacherList=e.data)})),Object(u["G"])({organId:this.organId}).then((function(e){200==e.code&&(t.activeList=e.data.rows)}))},methods:{search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={teacherId:null,activityId:null,search:null,status:null},this.getList()},getList:function(){var t=this,e=this.searchForm;e.page=this.rules.page,e.rows=this.rules.limit,e.organId=this.searchForm.orgin,e.status=this.searchForm.status||null,Object(u["v"])(e).then((function(e){200==e.code&&(t.tableData=e.data.rows,t.rules.total=e.data.total)}))},gotoVipDetail:function(t){var e=JSON.stringify(this.rules),r=JSON.stringify(this.searchForm);this.$router.push({path:"/business/vipDetail",query:{id:t,rules:e,searchForm:r}})},closeVip:function(t){var e=this,r=t.row.id;Object(u["h"])({vipGroupId:r,stopReason:t.row.stopReason}).then((function(r){200==r.code&&(e.$message.success("停止课程成功"),t._self.$refs[t.$index].doClose(),e.getList())}))},gotoBuildVip:function(){var t=JSON.stringify(this.rules),e=JSON.stringify(this.searchForm);this.$router.push({path:"/business/buildVip",query:{rules:t,searchForm:e}})},resetVip:function(t){var e=JSON.stringify(this.rules),r=JSON.stringify(this.searchForm);this.$router.push({path:"/business/vipReset",query:{id:t,rules:e,searchForm:r}})}},filters:{formatterTime:function(t){var e;return e=t?t.split(" ")[0]:"",e},formatterStatus:function(t){var e=["未开始","报名中","进行中","取消","已结束","报名结束"];return e[t]}}}),l=s,c=(r("2f71"),r("2877")),p=Object(c["a"])(l,n,a,!1,null,null,null);e["default"]=p.exports},c0b9:function(t,e,r){"use strict";var n=r("de4e"),a=r.n(n);a.a},de4e:function(t,e,r){}}]);