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