index-legacy-2d59ebcf.js 2.6 KB

1
  1. System.register(["./index-legacy-c6234cef.js","./state-legacy-eeb879a6.js"],(function(e,t){"use strict";var r,a,o,i,n,l,s,_,d,u,v,c;return{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(){var t=document.createElement("style");t.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(t);const w="_wrap_rryzt_1",p="_previewWindow_rryzt_12",h="_previewIframe_rryzt_16",y="_removeVisiable_rryzt_21",m="_studentRemove_rryzt_27",f="_btnGroupModal_rryzt_39";e("default",r({name:"notation-a",setup(){const e=a(!1),t=a(!1),r=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=a=>{console.log(a.data,"data"),"notation_open"===a.data.api?c.application?(e.value=!0,t.value=!0,r.value={url:a.data.url}):window.open(a.data.url):"notation_exit"===a.data.api&&(z.value=!0)};return n((()=>{window.addEventListener("message",V)})),()=>l("div",{class:w},[l("iframe",{ref:b,src:x.src},null),l(s,{show:t.value,"onUpdate:show":e=>t.value=e,class:p,showIcon:!1,displayDirective:"show"},{default:()=>[l(_,{show:e.value,style:"--n-opacity-spinning: 1;"},{default:()=>[l("iframe",{class:h,onLoad:()=>{e.value=!1},frameborder:"0",src:r.value.url},null)]})]}),l(s,{show:z.value,"onUpdate:show":e=>z.value=e,preset:"card",class:["modalTitle",y],title:"退出制谱"},{default:()=>[l("div",{class:m},[l("p",null,[d("是否退出制谱功能?")]),l(u,{class:f,justify:"center"},{default:()=>[l(v,{round:!0,type:"primary",onClick:()=>{t.value=!1,r.value.url="",z.value=!1,b.value.contentWindow.postMessage({api:"reload"},"*")}},{default:()=>[d("确定")]}),l(v,{round:!0,onClick:()=>z.value=!1},{default:()=>[d("取消")]})]})])]})])}}))}}}));