chunk-6562cc02.0945953d.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6562cc02"],{"1eaf":function(t,e,n){},5137:function(t,e,n){"use strict";n.d(e,"o",(function(){return u})),n.d(e,"g",(function(){return o})),n.d(e,"d",(function(){return d})),n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"h",(function(){return p})),n.d(e,"c",(function(){return f})),n.d(e,"u",(function(){return m})),n.d(e,"p",(function(){return b})),n.d(e,"t",(function(){return v})),n.d(e,"n",(function(){return h})),n.d(e,"s",(function(){return g})),n.d(e,"k",(function(){return S})),n.d(e,"m",(function(){return y})),n.d(e,"a",(function(){return _})),n.d(e,"i",(function(){return j})),n.d(e,"b",(function(){return O})),n.d(e,"r",(function(){return x})),n.d(e,"j",(function(){return C})),n.d(e,"v",(function(){return G})),n.d(e,"l",(function(){return w})),n.d(e,"q",(function(){return k})),n.d(e,"w",(function(){return q}));var s=n("b775"),a=n("4328"),r=n.n(a),i="/api-web";function u(t){return Object(s["a"])({url:i+"/studentManage/queryStudentList",method:"get",params:t})}function o(t){return Object(s["a"])({url:i+"/studentManage/findStudentVipGroupClass",method:"get",params:t})}function d(t){return Object(s["a"])({url:i+"/studentManage/findStudentBaseInfo",method:"get",params:t})}function c(t){return Object(s["a"])({url:i+"/studentManage/findStudentMusicGroups",method:"get",params:t})}function l(t){return Object(s["a"])({url:i+"/studentManage/findStudentCourses",method:"get",params:t})}function p(t){return Object(s["a"])({url:i+"/studentManage/findStudentVipGroups",method:"get",params:t})}function f(t){return Object(s["a"])({url:i+"/studentManage/findStudentAttendances",method:"get",params:t})}function m(t){return Object(s["a"])({url:i+"/studentWithdraw/queryPage",method:"get",params:t})}function b(t){return Object(s["a"])({url:i+"/studentManage/queryStudentPayment",method:"get",params:t})}function v(t){return Object(s["a"])({url:i+"/order/queryPage",method:"get",params:t})}function h(t){return Object(s["a"])({url:i+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:t})}function g(t){return Object(s["a"])({url:i+"/studentRegistration/batchUpdateSubject",method:"post",data:r.a.stringify(t)})}function S(t){return Object(s["a"])({url:i+"/studentRegistration/queryFeeDetail",method:"get",params:t})}function y(t){return Object(s["a"])({url:i+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:t})}function _(t){return Object(s["a"])({url:i+"/studentRegistration/insertStudent",method:"POST",data:t})}function j(t){return Object(s["a"])({url:i+"/classGroupStudent/findAllStudent",method:"POST",data:r.a.stringify(t)})}function O(t){return Object(s["a"])({url:i+"/classGroupStudent/addStudents",method:"POST",data:r.a.stringify(t)})}function x(t){return Object(s["a"])({url:i+"/classGroupStudent/del",method:"POST",data:r.a.stringify(t)})}function C(t){return Object(s["a"])({url:i+"/studentManage/queryStudentClassGroup",method:"get",params:t})}function G(t){return Object(s["a"])({url:i+"/userCashAccount/updateCourseBalance",method:"post",data:r.a.stringify(t)})}function w(t){return Object(s["a"])({url:i+"/studentManage/queryUserByPhone",method:"get",params:t})}function k(t){return Object(s["a"])({url:i+"/studentManage/register",method:"post",data:r.a.stringify(t)})}function q(t){return Object(s["a"])({url:i+"/studentManage/studentUpdate",method:"post",data:r.a.stringify(t)})}},de30:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("h2",[n("el-page-header",{attrs:{content:"基础技能班报名详情"},on:{back:t.onCancel}}),t._v(" "),n("span",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/pushMessage",expression:"'musicGroup/pushMessage'"}],staticStyle:{"font-size":"16px","padding-left":"20px","font-weight":"400",cursor:"pointer"},on:{click:t.onApply}},[t._v("开启报名")])],1),t._v(" "),n("div",{staticClass:"m-core"},[n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[n("el-table-column",{attrs:{label:"班级名称",prop:"name"}}),t._v(" "),n("el-table-column",{attrs:{label:"声部",prop:"subjectName"}}),t._v(" "),n("el-table-column",{attrs:{label:"预计人数",prop:"expectStudentNum"}}),t._v(" "),n("el-table-column",{attrs:{label:"实际人数",prop:"studentNum"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/findAllStudent",expression:"'classGroupStudent/findAllStudent'"}],attrs:{type:"text"},on:{click:function(n){return t.lookDeatil(e.row)}}},[t._v("查看")]),t._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/addStudents",expression:"'classGroupStudent/addStudents'"}],attrs:{type:"text"},on:{click:function(n){return t.addstudentBtn(e.row)}}},[t._v("添加学员")])],1)]}}])})],1)],1)]),t._v(" "),n("el-dialog",{attrs:{title:"报名二维码",visible:t.qrcodeStatus,width:"300px"},on:{"update:visible":function(e){t.qrcodeStatus=e}}},[n("div",{staticClass:"left-code",staticStyle:{display:"flex","flex-direction":"column","align-items":"center"}},[n("h2",[t._v("小班课报名连接")]),t._v(" "),n("div",{ref:"qrCodeUrl",staticClass:"qrcode code",attrs:{id:"qrcode"}}),t._v(" "),t.codeUrl?n("p",{staticClass:"code-url",staticStyle:{width:"220px"}},[t._v(t._s(t.codeUrl))]):t._e()])]),t._v(" "),n("el-dialog",{attrs:{title:"添加学员",width:"600px",visible:t.addStudentVisible},on:{"update:visible":function(e){t.addStudentVisible=e}}},[n("el-table",{ref:"studentList",attrs:{data:t.studentList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":t.selectStudent}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"学生姓名"}}),t._v(" "),n("el-table-column",{attrs:{property:"classGroupName",label:"所在班级"}})],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/addStudents",expression:"'classGroupStudent/addStudents'"}],attrs:{type:"primary"},on:{click:t.addStudnt}},[t._v("确 定")])],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"小班课学员详情",width:"600px",visible:t.lookDeatilVisible},on:{"update:visible":function(e){t.lookDeatilVisible=e}}},[n("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.classList}},[n("el-table-column",{attrs:{label:"学员姓名",prop:"name"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/del",expression:"'classGroupStudent/del'"}],ref:e.$index,attrs:{placement:"top",width:"160"}},[n("p",[t._v("确定删除该学生?")]),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.removeStudent(e)}}},[t._v("确定")])],1),t._v(" "),n("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("删除")])],1),t._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/adjustClassGroup",expression:"'classGroupStudent/adjustClassGroup'"}],attrs:{type:"text"},on:{click:function(n){return t.resetClass(e.row)}}},[t._v("调整班级")])],1)]}}])})],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"学员班级调整",width:"600px","append-to-body":"",visible:t.resetVisible},on:{"update:visible":function(e){t.resetVisible=e}}},[t._l(t.tableList,(function(e,s){return n("div",{key:s,staticClass:"radioBox"},[n("el-radio",{staticStyle:{width:"120px"},attrs:{label:e.id},model:{value:t.studentRadio,callback:function(e){t.studentRadio=e},expression:"studentRadio"}},[t._v(t._s(e.name))]),t._v(" "),n("div",[t._v("预计人数:"+t._s(e.expectStudentNum))]),t._v(" "),n("div",[t._v("实际人数:"+t._s(e.studentNum))])],1)})),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:t.resetStudent}},[t._v("确 定")])],1)],2)],1)},a=[],r=(n("386d"),n("1cc7")),i=n("5137"),u={data:function(){return{tableList:[],teamid:"",lookDeatilVisible:!1,addStudentVisible:!1,resetVisible:!1,studentList:[],activeStudentList:[],activeClass:"",classList:[],activeStudent:null,studentRadio:"",qrcodeStatus:!1,qrcodes:!0,qrcode:null,codeUrl:null,Fsearch:null,Frules:null}},mounted:function(){var t=this;this.teamid=this.$route.query.id,this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules),this.getList(),Object(r["tb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.studentList=e.data)}))},methods:{onApply:function(){var t=this;this.$confirm("您确定开启报名吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["eb"])({musicGroupId:t.teamid}).then((function(e){e.data;200==e.code?t.$message.success("报名成功"):t.$message.error(e.msg)}))})).catch((function(){}))},getList:function(){var t=this;Object(r["Z"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.tableList=e.data)}))},lookDeatil:function(t){var e=this;this.lookDeatilVisible=!0,this.activeClass=t.id,Object(i["i"])({classGroupId:this.activeClass}).then((function(t){200==t.code&&(e.classList=t.data)}))},addstudentBtn:function(t){this.activeClass=t.id,this.addStudentVisible=!0},addStudnt:function(){var t=this,e=this.activeClass,n=this.activeStudentList.map((function(t){return t.userId})).join(",");Object(i["b"])({userIdsStr:n,classGroupId:e}).then((function(e){200==e.code&&(t.$message.success("添加成功"),t.activeStudentList=[],t.addStudentVisible=!1,t.$refs.studentList.clearSelection(),t.getList())}))},selectStudent:function(t){this.activeStudentList=t},removeStudent:function(t){var e=this;Object(i["r"])({classGroupId:this.activeClass,userId:t.row.userId}).then((function(n){200==n.code&&(e.$message.success("恭喜你删除成功"),t._self.$refs[t.$index].doClose(),Object(i["i"])({classGroupId:e.activeClass}).then((function(t){200==t.code&&(e.classList=t.data)})))}))},onCancel:function(){this.$router.push({path:"/business/teamDetail",query:{search:this.Fsearch,rules:this.Frules}})},resetClass:function(t){this.activeStudent=t.userId,this.resetVisible=!0},resetStudent:function(){var t=this;Object(r["ib"])({classGroupId:this.studentRadio,oldClassGroupId:this.activeClass,userId:this.activeStudent}).then((function(e){200==e.code&&(t.$message.success("调剂成功"),t.resetVisible=!1,t.getList())}))}}},o=u,d=(n("e531"),n("2877")),c=Object(d["a"])(o,s,a,!1,null,null,null);e["default"]=c.exports},e531:function(t,e,n){"use strict";var s=n("1eaf"),a=n.n(s);a.a}}]);