(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c4ac2a8"],{"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]:[],s=!0,a=!1,n=void 0;try{for(var i,o=t[Symbol.iterator]();!(s=(i=o.next()).done);s=!0){var c=i.value;if(c.sysMusicScoreCategoriesList){var l=this.formatParentId(e,c.sysMusicScoreCategoriesList,[].concat(Object(w["a"])(r),[c.id]));if(l.includes(e))return l}if(c.id===e)return[].concat(Object(w["a"])(r),[e])}}catch(u){a=!0,n=u}finally{try{s||null==o.return||o.return()}finally{if(a)throw n}}return r},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,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(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,h({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=!0,s=!1,a=void 0;try{for(var n,i=this.form.sysMusicScoreAccompaniments[Symbol.iterator]();!(r=(n=i.next()).done);r=!0){var o=n.value;t.push(o.subjectId)}}catch(c){s=!0,a=c}finally{try{r||null==i.return||i.return()}finally{if(s)throw a}}return t.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"])({},t.form,{sysMusicScore:Object(n["a"])({},t.form.sysMusicScore,{type:"COMMON",showFlag:0,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"])({},t.form,{sysMusicScore:Object(n["a"])({},t.form.sysMusicScore,{type:"COMMON",id:t.detail.id,showFlag:t.detail.showFlag,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=_,x=(r("3e33"),r("2877")),M=Object(x["a"])(k,y,g,!1,null,"f155a4fa",null),O=M.exports,F=r("61f7"),j=r("5f87"),T={name:"accompaniment",components:{saveform:o["a"],pagination:c["a"],"submit-form":O},data:function(){return{type:"",activeUrl:"",songUseType:l["songUseType"],lookVisible:!1,accompanyUrl:null,audioVisible:!1,tableList:[],searchForm:{search:"",type:"",subjectId:"",clientType:"",rankType:null,showFlag: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"])({},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()},looker:function(e){this.accompanyUrl=Object(F["d"])()+"/accompany?Authorization="+Object(j["a"])()+"#/detail/"+e.id,this.lookVisible=!0},player:function(e){this.activeUrl=e.url,this.audioVisible=!0},changeStatus:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,r=t.showFlag?"停用":"启用",e.next=4,this.$confirm("是否确认"+r+"此伴奏?","提示",{type:"warning"});case 4:return e.next=6,f({sysMusicScoreId:t.id,showFlag:t.showFlag?0:1});case 6:this.$message.success(r+"成功"),this.FetchList(),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](0);case 12:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(t){return e.apply(this,arguments)}return t}(),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,b(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}()}},I=T,C=(r("3521"),Object(x["a"])(I,s,a,!1,null,"f467d44e",null));t["default"]=C.exports},e48c:function(e,t,r){}}]);