chunk-077dc7dc.7eba0abc.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-077dc7dc"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),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 s(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,a){var i=o(),r=t-i,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var o=Math.easeInOutQuad(u,i,r,e);s(o),u<e?n(t):a&&"function"===typeof a&&a()};c()}},"0df2":function(t,e,a){"use strict";var n=a("1b6d"),s=a.n(n);s.a},"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",on:{click:t.resetTeam}},[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:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableData},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:t.checkSelectable,width:"50"}}),t._v(" "),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",width:"200px",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"},on:{click:function(a){return t.gotodetailList(e.row)}}},[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)])},s=[],o=(a("7f7f"),a("333d")),i=a("b775");a("4328");function r(t){return Object(i["a"])({url:"/web-server/musicGroup/queryPage",method:"get",params:t})}var l={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]},passed:[]}},components:{pagination:o["a"]},mounted:function(){this.getList()},methods:{getList:function(){var t=this;r({rows:this.rules.limit,page:this.rules.page}).then((function(e){200==e.code&&(t.tableData=e.data.rows,t.rules.total=e.data.total)}))},createNewTeam:function(){this.$router.push({path:"/business/teamBuild",query:{type:"newTeam"}})},resetTeam:function(){this.passed&&this.passed.length<=0?this.$message.error("请至少选择一个乐团进行调整"):this.$router.push({path:"/business/teamBuild",query:{type:"teamList",teamList:this.passed}})},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}},checkSelectable:function(t){return"PROGRESS"==t.status},handleSelectionChange:function(t){for(var e in this.passed=[],t){var a={};a.id=t[e].id,a.name=t[e].name,this.passed.push(a)}},gotodetailList:function(t){this.$router.push({path:"/business/teamDetailedList",query:{id:t.id}})}},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}}},u=l,c=(a("0df2"),a("2877")),p=Object(c["a"])(u,n,s,!1,null,"7067e685",null);e["default"]=p.exports},"11e9":function(t,e,a){var n=a("52a7"),s=a("4630"),o=a("6821"),i=a("6a99"),r=a("69a8"),l=a("c69a"),u=Object.getOwnPropertyDescriptor;e.f=a("9e1e")?u:function(t,e){if(t=o(t),e=i(e,!0),l)try{return u(t,e)}catch(a){}if(r(t,e))return s(!n.f.call(t,e),t[e])}},"1b6d":function(t,e,a){},"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)},s=[],o=(a("c5f6"),a("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)}}},r=i,l=(a("c0b9"),a("2877")),u=Object(l["a"])(r,n,s,!1,null,"31cb099a",null);e["a"]=u.exports},"5dbc":function(t,e,a){var n=a("d3f4"),s=a("8b97").set;t.exports=function(t,e,a){var o,i=e.constructor;return i!==a&&"function"==typeof i&&(o=i.prototype)!==a.prototype&&n(o)&&s&&s(t,o),t}},"8b97":function(t,e,a){var n=a("d3f4"),s=a("cb7c"),o=function(t,e){if(s(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(s){e=!0}return function(t,a){return o(t,a),e?t.__proto__=a:n(t,a),t}}({},!1):void 0),check:o}},9093:function(t,e,a){var n=a("ce10"),s=a("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},aa77:function(t,e,a){var n=a("5ca1"),s=a("be13"),o=a("79e5"),i=a("fdef"),r="["+i+"]",l="​…",u=RegExp("^"+r+r+"*"),c=RegExp(r+r+"*$"),p=function(t,e,a){var s={},r=o((function(){return!!i[t]()||l[t]()!=l})),u=s[t]=r?e(h):i[t];a&&(s[a]=u),n(n.P+n.F*r,"String",s)},h=p.trim=function(t,e){return t=String(s(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=p},c0b9:function(t,e,a){"use strict";var n=a("de4e"),s=a.n(n);s.a},c5f6:function(t,e,a){"use strict";var n=a("7726"),s=a("69a8"),o=a("2d95"),i=a("5dbc"),r=a("6a99"),l=a("79e5"),u=a("9093").f,c=a("11e9").f,p=a("86cc").f,h=a("aa77").trim,f="Number",d=n[f],m=d,v=d.prototype,g=o(a("2aeb")(v))==f,b="trim"in String.prototype,y=function(t){var e=r(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():h(e,3);var a,n,s,o=e.charCodeAt(0);if(43===o||45===o){if(a=e.charCodeAt(2),88===a||120===a)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,s=49;break;case 79:case 111:n=8,s=55;break;default:return+e}for(var i,l=e.slice(2),u=0,c=l.length;u<c;u++)if(i=l.charCodeAt(u),i<48||i>s)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)})):o(a)!=f)?i(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++)s(m,_=S[w])&&!s(d,_)&&p(d,_,c(m,_));d.prototype=v,v.constructor=d,a("2aba")(n,f,d)}},de4e:function(t,e,a){},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);