(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3071b8f1"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,r,s){return e/=s/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,r){var i=n(),o=e-i,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var n=Math.easeInOutQuad(l,i,o,t);a(n),l2&&void 0!==arguments[2]?arguments[2]:[],a=Object(S["a"])(t);try{for(a.s();!(r=a.n()).done;){var n=r.value;if(n.sysMusicScoreCategoriesList){var i=this.formatParentId(e,n.sysMusicScoreCategoriesList,[].concat(Object(g["a"])(s),[n.id]));if(i.includes(e))return i}if(n.id===e)return[].concat(Object(g["a"])(s),[e])}}catch(o){a.e(o)}finally{a.f()}return s},FetchTree:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,b();case 3:t=e.sent,this.tree=t.data,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),FeatchDetailList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f({sysMusicScoreId:this.detail.id});case 3:t=e.sent,this.$set(this.form,"sysMusicScoreAccompaniments",t.data),e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),createSys:function(){this.form.sysMusicScoreAccompaniments.push({subjectId:"",speed:"",mp3Url:"",xmlUrl:""})},removeSys:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除此伴奏?","提示",{type:"warning"});case 3:this.form.sysMusicScoreAccompaniments[t]&&this.form.delExamSongAccompanimentIds.push(this.form.sysMusicScoreAccompaniments[t].id),this.form.sysMusicScoreAccompaniments.splice(t,1),e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(t){return e.apply(this,arguments)}return t}(),hasSubjectId:function(e){var t,r=[],s=Object(S["a"])(this.form.sysMusicScoreAccompaniments);try{for(s.s();!(t=s.n()).done;){var a=t.value;r.push(a.subjectId)}}catch(n){s.e(n)}finally{s.f()}return r.includes(e)},submit:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=12;break}if(t.detail){e.next=7;break}return e.next=4,m(Object(n["a"])(Object(n["a"])({},t.form),{},{sysMusicScore:Object(n["a"])(Object(n["a"])({},t.form.sysMusicScore),{},{type:"COMMON",musicScoreCategoriesId:(t.form.sysMusicScore.musicScoreCategoriesId||[]).pop()})}));case 4:t.$message.success("提交成功"),e.next=10;break;case 7:return e.next=9,d(Object(n["a"])(Object(n["a"])({},t.form),{},{sysMusicScore:Object(n["a"])(Object(n["a"])({},t.form.sysMusicScore),{},{type:"COMMON",id:t.detail.id,musicScoreCategoriesId:(t.form.sysMusicScore.musicScoreCategoriesId||[]).pop()})}));case 9:t.$message.success("修改成功");case 10:t.$listeners.close(),t.$listeners.submited();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},_=k,M=(r("6335"),r("2877")),x=Object(M["a"])(_,y,v,!1,null,"2916f943",null),O=x.exports,j={name:"accompaniment",components:{saveform:o["a"],pagination:c["a"],"submit-form":O},data:function(){return{type:"",activeUrl:"",songUseType:l["songUseType"],audioVisible:!1,tableList:[],searchForm:{search:"",type:"",subjectId:"",clientType:"",rankType:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},detail:null,visible:!1}},computed:{title:function(){var e=this.detail?"修改":"添加",t="COMMON"===this.type?"公用":"个人";return this.detail&&(t="COMMON"===this.detail.type?"公用":"个人"),e+t+"伴奏"}},mounted:function(){this.$store.dispatch("setSubjects"),this.FetchList()},methods:{FetchList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p(Object(n["a"])(Object(n["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit}));case 3:t=e.sent,this.tableList=t.data.rows,this.$set(this.rules,"total",t.data.total),e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),submit:function(){var e=this;this.$set(this.rules,"page",1),this.$refs.searchForm.validate((function(t){t&&e.FetchList()}))},reset:function(){this.$refs.searchForm.resetFields(),this.FetchList()},player:function(e){this.activeUrl=e.url,this.audioVisible=!0},edit:function(e){this.detail=e,this.visible=!0},open:function(e){this.type=e,this.detail=null,this.visible=!0},remove:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除此伴奏?","提示",{type:"warning"});case 3:return e.next=5,h(t.id);case 5:this.$message.success("删除成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}()}},T=j,I=(r("c090"),Object(M["a"])(T,s,a,!1,null,"055c3227",null));t["default"]=I.exports}}]);