index.c4ac27ce.js 70 KB

1234567891011121314151617181920212223242526272829
  1. var Je=Object.defineProperty,We=Object.defineProperties;var Xe=Object.getOwnPropertyDescriptors;var we=Object.getOwnPropertySymbols;var He=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable;var Te=(u,v,f)=>v in u?Je(u,v,{enumerable:!0,configurable:!0,writable:!0,value:f}):u[v]=f,E=(u,v)=>{for(var f in v||(v={}))He.call(v,f)&&Te(u,f,v[f]);if(we)for(var f of we(v))Ze.call(v,f)&&Te(u,f,v[f]);return u},z=(u,v)=>We(u,Xe(v));var w=(u,v,f)=>new Promise((h,e)=>{var s=S=>{try{L(f.next(S))}catch(c){e(c)}},y=S=>{try{L(f.throw(S))}catch(c){e(c)}},L=S=>S.done?h(S.value):Promise.resolve(S.value).then(s,y);L((f=f.apply(u,v)).next())});import{S as je}from"./index.e3e1a333.js";import{P as Be}from"./index.5fd4ebf9.js";import{a as _e,m as ye,b as Oe,c as Ce,d as Qe,e as et,f as tt,g as xe,h as at,i as lt,j as st,k as it,l as ut}from"./api.487a99a6.js";import{U as W}from"./index.92a4e2d7.js";import{cj as ot,cG as rt,d as J,cI as nt,cJ as Re,F as ae,cP as ct,bi as ke,dx as dt,dy as Ue,a as K,u as Z,r as $,B as Q,dj as he,i as t,l as N,ce as P,aj as le,_ as X,a9 as R,p as k,k as d,cg as ce,bx as Ye,ai as Se,dz as mt,dk as ze,q as be,di as ie,ac as A,a8 as q,a7 as U,db as pt,ad as oe,dA as qe,m as Ke,ag as de,aa as te,bn as ve,U as ht,b as ft,M as gt,H as B,ae as yt,ch as St,d9 as V,da as re,bC as _,a0 as bt,a1 as vt,e as It,d7 as Lt,d8 as Ne}from"./index.5be084e8.js";import{B as Ie,C as fe,c as Ft,D as Ee}from"./constant.bea826fd.js";import{g as ge,a as wt}from"./objectUtil.ec24ceed.js";import{c as ne}from"./api.55000659.js";import{s as Ge}from"./api.b15d158e.js";import{f as $e}from"./index.92de98c9.js";import{a as Tt}from"./uploadFile.a0360be0.js";import{N as T}from"./FormItemGridItem.ce248b48.js";import{N as Le}from"./Cascader.ee3d7264.js";import{x as Ct}from"./api.91b6f92d.js";import{M as xt,c as kt,g as Ut}from"./musicUtil.ba36a3ca.js";import{g as Ae}from"./filters.405d544a.js";import{T as ue}from"./index.d03e22a0.js";import{g as Nt,s as Et}from"./use-async.2a0701ab.js";import"./searchs.b637f0d6.js";import"./oss-file-upload.1856466f.js";import"./api.812053c8.js";import"./vuedraggable.umd.75e3e795.js";import"./DeleteFilled.87937879.js";import"./api.440a8056.js";import"./knowledgeTypeData.3b15dd0b.js";import"./dateUtil.c89e24c1.js";import"./dayjs.min.1964c6aa.js";const At=ot("input-group-label",`
  2. position: relative;
  3. user-select: none;
  4. -webkit-user-select: none;
  5. box-sizing: border-box;
  6. padding: 0 12px;
  7. display: inline-block;
  8. border-radius: var(--n-border-radius);
  9. background-color: var(--n-group-label-color);
  10. color: var(--n-group-label-text-color);
  11. font-size: var(--n-font-size);
  12. line-height: var(--n-height);
  13. height: var(--n-height);
  14. flex-shrink: 0;
  15. white-space: nowrap;
  16. transition:
  17. color .3s var(--n-bezier),
  18. background-color .3s var(--n-bezier),
  19. box-shadow .3s var(--n-bezier);
  20. `,[rt("border",`
  21. position: absolute;
  22. left: 0;
  23. right: 0;
  24. top: 0;
  25. bottom: 0;
  26. border-radius: inherit;
  27. border: var(--n-group-label-border);
  28. transition: border-color .3s var(--n-bezier);
  29. `)]),Mt=Object.assign(Object.assign({},Re.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),Me=J({name:"InputGroupLabel",props:Mt,setup(u){const{mergedBorderedRef:v,mergedClsPrefixRef:f,inlineThemeDisabled:h}=nt(u),e=Re("Input","-input-group-label",At,dt,u,f),s=ae(()=>{const{size:L}=u,{common:{cubicBezierEaseInOut:S},self:{groupLabelColor:c,borderRadius:g,groupLabelTextColor:n,lineHeight:o,groupLabelBorder:p,[Ue("fontSize",L)]:F,[Ue("height",L)]:I}}=e.value;return{"--n-bezier":S,"--n-group-label-color":c,"--n-group-label-border":p,"--n-border-radius":g,"--n-group-label-text-color":n,"--n-font-size":F,"--n-line-height":o,"--n-height":I}}),y=h?ct("input-group-label",ae(()=>u.size[0]),s,u):void 0;return{mergedClsPrefix:f,mergedBordered:v,cssVars:h?void 0:s,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){var u,v,f;const{mergedClsPrefix:h}=this;return(u=this.onRender)===null||u===void 0||u.call(this),ke("div",{class:[`${h}-input-group-label`,this.themeClass],style:this.cssVars},(f=(v=this.$slots).default)===null||f===void 0?void 0:f.call(v),this.mergedBordered?ke("div",{class:`${h}-input-group-label__border`}):null)}}),Pt="_audioSection_o5wty_1",Dt="_btnRemove_o5wty_9",jt="_formContainer_o5wty_14",Bt="_productModal_o5wty_19",_t="_productIframe_o5wty_27",ee={audioSection:Pt,btnRemove:Dt,formContainer:jt,productModal:Bt,productIframe:_t},Ot=J({name:"musicSheetOwnerDialog",props:{musicSheetExtend:{type:Object,default:()=>{}},sourceType:{type:String,required:!0},appData:{type:Array,required:!0,default:[]}},emits:["close","getList","choseMusicSheetOwnerData"],setup(u,{slots:v,attrs:f,emit:h}){const e=K({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{applicationId:null,name:null,sourceType:null},dataList:[],appData:[]}),s=Z(),y=$(),L=()=>{e.pagination.page=1,c()},S=()=>{var o;(o=y.value)==null||o.submit()},c=()=>w(this,null,function*(){try{e.searchForm.applicationId||s.warning("\u83B7\u53D6\u5E94\u7528\u5217\u8868\u5931\u8D25"),e.loading=!0,e.searchForm.sourceType=u.sourceType;const{data:p}=yield _e(E(E({},e.pagination),e.searchForm));e.pagination.pageTotal=Number(p.total),e.dataList=p.rows||[]}catch(o){}e.loading=!1});Q(()=>w(this,null,function*(){{if(e.appData=he(u.appData),e.appData.length==0){s.warning("\u83B7\u53D6\u5E94\u7528\u5217\u8868\u5931\u8D25");return}u.musicSheetExtend&&u.musicSheetExtend.applicationId?e.searchForm.applicationId=u.musicSheetExtend.applicationId:e.searchForm.applicationId=e.appData[0].value,e.searchForm.name=null}c()}));const g=()=>e.searchForm.sourceType==="ORG"?[{title:"\u673A\u6784\u540D\u79F0",key:"orgName"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return t(R,null,{default:()=>[t(k,{type:"primary",size:"small",text:!0,onClick:()=>{const p=z(E({},o),{applicationId:e.searchForm.applicationId});h("choseMusicSheetOwnerData",p),h("close")}},{default:()=>[d("\u9009\u62E9")]})]})}}]:[{title:"\u4EBA\u5458\u540D\u79F0",key:"userName"},{title:"\u624B\u673A\u53F7",key:"phone"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return t(R,null,{default:()=>[t(k,{type:"primary",size:"small",text:!0,onClick:()=>{const p=z(E({},o),{applicationId:e.searchForm.applicationId});h("choseMusicSheetOwnerData",p),h("close")}},{default:()=>[d("\u9009\u62E9")]})]})}}],n=()=>[{title:"\u673A\u6784\u540D\u79F0",key:"organizationRole"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return t(R,null,{default:()=>[t(k,{type:"primary",size:"small",text:!0,onClick:()=>{const p=z(E({},o),{applicationId:e.searchForm.applicationId});h("choseMusicSheetOwnerData",p),h("close")}},{default:()=>[d("\u9009\u62E9")]})]})}}];return()=>t("div",{class:"system-menu-container"},[t(je,{ref:y,model:e.searchForm,onSubmit:L,onSetModel:o=>e.searchForm=o},{default:()=>[t(N,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId",size:"small",style:"width:250px"},{default:()=>[t(P,{placeholder:"\u8BF7\u9009\u62E9\u9002\u7528\u6240\u5C5E\u9879\u76EE",value:e.searchForm.applicationId,"onUpdate:value":o=>e.searchForm.applicationId=o,options:e.appData},null)]}),e.searchForm.sourceType==="PERSON"&&t(le,null,[t(N,{label:"\u6240\u5C5E\u4EBA",path:"name",size:"small",style:"width:250px"},{default:()=>[t(X,{placeholder:"\u8BF7\u8F93\u5165\u6240\u5C5E\u4EBA/\u624B\u673A\u53F7",value:e.searchForm.name,"onUpdate:value":o=>e.searchForm.name=o,clearable:!0},null)]})]),e.searchForm.sourceType==="ORG"&&t(le,null,[t(N,{label:"\u673A\u6784\u540D\u79F0",path:"name",size:"small",style:"width:250px"},{default:()=>[t(X,{placeholder:"\u8BF7\u8F93\u5165\u673A\u6784\u540D\u79F0",value:e.searchForm.name,"onUpdate:value":o=>e.searchForm.name=o,clearable:!0},null)]})]),t(N,{size:"small"},{default:()=>[t(R,null,{default:()=>[t(k,{type:"primary",onClick:S},{default:()=>[d("\u641C\u7D22")]})]})]})]}),t("div",{class:["section-container"]},[u.sourceType==="PERSON"&&t(ce,{loading:e.loading,columns:g(),data:e.dataList},null),u.sourceType==="ORG"&&t(ce,{loading:e.loading,columns:n(),data:e.dataList},null),t(Be,{page:e.pagination.page,"onUpdate:page":o=>e.pagination.page=o,pageSize:e.pagination.rows,"onUpdate:pageSize":o=>e.pagination.rows=o,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":o=>e.pagination.pageTotal=o,onList:c,sync:!0,pageSlot:5},null)])])}}),Ve=J({name:"music-create-img",props:{xmlFileUrl:{type:String,default:""}},emits:["close","confirm"],setup(u,{emit:v}){const f=Z(),h=K({productOpen:!1,productIfameSrc:""}),e=K({musicImg:"",musicFirstImg:"",musicJianImg:""}),s=()=>{if(!u.xmlFileUrl){f.error("\u8BF7\u5148\u4E0A\u4F20XML");return}const c={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},g=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec")?"online":"dev",n=c[g],o=/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com":n,p=encodeURIComponent(u.xmlFileUrl);h.productIfameSrc=o+`/instrument/#/product-img?xmlUrl=${p}&isCreateImg=true&isCbs=true`},y=c=>{const g=c.data;if((g==null?void 0:g.api)==="webApi_renderSvg"){let n=[];try{n=JSON.parse(g.product)}catch(o){console.log("\u{1F680} ~ error:",o)}n=n.filter(o=>o.base64),n.length===3?(f.success("\u751F\u6210\u6210\u529F"),L(n)):f.error("\u751F\u6210\u5931\u8D25")}},L=c=>w(this,null,function*(){var g,n,o;for(let p=0;p<c.length;p++){const F=S(c[p].base64,`${Date.now()}p${p}.png`);c[p].url=yield Tt(F)}e.musicImg=((g=c[0])==null?void 0:g.url)||"",e.musicFirstImg=((n=c[1])==null?void 0:n.url)||"",e.musicJianImg=((o=c[2])==null?void 0:o.url)||"",c=[],v("close"),v("confirm",e)}),S=(c,g)=>{var C;let n=c.split(",")||[],o=(C=n[0].match(/:(.*?);/))==null?void 0:C[1],p=atob(n[1]),F=p.length,I=new Uint8Array(F);for(;F--;)I[F]=p.charCodeAt(F);return new File([I],g,{type:o})};return Q(()=>{s(),window.addEventListener("message",y)}),Ye(()=>{window.removeEventListener("message",y)}),()=>t("iframe",{class:ee.productIframe,src:h.productIfameSrc},null)}});function Pe(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!ve(u)}const Rt=(u,v)=>{var L;let f=0;const h=u.closest(v);let e=h;const s=h==null?void 0:h.closest("measure");let y=null;for(;!y&&f<((s==null?void 0:s.childNodes.length)||50);)f++,((L=e==null?void 0:e.nextElementSibling)==null?void 0:L.tagName)==="note"&&(y=e==null?void 0:e.nextElementSibling),e=e==null?void 0:e.nextElementSibling;return y},Yt=(u,v)=>{var y,L;if(!u)return"";const f=new DOMParser().parseFromString(u,"text/xml"),h=((L=(y=f.getElementsByTagName("part-list"))==null?void 0:y[0])==null?void 0:L.getElementsByTagName("score-part"))||[],e=f.getElementsByTagName("part"),s=h[v];if(s){const S=s.getAttribute("id");Array.from(e).forEach(n=>{var o,p,F;if(n&&n.getAttribute("id")!==S&&((o=n.parentNode)==null||o.removeChild(n)),n&&n.getAttribute("id")===S){const I=n.getElementsByTagName("barline"),C=(p=I[I.length-1])==null?void 0:p.parentElement;if(((F=C==null?void 0:C.lastElementChild)==null?void 0:F.tagName)!=="barline"){const O=(C==null?void 0:C.children)||[];for(let D of O)if(D.tagName==="barline"){C==null||C.appendChild(D);break}}}}),Array.from(h).forEach(n=>{var o;n&&n.getAttribute("id")!==S&&((o=n.parentNode)==null||o.removeChild(n))});const c=f.getElementsByTagName("note"),g=n=>{var p;let o=c[n+1];for(let F=n;F<c.length;F++){const I=c[F];if(!((p=I.getElementsByTagName("grace"))!=null&&p.length)){o=I;break}}return o==null?void 0:o.getElementsByTagName("duration")[0]};Array.from(c).forEach((n,o)=>{var F;const p=n.getElementsByTagName("grace");p&&p.length&&n.appendChild((F=g(o))==null?void 0:F.cloneNode(!0))})}return new XMLSerializer().serializeToString(f)},zt={"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};function De(u){var n,o,p,F;const v=Yt(u,0),f=new DOMParser().parseFromString(v,"text/xml"),h=Array.from(f.querySelectorAll("measure")),e=Array.from(f.querySelectorAll("note")),s=Array.from(f.querySelectorAll("words")),y=Array.from(f.querySelectorAll("metronome")),L=[];for(const I of[...s,...y]){const C=Rt(I,"direction");if(C){const O=C==null?void 0:C.closest("measure"),D=Array.from(O.querySelectorAll("note")),G=Array.from(O.childNodes).filter(i=>i.nodeName==="note").findIndex(i=>i===C);let H=0,a=0;for(let i=0;i<D.length;i++){const r=+(((n=D[i].querySelector("duration"))==null?void 0:n.textContent)||"0");H+=r,i<G&&(a=H)}L.push({ele:I,index:e.indexOf(C),noteInMeasureIndex:G,textContent:I.textContent,measureIndex:h.indexOf(O),type:I.tagName,allDuration:H,leftDuration:a})}}L.push({ele:e[e.length-1],index:e.length,noteInMeasureIndex:0,textContent:"",type:"metronome",allDuration:1,leftDuration:1,measureIndex:h.length});const S=[];L.sort((I,C)=>I.index-C.index);const c=Object.keys(zt).map(I=>I.toLocaleLowerCase());let g=!1;for(const I of L){const C=(o=I.textContent)==null?void 0:o.toLocaleLowerCase().trim();I===L[L.length-1]&&((p=S[S.length-1])==null?void 0:p.length)===1&&(g=!0);const O=c.find(D=>{const G=D.split(" ");return C&&G.includes(C)});if(I.type==="metronome"||I.type==="words"&&(C.startsWith("a tempo")||O)||g){const D=S.findIndex(G=>G.length===1);D>-1&&I.index>((F=S[D])==null?void 0:F[0].start)&&(S[D][1]={start:I.index,measureIndex:I.measureIndex,noteInMeasureIndex:I.noteInMeasureIndex,allDuration:I.allDuration,leftDuration:I.leftDuration,type:C})}I.type==="words"&&O&&S.push([{start:I.index,measureIndex:I.measureIndex,noteInMeasureIndex:I.noteInMeasureIndex,allDuration:I.allDuration,leftDuration:I.leftDuration,type:C}])}return S}const qt=J({name:"music-operation",props:{type:{type:String,default:"add"},data:{type:Object,default:()=>{}},tagList:{type:Array,default:()=>[]},subjectList:{type:Array,default:()=>[]}},emits:["close","getList"],setup(u,{slots:v,attrs:f,emit:h}){const e=K({details:{},graduals:{},playMode:"MP3",xmlFileUrl:null,midiUrl:null,name:null,composer:null,playSpeed:null,musicCover:null,remark:null,musicSheetSoundList_YY:[],musicSheetSoundList_YZ:[],musicSheetSoundList_all_subject:null,status:!1,musicSheetType:"SINGLE",sourceType:null,appAuditFlag:0,midiFileUrl:null,subjectIds:[],musicalInstrumentIdList:[],musicCategoryId:null,musicSheetAccompanimentList:[],audioType:"HOMEMODE",isPlayBeat:!0,isUseSystemBeat:!0,isUseSingSystemBeat:!0,repeatedBeats:!1,repeatedBeatsToSing:!1,isPlaySingBeat:!0,evaluationStandard:"FREQUENCY",multiTracksSelection:[],musicSheetExtend:{},musicImg:"",musicFirstImg:"",musicJianImg:"",isEvxml:!1,isShowFingering:!0,solmizationFileUrl:null,isAllSubject:!1}),s=K({loading:!1,previewMode:!1,tagList:[...u.tagList],xmlFirstSpeed:null,partListNames:[],musicSheetCategories:[],musicSheetAccompanimentUrls:"",musicSheetAccompanimentUrlList:[],instrumentData:[],instrumentList:[],instrumentIdNameMap:new Map,subjectList:[],showMusicSheetOwnerDialog:!1,multiTracks:null,multiInstruments:null,appData:[],ownerName:null,productOpen:!1,productItem:{},productIfameSrc:"",isAutoSave:!1,fSongFile:null,bSongFile:null,musicSheetSoundList:[]}),y=K({list:[],gradualRefs:[]}),L=$(!1),S=$(),c=Z(),g=Se(),n=()=>w(this,null,function*(){S.value.validate(a=>w(this,null,function*(){if(!a){if(e.musicSheetType=="CONCERT"){let l=[];const{data:r}=yield ne({page:1,rows:9999});r.rows.map(x=>{x.code&&x.code.split(",").forEach(b=>{let j=b.replaceAll(" ","");l.push(j.toLocaleLowerCase())})});let m=[];if(e.multiTracksSelection.forEach(x=>{if(x){let b=!1,j=x.replaceAll(" ","").toLocaleLowerCase();for(let M=0;M<l.length;M++)if(l[M].startsWith(j)||l[M].endsWith(j)){b=!0;break}b||m.push(x)}}),m.length>0){g.warning({title:"\u63D0\u793A",content:`\u58F0\u8F68\u672A\u914D\u7F6E\uFF1A${m.join(",")}`,positiveText:"\u786E\u5B9A",onPositiveClick:()=>{}});return}}if(!s.isAutoSave){s.isAutoSave=!0,s.productOpen=!0;return}try{let l=[],r=[],m=e.musicSheetType;if(s.fSongFile&&(r.push({musicSheetId:u.data.id,audioFileUrl:s.fSongFile,audioPlayType:"SING",solmizationFileUrl:e.solmizationFileUrl}),l.push("SING")),m=="SINGLE")if(e.isAllSubject){if(e.musicSheetSoundList_all_subject&&(l.push("PLAY"),r.push({audioFileUrl:e.musicSheetSoundList_all_subject,musicSheetId:u.data.id,audioPlayType:"PLAY"})),!s.fSongFile&&!s.bSongFile&&!e.musicSheetSoundList_all_subject){c.warning("\u8BF7\u4E0A\u4F20\u97F3\u9891\u6587\u4EF6");return}}else{var i=!1;if(e.musicSheetSoundList_YZ.length>0&&(l.push("PLAY"),e.musicSheetSoundList_YZ.forEach(b=>{e.musicalInstrumentIdList.includes(b.musicalInstrumentId)&&(b.audioFileUrl!=null&&(i=!0),r.push(z(E({},b),{musicSheetId:u.data.id})))})),!s.fSongFile&&!s.bSongFile&&!i){c.warning("\u8BF7\u4E0A\u4F20\u97F3\u9891\u6587\u4EF6");return}}m=="CONCERT"&&e.musicSheetSoundList_YY.length>0&&(l.push("PLAY"),e.musicSheetSoundList_YY.forEach(b=>{b.audioFileUrl&&r.push(z(E({},b),{musicSheetId:u.data.id}))})),s.bSongFile&&e.musicSheetAccompanimentList.push({musicSheetId:u.data.id,audioFileUrl:s.bSongFile,audioPlayType:"SING"});const x={musicCategoryId:e.musicCategoryId,musicCover:e.musicCover,name:e.name,appAuditFlag:e.appAuditFlag,subjectIds:e.isAllSubject?"":e.subjectIds.join(","),remark:e.remark,audioPlayTypes:l.join(","),musicalInstrumentIds:e.isAllSubject?"":e.musicalInstrumentIdList.join(","),composer:e.composer,musicSheetType:e.musicSheetType,isUseSystemBeat:e.isUseSystemBeat,isShowFingering:e.isShowFingering,isPlayBeat:e.isPlayBeat,multiTracksSelection:e.isAllSubject?"":e.multiTracksSelection.join(","),playSpeed:e.playSpeed,playMode:e.playMode,xmlFileUrl:e.xmlFileUrl,musicImg:e.musicImg,musicFirstImg:e.musicFirstImg,musicJianImg:e.musicJianImg,extConfigJson:JSON.stringify({repeatedBeats:e.repeatedBeats?1:0,gradualTimes:e.graduals,isEvxml:e.isEvxml?1:0,repeatedBeatsToSing:e.repeatedBeatsToSing?1:0}),sourceType:e.sourceType,audioType:e.audioType,status:e.status,evaluationStandard:e.evaluationStandard,musicSheetAccompanimentList:e.musicSheetAccompanimentList,musicSheetSoundList:r,musicTag:"-1",isUseSingSystemBeat:e.isUseSingSystemBeat,isPlaySingBeat:e.isPlaySingBeat,isAllSubject:e.isAllSubject};e.audioType=="MIDI"&&(x.musicSheetSoundList=[]),L.value=!0,u.type==="add"?(yield Ce(x),c.success("\u6DFB\u52A0\u6210\u529F")):u.type==="edit"&&(yield Ce(z(E({},x),{id:u.data.id})),c.success("\u4FEE\u6539\u6210\u529F")),h("getList"),h("close")}catch(l){console.log(l)}setTimeout(()=>{L.value=!1},100)}}))}),o=a=>{var l;e.isEvxml=!!((l=a==null?void 0:a.name)!=null&&l.includes(".evxml"));const i=new FileReader;i.onload=r=>{var m,x;try{y.list=De((m=r==null?void 0:r.target)==null?void 0:m.result).filter(b=>b.length===2)}catch(b){}s.partListNames=F((x=r==null?void 0:r.target)==null?void 0:x.result);for(let b=0;b<s.partListNames.length;b++)e.musicSheetSoundList_YY[b]||e.musicSheetSoundList_YY.push({audioFileUrl:null,track:null}),e.musicSheetSoundList_YY[b].track=s.partListNames[b].value;for(let b=e.musicSheetSoundList_YY.length;b<s.partListNames.length;b++){const j=s.partListNames[b].value,M=z(E({},e.musicSheetSoundList_YY[0]),{track:j});M.speed||(M.speed=s.xmlFirstSpeed),C(M)}e.musicSheetSoundList_YY.length==0&&e.musicSheetSoundList_YY.push({audioFileUrl:"",track:""})},i.readAsText(a)},p=a=>{for(let i=0;i<s.partListNames.length;i++)if(s.partListNames[i].value==a)return!0;return!1},F=a=>{var m,x,b,j;if(!a)return[];const i=new DOMParser().parseFromString(a,"text/xml"),l=((x=(m=i.getElementsByTagName("part-list"))==null?void 0:m[0])==null?void 0:x.getElementsByTagName("score-part"))||[];let r=Array.from(l).map(M=>{var se,Fe;let Y=((Fe=(se=M.getElementsByTagName("part-name"))==null?void 0:se[0])==null?void 0:Fe.textContent)||"";return e.isEvxml&&(Y=Y||"noPartName"),{value:Y.trim(),label:Y.trim()}});return r=r.filter(M=>{var Y,se;return((se=(Y=M.value)==null?void 0:Y.toLocaleUpperCase)==null?void 0:se.call(Y))!="COMMON"}),r.length>0&&(e.musicSheetSoundList_YY=e.musicSheetSoundList_YY.slice(0,r.length)),s.xmlFirstSpeed=((j=(b=i.getElementsByTagName("per-minute"))==null?void 0:b[0])==null?void 0:j.textContent)||"",e.playSpeed||(s.xmlFirstSpeed?e.playSpeed=Number.parseFloat(s.xmlFirstSpeed):e.playSpeed=100),r},I=a=>{const i=he(s.partListNames)||[],l=e.multiTracksSelection;return i.forEach(r=>{l.includes(r.value)?r.disabled=!0:r.disabled=!1}),i||[]},C=a=>{e.musicSheetSoundList_YY.push(E({audioFileUrl:null,track:null},a))},O=a=>{g.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u539F\u97F3\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>w(this,null,function*(){const l=e.musicSheetSoundList_YY[a].track;if(l!=null){const r=e.multiTracksSelection.indexOf(l);r>-1&&e.multiTracksSelection.splice(r,1)}else e.musicSheetSoundList_YY.splice(a,1)})})},D=a=>{!a||(a==="all"?(e.multiTracksSelection=[],s.partListNames.forEach(i=>{e.multiTracksSelection.push(i.value)})):a==="invert"?s.partListNames.forEach(i=>{const l=e.multiTracksSelection.indexOf(i.value);l>-1?e.multiTracksSelection.splice(l,1):e.multiTracksSelection.push(i.value)}):a==="allUncheck"&&(e.multiTracksSelection=[]))},G=()=>{var l;if(e.sourceType=="PLATFORM"){s.ownerName="";return}if(!e.musicSheetExtend||!e.sourceType||!((l=e.musicSheetExtend)!=null&&l.userId))return;const a=e.musicSheetExtend.applicationId,i=s.appData.filter(r=>r.id==a);i.length>0&&(s.ownerName=i[0].appName),e.sourceType=="ORG"?s.ownerName+="-"+e.musicSheetExtend.organizationRole:e.sourceType=="PERSON"&&(s.ownerName+="-"+wt(e.musicSheetExtend.clientType,new Map(Object.entries(Ft))),e.musicSheetExtend.userName&&(s.ownerName+="-"+e.musicSheetExtend.userName),e.musicSheetExtend.phone&&(s.ownerName+="("+e.musicSheetExtend.phone+")"))},H=a=>w(this,null,function*(){if(s.instrumentList=[],!a||a.length==0){e.musicalInstrumentIdList=[];return}let i=null;u.type==="add"&&(i=!0);let l=[];const{data:r}=yield ne({page:1,rows:999,subjectIds:a,enableFlag:i});r.rows.map(m=>{l.push(m.id+""),s.instrumentList.push({label:m.name,value:m.id+"",disabled:!m.enableFlag})}),e.musicalInstrumentIdList=e.musicalInstrumentIdList.filter(m=>l.includes(m))});return Q(()=>w(this,null,function*(){s.loading=!0,u.type==="preview"&&(s.previewMode=!0);{if(s.instrumentList&&s.instrumentList.length>0)return;try{const{data:a}=yield ne({page:1,rows:999}),i=a.rows||[];i.forEach(l=>{l.label=l.name,l.value=l.id+"",l.disabled=!l.enableFlag,s.instrumentIdNameMap.set(l.id+"",l.name),e.musicSheetSoundList_YZ.push({musicSheetId:u.data.id,musicalInstrumentId:l.id+"",musicalInstrumentName:l.name,audioFileUrl:null,audioPlayType:"PLAY"})}),s.instrumentData=i}catch(a){}}s.subjectList=he(u.subjectList),s.subjectList.forEach(a=>{a.disabled=!a.enableFlag});{const a=Object.keys(Ie),{data:i}=yield Ge({page:1,rows:999,parentId:0}),r=(i.rows||[]).filter(m=>a.includes(m.appKey));r.forEach(m=>{m.label=m.appName,m.value=m.id}),s.appData=r}try{const{data:a}=yield ye({enable:!0});s.musicSheetCategories=$e(a,"musicSheetCategoriesList")}catch(a){}if(u.type==="edit"||u.type==="preview"){const a=u.data;try{const{data:i}=yield Oe({id:a.id});e.details=i,e.playMode=i.playMode,e.xmlFileUrl=i.xmlFileUrl,e.midiUrl=i.midiUrl,e.name=i.name,e.composer=i.composer,e.playSpeed=i.playSpeed?Number.parseFloat(i.playSpeed):100,e.musicCover=i.musicCover,e.remark=i.remark,e.status=i.status,e.musicSheetType=i.musicSheetType||"SINGLE",e.sourceType=i.sourceType,e.appAuditFlag=i.appAuditFlag?1:0,e.midiFileUrl=i.midiFileUrl,e.isShowFingering=i.isShowFingering,e.isAllSubject=i.isAllSubject,e.isUseSingSystemBeat=i.isUseSingSystemBeat,e.isPlaySingBeat=i.isPlaySingBeat,e.subjectIds=[],i.subjectIds&&(i.subjectIds.split(",")||[]).forEach(m=>{e.subjectIds.includes(m)||e.subjectIds.push(m)}),e.musicalInstrumentIdList=i.musicalInstrumentIds?i.musicalInstrumentIds.split(","):[],yield H(e.subjectIds),e.musicCategoryId=i.musicCategoryId,e.audioType=i.audioType,e.isPlayBeat=i.isPlayBeat,e.isUseSystemBeat=i.isUseSystemBeat;try{const r=i.extConfigJson?JSON.parse(i.extConfigJson):{};e.graduals=r.gradualTimes||{},e.repeatedBeats=!!r.repeatedBeats,e.isEvxml=!!r.isEvxml,e.repeatedBeatsToSing=!!r.repeatedBeatsToSing}catch(r){}e.evaluationStandard=i.evaluationStandard,e.musicSheetExtend=i.musicSheetExtend,s.musicSheetSoundList=i.musicSheetSoundList?i.musicSheetSoundList:[],(i.musicSheetAccompanimentList?i.musicSheetAccompanimentList:[]).forEach(r=>{let m=r.audioPlayType;m&&m=="SING"?s.bSongFile=r.audioFileUrl:(s.musicSheetAccompanimentUrlList.push(r.audioFileUrl),e.musicSheetAccompanimentList.push(r))});for(let r=0;r<s.musicSheetSoundList.length;r++)if(s.musicSheetSoundList[r].audioPlayType=="SING")s.fSongFile=s.musicSheetSoundList[r].audioFileUrl,e.solmizationFileUrl=s.musicSheetSoundList[r].solmizationFileUrl;else if(e.isAllSubject)e.musicSheetSoundList_all_subject=s.musicSheetSoundList[r].audioFileUrl;else for(let m=0;m<e.musicSheetSoundList_YZ.length;m++){let x=s.musicSheetSoundList[r].musicalInstrumentId;x&&x==e.musicSheetSoundList_YZ[m].musicalInstrumentId&&(e.musicSheetSoundList_YZ[m].audioFileUrl=s.musicSheetSoundList[r].audioFileUrl)}G(),mt.get(i.xmlFileUrl).then(r=>{if(r!=null&&r.data){y.list=De(r==null?void 0:r.data).filter(x=>x.length===2),s.partListNames=F(r==null?void 0:r.data),i.multiTracksSelection&&(i.multiTracksSelection=i.multiTracksSelection.toLocaleUpperCase()),!i.multiTracksSelection||i.multiTracksSelection.trim()==""||i.multiTracksSelection.trim()=="NULL"?e.multiTracksSelection=[""]:e.multiTracksSelection=i.multiTracksSelection.split(",");let m=s.partListNames.map(x=>x.label);if(e.multiTracksSelection=m.filter(x=>e.multiTracksSelection.includes(x.toLocaleUpperCase())),s.musicSheetSoundList.length===1&&s.musicSheetSoundList[0].track==="P1")e.musicSheetSoundList_YY.push({audioFileUrl:s.musicSheetSoundList[0].audioFileUrl,track:s.partListNames[0].value||"",audioPlayType:"PLAY"});else{const x=[];s.partListNames.forEach(b=>{let j=null;s.musicSheetSoundList.forEach(M=>{(M.track?M.track:"").trim()==b.value&&(j=M.audioFileUrl)}),e.musicSheetSoundList_YY.push({audioFileUrl:j,track:b.value,audioPlayType:"PLAY"}),x.push(b.value)}),i.musicSheetType=="CONCERT"&&s.musicSheetSoundList.forEach(b=>{b.track&&!x.includes(b.track.trim())&&b.audioPlayType=="PLAY"&&e.musicSheetSoundList_YY.push({audioFileUrl:b.audioFileUrl,track:b.track?b.track.trim():"",audioPlayType:"PLAY"})})}}})}catch(i){}}else s.subjectList=s.subjectList.filter(a=>a.enableFlag==!0);s.loading=!1})),()=>{let a,i;return t("div",{style:"background: #fff; padding-top: 12px"},[t(ze,{show:s.loading},{default:()=>[t(be,{class:ee.formContainer,model:e,ref:S,"label-placement":"left","label-width":"150",disabled:s.previewMode},{default:()=>[t(ie,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[d("\u57FA\u672C\u4FE1\u606F")]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u66F2\u76EE\u540D\u79F0",path:"name",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0",trigger:["input","blur"]}]},{default:()=>[t(X,{value:e.name,"onUpdate:value":l=>e.name=l,placeholder:"\u8BF7\u8F93\u5165\u66F2\u76EE\u540D\u79F0",maxlength:50,showCount:!0},null)]}),t(T,{label:"\u97F3\u4E50\u4EBA",path:"composer",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA",trigger:["input","blur"]}]},{default:()=>[t(X,{value:e.composer,"onUpdate:value":l=>e.composer=l,placeholder:"\u8BF7\u8F93\u5165\u97F3\u4E50\u4EBA\u540D\u79F0",showCount:!0,maxlength:14},null)]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u66F2\u76EE\u5C01\u9762",path:"musicCover",rule:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u66F2\u76EE\u5C01\u9762",trigger:["input","blur"]}]},{default:()=>[t(W,{desc:"\u5C01\u9762\u56FE",disabled:s.previewMode,accept:".jpg,.jpeg,.png",tips:"\u8BF7\u4E0A\u4F20\u5927\u5C0F1M\u4EE5\u5185\u7684JPG\u3001PNG\u56FE\u7247",size:1,fileList:e.musicCover,"onUpdate:fileList":l=>e.musicCover=l,cropper:!0,bucketName:"cbs",options:{autoCrop:!0,enlarge:2,autoCropWidth:200,fixedBox:!0,autoCropHeight:200,previewsCircle:!1,title:"\u66F2\u76EE\u5C01\u9762"}},null)]}),t(T,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",trigger:["change"]}]},{default:()=>[t(Le,{valueField:"id",labelField:"name","children-field":"musicSheetCategoriesList",placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",value:e.musicCategoryId,"onUpdate:value":l=>e.musicCategoryId=l,options:s.musicSheetCategories,clearable:!0},null)]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u4F5C\u8005\u5C5E\u6027",path:"sourceType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",trigger:"change"}]},{default:()=>[t(P,{value:e.sourceType,"onUpdate:value":l=>e.sourceType=l,options:ge(fe),placeholder:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",onUpdateValue:()=>{e.musicSheetExtend={},s.ownerName=null}},null)]}),e.sourceType==="PERSON"&&t(T,{label:"\u6240\u5C5E\u4EBA",path:"musicSheetExtend.userId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6240\u5C5E\u4EBA",trigger:["input","change"]}]},{default:()=>[t(k,{disabled:s.previewMode||!e.sourceType,type:"primary",size:"small",text:!0,onClick:()=>{s.showMusicSheetOwnerDialog=!0}},{default:()=>[s.ownerName?s.ownerName:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA"]})]}),e.sourceType==="ORG"&&t(T,{label:"\u6240\u5C5E\u4EBA",path:"musicSheetExtend.organizationRoleId",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u66F2\u76EE\u6240\u5C5E\u673A\u6784",trigger:["input","change"]}]},{default:()=>[t(k,{disabled:s.previewMode||!e.sourceType,type:"primary",size:"small",text:!0,onClick:()=>{s.showMusicSheetOwnerDialog=!0}},{default:()=>[s.ownerName?s.ownerName:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784"]})]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u5BA1\u6838\u7248\u672C",path:"appAuditFlag",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7248\u672C",trigger:"change",type:"number"}]},{default:()=>[t(P,{options:[{label:"\u662F",value:1},{label:"\u5426",value:0}],value:e.appAuditFlag,"onUpdate:value":l=>e.appAuditFlag=l},null)]})]}),t(ie,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[d("\u66F2\u76EE\u8BBE\u7F6E")]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u64AD\u653E\u6A21\u5F0F",path:"playMode",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u6A21\u5F0F"}]},{default:()=>[t(q,{value:e.playMode,"onUpdate:value":l=>e.playMode=l,onUpdateValue:l=>{l==="MP3"?e.playMode="MP3":e.playMode="MIDI"}},{default:()=>[t(U,{value:"MP3"},{default:()=>[d("MP3")]}),t(U,{value:"MIDI"},{default:()=>[d("MID")]})]})]}),e.playMode==="MP3"&&t(T,{label:"\u4F34\u594F\u7C7B\u578B",path:"audioType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4F34\u594F\u7C7B\u578B"}]},{default:()=>[t(q,{value:e.audioType,"onUpdate:value":l=>e.audioType=l},{default:()=>[t(U,{value:"HOMEMODE"},{default:()=>[d("\u81EA\u5236\u4F34\u594F")]}),t(U,{value:"COMMON"},{default:()=>[d("\u666E\u901A\u4F34\u594F")]})]})]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u4E0A\u4F20XML",path:"xmlFileUrl",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20XML",trigger:["change","input"]}]},{default:()=>[t(W,{desc:"XML\u6587\u4EF6",disabled:s.previewMode,size:30,key:"xmlFileUrl",fileList:e.xmlFileUrl,"onUpdate:fileList":l=>e.xmlFileUrl=l,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.xml/.mxml\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".xml,.mxml,.evxml",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20XML\u6587\u4EF6",onReadFileInputEventAsArrayBuffer:o,onRemove:()=>{e.multiTracksSelection=[],s.partListNames=[],e.musicSheetSoundList_YY=[]}},null)]}),t(T,{label:"\u8BC4\u5206\u6807\u51C6",path:"evaluationStandard",rule:[{required:!0}]},{default:()=>[t(q,{value:e.evaluationStandard,"onUpdate:value":l=>e.evaluationStandard=l},{default:()=>[t(U,{value:"FREQUENCY"},{default:()=>[d("\u6807\u51C6\u8BC4\u6D4B")]}),t(U,{value:"AMPLITUDE"},{default:()=>[d("\u6253\u51FB\u4E50(\u632F\u5E45)")]}),t(U,{value:"DECIBELS"},{default:()=>[d("\u8282\u594F(\u5206\u8D1D)")]})]})]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u8C31\u9762\u6E32\u67D3",path:"musicSheetType",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u8C31\u9762\u6E32\u67D3",trigger:"change"}]},{default:()=>[t(q,{value:e.musicSheetType,"onUpdate:value":l=>e.musicSheetType=l},{default:()=>[t(U,{value:"SINGLE"},{default:()=>[d("\u591A\u58F0\u8F68")]}),t(U,{value:"CONCERT"},{default:()=>[d("\u5355\u58F0\u8F68")]})]})]}),t(T,{label:"\u9002\u7528\u58F0\u90E8",path:"isAllSubject",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u9002\u7528\u58F0\u90E8"}]},{default:()=>[t(q,{value:e.isAllSubject,"onUpdate:value":l=>e.isAllSubject=l},{default:()=>[t(U,{value:!1},{default:()=>[d("\u90E8\u5206\u58F0\u90E8")]}),t(U,{value:!0},{default:()=>[d("\u5168\u90E8\u58F0\u90E8")]})]})]})]}),!e.isAllSubject&&t(A,{cols:2},{default:()=>[t(T,{label:"\u53EF\u7528\u58F0\u90E8",path:"subjectIds",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",trigger:"change",type:"array"}]},{default:()=>[t(P,{value:e.subjectIds,"onUpdate:value":l=>e.subjectIds=l,options:s.subjectList,multiple:!0,filterable:!0,clearable:!0,placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",maxTagCount:2,onUpdateValue:l=>w(this,null,function*(){yield H(l)})},null)]}),t(T,{label:"\u53EF\u7528\u4E50\u5668",path:"musicalInstrumentIdList",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",trigger:"change",type:"array"}]},{default:()=>[t(P,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",options:s.instrumentList,value:e.musicalInstrumentIdList,"onUpdate:value":l=>e.musicalInstrumentIdList=l,clearable:!0,multiple:!0,maxTagCount:2,onUpdateValue:l=>w(this,null,function*(){})},null)]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u901F\u5EA6",path:"playSpeed",rule:[{required:!1,message:"\u8BF7\u8F93\u5165\u901F\u5EA6"}]},{default:()=>[t(pt,{placeholder:"\u8BF7\u8F93\u5165\u901F\u5EA6",value:e.playSpeed,"onUpdate:value":l=>e.playSpeed=l,min:0,style:"width:100%"},null)]})]}),t(A,{cols:1},{default:()=>[t(T,{label:`${e.musicSheetType==="SINGLE"?"\u9875\u9762\u6E32\u67D3\u58F0\u8F68":"\u7528\u6237\u53EF\u5207\u6362\u58F0\u8F68"}`,path:"multiTracksSelection",rule:[{required:!0,message:`\u8BF7\u9009\u62E9${e.musicSheetType==="SINGLE"?"\u9875\u9762\u6E32\u67D3\u58F0\u8F68":"\u7528\u6237\u53EF\u5207\u6362\u58F0\u8F68"}`,trigger:"change",type:"array"}]},{default:()=>[t(A,{style:"padding-top: 4px;"},{default:()=>[t(oe,{span:24},{default:()=>[t(q,{value:s.multiTracks,"onUpdate:value":l=>s.multiTracks=l,onUpdateValue:l=>{D(l)}},{default:()=>[t(U,{value:"all"},{default:()=>[d("\u5168\u9009")]}),t(U,{value:"allUncheck"},{default:()=>[d("\u91CD\u7F6E")]}),t(U,{value:"invert"},{default:()=>[d("\u53CD\u9009")]})]})]}),s.partListNames&&s.partListNames.length>0&&t(oe,{span:24,style:"margin-top:5px"},{default:()=>[t(T,{label:"",path:"multiTracksSelection",rule:[{required:!1}]},{default:()=>[t(qe,{value:e.multiTracksSelection,"onUpdate:value":l=>e.multiTracksSelection=l},{default:()=>[t(A,{yGap:2,cols:4},Pe(a=s.partListNames.map(l=>t(oe,null,{default:()=>[t(Ke,{value:l.value,label:l.label},null)]})))?a:{default:()=>[a]})]})]})]})]})]})]}),t(ie,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[d("\u6F14\u5531\u6587\u4EF6")]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u662F\u5426\u64AD\u653E\u8282\u62CD\u5668",path:"isPlaySingBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u64AD\u653E\u8282\u62CD\u5668"}]},{default:()=>[t(q,{value:e.isPlaySingBeat,"onUpdate:value":l=>e.isPlaySingBeat=l},{default:()=>[t(U,{value:!0},{default:()=>[d("\u662F")]}),t(U,{value:!1},{default:()=>[d("\u5426")]})]})]}),e.isPlaySingBeat&&t(T,{label:"\u64AD\u653E\u65B9\u5F0F",path:"isUseSingSystemBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u65B9\u5F0F"}]},{default:()=>[t(q,{value:e.isUseSingSystemBeat,"onUpdate:value":l=>e.isUseSingSystemBeat=l},{default:()=>[t(U,{value:!0},{default:()=>[d("\u7CFB\u7EDF\u8282\u62CD\u5668")]}),t(U,{value:!1},{default:()=>[d("MP3\u8282\u62CD\u5668")]})]})]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u91CD\u590D\u8282\u62CD\u65F6\u957F",path:"repeatedBeatsToSing",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u662F\u5426\u91CD\u590D\u8282\u62CD\u65F6\u957F"}]},{default:()=>[t(q,{value:e.repeatedBeatsToSing,"onUpdate:value":l=>e.repeatedBeatsToSing=l},{default:()=>[t(U,{value:!0},{default:()=>[d("\u662F")]}),t(U,{value:!1},{default:()=>[d("\u5426")]})]})]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u4E0A\u4F20\u8303\u5531",path:"fSongFile",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20\u8303\u5531",trigger:["change","input"]}]},{default:()=>[t(W,{desc:"\u4E0A\u4F20\u8303\u5531",disabled:s.previewMode,size:30,key:"xmlFileUrl",fileList:s.fSongFile,"onUpdate:fileList":l=>s.fSongFile=l,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u8303\u5531\u6587\u4EF6",onRemove:()=>{}},null)]}),t(T,{label:"\u4E0A\u4F20\u4F34\u5531",path:"bSongFile",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20.MID\u683C\u5F0F\u6587\u4EF6"}]},{default:()=>[t(W,{desc:"\u4E0A\u4F20\u4F34\u5531",disabled:s.previewMode,size:30,fileList:s.bSongFile,"onUpdate:fileList":l=>s.bSongFile=l,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u4F34\u5531\u6587\u4EF6"},null)]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u4E0A\u4F20\u5531\u540D",path:"solmizationFileUrl",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20\u5531\u540D",trigger:["change","input"]}]},{default:()=>[t(W,{desc:"\u4E0A\u4F20\u5531\u540D",disabled:s.previewMode,size:30,key:"xmlFileUrl",fileList:e.solmizationFileUrl,"onUpdate:fileList":l=>e.solmizationFileUrl=l,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u5531\u540D\u6587\u4EF6",onRemove:()=>{}},null)]})]}),t(ie,{showIcon:!1,style:{marginBottom:"12px"}},{default:()=>[d("\u6F14\u594F\u6587\u4EF6")]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u662F\u5426\u64AD\u653E\u8282\u62CD\u5668",path:"isPlayBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u64AD\u653E\u8282\u62CD\u5668"}]},{default:()=>[t(q,{value:e.isPlayBeat,"onUpdate:value":l=>e.isPlayBeat=l},{default:()=>[t(U,{value:!0},{default:()=>[d("\u662F")]}),t(U,{value:!1},{default:()=>[d("\u5426")]})]})]}),e.isPlayBeat&&t(T,{label:"\u64AD\u653E\u65B9\u5F0F",path:"isUseSystemBeat",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u64AD\u653E\u65B9\u5F0F"}]},{default:()=>[t(q,{value:e.isUseSystemBeat,"onUpdate:value":l=>e.isUseSystemBeat=l},{default:()=>[t(U,{value:!0},{default:()=>[d("\u7CFB\u7EDF\u8282\u62CD\u5668")]}),t(U,{value:!1},{default:()=>[d("MP3\u8282\u62CD\u5668")]})]})]})]}),t(A,{cols:2},{default:()=>[t(T,{label:"\u91CD\u590D\u8282\u62CD\u65F6\u957F",path:"repeatedBeats",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u662F\u5426\u91CD\u590D\u8282\u62CD\u65F6\u957F"}]},{default:()=>[t(q,{value:e.repeatedBeats,"onUpdate:value":l=>e.repeatedBeats=l},{default:()=>[t(U,{value:!0},{default:()=>[d("\u662F")]}),t(U,{value:!1},{default:()=>[d("\u5426")]})]})]}),t(T,{label:"\u662F\u5426\u663E\u793A\u6307\u6CD5",path:"isShowFingering",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u663E\u793A\u6307\u6CD5"}]},{default:()=>[t(q,{value:e.isShowFingering,"onUpdate:value":l=>e.isShowFingering=l},{default:()=>[t(U,{value:!0},{default:()=>[d("\u662F")]}),t(U,{value:!1},{default:()=>[d("\u5426")]})]})]})]}),t(A,{cols:2},{default:()=>[e.playMode==="MP3"&&t(T,{label:"\u4E0A\u4F20\u4F34\u594F",path:"musicSheetAccompanimentList",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20.mp3"}]},{default:()=>[t(W,{disabled:s.previewMode,size:30,imageList:s.musicSheetAccompanimentUrlList,"onUpdate:imageList":l=>s.musicSheetAccompanimentUrlList=l,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u4F34\u594F\u6587\u4EF6",max:1,desc:"\u4E0A\u4F20\u4F34\u594F\u6587\u4EF6","onUpload:success":l=>{var r;s.musicSheetAccompanimentUrls=[s.musicSheetAccompanimentUrls,l.url].filter(Boolean).join(","),s.musicSheetAccompanimentUrlList=(r=s.musicSheetAccompanimentUrls)==null?void 0:r.split(",").filter(Boolean),e.musicSheetAccompanimentList=[];for(let m=0;m<s.musicSheetAccompanimentUrlList.length;m++)e.musicSheetAccompanimentList.push({audioFileUrl:s.musicSheetAccompanimentUrlList[m],sortNumber:m+1,audioPlayType:"PLAY"})},onRemove:()=>{s.musicSheetAccompanimentUrlList=[],s.musicSheetAccompanimentUrls=""},multiple:!0},null)]}),e.isAllSubject&&e.musicSheetType=="SINGLE"&&t(T,{label:"\u4E0A\u4F20\u539F\u97F3",path:"musicSheetSoundList_all_subject",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u4E0A\u4F20\u539F\u97F3",trigger:["change","input"]}]},{default:()=>[t(W,{desc:"\u4E0A\u4F20\u539F\u97F3",disabled:s.previewMode,size:30,max:1,fileList:e.musicSheetSoundList_all_subject,"onUpdate:fileList":l=>e.musicSheetSoundList_all_subject=l,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach",text:"\u70B9\u51FB\u4E0A\u4F20\u539F\u97F3",onRemove:()=>{}},null)]})]}),!!y.list.length&&t(le,null,[t(ie,{showIcon:!1,type:"info"},{default:()=>[d("\u8BC6\u522B\u5230\u51711\u5904\u6E10\u53D8\u901F\u5EA6\uFF0C\u8BF7\u8F93\u5165Dorico\u5BF9\u5E94\u5C0F\u8282\u65F6\u95F4\u4FE1\u606F")]}),t(N,{label:"rit.",required:!0,style:{marginTop:"10px"}},{default:()=>[t(R,{vertical:!0},Pe(i=y.list.map((l,r)=>t(de,null,{default:()=>[t(N,{path:`graduals.${l[0].measureIndex}`,rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5408\u594F\u66F2\u76EE\u65F6\u95F4"},{pattern:/^((\d{2}):?){2,3}$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u66F2\u76EE\u65F6\u95F4",trigger:"blur"}]},{default:()=>[t(de,null,{default:()=>[t(Me,null,{default:()=>[l[0].measureIndex,d("\u5C0F\u8282\u5F00\u59CB")]}),t(X,{placeholder:"00:00:00",value:e.graduals[l[0].measureIndex],"onUpdate:value":m=>e.graduals[l[0].measureIndex]=m},null)]})]}),t("div",{style:{lineHeight:"30px",padding:"0 4px"}},[d("~")]),t(N,{path:`graduals.${l[1].measureIndex}`,rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5408\u594F\u66F2\u76EE\u65F6\u95F4"},{pattern:/^((\d{2}):?){2,3}$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u66F2\u76EE\u65F6\u95F4",trigger:"blur"}]},{default:()=>[t(de,null,{default:()=>[t(X,{placeholder:"00:00:00",value:e.graduals[l[1].measureIndex],"onUpdate:value":m=>e.graduals[l[1].measureIndex]=m},null),t(Me,null,{default:()=>[l[1].measureIndex,d("\u5C0F\u8282\u7ED3\u675F")]})]})]})]})))?i:{default:()=>[i]})]})]),e.musicSheetType=="SINGLE"&&e.playMode==="MP3"&&!e.isAllSubject&&e.musicSheetSoundList_YZ.map((l,r)=>t(le,null,[e.musicalInstrumentIdList.includes(l.musicalInstrumentId)&&t(A,{class:ee.audioSection},{default:()=>[t(T,{span:12,label:l.musicalInstrumentName,path:`musicSheetSoundList_YZ[${r}].audioFileUrl`,rule:[{required:!1,message:"\u8BF7\u4E0A\u4F20\u4E50\u5668\u6F14\u594F\u6587\u4EF6"}]},{default:()=>[t(W,{desc:"\u4E50\u5668\u6F14\u594F\u6587\u4EF6",disabled:s.previewMode,size:100,fileList:l.audioFileUrl,"onUpdate:fileList":m=>l.audioFileUrl=m,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",text:"\u70B9\u51FB\u4E0A\u4F20MP3\u6587\u4EF6",bucketName:"cloud-coach"},null)]})]})])),e.musicSheetType=="CONCERT"&&e.playMode==="MP3"&&e.musicSheetSoundList_YY.length>0&&t(le,null,[e.musicSheetSoundList_YY.map((l,r)=>{var m,x;return t(le,null,[(!p(l.track)||((x=(m=l.track)==null?void 0:m.toLocaleUpperCase)==null?void 0:x.call(m))!="COMMON"&&e.multiTracksSelection.includes(l.track))&&t(A,{class:ee.audioSection},{default:()=>[t(T,{span:12,label:"\u539F\u97F3",path:`musicSheetSoundList_YY[${r}].audioFileUrl`,rule:[{required:!0,message:`\u8BF7\u4E0A\u4F20${l.track?l.track+"\u7684":"\u7B2C"+(r+1)+"\u4E2A"}\u539F\u97F3`}]},{default:()=>[t(W,{desc:"\u539F\u97F3\u6587\u4EF6",disabled:s.previewMode,size:100,fileList:l.audioFileUrl,"onUpdate:fileList":b=>l.audioFileUrl=b,tips:"\u4EC5\u652F\u6301\u4E0A\u4F20.mp3\u683C\u5F0F\u6587\u4EF6",listType:"image",accept:".mp3",bucketName:"cloud-coach"},null)]}),s.partListNames.length>0&&t(T,{span:12,label:"\u6240\u5C5E\u8F68\u9053",path:`musicSheetSoundList_YY[${r}].track`,rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u6240\u5C5E\u8F68\u9053"}]},{default:()=>[t(P,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u8F68\u9053",value:l.track,options:I(l.track),onUpdateValue:b=>{const j=l.track;if(j){e.musicSheetSoundList_YY.forEach(Y=>{Y.track==b&&(Y.track=j)});const M=e.multiTracksSelection.indexOf(l.track);e.multiTracksSelection.splice(M,1)}else e.musicSheetSoundList_YY=e.musicSheetSoundList_YY.filter(M=>M.track!=b);b&&!e.multiTracksSelection.includes(b)&&e.multiTracksSelection.push(b),l.track=b}},null)]}),t(oe,{class:ee.btnRemove},{default:()=>[t(k,{type:"primary",text:!0,onClick:()=>O(r)},{default:()=>[d("\u5220\u9664")]})]})]})])})])]})]}),u.type!=="preview"&&t(R,{justify:"end",style:"padding-top:12px"},{default:()=>[t(k,{type:"default",onClick:()=>h("close")},{default:()=>[d("\u53D6\u6D88")]}),t(k,{type:"primary",onClick:()=>n(),loading:L.value,disabled:L.value},{default:()=>[d("\u786E\u8BA4")]})]}),t(te,{show:s.showMusicSheetOwnerDialog,"onUpdate:show":l=>s.showMusicSheetOwnerDialog=l,preset:"dialog",showIcon:!1,maskClosable:!1,title:"\u6240\u5C5E\u4EBA",style:{width:"800px"}},{default:()=>[t(Ot,{musicSheetExtend:e.musicSheetExtend,sourceType:e.sourceType,appData:s.appData,onClose:()=>{s.showMusicSheetOwnerDialog=!1},onChoseMusicSheetOwnerData:l=>{e.musicSheetExtend=E({},l),G()}},null)]}),t(te,{class:ee.productModal,title:"\u81EA\u52A8\u751F\u6210\u66F2\u8C31\u56FE\u7247",show:s.productOpen,"onUpdate:show":l=>s.productOpen=l,preset:"dialog",closeOnEsc:!1,maskClosable:!1,showIcon:!1},{default:()=>[t(Ve,{xmlFileUrl:e.xmlFileUrl||"",onClose:()=>s.productOpen=!1,onConfirm:l=>w(this,null,function*(){try{e.musicImg=l.musicImg,e.musicFirstImg=l.musicFirstImg,e.musicJianImg=l.musicJianImg,n()}catch(r){console.log(r,"e")}setTimeout(()=>{s.isAutoSave=!1},50)})},null)]})])}}});function Kt(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!ve(u)}const Gt=J({name:"use-project",props:{useProject:{type:Array,required:!0,default:[]},id:{type:String,required:!0,default:null}},emits:["close","getList"],setup(u,{emit:v}){const f=$(),h=K({musicSheetId:null,useApplicationIds:[],useProjectParamConfig:{}});ae(()=>{const c=h.useProjectParamConfig.GYM,g=["musicSheetCategoryId","paymentType"];for(let n=0;n<g.length;n++)if(c[g[n]])return!0;return!1}),ae(()=>{const c=h.useProjectParamConfig.KLX,g=["availableType","musicSheetCategoryId","paymentType","musicPrice","topFlag","exquisiteFlag"];for(let n=0;n<g.length;n++){const o=c[g[n]];if(o!=null&&o!=null&&o!="")return!0}return!1}),ae(()=>{const c=h.useProjectParamConfig.KT,g=["musicSheetCategoryId"];for(let n=0;n<g.length;n++)if(c[g[n]])return!0;return!1}),ae(()=>{const c=h.useProjectParamConfig.GYT,g=["musicSheetCategoryId"];for(let n=0;n<g.length;n++)if(c[g[n]])return!0;return!1});const e=K({loading:!1,musicSheetData:null,tabName:null,selectAppKey:[],selectAppName:[],appKeyNameMap:null,userProjectList:[],musicSheetCategoryOptions:{},musicSheetCanBeUsedProjectKey:[]}),s=$(!1),y=Z();Q(()=>w(this,null,function*(){e.loading=!0;const{data:c}=yield Oe({id:u.id});e.musicSheetData=c,c&&c.musicSheetExtend&&c.musicSheetExtend.useApplicationIds&&(h.useApplicationIds=c.musicSheetExtend.useApplicationIds.split(",")||[]);const g=Object.keys(Ie);u.useProject.forEach(p=>{const F=g.indexOf(p.appKey);let I=!1;F>-1&&e.userProjectList.push(z(E({},p),{disabled:I}))}),e.appKeyNameMap=new Map,e.userProjectList.forEach(p=>{h.useApplicationIds.includes(p.id)&&e.selectAppKey.push(p.appKey),e.appKeyNameMap.set(p.appKey,p.appName)}),e.selectAppKey.length>0&&(e.tabName=e.selectAppKey[0]);const n=[],o=new Map;u.useProject.forEach(p=>{n.push(p.id),o.set(p.id,p.appKey)}),e.loading=!1}));const L=$(),S=()=>w(this,null,function*(){L.value.validate(c=>w(this,null,function*(){var g;if(c){if(Array.isArray(c)&&c.length>0){const n=(g=c[0][0].field)==null?void 0:g.split(".")[1];n&&e.selectAppKey.includes(n)&&(e.tabName=n)}return}s.value=!0;try{const n=new Map;u.useProject.forEach(p=>{n.set(p.appKey,p.id)});const o={musicSheetId:u.id,useApplicationIds:h.useApplicationIds.join(",")};yield Qe(o),y.success("\u4FEE\u6539\u6210\u529F"),v("getList"),v("close")}catch(n){}s.value=!1}))});return()=>{let c;return t(ze,{show:e.loading},{default:()=>[t(be,{class:ee.formContainer,model:h,ref:L,"label-placement":"left","label-width":"85"},{default:()=>[t(N,{label:"\u9002\u7528\u5E94\u7528",path:"useApplicationIds",rule:[{required:!1,message:"\u8BF7\u9009\u62E9\u9002\u7528\u5E94\u7528"}]},{default:()=>[t(qe,{value:h.useApplicationIds,"onUpdate:value":g=>h.useApplicationIds=g,onUpdateValue:g=>{e.selectAppKey=[],e.userProjectList.forEach(n=>{g.includes(n.id)&&e.selectAppKey.push(n.appKey)}),e.selectAppKey.length==0?e.tabName="":e.tabName=e.selectAppKey[0],ht(()=>{var n;return(n=f.value)==null?void 0:n.syncBarPosition()})}},Kt(c=e.userProjectList.map(g=>t(Ke,{value:g.value},{default:()=>[g.label]})))?c:{default:()=>[c]})]})]}),t(R,{justify:"end",style:"margin-top: 10px"},{default:()=>[t(k,{type:"default",onClick:()=>v("close")},{default:()=>[d("\u53D6\u6D88")]}),t(k,{type:"primary",onClick:()=>S(),loading:s.value,disabled:s.value},{default:()=>[d("\u786E\u8BA4")]})]})]})}}}),$t="_productModal_35hv9_1",Vt="_productIframe_35hv9_9",Jt={productModal:$t,productIframe:Vt},Wt="_musiceBeatTime_khkvo_1",Xt="_tit_khkvo_10",Ht="_iframe_khkvo_18",me={musiceBeatTime:Wt,tit:Xt,iframe:Ht},Zt=J({name:"musiceBeatTime",props:{id:{type:String}},emits:["close"],setup(u,{emit:v}){const f=Z();Q(()=>{window.addEventListener("message",h)}),Ye(()=>{window.removeEventListener("message",h)});function h(p){const F=p.data;(F==null?void 0:F.api)==="webApi_beatTimes"&&(s.value=!1,e(F))}function e(p){return w(this,null,function*(){try{const{beatTime:F,singBeatTime:I,mingBeatTime:C}=JSON.parse(p.data);yield et({id:u.id,playTimeList:F,singTimeList:I,solmizationTimeList:C}),f.success("\u751F\u6210\u6210\u529F"),v("close")}catch(F){console.log("\u{1F680} ~ \u97F3\u9891\u5408\u6210\u5931\u8D25",F),f.error("\u751F\u6210\u5931\u8D25"),v("close")}})}const s=$(!0),L=ft().getToken,S={dev:"https://dev.kt.colexiu.com",test:"https://test.lexiaoya.cn",online:"https://mec.colexiu.com"},c=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec.colexiu")?"online":"dev",g=S[c];let o=(/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com/":g)+`/instrument/?_t=${Date.now()}&id=${u.id}&Authorization=${L}&isCbs=true&isbeatTimes=true&musicRenderType=staff`;return()=>t("div",{class:me.musiceBeatTime},[t("div",{class:me.tit},[d("\u8282\u62CD\u5668\u97F3\u9891\u751F\u6210\u4E2D...")]),s.value&&t("iframe",{class:me.iframe,width:"667px",height:"375px",frameborder:"0",src:o},null)])}});function pe(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!ve(u)}const Qt=J({name:"music-list",props:["searchId","musicCategoryId"],setup(u,{emit:v}){const f=Se(),h=Z(),e=K({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{keyword:null,musicSheetType:null,subjectId:null,sourceType:null,composer:null,userId:null,applicationId:null,useAppId:[],status:null,appAuditFlag:null,categoriesId:null,musicCategoryId:null,musicalInstrumentId:null,dataCorrect:null},dataList:[],subjectList:[],instrumentList:[],tagList:[],visiableMusic:!1,musicOperation:"add",musicData:{},musicSheetCategories:[],musicPreview:!1,musicPreviewScoreType:"staff",musicScore:null,showUseProject:!1,useProjectData:[],showUseProjectId:null,detailReadonly:!1,userIdDisable:!0,userIdData:[],productOpen:!1,beatTimeOpen:!1,productItem:{}}),s=()=>[{type:"selection"},{title:"\u66F2\u76EE\u540D\u79F0",minWidth:"200px",key:"id",render(a){return t(re,{labelPlacement:"left",column:1},{default:()=>[t(V,{label:"\u540D\u79F0"},{default:()=>[t(ue,{content:a.name},null)]}),t(V,{label:"\u7F16\u53F7"},{default:()=>[t("div",{onDblclick:()=>{kt(h,a.id)}},[t(ue,{content:a.id},null)])]})]})}},{title:"\u5C01\u9762\u56FE",key:"titleImg",render(a){return t(yt,{width:60,height:60,src:a.musicCover},null)}},{title:"\u66F2\u76EE\u4FE1\u606F",minWidth:"200px",key:"composer",render(a){let i;return t(re,{labelPlacement:"left",column:1},{default:()=>[t(V,{label:"\u97F3\u4E50\u4EBA"},{default:()=>[a.composer]}),t(V,{label:"\u8C31\u9762\u6E32\u67D3"},pe(i=Ae(a.musicSheetType,new Map(Object.entries(Ee))))?i:{default:()=>[i]}),t(V,{label:"\u5206\u7C7B"},{default:()=>[t(ue,{content:a.musicCategoryName},null)]}),t(V,{label:"\u53EF\u7528\u58F0\u90E8"},{default:()=>[t(ue,{content:a.subjectNames},null)]})]})}},{title:"\u4F5C\u8005\u5C5E\u6027",minWidth:"250px",key:"sourceType",render(a){let i,l;return t(re,{labelPlacement:"left",column:1},{default:()=>[t(V,{label:"\u5C5E\u6027"},pe(i=Ae(a.sourceType,new Map(Object.entries(fe))))?i:{default:()=>[i]}),t(V,{label:"\u6240\u5C5E\u4EBA"},pe(l=Ut(a.musicSheetExtend,a.sourceType))?l:{default:()=>[l]})]})}},{title:"\u9002\u7528\u9879\u76EE",key:"projectName",render(a){return t(R,null,{default:()=>[B(t(k,{type:"primary",size:"small",text:!0,onClick:()=>{e.showUseProject=!0,e.showUseProjectId=a.id}},{default:()=>[t(ue,{content:a.musicSheetExtend&&a.musicSheetExtend.useApplicationNames?a.musicSheetExtend.useApplicationNames:""},null),t(bt,{size:15,style:"padding-left: 9px"},{default:()=>[t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[t("path",{d:"M2 26h28v2H2z",fill:"currentColor"},null),t("path",{d:"M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z",fill:"currentColor"},null)])]})]}),[[_("auth"),"musicSheetApplicationExtend/save1752901206883221506"]])]})}},{title:"\u66F4\u65B0\u4FE1\u606F",minWidth:"250px",key:"updateBy",render(a){return t(re,{labelPlacement:"left",column:1},{default:()=>[t(V,{label:"\u66F4\u65B0\u4EBA"},{default:()=>[a.updateByName]}),t(V,{label:"\u66F4\u65B0\u65F6\u95F4"},{default:()=>[a.updateTime]})]})}},{title:"\u5BA1\u6838\u7248\u672C",minWidth:"100px",key:"appAuditFlag",render(a){return t("div",null,[a.appAuditFlag?"\u662F":"\u5426"])}},{title:"\u72B6\u6001",minWidth:"50px",key:"status",render(a){return t(St,{type:a.status?"primary":"default"},{default:()=>[a.status?"\u542F\u7528":"\u505C\u7528"]})}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",width:"300px",render(a){return t(R,null,{default:()=>[t(vt,{trigger:"hover",options:[{label:"\u4E94\u7EBF\u8C31",key:"staff"},{label:"\u9996\u8C03",key:"firstTone"},{label:"\u56FA\u5B9A\u8C03",key:"fixedTone"}],onSelect:i=>{e.musicPreview=!0,e.musicScore=a,e.musicPreviewScoreType=i}},{default:()=>[t(k,{type:"primary",size:"small",text:!0,onClick:i=>i.stopPropagation()},{default:()=>[d("\u9884\u89C8")]})]}),B(t(k,{type:"primary",size:"small",text:!0,onClick:()=>{e.visiableMusic=!0,e.musicOperation="preview",e.musicData=a,e.detailReadonly=!0}},{default:()=>[d("\u67E5\u770B")]}),[[_("auth"),"musicSheet/detail1751241103201271810"]]),B(t(k,{type:"primary",size:"small",text:!0,onClick:()=>{e.visiableMusic=!0,e.musicOperation="edit",e.musicData=a,e.detailReadonly=!0}},{default:()=>[d("\u4FEE\u6539")]}),[[_("auth"),"musicSheet/save1751241178962984962"]]),B(t(k,{type:"primary",size:"small",text:!0,onClick:()=>L(a)},{default:()=>[a.status?"\u505C\u7528":"\u542F\u7528"]}),[[_("auth"),"musicSheet/statusList1751241653309407234"]]),B(t(k,{type:"primary",size:"small",text:!0,onClick:()=>{e.productOpen=!0,e.productItem=a}},{default:()=>[d("\u751F\u6210\u56FE\u7247")]}),[[_("auth"),"musicSheet/img1751240591299051522"]]),t(k,{type:"primary",size:"small",text:!0,onClick:()=>{e.productItem=a,e.beatTimeOpen=!0}},{default:()=>[d("\u751F\u6210\u8282\u62CD\u5668\u97F3\u9891")]}),B(t(k,{type:"primary",size:"small",text:!0,disabled:!!a.status,onClick:()=>g(a)},{default:()=>[d("\u5220\u9664")]}),[[_("auth"),"musicSheet/remove1753457445635645442"]])]})}}],y=$([]),L=a=>{const i=a.status?"\u505C\u7528":"\u542F\u7528";f.warning({title:"\u63D0\u793A",content:`\u662F\u5426${i}\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>w(this,null,function*(){try{yield xe({ids:new Array(a.id),status:!a.status}),n(),h.success(`${i}\u6210\u529F`)}catch(l){}})})},S=a=>{const i=y.value.length;i==0&&h.warning("\u672A\u9009\u62E9\u6570\u636E");const l=a?"\u542F\u7528":"\u505C\u7528";f.warning({title:"\u63D0\u793A",content:`\u662F\u5426${l}`+i+"\u6761\u6570\u636E\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>w(this,null,function*(){try{yield xe({ids:y.value,status:a}),n(),h.success(`${l}\u6210\u529F`)}catch(r){}})})},c=a=>w(this,null,function*(){if(!!e.searchForm.applicationId&&(e.userIdData=[],e.searchForm.userId=null,a&&a!=="PLATFORM")){const{data:i}=yield _e({page:1,rows:9999,sourceType:a,applicationId:e.searchForm.applicationId});(i.rows||[]).forEach(r=>{e.userIdData.push(z(E({},r),{label:a==="PERSON"?r.userName:r.organizationRole,value:a==="PERSON"?r.userId:r.organizationRoleId}))})}}),g=a=>{f.warning({title:"\u63D0\u793A",content:`\u5220\u9664"${a.name}"\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>w(this,null,function*(){try{yield lt({id:a.id}),n(),h.success("\u5220\u9664\u6210\u529F")}catch(i){}})})},n=()=>w(this,null,function*(){try{e.loading=!0;const a=e.searchForm.sourceType,i=e.searchForm.userId;let l=z(E({},e.searchForm),{useAppId:e.searchForm.useAppId?e.searchForm.useAppId.join(","):e.searchForm.useAppId});a&&a=="ORG"&&(l.organizationRoleId=i,l.userId=null);const{data:r}=yield at(E(E({},e.pagination),l));e.pagination.pageTotal=Number(r.total),e.dataList=r.rows||[]}catch(a){}e.loading=!1}),o=()=>w(this,null,function*(){try{const{data:a}=yield ye({});e.musicSheetCategories=a||[],p(e.musicSheetCategories)}catch(a){}}),p=a=>{for(let i=0;i<a.length;i++)a[i].musicSheetCategoriesList.length<1?a[i].musicSheetCategoriesList=null:p(a[i].musicSheetCategoriesList)},F=()=>w(this,null,function*(){try{const{data:a}=yield Ct({page:1,rows:999}),i=a.rows||[];i.forEach(l=>{l.label=l.name,l.value=l.id+""}),e.subjectList=i}catch(a){}}),I=()=>w(this,null,function*(){try{const{data:a}=yield ne({page:1,rows:999}),i=a.rows||[];i.forEach(l=>{l.label=l.name,l.value=l.id+""}),e.instrumentList=i}catch(a){}}),C=()=>w(this,null,function*(){try{const a=Object.keys(Ie),{data:i}=yield Ge({page:1,rows:999}),l=i.rows||[];e.useProjectData=[],l.filter(m=>a.includes(m.appKey)).forEach(m=>{e.useProjectData.push(z(E({},m),{label:m.appName,value:m.id}))})}catch(a){}}),O=$(),D=()=>{e.pagination.page=1,n()};gt(()=>u.searchId,a=>{console.log(a,"searchId")});const G=()=>{var a;y.value=[],(a=O.value)==null||a.submit()},H=()=>{var a;(a=O.value)==null||a.reset()};return Q(()=>w(this,null,function*(){e.loading=!0,u.searchId&&(e.searchForm.categoriesId=u.searchId||null),u.musicCategoryId&&(e.searchForm.musicCategoryId=u.musicCategoryId||null),F(),I(),C(),o(),n()})),()=>t("div",{class:"system-menu-container"},[t(je,{ref:O,model:e.searchForm,onSubmit:D,saveKey:"music-list",onSetModel:a=>e.searchForm=a},{default:()=>[t(N,{label:"\u5173\u952E\u8BCD",path:"keyword"},{default:()=>[t(X,{placeholder:"\u66F2\u76EE\u7F16\u53F7/\u540D\u79F0",value:e.searchForm.keyword,"onUpdate:value":a=>e.searchForm.keyword=a,clearable:!0},null)]}),t(N,{label:"\u8C31\u9762\u6E32\u67D3",path:"musicSheetType"},{default:()=>[t(P,{placeholder:"\u8BF7\u9009\u62E9\u8C31\u9762\u6E32\u67D3",value:e.searchForm.musicSheetType,"onUpdate:value":a=>e.searchForm.musicSheetType=a,options:ge(Ee),clearable:!0},null)]}),t(N,{label:"\u66F2\u76EE\u5206\u7C7B",path:"musicCategoryId"},{default:()=>[t(Le,{valueField:"id",labelField:"name","children-field":"musicSheetCategoriesList",placeholder:"\u8BF7\u9009\u62E9\u66F2\u76EE\u5206\u7C7B",value:e.searchForm.musicCategoryId,"onUpdate:value":a=>e.searchForm.musicCategoryId=a,options:e.musicSheetCategories,clearable:!0},null)]}),t(N,{label:"\u53EF\u7528\u58F0\u90E8",path:"musicSubject"},{default:()=>[t(P,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u58F0\u90E8",value:e.searchForm.subjectId,"onUpdate:value":a=>e.searchForm.subjectId=a,options:e.subjectList,filterable:!0,clearable:!0},null)]}),t(N,{label:"\u53EF\u7528\u4E50\u5668",path:"musicalInstrumentId"},{default:()=>[t(P,{placeholder:"\u8BF7\u9009\u62E9\u53EF\u7528\u4E50\u5668",value:e.searchForm.musicalInstrumentId,"onUpdate:value":a=>e.searchForm.musicalInstrumentId=a,options:e.instrumentList,filterable:!0,clearable:!0},null)]}),t(N,{label:"\u97F3\u4E50\u4EBA",path:"composer"},{default:()=>[t(X,{placeholder:"\u8BF7\u9009\u62E9\u97F3\u4E50\u4EBA",value:e.searchForm.composer,"onUpdate:value":a=>e.searchForm.composer=a,clearable:!0},null)]}),t(N,{label:"\u4F5C\u8005\u5C5E\u6027",path:"sourceType"},{default:()=>[t(P,{placeholder:"\u8BF7\u9009\u62E9\u4F5C\u8005\u5C5E\u6027",value:e.searchForm.sourceType,"onUpdate:value":a=>e.searchForm.sourceType=a,options:ge(fe),onUpdateValue:a=>w(this,null,function*(){e.userIdData=[],e.searchForm.userId=null,a&&a!=="PLATFORM"?(yield c(a),e.userIdDisable=!e.searchForm.applicationId):e.userIdDisable=!0}),clearable:!0},null)]}),t(N,{label:"\u6240\u5C5E\u9879\u76EE",path:"applicationId"},{default:()=>[t(P,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u9879\u76EE",value:e.searchForm.applicationId,"onUpdate:value":a=>e.searchForm.applicationId=a,options:e.useProjectData,clearable:!0,onUpdateValue:a=>w(this,null,function*(){e.searchForm.applicationId=a,a?(yield c(e.searchForm.sourceType),e.userIdDisable=!(e.searchForm.sourceType&&e.searchForm.sourceType!=="PLATFORM")):(e.searchForm.userId=null,e.userIdDisable=!0,e.userIdData=[])})},null)]}),t(N,{label:"\u6240\u5C5E\u4EBA",path:"userId"},{label:()=>t("div",null,[d("\u6240\u5C5E\u4EBA")]),default:()=>t(P,{filterable:!0,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EBA",disabled:e.userIdDisable||!e.searchForm.applicationId&&!e.searchForm.sourceType,value:e.searchForm.userId,"onUpdate:value":a=>e.searchForm.userId=a,options:e.userIdData,clearable:!0},null)}),t(N,{label:"\u9002\u7528\u9879\u76EE",path:"useAppId"},{default:()=>[t(P,{placeholder:"\u8BF7\u9009\u62E9\u9002\u7528\u9879\u76EE",value:e.searchForm.useAppId,"onUpdate:value":a=>e.searchForm.useAppId=a,options:e.useProjectData,multiple:!0,maxTagCount:1},null)]}),t(N,{label:"\u72B6\u6001",path:"status"},{default:()=>[t(P,{value:e.searchForm.status,"onUpdate:value":a=>e.searchForm.status=a,placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:!0,options:[{label:"\u542F\u7528",value:!0},{label:"\u505C\u7528",value:!1}]},null)]}),t(N,{label:"\u5BA1\u6838\u7248\u672C",path:"appAuditFlag"},{default:()=>[t(P,{value:e.searchForm.appAuditFlag,"onUpdate:value":a=>e.searchForm.appAuditFlag=a,placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u7248\u672C",clearable:!0,options:[{label:"\u662F",value:1},{label:"\u5426",value:0}]},null)]}),t(N,{label:"\u6570\u636E\u4FEE\u590D",path:"dataCorrect"},{default:()=>[t(P,{value:e.searchForm.dataCorrect,"onUpdate:value":a=>e.searchForm.dataCorrect=a,placeholder:"\u8BF7\u9009\u62E9\u6570\u636E\u4FEE\u590D",clearable:!0,options:[{label:"\u662F",value:!0},{label:"\u5426",value:!1}]},null)]}),t(N,null,{default:()=>[t(R,null,{default:()=>[t(k,{type:"primary",onClick:G},{default:()=>[d("\u641C\u7D22")]}),t(k,{type:"default",onClick:H},{default:()=>[d("\u91CD\u7F6E")]})]})]})]}),t("div",{class:["section-container"]},[t(R,{style:{paddingBottom:"12px"}},{default:()=>[B(t(k,{type:"primary",onClick:()=>{e.visiableMusic=!0,e.musicOperation="add",e.musicData={},e.detailReadonly=!0}},{default:()=>[d("\u65B0\u589E\u66F2\u76EE")]}),[[_("auth"),"musicSheet/save1751241178962984962"]]),B(t(k,{disabled:y.value.length==0,onClick:()=>{S(!1)}},{default:()=>[d("\u6279\u91CF\u505C\u7528")]}),[[_("auth"),"musicSheet/statusList1751241653309407234"]]),B(t(k,{disabled:y.value.length==0,onClick:()=>{S(!0)}},{default:()=>[d("\u6279\u91CF\u542F\u7528")]}),[[_("auth"),"musicSheet/statusList1751241653309407234"]])]}),t(ce,{loading:e.loading,columns:s(),data:e.dataList,rowKey:a=>a.id,checkedRowKeys:y.value,"onUpdate:checkedRowKeys":a=>y.value=a,scrollX:"1200"},null),t(Be,{page:e.pagination.page,"onUpdate:page":a=>e.pagination.page=a,pageSize:e.pagination.rows,"onUpdate:pageSize":a=>e.pagination.rows=a,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":a=>e.pagination.pageTotal=a,onList:n,sync:!0,saveKey:"music-list"},null)]),t(te,{show:e.visiableMusic,"onUpdate:show":a=>e.visiableMusic=a,preset:"dialog",showIcon:!1,maskClosable:!1,title:()=>e.musicOperation==="add"?"\u6DFB\u52A0\u66F2\u76EE":e.musicOperation==="preview"?"\u66F2\u76EE\u8BE6\u60C5":"\u4FEE\u6539\u66F2\u76EE",style:{width:"980px"}},{default:()=>[t(qt,{type:e.musicOperation,data:e.musicData,subjectList:e.subjectList,onClose:()=>e.visiableMusic=!1,onGetList:n},null)]}),t(te,{blockScroll:!0,show:e.musicPreview,"onUpdate:show":a=>e.musicPreview=a,preset:"dialog",showIcon:!1,title:"\u66F2\u76EE\u9884\u89C8",style:{width:"auto"}},{default:()=>[t(xt,{item:e.musicScore,isMove:1,scoreType:e.musicPreviewScoreType},null)]}),t(te,{blockScroll:!0,show:e.showUseProject,"onUpdate:show":a=>e.showUseProject=a,preset:"dialog",showIcon:!1,title:"\u9002\u7528\u9879\u76EE",style:{width:"500px"}},{default:()=>[t(Gt,{id:e.showUseProjectId,useProject:e.useProjectData,onClose:()=>e.showUseProject=!1,onGetList:n},null)]}),t(te,{class:Jt.productModal,title:"\u81EA\u52A8\u751F\u6210\u66F2\u8C31\u56FE\u7247",show:e.productOpen,"onUpdate:show":a=>e.productOpen=a,preset:"dialog",closeOnEsc:!1,maskClosable:!1,showIcon:!1},{default:()=>[t(Ve,{xmlFileUrl:e.productItem.xmlFileUrl,onClose:()=>e.productOpen=!1,onConfirm:a=>w(this,null,function*(){try{yield tt(z(E({},a),{id:e.productItem.id}))}catch(i){}})},null)]}),e.beatTimeOpen&&t(Zt,{id:e.productItem.id,onClose:()=>{e.beatTimeOpen=!1}},null)])}}),ea=J({emits:["close","getList"],props:["actvieRow","saveMode","list"],name:"save-categroy-dialog",setup(u,{emit:v}){const f=Z(),h=$(),e=$([{name:"\u9876\u7EA7\u5206\u7C7B",id:0},...$e(u.list,"musicSheetCategoriesList")]),s=K({loading:!1,dataList:[],btnLoading:!1}),y=K({id:"",name:"",enable:!0,parentId:"0"}),L=()=>w(this,null,function*(){var S;(S=h.value)==null||S.validate(c=>w(this,null,function*(){if(!c){s.btnLoading=!0;try{if(u.saveMode==="add"){const{data:g}=yield st(E({},y));v("getList"),f.success("\u6DFB\u52A0\u6210\u529F")}else{const{data:g}=yield it(E({},y));v("getList"),f.success("\u4FEE\u6539\u6210\u529F")}}catch(g){}s.btnLoading=!1}}))});return Q(()=>{if(u.saveMode==="add")u.actvieRow&&u.actvieRow.id&&(y.parentId=(u==null?void 0:u.actvieRow.id)+"");else for(let S in u==null?void 0:u.actvieRow)y[S]=u==null?void 0:u.actvieRow[S]}),()=>t("div",null,[t(be,{ref:h,model:y},{default:()=>[u.saveMode==="add"&&u.actvieRow&&t(N,{label:"\u7236\u7EA7\u5206\u7C7B",path:"parentId"},{default:()=>[t(Le,{placeholder:"\u8BF7\u9009\u62E9\u7236\u7EA7\u5206\u7C7B",value:y.parentId,"onUpdate:value":S=>y.parentId=S,options:e.value,checkStrategy:"all",expandTrigger:"hover",childrenField:"musicSheetCategoriesList",valueField:"id",labelField:"name",disabled:!0},null)]}),t(N,{label:"\u5206\u7C7B\u540D\u79F0",rule:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",trigger:["blur","input"]}],path:"name"},{default:()=>[t(X,{value:y.name,"onUpdate:value":S=>y.name=S,placeholder:"\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",maxlength:25,showCount:!0,clearable:!0},null)]})]}),t(R,{justify:"end"},{default:()=>[t(k,{type:"default",onClick:()=>v("close")},{default:()=>[d("\u53D6\u6D88")]}),t(k,{type:"primary",onClick:()=>L(),loading:s.btnLoading,disabled:s.btnLoading},{default:()=>[d("\u786E\u8BA4")]})]})])}}),ta=J({emits:["setTabName","jump"],name:"music-category",setup(u,{slots:v,attrs:f,emit:h}){const e=K({loading:!1,pagination:{page:1,rows:10},dataList:[],showSaveDialog:!1,saveMode:"add",saveRowData:null}),s=Se(),y=Z(),L=()=>w(this,null,function*(){try{e.loading=!0;const o={page:e.pagination.page,rows:e.pagination.rows},{data:p}=yield ye(o);e.dataList=p||[]}catch(o){}e.loading=!1});Q(()=>{L()});const S=o=>{h("jump",o)},c=()=>[{title:"\u5206\u7C7B\u540D\u79F0",key:"id",render(o){return o.name+"("+o.id+")"}},{title:"\u66F2\u76EE\u6570\u91CF",key:"musicSheetNum",render(o){return t("div",null,[t(k,{type:"primary",size:"small",text:!0,onClick:()=>{S({tabName:"MusicList",musicCategoryId:o.id})}},{default:()=>[o.musicSheetNum]})])}},{title:"\u6700\u540E\u66F4\u65B0\u65F6\u95F4",key:"updateTime"},{title:"\u66F4\u65B0\u4EBA",key:"operatorName"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(o){return t(R,null,{default:()=>[B(t(k,{type:"error",size:"small",text:!0,onClick:()=>n(o)},{default:()=>[d("\u5220\u9664")]}),[[_("auth"),"musicSheetCategories/remove1751239397398806530"]]),B(t(k,{type:"primary",size:"small",text:!0,onClick:()=>{e.saveRowData=o,e.saveMode="edit",e.showSaveDialog=!0}},{default:()=>[d("\u4FEE\u6539")]}),[[_("auth"),"musicSheetCategories/update1751239533856292866"]]),B(t(k,{type:"primary",size:"small",text:!0,onClick:()=>{e.saveRowData=o,e.showSaveDialog=!0,e.saveMode="add"}},{default:()=>[d("\u6DFB\u52A0\u5B50\u5206\u7C7B")]}),[[_("auth"),"musicSheetCategories/save1751239479284203521"]])]})}}],g=()=>{e.pagination.page=1,L()},n=o=>w(this,null,function*(){s.warning({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664'"+o.name+"'?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>w(this,null,function*(){(yield ut(o.id)).data&&(g(),y.success("\u5220\u9664\u6210\u529F"))})})});return()=>t("div",{class:"system-menu-container"},[t("div",{class:["section-container"]},[t(R,{style:{paddingBottom:"12px"}},{default:()=>[B(t(k,{type:"primary",onClick:()=>{e.saveMode="add",e.showSaveDialog=!0,e.saveRowData=null}},{default:()=>[d("\u65B0\u589E\u5206\u7C7B")]}),[[_("auth"),"musicSheetCategories/save1751239479284203521"]])]}),t(ce,{loading:e.loading,columns:c(),data:e.dataList,rowKey:o=>o.id,childrenKey:"musicSheetCategoriesList"},null)]),t(te,{show:e.showSaveDialog,"onUpdate:show":o=>e.showSaveDialog=o,preset:"dialog",showIcon:!1,title:e.saveRowData?"\u4FEE\u6539\u5206\u7C7B":"\u65B0\u589E\u5206\u7C7B",style:{width:"400px"}},{default:()=>[t(ea,{onGetList:()=>{e.showSaveDialog=!1,L()},onClose:()=>{e.showSaveDialog=!1},list:e.dataList,saveMode:e.saveMode,actvieRow:e.saveRowData},null)]})])}}),Na=J({name:"music-sheet",setup(){const u=K({tabName:"MusicList",searchId:null,musicCategoryId:null}),v=It();Nt(e=>{e.form.tabName&&(u.tabName=e.form.tabName)});const f=e=>{console.log("setTabName",e),u.tabName=e.tabName,u.searchId=e.id},h=e=>{Et(e,"tabName",v)};return()=>t("div",{class:"system-menu-container"},[t("div",{class:["section-container"],style:"padding-top: 0"},[t(Lt,{type:"line",size:"large",value:u.tabName,"onUpdate:value":[e=>u.tabName=e,e=>h(e)]},{default:()=>[B(t(Ne,{name:"MusicList",tab:"\u66F2\u76EE\u5217\u8868"},{default:()=>[t(Qt,{searchId:u.searchId,musicCategoryId:u.musicCategoryId},null)]}),[[_("auth"),"musicSheet/page1751238894313013249"]]),B(t(Ne,{name:"CategroryList",tab:"\u66F2\u76EE\u5206\u7C7B"},{default:()=>[t(ta,{onSetTabName:f,onJump:e=>{u.tabName=e.tabName,u.musicCategoryId=e.musicCategoryId}},null)]}),[[_("auth"),"musicSheetCategories/queryTree1751238805699952641"]])]})])])}});export{Na as default};