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