chunk-6ab94e8a.c2fd4d77.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ab94e8a"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),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 r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,a){var o=i(),s=t-o,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var i=Math.easeInOutQuad(u,o,s,e);r(i),u<e?n(t):a&&"function"===typeof a&&a()};c()}},"4b88":function(t,e,a){},"98b7":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"a",(function(){return o}));a("b775");var n=a("829b"),r=(a("4328"),"/api-web");function i(t){return Object(n["a"])({url:r+"/childrenReserve/queryStatisticsPage",method:"get",params:t})}function o(t){return Object(n["a"])({url:r+"/childrenReserve/queryStatisticsDetailPage",method:"get",params:t})}},bb28: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"},[t._m(0),t._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},on:{change:t.changeOrgan},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.selects.branchs,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"cooperationId"}},[a("el-select",{attrs:{disabled:!t.searchForm.organId,filterable:"",clearable:"",placeholder:"请选择合作单位"},on:{change:t.changeCooper},model:{value:t.searchForm.cooperationId,callback:function(e){t.$set(t.searchForm,"cooperationId","string"===typeof e?e.trim():e)},expression:"searchForm.cooperationId"}},t._l(t.cooperationList,(function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"musicGroupId"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择乐团",disabled:!t.searchForm.cooperationId},model:{value:t.searchForm.musicGroupId,callback:function(e){t.$set(t.searchForm,"musicGroupId","string"===typeof e?e.trim():e)},expression:"searchForm.musicGroupId"}},t._l(t.musicList,(function(t,e){return a("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),a("div",{staticClass:"btnList"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onCreateQRCode("placeholder")}}},[t._v("占位链接")]),t._v(" "),a("el-button",{attrs:{type:"primary"}},[t._v("器乐考级链接")]),t._v(" "),a("el-button",{attrs:{type:"primary"}},[t._v("VIP课程链接")]),t._v(" "),a("el-button",{attrs:{type:"primary"}},[t._v("乐理考级链接")]),t._v(" "),a("el-button",{attrs:{type:"primary"}},[t._v("导出")])],1),t._v(" "),a("statistic",{staticClass:"statistic",attrs:{col:6,cols:0}},[a("statistic-item",[a("span",[a("count-to",{attrs:{endVal:3e3}})],1),t._v(" "),a("span",[t._v("器乐考级人次")])]),t._v(" "),a("statistic-item",[a("span",[a("count-to",{attrs:{endVal:3e3}})],1),t._v(" "),a("span",[t._v("器乐考级人次")])]),t._v(" "),a("statistic-item",[a("span",[a("count-to",{attrs:{endVal:3e3}})],1),t._v(" "),a("span",[t._v("器乐考级人次")])]),t._v(" "),a("statistic-item",[a("span",[a("count-to",{attrs:{endVal:3e3}})],1),t._v(" "),a("span",[t._v("器乐考级人次")])]),t._v(" "),a("statistic-item",[a("span",[a("count-to",{attrs:{endVal:3e3}})],1),t._v(" "),a("span",[t._v("器乐考级人次")])]),t._v(" "),a("statistic-item",[a("span",[a("count-to",{attrs:{endVal:3e3}})],1),t._v(" "),a("span",[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.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName",label:"合作单位"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"乐团名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"normalNum",label:"在读人数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"reserveNum",label:"预约人数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"noReserveNum",label:"未预约人数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"instrumentalMusicNum",label:"器乐考级人次"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"musicTheoryNum",label:"乐理考级人次"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyVipNum",label:"vip课购买人数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyVipAmount",label:"vip课成交金额"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyMusicTheoryNum",label:"乐理课购买人数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyMusicTheoryAmount",label:"乐理课成交金额"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.gotoDetail(e.row)}}},[t._v("详情")])],1)]}}])})],1),t._v(" "),a("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"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),t._v(" "),a("qr-code",{attrs:{title:t.codeTitle,codeUrl:t.qrCodeUrl},model:{value:t.codeStatus,callback:function(e){t.codeStatus=e},expression:"codeStatus"}})],1)},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("\n 21暑期考级\n ")])}],i=(a("386d"),a("5530")),o=(a("96cf"),a("1da1")),s=(a("bc3a"),a("5f87"),a("333d")),l=a("641c"),u=a("61f7"),c=(a("3908"),a("99b4")),p=a("98b7"),d=a("ec1b"),m=a.n(d),h={components:{pagination:s["a"],"count-to":m.a,qrCode:l["a"]},data:function(){return{searchForm:{search:null,organId:null,cooperationId:null,musicGroupId:null},codeStatus:!1,codeTitle:null,qrCodeUrl:null,tableList:[],cooperationList:[],musicList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){this.getList()},getList:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(p["b"])(Object(i["a"])({page:this.rules.page,rows:this.rules.limit},this.searchForm));case 3:e=t.sent,this.tableList=e.data.rows,this.rules.total=e.data.total,t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.rules=Object(i["a"])(Object(i["a"])({},this.rules),{},{page:1}),this.$refs.searchForm.resetFields(),this.search()},onCreateQRCode:function(t){"placeholder"==t&&(this.codeTitle="占位链接",this.qrCodeUrl=Object(u["d"])()+"/#/childrenSeat"),this.codeStatus=!0},changeOrgan:function(t){var e=this;this.searchForm.cooperationId=null,this.searchForm.musicGroupId=null,t&&Object(c["A"])({organId:t}).then((function(t){200==t.code&&(e.cooperationList=t.data)}))},changeCooper:function(t){var e=this;this.searchForm.musicGroupId=null,t&&Object(c["n"])({cooperationId:t}).then((function(t){e.musicList=t.data}))},gotoDetail:function(t){this.$router.push({path:"/business/childrensdayDetail",query:{musicGroupId:t.musicGroupId,musicGroupName:t.musicGroupName}})}}},f=h,b=(a("e85a"),a("2877")),v=Object(b["a"])(f,n,r,!1,null,"4926027e",null);e["default"]=v.exports},e85a:function(t,e,a){"use strict";a("4b88")},ec1b:function(t,e,a){!function(e,a){t.exports=a()}(0,(function(){return function(t){function e(n){if(a[n])return a[n].exports;var r=a[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var a={};return e.m=t,e.c=a,e.i=function(t){return t},e.d=function(t,a,n){e.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=2)}([function(t,e,a){var n=a(4)(a(1),a(5),null,null);t.exports=n.exports},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(3);e.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(t){return t>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,e,a,n){return a*(1-Math.pow(2,-10*t/n))*1024/1023+e}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,n.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,n.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,n.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,n.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e<this.localDuration?this.rAF=(0,n.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(t){return!isNaN(parseFloat(t))},formatNumber:function(t){t=t.toFixed(this.decimals),t+="";var e=t.split("."),a=e[0],n=e.length>1?this.decimal+e[1]:"",r=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;r.test(a);)a=a.replace(r,"$1"+this.separator+"$2");return this.prefix+a+n+this.suffix}},destroyed:function(){(0,n.cancelAnimationFrame)(this.rAF)}}},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a(0),r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=r.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",r.default)},function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=0,r="webkit moz ms o".split(" "),i=void 0,o=void 0;if("undefined"==typeof window)e.requestAnimationFrame=i=function(){},e.cancelAnimationFrame=o=function(){};else{e.requestAnimationFrame=i=window.requestAnimationFrame,e.cancelAnimationFrame=o=window.cancelAnimationFrame;for(var s=void 0,l=0;l<r.length&&(!i||!o);l++)s=r[l],e.requestAnimationFrame=i=i||window[s+"RequestAnimationFrame"],e.cancelAnimationFrame=o=o||window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"];i&&o||(e.requestAnimationFrame=i=function(t){var e=(new Date).getTime(),a=Math.max(0,16-(e-n)),r=window.setTimeout((function(){t(e+a)}),a);return n=e+a,r},e.cancelAnimationFrame=o=function(t){window.clearTimeout(t)})}e.requestAnimationFrame=i,e.cancelAnimationFrame=o},function(t,e){t.exports=function(t,e,a,n){var r,i=t=t||{},o=typeof t.default;"object"!==o&&"function"!==o||(r=t,i=t.default);var s="function"==typeof i?i.options:i;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),a&&(s._scopeId=a),n){var l=Object.create(s.computed||null);Object.keys(n).forEach((function(t){var e=n[t];l[t]=function(){return e}})),s.computed=l}return{esModule:r,exports:i,options:s}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",[t._v("\n "+t._s(t.displayValue)+"\n")])},staticRenderFns:[]}}])}))}}]);