index-legacy-b0077b72.js 2.6 KB

1
  1. System.register(["./index-legacy-30222f26.js","./state-legacy-a8c46e96.js"],(function(e,t){"use strict";var r,a,o,i,n,l,s,_,d,u,v,c,w=document.createElement("style");return w.textContent="._wrap_rryzt_1{width:100%;height:100%;background-color:#fff;border-radius:.78125vw}._wrap_rryzt_1 iframe{width:100%;height:100%;border:none}._previewWindow_rryzt_12{width:100vw;height:100vh}._previewWindow_rryzt_12 ._previewIframe_rryzt_16{width:100vw;height:100vh;background-color:#fff}._removeVisiable_rryzt_21{width:22.5vw}._removeVisiable_rryzt_21 .n-card-header{font-size:max(1.14583333rem,16Px)}._removeVisiable_rryzt_21 ._studentRemove_rryzt_27{padding:1.04166667vw 2.08333333vw 0}._removeVisiable_rryzt_21 ._studentRemove_rryzt_27 p{font-size:max(.9375rem,14Px);color:#777;line-height:1.5625vw;text-align:center}._removeVisiable_rryzt_21 ._studentRemove_rryzt_27 p span{color:#ea4132}._removeVisiable_rryzt_21 ._btnGroupModal_rryzt_39{padding:1.66666667vw 0}._removeVisiable_rryzt_21 ._btnGroupModal_rryzt_39 .n-button{height:2.44791667vw;min-width:8.125vw}\n",document.head.appendChild(w),{setters:[e=>{r=e.d,a=e.r,o=e.c,i=e.e,n=e.n,l=e.f,s=e.t,_=e.A,d=e.k,u=e.v,v=e.j},e=>{c=e.s}],execute:function(){const t="_wrap_rryzt_1",w="_previewWindow_rryzt_12",p="_previewIframe_rryzt_16",h="_removeVisiable_rryzt_21",y="_studentRemove_rryzt_27",m="_btnGroupModal_rryzt_39";e("default",r({name:"notation-a",setup(){const e=a(!1),r=a(!1),f=a({}),z=a(!1),g=o().getToken||"",b=a();console.log(g);const x=i({src:`${/(192|localhost)/.test(location.origin)?"http://localhost:3050":location.origin}/notation/#/create?Authorization=${g}`}),V=t=>{console.log(t.data,"data"),"notation_open"===t.data.api?c.application?(e.value=!0,r.value=!0,f.value={url:t.data.url}):window.open(t.data.url):"notation_exit"===t.data.api&&(z.value=!0)};return n((()=>{window.addEventListener("message",V)})),()=>l("div",{class:t},[l("iframe",{ref:b,src:x.src},null),l(s,{show:r.value,"onUpdate:show":e=>r.value=e,class:w,showIcon:!1,displayDirective:"show"},{default:()=>[l(_,{show:e.value,style:"--n-opacity-spinning: 1;"},{default:()=>[l("iframe",{class:p,onLoad:()=>{e.value=!1},frameborder:"0",src:f.value.url},null)]})]}),l(s,{show:z.value,"onUpdate:show":e=>z.value=e,preset:"card",class:["modalTitle",h],title:"退出制谱"},{default:()=>[l("div",{class:y},[l("p",null,[d("是否退出制谱功能?")]),l(u,{class:m,justify:"center"},{default:()=>[l(v,{round:!0,type:"primary",onClick:()=>{r.value=!1,f.value.url="",z.value=!1,b.value.contentWindow.postMessage({api:"reload"},"*")}},{default:()=>[d("确定")]}),l(v,{round:!0,onClick:()=>z.value=!1},{default:()=>[d("取消")]})]})])]})])}}))}}}));