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