1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c8e43c82"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",function(){return s}),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,a){var s=r(),i=t-s,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var r=Math.easeInOutQuad(u,s,i,e);o(r),u<e?n(t):a&&"function"===typeof a&&a()};c()}},"0f2f":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[a("h2",[t._v("乐团列表")]),t._v(" "),a("div",{staticClass:"m-core"},[a("div",{staticClass:"btnList"},[a("div",{staticClass:"newBand",on:{click:t.createNewTeam}},[t._v("新建乐团")]),t._v(" "),a("div",{staticClass:"newBand"},[t._v("声部调整")]),t._v(" "),a("div",{staticClass:"newBand"},[t._v("乐团合并")]),t._v(" "),a("div",{staticClass:"newBand"},[t._v("乐团加课")])]),t._v(" "),a("el-form",{ref:"topForm",staticClass:"topForm",attrs:{inline:!0,model:t.topForm}},[a("el-form-item",{attrs:{prop:"school"}},[a("el-select",{attrs:{placeholder:"请选择学校名称"},model:{value:t.topForm.school,callback:function(e){t.$set(t.topForm,"school",e)},expression:"topForm.school"}},t._l(t.schools,function(t,e){return a("el-option",{key:e,attrs:{label:t.text,value:t.value}})}),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{staticClass:"multiple",attrs:{placeholder:"请选择收费类型",multiple:"","collapse-tags":""},model:{value:t.topForm.status,callback:function(e){t.$set(t.topForm,"status",e)},expression:"topForm.status"}},t._l(t.nowStatus,function(t,e){return a("el-option",{key:e,attrs:{label:t.text,value:t.value}})}),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"payType"}},[a("el-select",{model:{value:t.topForm.payType,callback:function(e){t.$set(t.topForm,"payType",e)},expression:"topForm.payType"}},[a("el-option",{attrs:{label:"1.0",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"1.5",value:"2"}}),t._v(" "),a("el-option",{attrs:{label:"2.0",value:"3"}}),t._v(" "),a("el-option",{attrs:{label:"3.0",value:"4"}})],1)],1),t._v(" "),a("el-form-item",[a("div",{staticClass:"searchBtn"},[t._v("搜索")])])],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"id",align:"center",label:"乐团编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",label:"乐团名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"schoolName","max-width":"274",label:"学校名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",align:"center",label:"乐团状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("teamStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"chargeTypeName",label:"收费类型"}}),t._v(" "),a("el-table-column",{attrs:{prop:"educationalTeacherName",align:"center",label:"教务老师"}}),t._v(" "),a("el-table-column",{attrs:{prop:"teamTeacherName",align:"center",label:"教学主管"}}),t._v(" "),a("el-table-column",{attrs:{prop:"improventClassesNum",align:"center",label:"成团人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"payNum",align:"center",label:"在读人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"createTime",align:"center",label:"申请时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("formatTimer")(e.row.createTime))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"成团时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("formatTimer")(e.row.billStartDate))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",width:"200px",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",["PREPARE"==e.row.status?a("el-button",{attrs:{type:"text"}},[t._v("小班课设置")]):t._e(),t._v(" "),"PREPARE"==e.row.status?a("el-button",{attrs:{type:"text"}},[t._v("发放清单")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.lookTeamDetail(e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text"}},[t._v("启动")]),t._v(" "),a("el-button",{attrs:{type:"text"}},[t._v("暂停")])],1)]}}])})],1),t._v(" "),a("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)])},o=[],r=(a("7f7f"),a("333d")),s=a("b775"),i=a("4328"),l=a.n(i);function u(t){return Object(s["a"])({url:"/web-server/musicGroup/queryPage",method:"get",params:l.a.stringify(t)})}var c={name:"Main",data:function(){return{topForm:{school:"",status:[],payType:"",word:""},schools:[{value:1,text:"张三团"},{value:2,text:"李四团"}],nowStatus:[{value:1,text:"报名中"},{value:2,text:"缴费中"},{value:3,text:"筹备中"},{value:4,text:"进行中"},{value:5,text:"失败"},{value:6,text:"已结束"},{value:7,text:"暂停"}],searchLsit:[],tableData:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},components:{pagination:r["a"]},mounted:function(){var t=this;u().then(function(e){200==e.code&&(t.tableData=e.data.rows)})},methods:{getList:function(){},createNewTeam:function(){this.$router.push({path:"/business/teamBuild"})},setSearchList:function(t){if(1==t.type){var e=!1;this.searchLsit=this.searchLsit.map(function(a){return a.id==t.id&&(a=t,e=!0),a}),e||this.searchLsit.push(t)}else{var a=!1;this.searchLsit=this.searchLsit.map(function(e){return e.key==t.key&&(e=t,a=!0),e}),a||this.searchLsit.push(t)}},closeSearch:function(t){if(1==t.type){for(var e in this.searchLsit)this.searchLsit[e].id==t.id&&this.searchLsit.splice(e,1);this.topForm[t.id]=""}else{for(var a=0;a<this.topForm[t.id].length;a++)this.topForm[t.id][a]==t.value&&this.topForm[t.id].splice(a,1);for(var n in this.searchLsit)this.searchLsit[n].value==t.value&&this.searchLsit[n].id==t.id&&this.searchLsit.splice(n,1)}},gotoSearch:function(){this.$refs["topForm"].resetFields(),this.searchLsit=[]},lookTeamDetail:function(t){switch(t.status){case"APPLY":console.log("报名中"),this.$router.push({path:"/business/signupList",query:{status:t.status,id:t.id,name:t.name}});break;case"PAY":console.log("缴费中"),this.$router.push({path:"/business/signupList",query:{status:t.status,id:t.id,name:t.name}});break;case"PREPARE":this.$router.push({path:"/business/teamSeting",query:{status:t.status,id:t.id,name:t.name}});break;case"PROGRESS":this.$router.push({path:"/business/teamDetails",query:{status:t.status,id:t.id,name:t.name}}),console.log("进行中");break;case"CANCELED":console.log("取消");break}}},watch:{chioseSchool:function(t){if(""!=t)for(var e in this.schools)this.schools[e].value==t&&this.setSearchList({id:"school",key:this.schools[e].text,value:t,type:2})},chioseStauts:function(t,e){if(""!=t)for(var a=0;a<t.length;a++)for(var n in this.nowStatus)this.nowStatus[n].value==t[a]&&t.length>e.length&&this.setSearchList({id:"status",key:this.nowStatus[n].text,value:t[a],type:2})},chiosePayType:function(t){if(t){var e=["","1.0","1.5","2.0","3.0"];this.setSearchList({id:"payType",key:e[t],value:t,type:1})}}},computed:{chioseSchool:function(){return this.topForm.school},chioseStauts:function(){return this.topForm.status},chiosePayType:function(){return this.topForm.payType}}},p=c,f=(a("c0c9"),a("2877")),h=Object(f["a"])(p,n,o,!1,null,"65c64585",null);e["default"]=h.exports},"11e9":function(t,e,a){var n=a("52a7"),o=a("4630"),r=a("6821"),s=a("6a99"),i=a("69a8"),l=a("c69a"),u=Object.getOwnPropertyDescriptor;e.f=a("9e1e")?u:function(t,e){if(t=r(t),e=s(e,!0),l)try{return u(t,e)}catch(a){}if(i(t,e))return o(!n.f.call(t,e),t[e])}},"333d":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("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)},o=[],r=(a("c5f6"),a("09f4")),s={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(r["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(r["a"])(0,800)}}},i=s,l=(a("c0b9"),a("2877")),u=Object(l["a"])(i,n,o,!1,null,"31cb099a",null);e["a"]=u.exports},"5dbc":function(t,e,a){var n=a("d3f4"),o=a("8b97").set;t.exports=function(t,e,a){var r,s=e.constructor;return s!==a&&"function"==typeof s&&(r=s.prototype)!==a.prototype&&n(r)&&o&&o(t,r),t}},"8b97":function(t,e,a){var n=a("d3f4"),o=a("cb7c"),r=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=a("9b43")(Function.call,a("11e9").f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,a){return r(t,a),e?t.__proto__=a:n(t,a),t}}({},!1):void 0),check:r}},9093:function(t,e,a){var n=a("ce10"),o=a("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},aa77:function(t,e,a){var n=a("5ca1"),o=a("be13"),r=a("79e5"),s=a("fdef"),i="["+s+"]",l="
",u=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),p=function(t,e,a){var o={},i=r(function(){return!!s[t]()||l[t]()!=l}),u=o[t]=i?e(f):s[t];a&&(o[a]=u),n(n.P+n.F*i,"String",o)},f=p.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=p},aceb:function(t,e,a){},c0b9:function(t,e,a){"use strict";var n=a("de4e"),o=a.n(n);o.a},c0c9:function(t,e,a){"use strict";var n=a("aceb"),o=a.n(n);o.a},c5f6:function(t,e,a){"use strict";var n=a("7726"),o=a("69a8"),r=a("2d95"),s=a("5dbc"),i=a("6a99"),l=a("79e5"),u=a("9093").f,c=a("11e9").f,p=a("86cc").f,f=a("aa77").trim,h="Number",d=n[h],m=d,v=d.prototype,g=r(a("2aeb")(v))==h,b="trim"in String.prototype,y=function(t){var e=i(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():f(e,3);var a,n,o,r=e.charCodeAt(0);if(43===r||45===r){if(a=e.charCodeAt(2),88===a||120===a)return NaN}else if(48===r){switch(e.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+e}for(var s,l=e.slice(2),u=0,c=l.length;u<c;u++)if(s=l.charCodeAt(u),s<48||s>o)return NaN;return parseInt(l,n)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof d&&(g?l(function(){v.valueOf.call(a)}):r(a)!=h)?s(new m(y(e)),a,d):y(e)};for(var _,S=a("9e1e")?u(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;S.length>w;w++)o(m,_=S[w])&&!o(d,_)&&p(d,_,c(m,_));d.prototype=v,v.constructor=d,a("2aba")(n,h,d)}},de4e:function(t,e,a){},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}]);
|