chunk-2c4b79df.e31f0722.js 82 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c4b79df"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function s(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,r){var n=l(),o=e-n,i=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=i;var l=Math.easeInOutQuad(c,n,o,t);s(l),c<t?a(e):r&&"function"===typeof r&&r()};u()}},1672:function(e,t,r){"use strict";r.d(t,"l",(function(){return s})),r.d(t,"r",(function(){return l})),r.d(t,"q",(function(){return n})),r.d(t,"s",(function(){return o})),r.d(t,"p",(function(){return i})),r.d(t,"k",(function(){return c})),r.d(t,"i",(function(){return u})),r.d(t,"n",(function(){return d})),r.d(t,"o",(function(){return m})),r.d(t,"m",(function(){return p})),r.d(t,"w",(function(){return f})),r.d(t,"t",(function(){return b})),r.d(t,"j",(function(){return v})),r.d(t,"u",(function(){return h})),r.d(t,"g",(function(){return y})),r.d(t,"e",(function(){return g})),r.d(t,"h",(function(){return S})),r.d(t,"f",(function(){return x})),r.d(t,"v",(function(){return _})),r.d(t,"b",(function(){return k})),r.d(t,"c",(function(){return w})),r.d(t,"d",(function(){return O})),r.d(t,"a",(function(){return I}));var a=r("829b"),s=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},l=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/createCalender",data:e,method:"post"})},n=function(e){return Object(a["a"])({url:"/api-web/musicGroupCalenderRefundPeriod/batchUpdate",data:e,method:"post"})},o=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/updateCalender",data:e,method:"post"})},i=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/getDetail",data:{},params:e,method:"get"})},c=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},u=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},d=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},m=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},p=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},f=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/revoke",data:{},params:e,method:"post"})},b=function(e){return Object(a["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},v=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},h=function(e){return Object(a["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})},y=function(e){return Object(a["a"])({url:"/api-web/memberFeeSetting/findByRankId",data:{},params:e,method:"get",requestType:"form"})},g=function(e){return Object(a["a"])({url:"/api-web/memberRankSetting/findAll",method:"get",params:e})},S=function(e){return Object(a["a"])({url:"/api-web/memberRankSetting/queryTree",method:"get",params:e})},x=function(e){return Object(a["a"])({url:"/api-web/tenantConfig/autoActivationFlag",method:"get",params:e})},_=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/queryInactive",method:"post",data:e})},k=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/cancelInactive",method:"post",data:e})},w=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/pay",method:"post",data:e})},O=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/payCheck",method:"get",hideLoading:!0,params:e})},I=function(e){return Object(a["a"])({url:"/api-web/goods/queryPage",method:"get",params:e})}},"3aa1":function(e,t,r){"use strict";r("3f79")},"3f79":function(e,t,r){},5210:function(e,t,r){"use strict";r("c390")},"5fbf":function(e,t,r){},"6be6":function(e,t,r){"use strict";r("5fbf")},8870:function(e,t,r){},"92e3":function(e,t,r){"use strict";r.d(t,"v",(function(){return i})),r.d(t,"I",(function(){return c})),r.d(t,"t",(function(){return u})),r.d(t,"c",(function(){return d})),r.d(t,"E",(function(){return m})),r.d(t,"bb",(function(){return p})),r.d(t,"Z",(function(){return f})),r.d(t,"d",(function(){return b})),r.d(t,"M",(function(){return v})),r.d(t,"x",(function(){return h})),r.d(t,"db",(function(){return y})),r.d(t,"u",(function(){return g})),r.d(t,"o",(function(){return S})),r.d(t,"cb",(function(){return x})),r.d(t,"Q",(function(){return _})),r.d(t,"fb",(function(){return k})),r.d(t,"gb",(function(){return w})),r.d(t,"P",(function(){return O})),r.d(t,"U",(function(){return I})),r.d(t,"C",(function(){return M})),r.d(t,"l",(function(){return T})),r.d(t,"Y",(function(){return C})),r.d(t,"eb",(function(){return j})),r.d(t,"J",(function(){return L})),r.d(t,"m",(function(){return E})),r.d(t,"w",(function(){return N})),r.d(t,"N",(function(){return F})),r.d(t,"f",(function(){return A})),r.d(t,"e",(function(){return $})),r.d(t,"L",(function(){return R})),r.d(t,"K",(function(){return U})),r.d(t,"T",(function(){return P})),r.d(t,"H",(function(){return D})),r.d(t,"a",(function(){return B})),r.d(t,"y",(function(){return G})),r.d(t,"p",(function(){return q})),r.d(t,"n",(function(){return V})),r.d(t,"q",(function(){return H})),r.d(t,"g",(function(){return J})),r.d(t,"G",(function(){return z})),r.d(t,"r",(function(){return X})),r.d(t,"D",(function(){return Y})),r.d(t,"B",(function(){return W})),r.d(t,"A",(function(){return K})),r.d(t,"h",(function(){return Q})),r.d(t,"k",(function(){return Z})),r.d(t,"i",(function(){return ee})),r.d(t,"j",(function(){return te})),r.d(t,"S",(function(){return re})),r.d(t,"O",(function(){return ae})),r.d(t,"F",(function(){return se})),r.d(t,"z",(function(){return le})),r.d(t,"R",(function(){return ne})),r.d(t,"V",(function(){return oe})),r.d(t,"X",(function(){return ie})),r.d(t,"s",(function(){return ce})),r.d(t,"ab",(function(){return ue})),r.d(t,"W",(function(){return de})),r.d(t,"b",(function(){return pe}));var a=r("b85c"),s=r("3835"),l=r("267e"),n=sessionStorage.getItem("tenantConfig");n=n?JSON.parse(n):{};var o=n.tenantId,i=null,c=null;1==o?(c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var u=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],m=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],p=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],b=[].concat(f,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),v=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"学练宝购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",label:"乐队指导培训"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],y=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],g=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],S=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],x=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],_=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],k=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],w=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"学练宝",label:"学练宝",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],O=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],I=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],M=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],T=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],C=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],j=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],L=me(l["musicGroupType"]),E=me(l["classTime"]),N=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],F=me(l["payOrderType"]),A=me(l["auditType"]),$=me(l["auditPaymentType"]),R=me(l["orderServerType"]),U=me(l["orderAuditType"]),P=me(l["rewardModeType"]),D=me(l["musicClassType"]),B=me(l["ProbationPeriodStatus"]),G=me(l["downListType"]),q=me(l["conclusion"]),V=me(l["clientType"]),H=me(l["couponType"]),J=me(l["backType"]),z=me(l["memberEnum"]),X=me(l["coupontypeDetail"]),Y=me(l["issue"]),W=me(l["feedbackType"]),K=me(l["feedbackTypeDesc"]),Q=me(l["campState"]),Z=me(l["catgGoupType"]),ee=me(l["catRole"]),te=me(l["catType"]),re=me(l["quiteReason"]),ae=me(l["payUserType"]),se=me(l["levelStatus"]),le=me(l["evaluateStatus"]),ne=me(l["problemType"]),oe=me(l["schoolUserType"]),ie=me(l["shareLiveType"]),ce=me(l["courseEmnu"]),ue=me(l["suggestionType"]),de=me(l["scoreType"]);function me(e){var t=[];for(var r in e)t.push({label:e[r],value:r});return t}var pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],r=Object(s["a"])(t,2),l=r[0],n=r[1],o={};if(e&&e.length){var i,c=Object(a["a"])(e);try{for(c.s();!(i=c.n()).done;){var u=i.value;o[u[l]]=u[n]}}catch(d){c.e(d)}finally{c.f()}}return o}},adb21:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var a=r("bc3a"),s=r.n(a),l=(r("4328"),r("5f87")),n=r("3908"),o=r("e3eb"),i=r.n(o),c=function(e,t,r,a){var o=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(l["b"])(),tenantId:Object(l["a"])()},url:o,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n["a"].startLoading(),s()(i()(c)).then((function(r){var s=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),l=new Response(s).text();l.then((function(r){if(-1!=r.indexOf("code")){var l=JSON.parse(r);if(403==l.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==l.code?e.$message.success(l.msg):e.$message.error(l.msg),a&&a()}else{var n=URL.createObjectURL(s),o=document.createElement("a"),i=t.fileName||"导出文件.xls";o.href=n,o.setAttribute("download",i),document.body.appendChild(o),o.click(),a&&a()}})),n["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),n["a"].endLoading()}))})).catch((function(){}))}},be41:function(e,t,r){"use strict";r("5df3"),r("1c4c");var a=r("53ca"),s=(r("456d"),r("ac6a"),function e(t){if(null===t)return null;var r=Object.assign({},t);return Object.keys(r).forEach((function(s){return r[s]="object"===Object(a["a"])(t[s])?e(t[s]):t[s]})),Array.isArray(t)?(r.length=t.length,Array.from(r)):r});t["a"]=s},c390:function(e,t,r){},d342:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("saveform",{ref:"searchForm",attrs:{model:e.searchForm,inline:""},on:{"update:model":function(t){e.searchForm=t}}},[r("el-form-item",{attrs:{prop:"search"}},[r("el-input",{attrs:{clearable:"",placeholder:"伴奏编号/伴奏名称"},on:{submit:e.submit,reset:e.reset},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.submit()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"categoriesId"}},[r("el-cascader",{ref:"myCascader",staticStyle:{width:"100%"},attrs:{"popper-class":"myCascader","show-all-levels":!0,clearable:"",options:e.tree,placeholder:"请选择分类",props:e.treeProps},on:{change:e.changeCategor},model:{value:e.searchForm.categoriesId,callback:function(t){e.$set(e.searchForm,"categoriesId",t)},expression:"searchForm.categoriesId"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"subjectId"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.subjectList,(function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"rankType"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择是否收费"},model:{value:e.searchForm.rankType,callback:function(t){e.$set(e.searchForm,"rankType",t)},expression:"searchForm.rankType"}},[r("el-option",{attrs:{value:0,label:"免费"}}),e._v(" "),r("el-option",{attrs:{value:1,label:"收费"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"clientShowFlag"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择业务曲目状态"},model:{value:e.searchForm.clientShowFlag,callback:function(t){e.$set(e.searchForm,"clientShowFlag",t)},expression:"searchForm.clientShowFlag"}},[r("el-option",{attrs:{value:1,label:"启用"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"停用"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"showFlag"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择平台曲目状态"},model:{value:e.searchForm.showFlag,callback:function(t){e.$set(e.searchForm,"showFlag",t)},expression:"searchForm.showFlag"}},[r("el-option",{attrs:{value:1,label:"启用"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"停用"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"scoreType"}},[r("el-select",{attrs:{clearable:"",filterable:"",clearable:"",filterable:"",placeholder:"请选择默认谱面"},model:{value:e.searchForm.scoreType,callback:function(t){e.$set(e.searchForm,"scoreType",t)},expression:"searchForm.scoreType"}},e._l(e.scoreTypeList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"isConvertibleScore"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择是否可转谱"},model:{value:e.searchForm.isConvertibleScore,callback:function(t){e.$set(e.searchForm,"isConvertibleScore",t)},expression:"searchForm.isConvertibleScore"}},[r("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"否"}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"danger"},on:{click:e.reset}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticStyle:{"margin-bottom":"20px"}},[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicSheetApplicationExtend/saveBatch",expression:"'musicSheetApplicationExtend/saveBatch'"}],attrs:{type:"primary"},on:{click:function(t){return e.open("COMMON")}}},[e._v("添加曲目")]),e._v(" "),r("el-button",{attrs:{type:"primary",disabled:e.chioseList.length<=0},on:{click:function(t){return e.onOperation("start")}}},[e._v("批量启用")]),e._v(" "),r("el-button",{attrs:{type:"error",disabled:e.chioseList.length<=0},on:{click:function(t){return e.onOperation("stop")}}},[e._v("批量停用")])],1),e._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"cbsMusicSheetId",label:"编号",width:"120px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.cbsMusicSheetId))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"名称",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("copy-text",[e._v(e._s(t.row.name))])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"所属声部",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("div",[r("Tooltip",{attrs:{content:e.row.subjectName}})],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"type",label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("songUseTypeFormat")(t.row.type))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"categoriesName",label:"分类",width:"180px"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"是否收费"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.rankIds?"收费":"免费")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"默认谱面"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("scoreType")(t.row.scoreType))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"是否可转谱"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.isConvertibleScore?"是":"否")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"业务曲目状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clientShowFlag?"启用":"停用")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"平台曲目状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.showFlag?"启用":"停用")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",width:"180px",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.looker(t.row,1)}}},[e._v("预览")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysMusicScore/state",expression:"'sysMusicScore/state'"}],attrs:{type:"text"},on:{click:function(r){return e.changeStatus(t.row)}}},[e._v(e._s(t.row.clientShowFlag?"停用":"启用"))]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysMusicScore/update",expression:"'sysMusicScore/update'"}],attrs:{type:"text",disabled:!!t.row.clientShowFlag},on:{click:function(r){return e.edit(t.row)}}},[e._v("修改")])]}}])})],1),e._v(" "),r("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}})],1),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.visible,width:"1100px"},on:{"update:visible":function(t){e.visible=t}}},[e.visible?r("EditMusic",{attrs:{tree:this.tree},on:{close:function(t){e.visible=!1},getList:e.FetchList}}):e._e()],1),e._v(" "),r("el-dialog",{attrs:{title:"修改曲谱",visible:e.muiscVisible,width:"500px"},on:{"update:visible":function(t){e.muiscVisible=t}}},[e.muiscVisible?r("EditExtra",{attrs:{tree:this.tree,detail:e.detail},on:{close:function(t){e.muiscVisible=!1},getList:e.FetchList}}):e._e()],1),e._v(" "),e.lookVisible?r("el-dialog",{staticClass:"lookForm",attrs:{width:"1030px",visible:e.lookVisible,title:"预览"},on:{"update:visible":function(t){e.lookVisible=t}}},[r("template",{slot:"title"},[r("span",{staticStyle:{color:"#fff"}},[e._v("预览")])]),e._v(" "),e.lookVisible?r("iframe",{ref:"iframe",staticStyle:{width:"1030px",height:"630px",border:"none"},attrs:{id:"iframe",src:e.accompanyUrl}}):e._e(),e._v(" "),r("div",{staticClass:"iframe_back"}),e._v(" "),r("div",{staticClass:"iframe_help"}),e._v(" "),r("div",{staticClass:"iframe_header_back"})],2):e._e()],1)},s=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 教学伴奏\n ")])}],l=(r("5df3"),r("1c4c"),r("5530")),n=r("15fd"),o=(r("6762"),r("2fdb"),r("2909")),i=r("b85c"),c=r("c7eb"),u=(r("96cf"),r("1da1")),d=r("adb2"),m=r("333d"),p=r("267e"),f=r("f716"),b=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"150px"}},[r("el-form-item",{attrs:{prop:"sysMusicScore.name",label:"曲名",rules:[{required:!0,message:"请输入曲名"}]}},[r("el-input",{attrs:{placeholder:"请输入曲名"},model:{value:e.form.sysMusicScore.name,callback:function(t){e.$set(e.form.sysMusicScore,"name",t)},expression:"form.sysMusicScore.name"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"sysMusicScore.musicScoreCategoriesId",label:"分类",rules:[{required:!0,message:"请选择分类"}]}},[r("el-cascader",{staticStyle:{width:"100%"},attrs:{options:e.tree,placeholder:"请选择分类",props:e.treeProps},model:{value:e.form.sysMusicScore.musicScoreCategoriesId,callback:function(t){e.$set(e.form.sysMusicScore,"musicScoreCategoriesId",t)},expression:"form.sysMusicScore.musicScoreCategoriesId"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"rankIdType",label:"是否收费",rules:[{required:!0,message:"请选择是否收费"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择是否收费"},on:{change:e.rankChange},model:{value:e.form.rankIdType,callback:function(t){e.$set(e.form,"rankIdType",t)},expression:"form.rankIdType"}},[r("el-option",{attrs:{value:0,label:"免费"}}),e._v(" "),r("el-option",{attrs:{value:1,label:"收费"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"sysMusicScore.isOpenMetronome",label:"节拍器",rules:[{required:!0,message:"请选择节拍器"}]}},[r("template",{slot:"label"},[r("span",[e._v("\n 节拍器\n "),r("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("是否播放系统自带节拍器")]),e._v(" "),r("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]),e._v(" "),r("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择节拍器"},model:{value:e.form.sysMusicScore.isOpenMetronome,callback:function(t){e.$set(e.form.sysMusicScore,"isOpenMetronome",t)},expression:"form.sysMusicScore.isOpenMetronome"}},[r("el-option",{attrs:{value:0,label:"不播放"}}),e._v(" "),r("el-option",{attrs:{value:1,label:"播放"}})],1)],2),e._v(" "),r("el-form-item",{attrs:{label:"重复节拍时长"}},[r("template",{slot:"label"},[r("span",[e._v("\n 重复节拍时长\n "),r("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("2/4拍类似的节拍器是否重复时长")]),e._v(" "),r("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]),e._v(" "),r("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择是否重复节拍器时长"},model:{value:e.form.repeatedBeats,callback:function(t){e.$set(e.form,"repeatedBeats",t)},expression:"form.repeatedBeats"}},[r("el-option",{attrs:{value:0,label:"不重复"}}),e._v(" "),r("el-option",{attrs:{value:1,label:"重复"}})],1)],2),e._v(" "),r("el-form-item",{attrs:{prop:"sysMusicScore.playMode",label:"播放模式",rules:[{required:!0,message:"请选择播放模式"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择播放模式"},model:{value:e.form.sysMusicScore.playMode,callback:function(t){e.$set(e.form.sysMusicScore,"playMode",t)},expression:"form.sysMusicScore.playMode"}},[r("el-option",{attrs:{value:"MP3",label:"MP3播放"}}),e._v(" "),r("el-option",{attrs:{value:"XML",label:"XML播放"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"sysMusicScore.enableEvaluation",label:"支持评测",rules:[{required:!0,message:"请选择支持评测"}]}},[r("el-radio-group",{model:{value:e.form.sysMusicScore.enableEvaluation,callback:function(t){e.$set(e.form.sysMusicScore,"enableEvaluation",t)},expression:"form.sysMusicScore.enableEvaluation"}},[r("el-radio",{attrs:{label:1}},[e._v("是")]),e._v(" "),r("el-radio",{attrs:{label:0}},[e._v("否")])],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"sysMusicScore.subjectId",label:"声部"}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择声部"},on:{change:e.handleChangeSubject},model:{value:e.form.sysMusicScore.subjectId,callback:function(t){e.$set(e.form.sysMusicScore,"subjectId",t)},expression:"form.sysMusicScore.subjectId"}},e._l(e.selects.subjects,(function(t){return r("el-option",{key:t.id,attrs:{value:t.id,label:t.name,disabled:e.hasSubjectId(t.id)}})})),1)],1),e._v(" "),r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.form.sysMusicScore.subjectId&&e.form.sysMusicScoreAccompaniments.length>1,expression:"\n form.sysMusicScore.subjectId &&\n form.sysMusicScoreAccompaniments.length > 1\n "}],attrs:{label:"单声部多声轨渲染",prop:"isMultil"}},[r("el-radio-group",{model:{value:e.multitrackData.isMultil,callback:function(t){e.$set(e.multitrackData,"isMultil",t)},expression:"multitrackData.isMultil"}},[r("el-radio",{attrs:{label:0}},[e._v("单声轨")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("多声轨")])],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"sysMusicScore.isShowFingering",label:"指法展示",rules:[{required:!0,message:"请选择是否展示指法"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择是否展示指法"},model:{value:e.form.sysMusicScore.isShowFingering,callback:function(t){e.$set(e.form.sysMusicScore,"isShowFingering",t)},expression:"form.sysMusicScore.isShowFingering"}},[r("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"sysMusicScore.order",label:"排序",rules:[{required:!0,message:"请输入排序"},{pattern:/^([1-9]\d*|[0]{1,1})$/,message:"请输入正确的排序",trigger:"blur"}]}},[r("el-input",{attrs:{placeholder:"请输入排序"},model:{value:e.form.sysMusicScore.order,callback:function(t){e.$set(e.form.sysMusicScore,"order",t)},expression:"form.sysMusicScore.order"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"MusicXML",prop:"sysMusicScore.xmlUrl",rules:[{required:!0,message:"请选择MusicXML文件"}]}},[r("singe-file-upload",{attrs:{tips:"仅支持上传 xml 格式文件",accept:".xml",bucket_name:"cloud-coach"},on:{inputFile:e.inputFile},model:{value:e.form.sysMusicScore.xmlUrl,callback:function(t){e.$set(e.form.sysMusicScore,"xmlUrl",t)},expression:"form.sysMusicScore.xmlUrl"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"sysMusicScore.speed",label:"速度",rules:[{required:!0,message:"请输入速度"}]}},[r("el-input",{attrs:{placeholder:"请输入速度"},model:{value:e.form.sysMusicScore.speed,callback:function(t){e.$set(e.form.sysMusicScore,"speed",t)},expression:"form.sysMusicScore.speed"}})],1),e._v(" "),1===e.form.sysMusicScore.isOpenMetronome?r("el-form-item",{attrs:{label:"伴奏(不含节拍器)",prop:"sysMusicScore.url"}},[r("singe-file-upload",{attrs:{tips:"仅支持上传 mp3/aac 格式音频文件",accept:".mp3, .aac",bucket_name:"cloud-coach"},model:{value:e.form.sysMusicScore.url,callback:function(t){e.$set(e.form.sysMusicScore,"url",t)},expression:"form.sysMusicScore.url"}})],1):r("el-form-item",{attrs:{label:"伴奏(含节拍器)",prop:"sysMusicScore.metronomeUrl"}},[r("singe-file-upload",{attrs:{tips:"仅支持上传 mp3/aac 格式音频文件",accept:".mp3, .aac",bucket_name:"cloud-coach"},model:{value:e.form.sysMusicScore.metronomeUrl,callback:function(t){e.$set(e.form.sysMusicScore,"metronomeUrl",t)},expression:"form.sysMusicScore.metronomeUrl"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"MIDI",prop:"sysMusicScore.midiUrl"}},[r("singe-file-upload",{attrs:{tips:"仅支持上传 mid 格式音频文件",accept:".mid",bucket_name:"cloud-coach"},model:{value:e.form.sysMusicScore.midiUrl,callback:function(t){e.$set(e.form.sysMusicScore,"midiUrl",t)},expression:"form.sysMusicScore.midiUrl"}})],1),e._v(" "),e.gradual&&e.gradual.length?r("div",[r("el-alert",{staticStyle:{"margin-bottom":"20px"},attrs:{closable:!1}},[e._v("识别到共"+e._s(e.gradual.length)+"处渐变速度,请输入Dorico对应小节时间信息")]),e._v(" "),e._l(e.gradual,(function(t,a){return r("div",{key:a,staticClass:"gradual-item"},[e._v("\n "+e._s(t[0].type)+"\n "),r("el-form-item",{attrs:{label:t[0].measureIndex+2+" 小节",rules:[{required:!0,message:"请输入合奏曲目时间"},{pattern:/^((\d{2}):?){2,3}$/,message:"请输入正确的曲目时间",trigger:"blur"}],prop:"graduals."+t[0].measureIndex}},[r("el-input",{attrs:{placeholder:"00:00:00"},model:{value:e.form.graduals[t[0].measureIndex],callback:function(r){e.$set(e.form.graduals,t[0].measureIndex,r)},expression:"form.graduals[item[0].measureIndex]"}})],1),e._v(" "),r("el-form-item",{attrs:{label:t[1].measureIndex+2+" 小节",rules:[{required:!0,message:"请输入合奏曲目时间"},{pattern:/^((\d{2}):?){2,3}$/,message:"请输入正确的曲目时间",trigger:"blur"}],prop:"graduals."+t[1].measureIndex}},[r("el-input",{attrs:{placeholder:"00:00:00"},model:{value:e.form.graduals[t[1].measureIndex],callback:function(r){e.$set(e.form.graduals,t[1].measureIndex,r)},expression:"form.graduals[item[1].measureIndex]"}})],1)],1)}))],2):e._e(),e._v(" "),e._l(e.form.sysMusicScoreAccompaniments,(function(t,a){return r("div",{key:a,staticClass:"files"},[r("el-row",[e.partListNames.length>1?r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"所属轨道",prop:"sysMusicScoreAccompaniments."+a+".track",rules:[{required:!0,message:"请选择所属轨道"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择轨道"},model:{value:t.track,callback:function(r){e.$set(t,"track",r)},expression:"song.track"}},e._l(e.partListNames,(function(t){return r("el-option",{key:t,attrs:{value:t,label:t,disabled:e.hasPartName(t)}})})),1)],1)],1):e._e(),e._v(" "),1===e.form.sysMusicScore.isOpenMetronome?r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"原音(不含节拍器)",prop:"sysMusicScoreAccompaniments."+a+".mp3Url",rules:[{required:!!e.form.sysMusicScore.isOpenMetronome&&"MP3"===e.form.sysMusicScore.playMode,message:"请上传原音(不含节拍器)"}]}},[r("singe-file-upload",{attrs:{tips:"仅支持上传 mp3/aac 格式音频文件",accept:".mp3, .aac",bucket_name:"cloud-coach"},model:{value:t.mp3Url,callback:function(r){e.$set(t,"mp3Url",r)},expression:"song.mp3Url"}})],1)],1):r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{label:"原音(含节拍器)",prop:"sysMusicScoreAccompaniments."+a+".metronomeMp3Url",rules:[{required:!e.form.sysMusicScore.isOpenMetronome&&"MP3"===e.form.sysMusicScore.playMode,message:"原音(含节拍器)"}]}},[r("singe-file-upload",{attrs:{tips:"仅支持上传 mp3/aac 格式音频文件",accept:".mp3, .aac",bucket_name:"cloud-coach"},on:{input:e.handleInputFileUpload},model:{value:t.metronomeMp3Url,callback:function(r){e.$set(t,"metronomeMp3Url",r)},expression:"song.metronomeMp3Url"}})],1)],1)],1),e._v(" "),r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{prop:"sysMusicScoreAccompaniments."+a+".memo",label:"描述"}},[r("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入描述"},model:{value:t.memo,callback:function(r){e.$set(t,"memo",r)},expression:"song.memo"}})],1)],1)],1),e._v(" "),r("el-button",{staticClass:"file-remove",attrs:{type:"text",disabled:1==e.form.sysMusicScoreAccompaniments.length},on:{click:function(t){return e.removeSys(a)}}},[e._v("删除")])],1)})),e._v(" "),r("el-button",{staticStyle:{width:"100%","margin-bottom":"20px"},attrs:{type:"info",plain:""},on:{click:e.createSys}},[e._v("添加原音")]),e._v(" "),r("div",{staticClass:"btns"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("提交")]),e._v(" "),r("el-button",{on:{click:e.$listeners.close}},[e._v("取消")])],1)],2)],1)},v=[],h=(r("f559"),r("28a5"),r("7514"),r("456d"),r("55dd"),r("20d6"),r("ac6a"),r("7f7f"),r("c5f6"),r("bc3a")),y=r.n(h),g=r("1672"),S={repeatedBeats:0},x={props:["detail","type"],data:function(){return{gradual:null,xmlFirstSpeed:"",partListNames:[],tree:[],extConfigJson:{},memberRankList:[],form:{graduals:{},rankIdType:0,repeatedBeats:0,sysMusicScore:{isOpenMetronome:0,name:"",rankIds:"",url:"",metronomeUrl:"",midiUrl:"",order:0,musicScoreCategoriesId:[],clientType:"SMART_PRACTICE",renderFrom:"",playMode:"MP3",enableEvaluation:1,extConfigJson:"{}",subjectId:null,speed:"",xmlUrl:null,isShowFingering:!0},sysMusicScoreAccompaniments:[{subjectId:"",speed:"",mp3Url:"",xmlUrl:"",isShowFingering:!0,memo:"",track:""}],delExamSongAccompanimentIds:[]},treeProps:{value:"id",label:"name",children:"sysMusicScoreCategoriesList"},multitrackData:{isMultil:0}}},mounted:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.$store.dispatch("setSubjects"),e.next=3,this.FetchTree();case 3:return e.next=5,this.memberRank();case 5:if(!this.detail){e.next=21;break}try{this.extConfigJson=JSON.parse(this.detail.extConfigJson)}catch(r){this.extConfigJson=Object(l["a"])({},S)}return this.form.repeatedBeats=this.extConfigJson.repeatedBeats,this.form.graduals=this.extConfigJson.gradualTimes||{},this.extConfigJson.multitrack&&(this.multitrackData.isMultil=1),this.$set(this.form,"sysMusicScore",{isOpenMetronome:Number(this.detail.isOpenMetronome),name:this.detail.name,url:this.detail.url,midiUrl:this.detail.midiUrl,rankIds:this.detail.rankIds,order:this.detail.order,clientType:this.detail.clientType,enableEvaluation:+this.detail.enableEvaluation,metronomeUrl:this.detail.metronomeUrl,renderFrom:this.detail.renderFrom,playMode:this.detail.playMode,musicScoreCategoriesId:this.detail.categoriesId?this.formatParentId(this.detail.categoriesId,this.tree):[]}),this.detail.rankIds?this.form.rankIdType=1:this.form.rankIdType=0,e.next=14,y()(this.detail.xmlUrl);case 14:t=e.sent,this.gradual=O(t.data).filter((function(e){return 2===e.length})),console.log(this.gradual),this.partListNames=this.getPartListNames(t.data),this.FeatchDetailList(),e.next=23;break;case 21:this.rankChange(1),this.form.rankIdType=1;case 23:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{handleChangeSubject:function(e){e||(this.multitrackData.isMultil=0)},handleInputFileUpload:function(e){if(this.multitrackData.isMultil)for(var t=0,r=this.form.sysMusicScoreAccompaniments.length;t<r;t++)this.form.sysMusicScoreAccompaniments[t].metronomeMp3Url||(this.form.sysMusicScoreAccompaniments[t].metronomeMp3Url=e)},getPartListNames:function(e){var t,r,a,s;if(!e)return[];var l=(new DOMParser).parseFromString(e,"text/xml"),n=(null===(t=l.getElementsByTagName("part-list"))||void 0===t||null===(r=t[0])||void 0===r?void 0:r.getElementsByTagName("score-part"))||[],o=Array.from(n).map((function(e){var t;return(null===(t=e.getElementsByTagName("part-name"))||void 0===t?void 0:t[0].textContent)||""}));return this.xmlFirstSpeed=(null===(a=l.getElementsByTagName("per-minute"))||void 0===a||null===(s=a[0])||void 0===s?void 0:s.textContent)||"",this.$set(this.form.sysMusicScore,"speed",this.xmlFirstSpeed),o.filter((function(e){return"COMMON"!==e.toLocaleUpperCase()}))},inputFile:function(e){var t=this,r=new FileReader;r.onload=function(e){t.partListNames=t.getPartListNames(e.target.result),t.gradual=O(e.target.result).filter((function(e){return 2===e.length}));for(var r=0;r<t.form.sysMusicScoreAccompaniments.length;r++)t.form.sysMusicScoreAccompaniments[r].track=t.partListNames[r],t.form.sysMusicScoreAccompaniments[r].speed||(t.form.sysMusicScoreAccompaniments[r].speed=t.xmlFirstSpeed),t.$set(t.form,"sysMusicScoreAccompaniments",t.form.sysMusicScoreAccompaniments);for(var a=t.form.sysMusicScoreAccompaniments.length;a<t.partListNames.length;a++){var s=t.partListNames[a],n=Object(l["a"])(Object(l["a"])({},t.form.sysMusicScoreAccompaniments[0]),{},{metronomeMp3Url:"",mp3Url:"",memo:"",track:s});n.speed||(n.speed=t.xmlFirstSpeed),t.createSys(n)}},r.readAsText(e)},rankChange:function(e){if(e){var t=[];this.memberRankList.forEach((function(e){t.push(e.id)})),this.form.sysMusicScore.rankIds=t.join(",")}else this.form.sysMusicScore.rankIds=""},memberRank:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(g["e"])({isDefault:0});case 3:t=e.sent,this.memberRankList=t.data||[],e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),formatParentId:function(e,t){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=Object(i["a"])(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;if(l.sysMusicScoreCategoriesList){var n=this.formatParentId(e,l.sysMusicScoreCategoriesList,[].concat(Object(o["a"])(a),[l.id]));if(n.includes(e))return n}if(l.id===e)return[].concat(Object(o["a"])(a),[e])}}catch(c){s.e(c)}finally{s.f()}return a},FetchTree:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["k"])();case 3:t=e.sent,this.tree=t.data,this.formatTree(this.tree),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}(),formatTree:function(e){var t,r=Object(i["a"])(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.sysMusicScoreCategoriesList&&a.sysMusicScoreCategoriesList.length>0?this.formatTree(a.sysMusicScoreCategoriesList,a):a.sysMusicScoreCategoriesList=null}}catch(s){r.e(s)}finally{r.f()}},FeatchDetailList:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t,r;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["j"])({sysMusicScoreId:this.detail.id});case 3:t=e.sent,r=t.data||[],r.forEach((function(e){e.subjectId||(e.subjectId=null)})),r.length>0&&(console.log(r[0].speed),this.$set(this.form.sysMusicScore,"subjectId",r[0].subjectId),this.$set(this.form.sysMusicScore,"speed",r[0].speed),this.$set(this.form.sysMusicScore,"xmlUrl",r[0].xmlUrl),this.$set(this.form.sysMusicScore,"isShowFingering",r[0].isShowFingering)),this.$set(this.form,"sysMusicScoreAccompaniments",r),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(){return e.apply(this,arguments)}return t}(),createSys:function(e){this.form.sysMusicScoreAccompaniments.push(Object.assign({subjectId:"",speed:"",mp3Url:"",xmlUrl:"",track:""},e||{}))},removeSys:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(t){return Object(c["a"])().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}(),hasPartName:function(e){var t,r=[],a=Object(i["a"])(this.form.sysMusicScoreAccompaniments);try{for(a.s();!(t=a.n()).done;){var s=t.value;r.push(s.track)}}catch(l){a.e(l)}finally{a.f()}return r.includes(e)},hasSubjectId:function(e){var t,r=[],a=Object(i["a"])(this.form.sysMusicScoreAccompaniments);try{for(a.s();!(t=a.n()).done;){var s=t.value;r.push(s.subjectId)}}catch(l){a.e(l)}finally{a.f()}return r.includes(e)},submit:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(r){var a,s;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=17;break}if(t.form.sysMusicScoreAccompaniments.forEach((function(e){e.speed=t.form.sysMusicScore.speed,e.subjectId=t.form.sysMusicScore.subjectId,e.xmlUrl=t.form.sysMusicScore.xmlUrl,e.isShowFingering=t.form.sysMusicScore.isShowFingering})),console.log(t.form),a=JSON.stringify({repeatedBeats:t.form.repeatedBeats,gradualTimes:t.form.graduals}),s={},t.multitrackData.isMultil&&t.form.sysMusicScoreAccompaniments.length>1&&(a=JSON.stringify({repeatedBeats:t.form.repeatedBeats,gradualTimes:t.form.graduals,multitrack:t.partListNames.length}),s.multitrack=!0),t.detail){e.next=12;break}return e.next=9,Object(f["a"])(Object(l["a"])(Object(l["a"])(Object(l["a"])({},s),t.form),{},{sysMusicScore:Object(l["a"])(Object(l["a"])({},t.form.sysMusicScore),{},{extConfigJson:a,type:"COMMON",showFlag:0,musicScoreCategoriesId:(t.form.sysMusicScore.musicScoreCategoriesId||[]).pop()})}));case 9:t.$message.success("提交成功"),e.next=15;break;case 12:return e.next=14,Object(f["e"])(Object(l["a"])(Object(l["a"])(Object(l["a"])({},s),t.form),{},{sysMusicScore:Object(l["a"])(Object(l["a"])({},t.form.sysMusicScore),{},{extConfigJson:a,type:"COMMON",id:t.detail.id,showFlag:t.detail.showFlag,musicScoreCategoriesId:(t.form.sysMusicScore.musicScoreCategoriesId||[]).pop()})}));case 14:t.$message.success("修改成功");case 15:t.$listeners.close(),t.$listeners.submited();case 17: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}()}},_=function(e,t){var r=0,a=e.closest(t),s=a,l=null===a||void 0===a?void 0:a.closest("measure"),n=null;while(!n&&r<((null===l||void 0===l?void 0:l.childNodes.length)||50)){var o,i,c,u;if(r++,"note"===(null===(o=s)||void 0===o||null===(i=o.nextElementSibling)||void 0===i?void 0:i.tagName))n=null===(u=s)||void 0===u?void 0:u.nextElementSibling;s=null===(c=s)||void 0===c?void 0:c.nextElementSibling}return n},k=function(e,t){var r,a;if(!e)return"";var s=(new DOMParser).parseFromString(e,"text/xml"),l=(null===(r=s.getElementsByTagName("part-list"))||void 0===r||null===(a=r[0])||void 0===a?void 0:a.getElementsByTagName("score-part"))||[],n=s.getElementsByTagName("part"),o=l[t];if(o){var c=o.getAttribute("id");Array.from(n).forEach((function(e){var t;e&&e.getAttribute("id")!==c&&(null===(t=e.parentNode)||void 0===t||t.removeChild(e));if(e&&e.getAttribute("id")===c){var r,a,s=e.getElementsByTagName("barline"),l=null===(r=s[s.length-1])||void 0===r?void 0:r.parentElement;if("barline"!==(null===l||void 0===l||null===(a=l.lastElementChild)||void 0===a?void 0:a.tagName)){var n,o=(null===l||void 0===l?void 0:l.children)||[],u=Object(i["a"])(o);try{for(u.s();!(n=u.n()).done;){var d=n.value;if("barline"===d.tagName){null===l||void 0===l||l.appendChild(d);break}}}catch(m){u.e(m)}finally{u.f()}}}})),Array.from(l).forEach((function(e){var t;e&&e.getAttribute("id")!==c&&(null===(t=e.parentNode)||void 0===t||t.removeChild(e))}));var u=s.getElementsByTagName("note"),d=function(e){for(var t,r=u[e+1],a=e;a<u.length;a++){var s,l=u[a];if(null===(s=l.getElementsByTagName("grace"))||void 0===s||!s.length){r=l;break}}var n=null===(t=r)||void 0===t?void 0:t.getElementsByTagName("duration")[0];return n};Array.from(u).forEach((function(e,t){var r,a=e.getElementsByTagName("grace");a&&a.length&&e.appendChild(null===(r=d(t))||void 0===r?void 0:r.cloneNode(!0))}))}return(new XMLSerializer).serializeToString(s)},w={"rall.":1.333333333,"poco rit.":1.333333333,"rit.":1.333333333,"molto rit.":1.333333333,"molto rall":1.333333333,molto:1.333333333,lentando:1.333333333,allargando:1.333333333,morendo:1.333333333,"accel.":.8,calando:2,"poco accel.":.8,"gradually slowing":1.333333333,slowing:1.333333333,slow:1.333333333,slowly:1.333333333,faster:1.333333333,"Molto allargando":1.333333333,stringendo:1.333333333,"sempre accel.":1.333333333};function O(e){for(var t=k(e,0),r=(new DOMParser).parseFromString(t,"text/xml"),a=Array.from(r.querySelectorAll("measure")),s=Array.from(r.querySelectorAll("note")),l=Array.from(r.querySelectorAll("words")),n=Array.from(r.querySelectorAll("metronome")),i=[],c=function(){var e=d[u],t=_(e,"direction");if(t){for(var r=null===t||void 0===t?void 0:t.closest("measure"),l=Array.from(r.querySelectorAll("note")),n=Array.from(r.childNodes).filter((function(e){return"note"===e.nodeName})).findIndex((function(e){return e===t})),o=0,c=0,m=0;m<l.length;m++){var p,f=l[m],b=+((null===(p=f.querySelector("duration"))||void 0===p?void 0:p.textContent)||"0");o+=b,m<n&&(c=o)}i.push({ele:e,index:s.indexOf(t),noteInMeasureIndex:n,textContent:e.textContent,measureIndex:a.indexOf(r),type:e.tagName,allDuration:o,leftDuration:c})}},u=0,d=[].concat(Object(o["a"])(l),Object(o["a"])(n));u<d.length;u++)c();i.push({ele:s[s.length-1],index:s.length,noteInMeasureIndex:0,textContent:"",type:"metronome",allDuration:1,leftDuration:1,measureIndex:a.length});var m=[];i.sort((function(e,t){return e.index-t.index}));for(var p=Object.keys(w).map((function(e){return e.toLocaleLowerCase()})),f=!1,b=function(){var e,t,r=h[v],a=null===(e=r.textContent)||void 0===e?void 0:e.toLocaleLowerCase().trim();r===i[i.length-1]&&(1===(null===(t=m[m.length-1])||void 0===t?void 0:t.length)&&(f=!0));var s=p.find((function(e){if(e===a)return!0;var t=e.split(" ");return a&&t.includes(a)}));if("metronome"===r.type||"words"===r.type&&(a.startsWith("a tempo")||s)||f){var l,n=m.findIndex((function(e){return 1===e.length}));n>-1&&r.index>(null===(l=m[n])||void 0===l?void 0:l[0].start)&&(m[n][1]={start:r.index,measureIndex:r.measureIndex,noteInMeasureIndex:r.noteInMeasureIndex,allDuration:r.allDuration,leftDuration:r.leftDuration,type:a})}"words"===r.type&&s&&m.push([{start:r.index,measureIndex:r.measureIndex,noteInMeasureIndex:r.noteInMeasureIndex,allDuration:r.allDuration,leftDuration:r.leftDuration,type:a}])},v=0,h=i;v<h.length;v++)b();return m}var I=x,M=(r("6be6"),r("2877")),T=Object(M["a"])(I,b,v,!1,null,"47517a28",null),C=T.exports,j=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-steps",{staticStyle:{"margin-bottom":"12px"},attrs:{space:200,active:e.currentStep,simple:"","finish-status":"success"}},[r("el-step",{attrs:{title:"选择曲目"}}),e._v(" "),r("el-step",{attrs:{title:"设置曲目信息"}})],1),e._v(" "),0===e.currentStep?r("div",[r("el-form",{ref:"form",staticClass:"system-menu-search",attrs:{model:e.searchForm,inline:!0}},[r("el-form-item",{attrs:{prop:"keyword"}},[r("el-input",{attrs:{clearable:"",placeholder:"关键词"},on:{submit:e.onSearch,reset:e.onReSet},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.form.save(),e.onSearch()}(t)}},model:{value:e.searchForm.keyword,callback:function(t){e.$set(e.searchForm,"keyword",t)},expression:"searchForm.keyword"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"subjectId"}},[r("el-select",{attrs:{clearable:"",placeholder:"声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.selects.subjects,(function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{staticClass:"ml10",attrs:{size:"default",type:"primary"},on:{click:e.onSearch}},[e._v("\n 查询\n ")]),e._v(" "),r("el-button",{staticClass:"ml10",on:{click:e.onReSet}},[e._v(" 重置")])],1)],1),e._v(" "),r("p",{staticStyle:{"padding-bottom":"12px"}},[e._v("\n 你选择了"),r("span",{staticStyle:{color:"red",padding:"0 8px"}},[e._v(e._s(e.chioseIdList.length))]),e._v("\n 条曲目\n ")]),e._v(" "),r("el-table",{key:"tableList",ref:"multipleSelection",attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"select-all":e.handleSelectionChange,select:e.onTableSelect}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"曲目名称(编号)",width:"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.name)+"\n "),r("p",[e._v("("+e._s(t.row.id)+")")])])]}}],null,!1,2829435284)}),e._v(" "),r("el-table-column",{attrs:{label:"曲目封面"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:e.row.musicCover,fit:"cover","preview-src-list":[e.row.musicCover]}})]}}],null,!1,1104607064)}),e._v(" "),r("el-table-column",{attrs:{prop:"subjectNames",label:"可用声部","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{prop:"musicCategoryName",label:"曲目分类","show-overflow-tooltip":""}})],1),e._v(" "),r("pagination",{attrs:{"save-key":"accompaniment-edit-music",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1):e._e(),e._v(" "),1===e.currentStep?r("div",[r("el-table",{key:"formLists",staticStyle:{"margin-bottom":"12px"},attrs:{data:e.formLists,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{prop:"name",label:"曲目名称(编号)",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.name)+"\n "),r("p",[e._v("("+e._s(t.row.id)+")")])])]}}],null,!1,2829435284)}),e._v(" "),r("el-table-column",{attrs:{label:"曲目封面",width:"150"},scopedSlots:e._u([{key:"default",fn:function(e){return[r("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:e.row.musicCover,fit:"cover","preview-src-list":[e.row.musicCover]}})]}}],null,!1,1104607064)}),e._v(" "),r("el-table-column",{attrs:{prop:"subjectNames",label:"可用声部","show-overflow-tooltip":"",width:"150"}}),e._v(" "),r("el-table-column",{attrs:{prop:"musicCategoryName",label:"曲目分类","show-overflow-tooltip":""}}),e._v(" "),r("el-table-column",{attrs:{prop:"rankType",width:"180"},scopedSlots:e._u([{key:"header",fn:function(){return[e._v("\n 收费方式\n "),r("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.onDialogEdit("rankType")}}})]},proxy:!0},{key:"default",fn:function(t){return[r("el-select",{staticStyle:{width:"150px !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择是否收费"},model:{value:e.formLists[t.$index].rankType,callback:function(r){e.$set(e.formLists[t.$index],"rankType",r)},expression:"formLists[scope.$index].rankType"}},[r("el-option",{attrs:{value:"0",label:"免费"}}),e._v(" "),r("el-option",{attrs:{value:"1",label:"收费"}})],1)]}}],null,!1,2130628650)}),e._v(" "),r("el-table-column",{attrs:{prop:"scoreType",width:"180"},scopedSlots:e._u([{key:"header",fn:function(){return[e._v("\n 默认谱面\n "),r("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.onDialogEdit("scoreType")}}})]},proxy:!0},{key:"default",fn:function(t){return[r("el-select",{staticStyle:{width:"150px !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择默认谱面"},model:{value:e.formLists[t.$index].scoreType,callback:function(r){e.$set(e.formLists[t.$index],"scoreType",r)},expression:"formLists[scope.$index].scoreType"}},e._l(e.scoreTypeList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)]}}],null,!1,3167521819)}),e._v(" "),r("el-table-column",{attrs:{prop:"isConvertibleScore",width:"180"},scopedSlots:e._u([{key:"header",fn:function(){return[e._v("\n 是否可转谱\n "),r("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.onDialogEdit("isConvertibleScore")}}})]},proxy:!0},{key:"default",fn:function(t){return[r("el-select",{staticStyle:{width:"150px !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择是否可转谱"},model:{value:e.formLists[t.$index].isConvertibleScore,callback:function(r){e.$set(e.formLists[t.$index],"isConvertibleScore",r)},expression:"formLists[scope.$index].isConvertibleScore"}},[r("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"否"}})],1)]}}],null,!1,3175420423)}),e._v(" "),r("el-table-column",{attrs:{prop:"status",width:"180"},scopedSlots:e._u([{key:"header",fn:function(){return[e._v("\n 是否可启用\n "),r("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.onDialogEdit("status")}}})]},proxy:!0},{key:"default",fn:function(t){return[r("el-select",{staticStyle:{width:"150px !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择是否可启用"},model:{value:e.formLists[t.$index].status,callback:function(r){e.$set(e.formLists[t.$index],"status",r)},expression:"formLists[scope.$index].status"}},[r("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"否"}})],1)]}}],null,!1,629788455)}),e._v(" "),r("el-table-column",{attrs:{prop:"sortNumber",width:"180"},scopedSlots:e._u([{key:"header",fn:function(){return[e._v("\n 排序\n "),r("i",{staticClass:"el-icon-edit",staticStyle:{cursor:"pointer"},on:{click:function(t){return e.onDialogEdit("sortNumber")}}})]},proxy:!0},{key:"default",fn:function(t){return[r("el-input-number",{staticStyle:{width:"150px !important"},attrs:{min:0,max:9999,placeholder:"请输入排序",controls:!1,clearable:""},model:{value:e.formLists[t.$index].sortNumber,callback:function(r){e.$set(e.formLists[t.$index],"sortNumber",r)},expression:"formLists[scope.$index].sortNumber"}})]}}],null,!1,58603035)}),e._v(" "),r("el-table-column",{attrs:{label:"操作",width:"100",center:""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{size:"small",type:"text"},on:{click:function(r){return e.onRemoveMusic(t.row)}}},[e._v("移除")])]}}],null,!1,2665930308)})],1)],1):e._e(),e._v(" "),r("div",{staticClass:"dialog-footer"},[r("el-button",{on:{click:e.onCancel}},[e._v("\n "+e._s(0===e.currentStep?"取消":"上一步")+"\n ")]),e._v(" "),r("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("\n "+e._s(1===e.currentStep?"确定":"下一步"))])],1),e._v(" "),r("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"450px","append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[r("span",{staticClass:"dialog-footer"},[r("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v(" 取消 ")]),e._v(" "),r("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:e.onDialogConfirm}},[e._v("\n 确定")])],1)]},proxy:!0}])},["musicSheetCategoryId"===e.dialogType?r("div",[r("el-cascader",{staticStyle:{width:"100% !important"},attrs:{"popper-class":"myCascader",placeholder:"请选择曲谱分类",filterable:"",clearable:"",options:e.tree,props:e.treeProps},model:{value:e.dialogForms.musicSheetCategoryId,callback:function(t){e.$set(e.dialogForms,"musicSheetCategoryId",t)},expression:"dialogForms.musicSheetCategoryId"}})],1):e._e(),e._v(" "),"rankType"===e.dialogType?r("div",[r("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择是否收费"},model:{value:e.dialogForms.rankType,callback:function(t){e.$set(e.dialogForms,"rankType",t)},expression:"dialogForms.rankType"}},[r("el-option",{attrs:{value:"0",label:"免费"}}),e._v(" "),r("el-option",{attrs:{value:"1",label:"收费"}})],1)],1):e._e(),e._v(" "),"sortNumber"===e.dialogType?r("div",[r("el-input-number",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请输入排序值",min:0,max:9999,controls:!1},model:{value:e.dialogForms.sortNumber,callback:function(t){e.$set(e.dialogForms,"sortNumber",t)},expression:"dialogForms.sortNumber"}})],1):e._e(),e._v(" "),"scoreType"===e.dialogType?r("div",[r("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择默认谱面"},model:{value:e.dialogForms.scoreType,callback:function(t){e.$set(e.dialogForms,"scoreType",t)},expression:"dialogForms.scoreType"}},e._l(e.scoreTypeList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),"isConvertibleScore"===e.dialogType?r("div",[r("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择是否可转谱"},model:{value:e.dialogForms.isConvertibleScore,callback:function(t){e.$set(e.dialogForms,"isConvertibleScore",t)},expression:"dialogForms.isConvertibleScore"}},[r("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"否"}})],1)],1):e._e(),e._v(" "),"status"===e.dialogType?r("div",[r("el-select",{staticStyle:{width:"150px !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择是否可启用"},model:{value:e.formLists[e.scope.$index].status,callback:function(t){e.$set(e.formLists[e.scope.$index],"status",t)},expression:"formLists[scope.$index].status"}},[r("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"否"}})],1)],1):e._e()])],1)},L=[],E=r("92e3"),N={name:"edit-music",props:["tree"],components:{pagination:m["a"]},data:function(){return{scoreTypeList:E["W"],currentStep:0,chioseIdList:[],searchForm:{keyword:"",subjectId:null,composer:null},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},dialogTitle:"",dialogType:"musicSheetCategoryId",dialogForms:{musicSheetCategoryId:null,rankType:null,sortNumber:null,isConvertibleScore:null,scoreType:null},dialogVisible:!1,tableList:[],formLists:[],treeProps:{value:"id",label:"name",children:"sysMusicScoreCategoriesList",expandTrigger:"hover"}}},mounted:function(){this.$store.dispatch("setSubjects"),this.getList(),console.log(this.tree,"tree")},methods:{onSearch:function(){var e=this;this.$set(this.pageInfo,"page",1),this.$refs.form.validate((function(t){t&&e.getList()}))},onReSet:function(){this.$refs.form.resetFields(),this.getList()},getList:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t,r,a,s,n=this;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(f["f"])(Object(l["a"])({page:this.pageInfo.page,rows:this.pageInfo.limit},this.searchForm));case 2:t=e.sent,r=t.data,a=r.rows||[],a.forEach((function(e){e.currentPage=n.pageInfo.page})),this.tableList=a||[],this.pageInfo.total=r.total,s=this.chioseIdList.map((function(e){return e.id})),this.$nextTick((function(){n.tableList.forEach((function(e){-1!=s.indexOf(e.id)&&multipleSelection.value.toggleRowSelection(e,!0)}))})),console.log(this.pageInfo,"pageInfo");case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onFormatSelectData:function(e,t){var r=this;try{var a=[],s=[];this.chioseIdList.forEach((function(e){e.currentPage==r.pageInfo.page?a.push(e):s.push(e)}));var l=[];if(t&&t.id){var n=a.findIndex((function(e){return e.id===t.id}));-1===n?l.push(t):a.splice(n,1)}else e.length>0?e.forEach((function(e){var t=a.findIndex((function(t){return t.id===e.id}));-1===t&&l.push(e)})):a=[];this.chioseIdList=[].concat(l,s,Object(o["a"])(a)).sort((function(e,t){return e.id-t.id}))}catch(i){}},handleSelectionChange:function(e){this.onFormatSelectData(e)},onTableSelect:function(e,t){this.onFormatSelectData(e,t)},onCancel:function(){0===this.currentStep?this.$listeners.close():1===this.currentStep&&(this.currentStep=0)},onSubmit:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t,r,a,s;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==this.currentStep){e.next=11;break}if(!(this.chioseIdList.length<=0)){e.next=4;break}return this.$message.warning("请选择曲目"),e.abrupt("return");case 4:this.currentStep=1,t=[],this.chioseIdList.forEach((function(e){t.push({id:e.id,name:e.name,musicCover:e.musicCover,subjectNames:e.subjectNames,musicCategoryName:e.musicCategoryName,composer:e.composer,sourceType:e.sourceType,musicSheetCategoryId:null,rankType:null,sortNumber:null,status:null,isConvertibleScore:null,scoreType:null})})),this.formLists=t,console.log(this.formLists,"formLists"),e.next=46;break;case 11:if(1!==this.currentStep){e.next=46;break}e.prev=12,r=[],a=0;case 15:if(!(a<this.formLists.length)){e.next=36;break}if(s=this.formLists[a],s.rankType){e.next=20;break}return this.$message.error("收费方式不能为空"),e.abrupt("return");case 20:if(s.scoreType){e.next=23;break}return this.$message.error("默认谱面不能为空"),e.abrupt("return");case 23:if(null!==s.isConvertibleScore&&void 0!==s.isConvertibleScore&&""!==s.isConvertibleScore){e.next=26;break}return this.$message.error("是否可转谱不能为空"),e.abrupt("return");case 26:if(null!==s.status&&void 0!==s.isConvertibleScore&&""!==s.isConvertibleScore){e.next=29;break}return this.$message.error("是否启用不能为空"),e.abrupt("return");case 29:if(null!==s.sortNumber&&void 0!==s.sortNumber&&""!==s.sortNumber){e.next=32;break}return this.$message.error("排序不能为空"),e.abrupt("return");case 32:r.push(Object(l["a"])(Object(l["a"])({},s),{},{musicSheetId:s.id,id:null}));case 33:a++,e.next=15;break;case 36:return e.next=38,Object(f["i"])(r);case 38:this.$message.success("添加成功"),this.$emit("getList"),this.$emit("close"),e.next=46;break;case 43:e.prev=43,e.t0=e["catch"](12),console.log(e.t0,"e");case 46:case"end":return e.stop()}}),e,this,[[12,43]])})));function t(){return e.apply(this,arguments)}return t}(),onDialogEdit:function(e){console.log(e,"type");try{"musicSheetCategoryId"===e?this.dialogTitle="曲谱分类":"rankType"===e?this.dialogTitle="收费方式":"sortNumber"===e?this.dialogTitle="排序":"scoreType"===e?this.dialogTitle="默认谱面":"isConvertibleScore"===e?this.dialogTitle="是否可转谱":"status"===e&&(this.dialogTitle="是否启用"),this.dialogForms.musicSheetCategoryId=null,this.dialogForms.rankType=null,this.dialogForms.sortNumber=null,this.dialogForms.scoreType=null,this.dialogForms.isConvertibleScore=null,this.dialogForms.status=null,this.dialogVisible=!0,this.dialogType=e}catch(t){cosnole.log(t,"e")}},onDialogConfirm:function(){var e=this;this.formLists.forEach((function(t){"musicSheetCategoryId"===e.dialogType?t.musicSheetCategoryId=e.dialogForms.musicSheetCategoryId:"rankType"===e.dialogType?t.rankType=e.dialogForms.rankType:"sortNumber"===e.dialogType?t.sortNumber=e.dialogForms.sortNumber:"scoreType"===e.dialogType?t.scoreType=e.dialogForms.scoreType:"isConvertibleScore"===e.dialogType?t.isConvertibleScore=e.dialogForms.isConvertibleScore:"status"===e.dialogType&&(t.status=e.dialogForms.status)})),this.dialogVisible=!1},onRemoveMusic:function(e){var t=this;this.$confirm("是否删除该数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(u["a"])(Object(c["a"])().mark((function r(){var a,s;return Object(c["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:try{a=t.formLists.findIndex((function(t){if(t.id==e.id)return!0})),a>-1&&t.formLists.splice(a,1),s=t.chioseIdList.findIndex((function(t){if(t.id==e.id)return!0})),s>-1&&t.chioseIdList.splice(a,1),console.log(t.chioseIdList,"chioseIdList")}catch(l){}case 1:case"end":return r.stop()}}),r)}))))}}},F=N,A=(r("5210"),Object(M["a"])(F,j,L,!1,null,"f189da54",null)),$=A.exports,R=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-form",{ref:"formRef",attrs:{model:e.form,"label-position":"right","label-width":"100px"}},[r("el-form-item",{attrs:{label:"是否收费",prop:"paymentType",rules:[{required:!0,message:"请选择是否收费"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择是否收费"},model:{value:e.form.paymentType,callback:function(t){e.$set(e.form,"paymentType",t)},expression:"form.paymentType"}},[r("el-option",{attrs:{value:"FREE",label:"免费"}}),e._v(" "),r("el-option",{attrs:{value:"VIP",label:"收费"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"默认谱面",prop:"scoreType",rules:[{required:!0,message:"请选择默认谱面"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择默认谱面"},model:{value:e.form.scoreType,callback:function(t){e.$set(e.form,"scoreType",t)},expression:"form.scoreType"}},e._l(e.scoreTypeList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"是否可转谱",prop:"isConvertibleScore",rules:[{required:!0,message:"请选择是否可转谱"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择是否可转谱"},model:{value:e.form.isConvertibleScore,callback:function(t){e.$set(e.form,"isConvertibleScore",t)},expression:"form.isConvertibleScore"}},[r("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"否"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"是否启用",prop:"status",rules:[{required:!0,message:"请选择是否启用"}]}},[r("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",filterable:"",placeholder:"请选择是否启用"},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},[r("el-option",{attrs:{value:1,label:"是"}}),e._v(" "),r("el-option",{attrs:{value:0,label:"否"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer"},[r("el-button",{on:{click:e.onCancel}},[e._v("\n 取消\n ")]),e._v(" "),r("el-button",{directives:[{name:"preventReClick",rawName:"v-preventReClick"}],attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("\n 确定")])],1)],1)},U=[],P={name:"edit-extra",props:["detail","tree"],data:function(){return{scoreTypeList:E["W"],treeProps:{value:"id",label:"name",children:"sysMusicScoreCategoriesList"},form:{paymentType:null,sortNo:null,scoreType:null,status:null,isConvertibleScore:null}}},mounted:function(){console.log(this.scoreTypeList,"scoreTypeList"),this.detail.id&&(this.form.paymentType=this.detail.rankIds?"VIP":"FREE",this.form.sortNo=this.detail.sortNo,this.form.scoreType=this.detail.scoreType,this.form.isConvertibleScore=this.detail.isConvertibleScore?1:0,this.form.status=this.detail.clientStatus?1:0)},methods:{onCancel:function(){this.$listeners.close()},formatParentId:function(e,t){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=Object(i["a"])(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;if(l.sysMusicScoreCategoriesList){var n=this.formatParentId(e,l.sysMusicScoreCategoriesList,[].concat(Object(o["a"])(a),[l.id]));if(n.includes(e))return n}if(l.id===e)return[].concat(Object(o["a"])(a),[e])}}catch(c){s.e(c)}finally{s.f()}return a},onSubmit:function(){var e=this;this.$refs.formRef.validate(function(){var t=Object(u["a"])(Object(c["a"])().mark((function t(r){return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,Object(f["e"])(Object(l["a"])(Object(l["a"])({musicSheetId:e.detail.cbsMusicSheetId},e.form),{},{musicSheetCategoryId:(e.form.musicSheetCategoryId||[]).pop()}));case 5:e.$message.success("修改成功"),e.$emit("getList"),e.$emit("close"),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](2),console.log(t.t0,"--------");case 13:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(e){return t.apply(this,arguments)}}())}}},D=P,B=(r("3aa1"),Object(M["a"])(D,R,U,!1,null,"66e7d516",null)),G=B.exports,q=(r("61f7"),r("5f87")),V=r("be41"),H=r("a5b0"),J=r("adb21"),z=r("1cc7"),X=(r("4328"),r("e3eb"),["categoriesId","organId"]),Y=["categoriesId","organId"],W={name:"accompaniment",components:{saveform:d["a"],pagination:m["a"],"submit-form":C,Tooltip:H["a"],EditMusic:$,EditExtra:G},data:function(){return{scoreTypeList:E["W"],parts:[],selectPart:0,tabName:"first",type:"",activeUrl:"",songUseType:p["songUseType"],lookVisible:!1,lookNum:0,lookRow:{},accompanyUrl:null,tableList:[],searchForm:{search:"",subjectId:"",categoriesId:[],clientType:"",rankType:null,clientShowFlag:null,showFlag:null,scoreType:null,isConvertibleScore:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},detail:null,visible:!1,muiscVisible:!1,subjectList:[],tree:[],treeProps:{value:"id",label:"name",children:"sysMusicScoreCategoriesList",checkStrictly:!0,expandTrigger:"hover"},chioseList:[]}},computed:{title:function(){var e=this.detail?"修改":"添加";return e+"曲目"}},mounted:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t,r;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$route,t.query,r=t.params,e.next=3,this.FetchTree();case 3:return r.categoriesId&&(this.searchForm.categoriesId=this.formatParentId(r.categoriesId,this.tree)),e.next=6,this.getSubjectList();case 6:return this.$store.dispatch("setBranchs"),e.next=9,this.FetchList();case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getSubjectList:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t,r;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(z["Jb"])({rows:9999,cbsFlag:!0,tenantId:"1"});case 3:t=e.sent,r=t.data,this.subjectList=r||[],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}(),handleSelectionChange:function(e){this.chioseList=e},formatParentId:function(e,t){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=Object(i["a"])(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;if(l.sysMusicScoreCategoriesList){var n=this.formatParentId(e,l.sysMusicScoreCategoriesList,[].concat(Object(o["a"])(a),[l.id]));if(n.includes(e))return n}if(l.id===e)return[].concat(Object(o["a"])(a),[e])}}catch(c){s.e(c)}finally{s.f()}return a},FetchTree:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["k"])();case 3:t=e.sent,this.tree=t.data,this.formatTree(this.tree),console.log(this.tree),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(){return e.apply(this,arguments)}return t}(),formatTree:function(e){var t,r=Object(i["a"])(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.sysMusicScoreCategoriesList&&a.sysMusicScoreCategoriesList.length>0?this.formatTree(a.sysMusicScoreCategoriesList,a):a.sysMusicScoreCategoriesList=null}}catch(s){r.e(s)}finally{r.f()}},FetchList:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t,r,a,s;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=Object(V["a"])(this.searchForm),r=t.categoriesId,t.organId,a=Object(n["a"])(t,X),e.next=4,Object(f["c"])(Object(l["a"])(Object(l["a"])({},a),{},{categoriesId:r&&r.length>0?r.pop():null,page:this.rules.page,rows:this.rules.limit}));case 4:s=e.sent,this.tableList=s.data.rows,this.$set(this.rules,"total",s.data.total),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(){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()},getPartListNames:function(e){var t,r,a,s;if(!e)return[];var l=(new DOMParser).parseFromString(e,"text/xml"),n=(null===(t=l.getElementsByTagName("part-list"))||void 0===t||null===(r=t[0])||void 0===r?void 0:r.getElementsByTagName("score-part"))||[],o=Array.from(n).map((function(e){var t;return(null===(t=e.getElementsByTagName("part-name"))||void 0===t?void 0:t[0].textContent)||""}));return this.xmlFirstSpeed=(null===(a=l.getElementsByTagName("per-minute"))||void 0===a||null===(s=a[0])||void 0===s?void 0:s.textContent)||"",o.filter((function(e){return"COMMON"!==e.toLocaleUpperCase()}))},looker:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(t,r){return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.accompanyUrl=location.origin+"/gym-music-score/?Authorization="+Object(q["b"])()+"&systemType=web&isHideBack=1&isHideMusicList=1&id="+t.id,this.lookVisible=!0,this.lookNum=r,this.lookRow=t;case 4:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),changeStatus:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(t){var r;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,r=t.clientShowFlag?"停用":"启用",e.next=4,this.$confirm("是否确认"+r+"此曲目?","提示",{type:"warning"});case 4:return e.next=6,Object(f["g"])(t.id);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.muiscVisible=!0},transcod:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(t){var r;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["d"])(t);case 3:r=e.sent,console.log(r),e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));function t(t){return e.apply(this,arguments)}return t}(),open:function(e){this.type=e,this.detail=null,this.visible=!0},remove:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(t){return Object(c["a"])().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,Object(f["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}(),changeCategor:function(e){this.$refs.myCascader.dropDownVisible=!1},onExport:function(){var e=Object(V["a"])(this.searchForm),t=e.categoriesId,r=(e.organId,Object(n["a"])(e,Y));Object(J["a"])(this,{url:"/api-web/export/exportMusicScoreList",params:Object(l["a"])(Object(l["a"])({},r),{},{categoriesId:t&&t.length>0?t.pop():null}),fileName:"教学伴奏导出.xls",method:"get"},"确定导出教学伴奏")},onOperation:function(){var e=Object(u["a"])(Object(c["a"])().mark((function e(){var t,r,a,s=arguments;return Object(c["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:"start",console.log(this.chioseList,"this.chioseList"),e.prev=2,r="stop"===t?"停用":"启用",e.next=6,this.$confirm("是否确认"+r+this.chioseList.length+"条数据?","提示",{type:"warning"});case 6:return a=this.chioseList.map((function(e){return e.id})).join(","),e.next=9,Object(f["h"])({musicSheetIds:a,state:"start"===t?1:0});case 9:this.$message.success(r+"成功"),this.FetchList(),e.next=15;break;case 13:e.prev=13,e.t0=e["catch"](2);case 15:case"end":return e.stop()}}),e,this,[[2,13]])})));function t(){return e.apply(this,arguments)}return t}()}},K=W,Q=(r("efca"),Object(M["a"])(K,a,s,!1,null,"a1238cba",null));t["default"]=Q.exports},efca:function(e,t,r){"use strict";r("8870")},f716:function(e,t,r){"use strict";r.d(t,"c",(function(){return l})),r.d(t,"d",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"e",(function(){return i})),r.d(t,"g",(function(){return c})),r.d(t,"h",(function(){return u})),r.d(t,"j",(function(){return d})),r.d(t,"b",(function(){return m})),r.d(t,"k",(function(){return p})),r.d(t,"f",(function(){return f})),r.d(t,"i",(function(){return b}));var a=r("829b"),s=r("b775"),l=function(e){return Object(a["a"])({url:"/api-web/sysMusicScore/queryPage",data:{},params:e,requestType:"form"})},n=function(e){return Object(a["a"])({url:"/api-web/sysMusicScore/transcod",data:{},params:{sysMusicScoreId:e.id},requestType:"json",method:"post"})},o=function(e){return Object(a["a"])({url:"/api-web/sysMusicScore/add",method:"post",data:e,params:{}})},i=function(e){return Object(s["a"])({url:"/api-web/sysMusicScore/update",method:"post",data:e,params:{}})},c=function(e){return Object(a["a"])({url:"/api-web/sysMusicScore/state/"+e,method:"post"})},u=function(e){return Object(a["a"])({url:"/api-web/sysMusicScore/stateList",method:"post",data:e})},d=function(e){return Object(a["a"])({url:"/api-web/sysMusicScoreAccompaniment/queryPage",method:"get",params:e})},m=function(e){return Object(a["a"])({url:"/api-web/sysMusicScore/del",method:"post",data:{},params:{id:e},requestType:"form"})},p=function(e){return Object(a["a"])({url:"/api-web/sysMusicScoreCategories/queryTree",method:"get",data:{},params:e,requestType:"form"})},f=function(e){return Object(s["a"])({url:"/api-web/musicSheetApplicationExtend/pageByApplication",method:"post",data:e})},b=function(e){return Object(s["a"])({url:"/api-web/musicSheetApplicationExtend/saveBatch",method:"post",data:e})}}}]);