1 |
- import{ab as t,d as u,b as m,i as r}from"./index.08244cd9.js";import{a as l}from"./objectUtil.ec24ceed.js";import{c as d}from"./constant.ded25e36.js";const v=e=>t({url:"/cbs-app/musicSheet/page",method:"post",data:e}),f=e=>t({url:"/cbs-app/musicSheet/save",method:"post",data:e}),A=e=>t({url:"/cbs-app/musicSheet/img",method:"post",data:e}),x=e=>t({url:"/cbs-app/musicSheet/remove",method:"post",data:e,requestType:"form"}),y=e=>t({url:"/cbs-app/musicSheet/detail/"+e.id,method:"get",requestType:"form"}),C=e=>t({url:"/cbs-app/musicSheet/statusList",method:"post",data:e}),N=e=>t({url:"/cbs-app/musicSheet/pageByApplication",method:"post",data:e}),w=e=>t({url:"/cbs-app/musicSheetCategories/queryTree",method:"get",data:e,params:e}),L=e=>t({url:"/cbs-app/musicSheetCategories/save",method:"post",data:e}),T=e=>t({url:"/cbs-app/musicSheetCategories/update",method:"post",data:e}),E=e=>t({url:"/cbs-app/musicSheetCategories/remove?id="+e,method:"post"}),M=e=>t({url:"/cbs-app/musicSheetApplicationExtend/ownerList",method:"post",data:e}),R=e=>t({url:"/cbs-app/musicSheetApplicationExtend/save",method:"post",data:e}),O=e=>t({url:"/cbs-app/musicSheetApplicationExtend/categoryList",method:"post",data:e}),P=e=>t({url:"/cbs-app/musicSheetApplicationExtend/tagList",method:"post",data:e}),k=e=>t({url:"/cbs-app/musicSheetApplicationExtend/applicationExtendInfo",method:"post",data:e}),q=e=>t({url:"/cbs-app/musicSheetApplicationExtend/saveBatch",method:"post",data:e}),B=e=>t({url:"/cbs-app/musicSheetApplicationExtend/update",method:"post",data:e}),U=e=>t({url:"/cbs-app/musicSheetApplicationExtend/status",method:"post",data:e}),j=u({name:"musicPreView",props:{item:{type:Object,default:()=>{}},isMove:{type:Number,default:0,required:!1}},setup(e,{emit:o}){const i=m().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",n=s[c];let p=(/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com/":n)+`/instrument/?_t=${Date.now()}&id=${e.item.id}&modelType=practise&modeType=json&Authorization=${i}&isCbs=true`;return p=e.isMove==1?p+"&isMove=1":p,()=>r("div",null,[r("iframe",{width:"667px",height:"375px",frameborder:"0",src:p},null)])}}),z=(e,o)=>{if(o=="PLATFORM")return"--";let a="";if(e){const i=e.applicationName;if(o=="ORG"){const s=e.organizationRole?"-"+e.organizationRole:"";a+=i+s}else if(o=="PERSON"){e!=null&&e.userName&&(a=e.userName);let s=l(e.clientType,new Map(Object.entries(d)));s=s?"-"+s:"",a+=" ("+i+s+")"}}return a};export{j as M,w as a,y as b,f as c,R as d,A as e,C as f,v as g,z as h,x as i,L as j,T as k,E as l,M as m,O as n,q as o,k as p,B as q,N as r,U as s,P as t};
|