1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c00eb302"],{"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 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 s(t,e,a){var s=i(),o=t-s,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var i=Math.easeInOutQuad(c,s,o,e);r(i),c<e?n(t):a&&"function"===typeof a&&a()};u()}},"1e3d":function(t,e,a){},"4cb0":function(t,e,a){"use strict";a("1e3d")},"98b7f":function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"e",(function(){return o})),a.d(e,"a",(function(){return l})),a.d(e,"d",(function(){return c}));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 s(t){return Object(n["a"])({url:r+"/childrenReserve/queryStatisticsDetailPage",method:"get",params:t})}function o(t){return Object(n["a"])({url:r+"/childrenReserve/sendMsg",method:"post",data:t})}function l(t){return Object(n["a"])({url:r+"/studentManage/queryChildrenDayStudentList",method:"get",params:t})}function c(t){return Object(n["a"])({url:r+"/studentManage/updateChildrenDayStudent",method:"post",data:t,requestType:"form"})}},"9d64":function(t,e,a){t.exports=a.p+"static/img/logo.ae7b11a3.png"},adb21:function(t,e,a){"use strict";a.d(e,"a",(function(){return c}));var n=a("bc3a"),r=a.n(n),i=(a("4328"),a("5f87")),s=a("3908"),o=a("e3eb"),l=a.n(o),c=function(t,e,a,n){var o=e.url,c={method:e.method?e.method:"get",headers:{Authorization:Object(i["b"])(),tenantId:Object(i["a"])()},url:o,responseType:"blob"};"post"==c.method?c.data=e.params:c.params=e.params,t.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s["a"].startLoading(),r()(l()(c)).then((function(a){var r=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),i=new Response(r).text();i.then((function(a){if(-1!=a.indexOf("code")){var i=JSON.parse(a);if(403==i.code)return t.$message.error("登录过期,请重新登录!"),void setTimeout((function(){t.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==i.code?t.$message.success(i.msg):t.$message.error(i.msg),n&&n()}else{var s=URL.createObjectURL(r),o=document.createElement("a"),l=e.fileName||"导出文件.xls";o.href=s,o.setAttribute("download",l),document.body.appendChild(o),o.click(),n&&n()}})),s["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),s["a"].endLoading()}))})).catch((function(){}))}},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("tab-router",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeIndex,callback:function(e){t.activeIndex="string"===typeof e?e.trim():e},expression:"activeIndex"}},[a("el-tab-pane",{attrs:{label:"技能评测",lazy:"",name:"1"}},["1"===t.activeIndex&&t.permission("/childrensDay")?a("dayList"):t._e()],1),t._v(" "),a("el-tab-pane",{attrs:{label:"资格调整",lazy:"",name:"2"}},["2"===t.activeIndex&&t.permission("/resetDays")?a("resetDays"):t._e()],1)],1)],1)])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("\n 个人技能测评\n ")])}],i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[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"},on:{click:function(e){return t.onCreateQRCode("music")}}},[t._v("器乐考级报名链接")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onCreateQRCode("vip")}}},[t._v("VIP课程链接")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onCreateQRCode("theory")}}},[t._v("乐理考级链接")]),t._v(" "),a("el-button",{staticStyle:{"background-color":"#f97215",border:"1px solid #f97215"},attrs:{type:"primary"},on:{click:function(e){return t.onCreateQRCode("musicOut")}}},[t._v("对外器乐考级报名链接")]),t._v(" "),a("el-button",{staticStyle:{"background-color":"#f97215",border:"1px solid #f97215"},attrs:{type:"primary"},on:{click:function(e){return t.onCreateQRCode("theoryOut")}}},[t._v("对外乐理考级链接")]),t._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"childrenReserve/sendMsg",expression:"'childrenReserve/sendMsg'"}],attrs:{type:"primary"},on:{click:t.sendMsg}},[t._v("发送短信及推送")]),t._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/statisticsDetail",expression:"'export/statisticsDetail'"}],attrs:{type:"primary"},on:{click:t.exportChildren}},[t._v("导出")])],1),t._v(" "),a("statistic",{staticClass:"statistic",attrs:{col:4,cols:0}},[a("statistic-item",[a("span",[t._v("器乐考级人次")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.statInfo.instrumentalMusicNum}})],1)]),t._v(" "),a("statistic-item",[a("span",[t._v("乐理考级人次")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.statInfo.musicTheoryNum}})],1)]),t._v(" "),a("statistic-item",[a("span",[t._v("乐理课购买人数")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.statInfo.buyMusicTheoryNum}})],1)]),t._v(" "),a("statistic-item",[a("span",[t._v("乐理课成交金额(元)")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.statInfo.buyMusicTheoryAmount,decimals:2}})],1)]),t._v(" "),a("statistic-item",[a("span",[t._v("1v1VIP课购买人数")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.statInfo.buyVip1Num}})],1)]),t._v(" "),a("statistic-item",[a("span",[t._v("1v1VIP课成交金额(元)")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.statInfo.buyVip1Amount,decimals:2}})],1)]),t._v(" "),a("statistic-item",[a("span",[t._v("1v2VIP课购买人数")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.statInfo.buyVip2Num}})],1)]),t._v(" "),a("statistic-item",[a("span",[t._v("1v2VIP课成交金额(元)")]),t._v(" "),a("span",[a("count-to",{attrs:{endVal:t.statInfo.buyVip2Amount,decimals:2}})],1)])],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{directives:[{name:"permission",rawName:"v-permission",value:"childrenReserve/sendMsg",expression:"'childrenReserve/sendMsg'"}],attrs:{type:"selection",width:"55"}}),t._v(" "),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:"未预约人数",width:"120px"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("p",{staticStyle:{position:"relative"}},[t._v("\n 未预约人数\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 未通过预报名链接直接报名考级的学员数量\n ")]),t._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]}}])}),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:"buyVip1Num",label:"1v1VIP课购买人数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyVip1Amount",label:"1v1VIP课成交金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.buyVip1Amount))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyVip2Num",label:"1v2VIP课购买人数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyVip2Amount",label:"1v2VIP课成交金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.buyVip2Amount))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyMusicTheoryNum",label:"乐理课购买人数"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"buyMusicTheoryAmount",label:"乐理课成交金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.buyMusicTheoryAmount))+"\n ")])]}}])}),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),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)},s=[],o=(a("386d"),a("c80c")),l=(a("96cf"),a("3b8d")),c=a("db72"),u=(a("bc3a"),a("5f87"),a("4328")),p=a.n(u),m=a("333d"),d=a("641c"),h=a("61f7"),f=a("adb21"),b=(a("3908"),a("99b4")),v=a("98b7f"),y=a("ec1b"),g=a.n(y),_={buyMusicTheoryAmount:0,buyMusicTheoryNum:0,buyVip1Amount:0,buyVip1Num:0,buyVip2Amount:0,buyVip2Num:0,cooperationOrganId:0,cooperationOrganName:"",instrumentalMusicNum:0,musicGroupId:"",musicGroupName:"",musicTheoryNum:0,noReserveNum:0,normalNum:0,organId:0,organName:"",reserveNum:0,totalAmount:0},w={components:{pagination:m["a"],"count-to":g.a,qrCode:d["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]},statInfo:Object(c["a"])({},_),chioseList:[]}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){this.getList()},getList:function(){var t=Object(l["a"])(Object(o["a"])().mark((function t(){var e,a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(v["c"])(Object(c["a"])({page:this.rules.page,rows:this.rules.limit},this.searchForm));case 3:a=t.sent,this.tableList=a.data.rows,this.rules.total=a.data.total,null!==a&&void 0!==a&&null!==(e=a.data)&&void 0!==e&&e.statInfo?this.statInfo=Object(c["a"])({},a.data.statInfo):this.statInfo=Object(c["a"])({},_),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.rules=Object(c["a"])(Object(c["a"])({},this.rules),{},{page:1}),this.$refs.searchForm.resetFields(),this.search()},onCreateQRCode:function(t){"placeholder"==t&&(this.codeTitle="预报名链接",this.qrCodeUrl=Object(h["d"])()+"/#/childrenSeat"),"theory"==t&&(this.codeTitle="乐理考级链接",this.qrCodeUrl=Object(h["d"])()+"/#/childrenPayment?dHlwZT0y"),"music"==t&&(this.codeTitle="器乐考级报名链接",this.qrCodeUrl=Object(h["d"])()+"/#/childrenPayment?dHlwZT0x"),"vip"==t&&(this.codeTitle="VIP课程链接",this.qrCodeUrl=Object(h["d"])()+"/#/childrenPayment"),"musicOut"==t&&(this.codeTitle="对外器乐考级报名链接",this.qrCodeUrl=Object(h["d"])()+"/#/childrenOut"),"theoryOut"==t&&(this.codeTitle="对外乐理考级链接",this.qrCodeUrl=Object(h["d"])()+"/#/childrenOut?dHlwZT0y"),this.codeStatus=!0},changeOrgan:function(t){this.searchForm.cooperationId=null,this.searchForm.musicGroupId=null},changeCooper:function(t){this.searchForm.musicGroupId=null},handleSelectionChange:function(t){this.chioseList=t},gotoDetail:function(t){this.$router.push({path:"/business/childrensdayDetail",query:{musicGroupId:t.musicGroupId,musicGroupName:t.musicGroupName,cooperationOrganId:t.cooperationOrganId,organId:t.organId}})},exportChildren:function(){Object(f["a"])(this,{url:"/api-web/export/statisticsDetail",fileName:"21暑期考级.xls",method:"post",params:p.a.stringify(Object(c["a"])({},this.searchForm))},"您确定导出21暑期考级?")},sendMsg:function(){var t=Object(l["a"])(Object(o["a"])().mark((function t(){var e=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(this.chioseList.length<1)){t.next=3;break}return this.$message.error("请至少选择一个乐团"),t.abrupt("return");case 3:this.$confirm("确定发送短信和推送","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(Object(o["a"])().mark((function t(){var a;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a=e.chioseList.map((function(t){return{musicGroupId:t.musicGroupId,organId:t.organId}})),t.prev=1,t.next=4,Object(v["e"])(a);case 4:t.sent,e.$message.success("发送成功"),e.getList(),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](1);case 11:case"end":return t.stop()}}),t,null,[[1,9]])}))));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},watch:{"searchForm.organId":function(t){var e=this;t&&Object(b["E"])({organId:t}).then((function(t){200==t.code&&(e.cooperationList=t.data)}))},"searchForm.cooperationId":function(t){var e=this;t&&Object(b["o"])({cooperationId:t}).then((function(t){e.musicList=t.data}))}}},F=w,V=(a("4cb0"),a("2877")),x=Object(V["a"])(F,i,s,!1,null,"65bbd5ae",null),k=x.exports,O=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{clearable:"",placeholder:"姓名/编号/手机号"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:function(e){e.target.blur(),t.$refs.searchForm.save(),t.search()}(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},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",[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),t._v(" "),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:"userId",label:"学员编号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"username",label:"学员姓名"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"free_vip",label:"赠课资格"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"vip1",label:"1v1资格"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"vip2",label:"1v2资格"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"music_theory",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("auth",{attrs:{auths:"studentManage/updateChildrenDayStudent"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.resetDays(e.row)}}},[t._v("资格调整")])],1)],1)]}}])})],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}}),t._v(" "),a("el-dialog",{attrs:{title:"资格调整",visible:t.daysVisible,width:"600px"},on:{"update:visible":function(e){t.daysVisible=e}}},[a("el-form",{ref:"submitform",attrs:{model:t.maskForm,"label-width":"110px","label-position":"right",inline:!0}},[a("el-form-item",{attrs:{label:"赠课资格",prop:"free_vip",rules:[{required:!0,message:"请填写赠课资格"},{validator:this.validateCom,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px !important"},attrs:{maxlength:"50"},model:{value:t.maskForm.free_vip,callback:function(e){t.$set(t.maskForm,"free_vip","string"===typeof e?e.trim():e)},expression:"maskForm.free_vip"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"1V1资格",prop:"vip1",rules:[{required:!0,message:"请填写1V1资格"},{validator:this.validateCom,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px !important"},attrs:{type:"number"},nativeOn:{mousewheel:function(t){t.preventDefault()}},model:{value:t.maskForm.vip1,callback:function(e){t.$set(t.maskForm,"vip1","string"===typeof e?e.trim():e)},expression:"maskForm.vip1"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"1V2资格",prop:"vip2",rules:[{required:!0,message:"请填写1V2资格"},{validator:this.validateCom,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px !important"},attrs:{type:"number"},nativeOn:{mousewheel:function(t){t.preventDefault()}},model:{value:t.maskForm.vip2,callback:function(e){t.$set(t.maskForm,"vip2","string"===typeof e?e.trim():e)},expression:"maskForm.vip2"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"乐理课资格",prop:"music_theory",rules:[{required:!0,message:"请填写乐理课资格"},{validator:this.validateCom,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"400px !important"},attrs:{type:"number"},nativeOn:{mousewheel:function(t){t.preventDefault()}},model:{value:t.maskForm.music_theory,callback:function(e){t.$set(t.maskForm,"music_theory","string"===typeof e?e.trim():e)},expression:"maskForm.music_theory"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.daysVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitReset()}}},[t._v("确 定")])],1)],1)],1)},I=[],j=(a("c5f6"),{components:{pagination:m["a"]},data:function(){return{searchForm:{search:"",organId:""},tableList:[{}],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},daysVisible:!1,maskForm:{vip1:null,vip2:null,free_vip:null,music_theory:null}}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{search:function(){this.rules.page=1,this.getList()},getList:function(){var t=Object(l["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(v["a"])(Object(c["a"])({rows:this.rules.limit,page:this.rules.page},this.searchForm));case 3:e=t.sent,this.tableList=e.data.rows.map((function(t){var e={};t.activityCourseDetail&&(e=JSON.parse(t.activityCourseDetail));var a=Object(c["a"])(Object(c["a"])({},t),e);return a})),this.rules.total=e.data.total,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),console.log(t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},resetDays:function(t){this.activeRow=t,this.maskForm={vip1:t.vip1,vip2:t.vip2,free_vip:t.free_vip,music_theory:t.music_theory,userId:t.userId},this.daysVisible=!0},submitReset:function(){var t=Object(l["a"])(Object(o["a"])().mark((function t(){var e=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.$refs.submitform.validate(function(){var t=Object(l["a"])(Object(o["a"])().mark((function t(a){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=15;break}return t.prev=1,t.next=4,Object(v["d"])(Object(c["a"])({},e.maskForm));case 4:t.sent,e.$message.success("调整成功"),e.daysVisible=!1,e.getList(),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](1),console.log(t.t0);case 13:t.next=16;break;case 15:return t.abrupt("return");case 16:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),validateCom:function(t,e,a){var n=Number(e);return 0!==n&&1!==n?a(new Error("排课资格仅可修改为0或1")):a()}}}),C=j,N=Object(V["a"])(C,O,I,!1,null,"13b766ea",null),S=N.exports,T=a("ec8a"),q={components:{dayList:k,resetDays:S},data:function(){return{activeIndex:"1"}},created:function(){},mounted:function(){},methods:{permission:T["a"],handleClick:function(t){}}},A=q,$=Object(V["a"])(A,n,r,!1,null,"38cd6ff8",null);e["default"]=$.exports},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,s=void 0;if("undefined"==typeof window)e.requestAnimationFrame=i=function(){},e.cancelAnimationFrame=s=function(){};else{e.requestAnimationFrame=i=window.requestAnimationFrame,e.cancelAnimationFrame=s=window.cancelAnimationFrame;for(var o=void 0,l=0;l<r.length&&(!i||!s);l++)o=r[l],e.requestAnimationFrame=i=i||window[o+"RequestAnimationFrame"],e.cancelAnimationFrame=s=s||window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];i&&s||(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=s=function(t){window.clearTimeout(t)})}e.requestAnimationFrame=i,e.cancelAnimationFrame=s},function(t,e){t.exports=function(t,e,a,n){var r,i=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(r=t,i=t.default);var o="function"==typeof i?i.options:i;if(e&&(o.render=e.render,o.staticRenderFns=e.staticRenderFns),a&&(o._scopeId=a),n){var l=Object.create(o.computed||null);Object.keys(n).forEach((function(t){var e=n[t];l[t]=function(){return e}})),o.computed=l}return{esModule:r,exports:i,options:o}}},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:[]}}])}))}}]);
|