(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-583aafcb"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),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 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,r){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]:[],s=!0,i=!1,a=void 0;try{for(var n,c=t[Symbol.iterator]();!(s=(n=c.next()).done);s=!0){var o=n.value;if(o.sysMusicScoreCategoriesList){var l=this.formatParentId(e,o.sysMusicScoreCategoriesList,[].concat(Object(g["a"])(r),[o.id]));if(l.includes(e))return l}if(o.id===e)return[].concat(Object(g["a"])(r),[e])}}catch(u){i=!0,a=u}finally{try{s||null==c.return||c.return()}finally{if(i)throw a}}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,v();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=[],r=!0,s=!1,i=void 0;try{for(var a,n=this.form.sysMusicScoreAccompaniments[Symbol.iterator]();!(r=(a=n.next()).done);r=!0){var c=a.value;t.push(c.subjectId)}}catch(o){s=!0,i=o}finally{try{r||null==n.return||n.return()}finally{if(s)throw i}}return t.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(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(a["a"])({},t.form,{sysMusicScore: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"])({},t.form,{sysMusicScore: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=S,_=(r("68dc"),r("2877")),M=Object(_["a"])(w,b,y,!1,null,"b7f37f48",null),x=M.exports,k={name:"accompaniment",components:{saveform:c["a"],pagination:o["a"],"submit-form":x},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"])({},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}()}},O=k,F=(r("9a06"),Object(_["a"])(O,s,i,!1,null,"53287f92",null));t["default"]=F.exports},ff9f:function(e,t,r){}}]);