1 |
- import{ab as t,d as u,b as m,i as c}from"./index.fd264fea.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}),A=e=>t({url:"/cbs-app/musicSheet/save",method:"post",data:e}),f=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}),E=e=>t({url:"/cbs-app/musicSheet/pageByApplication",method:"post",data:e}),N=e=>t({url:"/cbs-app/musicSheetCategories/queryTree",method:"get",data:e,params:e}),w=e=>t({url:"/cbs-app/musicSheetCategories/save",method:"post",data:e}),L=e=>t({url:"/cbs-app/musicSheetCategories/update",method:"post",data:e}),T=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=e=>t({url:"/cbs-app/musicSheetApplicationExtend/del/"+e,method:"post"}),z=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"},n=location.origin.includes("//dev")?"dev":location.origin.includes("//test")?"test":location.origin.includes("//mec.colexiu")?"online":"dev",r=s[n];let p=(/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com/":r)+`/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,()=>c("div",null,[c("iframe",{width:"667px",height:"375px",frameborder:"0",src:p},null)])}}),V=(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{z as M,N as a,y as b,A as c,R as d,f as e,C as f,v as g,V as h,x as i,w as j,L as k,T as l,M as m,O as n,q as o,k as p,B as q,E as r,U as s,j as t,P as u};
|