(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b3374b2"],{"0153":function(e,t,s){"use strict";s("39a0")},"09f4":function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,s,r){return e/=r/2,e<1?s/2*e*e+t:(e--,-s/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,s){var n=a(),c=e-n,o=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=o;var a=Math.easeInOutQuad(l,n,c,t);i(a),l2&&void 0!==arguments[2]?arguments[2]:[],i=Object(S["a"])(t);try{for(i.s();!(s=i.n()).done;){var a=s.value;if(a.sysMusicScoreCategoriesList){var n=this.formatParentId(e,a.sysMusicScoreCategoriesList,[].concat(Object(g["a"])(r),[a.id]));if(n.includes(e))return n}if(a.id===e)return[].concat(Object(g["a"])(r),[e])}}catch(c){i.e(c)}finally{i.f()}return r},FetchTree:function(){var e=Object(n["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(n["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(n["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,s=[],r=Object(S["a"])(this.form.sysMusicScoreAccompaniments);try{for(r.s();!(t=r.n()).done;){var i=t.value;s.push(i.subjectId)}}catch(a){r.e(a)}finally{r.f()}return s.includes(e)},submit:function(){var e=Object(n["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(n["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!s){e.next=12;break}if(t.detail){e.next=7;break}return e.next=4,m(Object(a["a"])(Object(a["a"])({},t.form),{},{sysMusicScore:Object(a["a"])(Object(a["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(a["a"])(Object(a["a"])({},t.form),{},{sysMusicScore:Object(a["a"])(Object(a["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}()}}),_=w,M=(s("a65e"),s("2877")),x=Object(M["a"])(_,v,y,!1,null,"05831223",null),k=x.exports,O={name:"accompaniment",components:{saveform:c["a"],pagination:o["a"],"submit-form":k},data:function(){return{type:"",activeUrl:"",songUseType:l["songUseType"],audioVisible:!1,tableList:[],searchForm:{search:"",type:"",subjectId:"",clientType:""},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(n["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(a["a"])(Object(a["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(n["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}()}},j=O,F=(s("0153"),Object(M["a"])(j,r,i,!1,null,"1c459405",null));t["default"]=F.exports}}]);