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 i})),n.d(e,"n",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return d})),n.d(e,"f",(function(){return l})),n.d(e,"u",(function(){return f})),n.d(e,"p",(function(){return p})),n.d(e,"t",(function(){return m})),n.d(e,"m",(function(){return h})),n.d(e,"s",(function(){return b})),n.d(e,"j",(function(){return v})),n.d(e,"l",(function(){return g})),n.d(e,"a",(function(){return S})),n.d(e,"g",(function(){return y})),n.d(e,"b",(function(){return _})),n.d(e,"r",(function(){return O})),n.d(e,"i",(function(){return j})),n.d(e,"w",(function(){return C})),n.d(e,"v",(function(){return x})),n.d(e,"k",(function(){return G})),n.d(e,"q",(function(){return q})),n.d(e,"x",(function(){return L})),n.d(e,"c",(function(){return k})),n.d(e,"y",(function(){return w})),n.d(e,"z",(function(){return $})),n.d(e,"h",(function(){return I}));var s=n("b775"),r=n("4328"),a=n.n(r),u="/api-web";function i(t){return Object(s["a"])({url:u+"/studentManage/queryStudentList",method:"post",data:t})}function o(t){return Object(s["a"])({url:u+"/studentManage/queryOrganStudentList",method:"get",params:t})}function c(t){return Object(s["a"])({url:u+"/studentManage/findStudentVipGroupClass",method:"get",params:t})}function d(t){return Object(s["a"])({url:u+"/studentManage/findStudentMusicGroups",method:"get",params:t})}function l(t){return Object(s["a"])({url:u+"/studentManage/findStudentVipGroups",method:"get",params:t})}function f(t){return Object(s["a"])({url:u+"/studentWithdraw/queryPage",method:"get",params:t})}function p(t){return Object(s["a"])({url:u+"/studentManage/queryStudentPayment",method:"get",params:t})}function m(t){return Object(s["a"])({url:u+"/order/queryPage",method:"get",params:t})}function h(t){return Object(s["a"])({url:u+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:t})}function b(t){return Object(s["a"])({url:u+"/studentRegistration/batchUpdateSubject",method:"post",data:a.a.stringify(t)})}function v(t){return Object(s["a"])({url:u+"/studentRegistration/queryFeeDetail",method:"get",params:t})}function g(t){return Object(s["a"])({url:u+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:t})}function S(t){return Object(s["a"])({url:u+"/studentRegistration/insertStudent",method:"POST",data:t})}function y(t){return Object(s["a"])({url:u+"/classGroupStudent/findAllStudent",method:"POST",data:t})}function _(t){return Object(s["a"])({url:u+"/classGroupStudent/addStudents",method:"POST",data:a.a.stringify(t)})}function O(t){return Object(s["a"])({url:u+"/classGroupStudent/del",method:"POST",data:a.a.stringify(t)})}function j(t){return Object(s["a"])({url:u+"/studentManage/queryStudentClassGroup",method:"get",params:t})}function C(t){return Object(s["a"])({url:u+"/userCashAccount/updateCourseBalance",method:"post",data:a.a.stringify(t)})}function x(t){return Object(s["a"])({url:u+"/userCashAccount/updateBalance",method:"post",data:a.a.stringify(t)})}function G(t){return Object(s["a"])({url:u+"/studentManage/queryUserByPhone",method:"get",params:t})}function q(t){return Object(s["a"])({url:u+"/studentManage/register",method:"post",data:a.a.stringify(t)})}function L(t){return Object(s["a"])({url:u+"/studentManage/studentUpdate",method:"post",data:a.a.stringify(t)})}function k(t){return Object(s["a"])({url:u+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:t})}function w(t){return Object(s["a"])({url:u+"/userCashAccountDetail/queryPage",method:"get",params:t})}function $(t){return Object(s["a"])({url:u+"/userCoursesAccount/queryPage",method:"get",params:t})}function I(t){return Object(s["a"])({url:u+"/sysUserContracts/getLatest",method:"get",params: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}})],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:"班级名称",align:"center",prop:"name"}}),t._v(" "),n("el-table-column",{attrs:{label:"声部",align:"center",prop:"subjectName"}}),t._v(" "),n("el-table-column",{attrs:{label:"预计人数",align:"center",prop:"expectStudentNum"}}),t._v(" "),n("el-table-column",{attrs:{label:"实际人数",align:"center",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:{type:"text"},on:{click:function(t){e._self.$refs[e.$index].doClose()}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},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)],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="string"===typeof e?e.trim():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)},r=[],a=(n("386d"),n("1cc7")),u=n("5137"),i={name:"setImprovement",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(){this.init()},activated:function(){this.init()},methods:{init:function(){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()},onApply:function(){var t=this;this.$confirm("您确定开启报名吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(a["pc"])({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(a["ac"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.tableList=e.data)}))},lookDeatil:function(t){var e=this;console.log(t),this.lookDeatilVisible=!0,this.activeClass=t.id,Object(u["g"])({classGroupId:this.activeClass}).then((function(t){200==t.code&&(e.classList=t.data)}))},addstudentBtn:function(t){var e=this;this.activeClass=t.id;var n=t.type;Object(a["ub"])({musicGroupId:this.teamid,type:n}).then((function(t){200==t.code&&(e.studentList=t.data,e.addStudentVisible=!0)}))},addStudnt:function(){var t=this,e=this.activeClass,n=this.activeStudentList.map((function(t){return t.userId})).join(",");Object(u["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(u["r"])({classGroupId:this.activeClass,userId:t.row.userId}).then((function(n){200==n.code&&(e.$message.success("恭喜你删除成功"),t._self.$refs[t.$index].doClose(),Object(u["g"])({classGroupId:e.activeClass}).then((function(t){200==t.code&&(e.classList=t.data,e.getList())})))}))},onCancel:function(){this.$router.push({path:"/teamList",query:{search:this.Fsearch,rules:this.Frules}})},resetClass:function(t){this.activeStudent=t.userId,this.resetVisible=!0},resetStudent:function(){var t=this;Object(a["uc"])({classGroupId:this.studentRadio,oldClassGroupId:this.activeClass,userId:this.activeStudent}).then((function(e){200==e.code&&(t.$message.success("调剂成功"),t.resetVisible=!1,t.getList(),t.lookDeatil())}))}}},o=i,c=(n("e531"),n("2877")),d=Object(c["a"])(o,s,r,!1,null,null,null);e["default"]=d.exports},e531:function(t,e,n){"use strict";n("1eaf")}}]);
|