数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
818 B

import{d as p,r as o,e as v,o as _,a as r,c as u,F as h,f as b,n as k,u as y,g as D,h as S,p as B,_ as R}from"./index-ea7eee8a.js";import{g as q,a as w}from"./getData-8e3ed6b9.js";const C=p({__name:"show",setup(x){const i=S(),l=o(!0),c=o({});B("globalScreen",c);const s=o({list:[],config:{}}),f=v(()=>{const{width:n,height:e,background:a,primary:t}=s.value.config;return{width:n,height:e,background:a,color:t,position:"relative"}}),d=()=>{q(i.params.id).then(n=>{l.value=!1,s.value=n;const{requestUrl:e,afterResponse:a,beforeRequest:t,method:g}=s.value.config;e&&w(e,a,t,g).then(m=>{c.value=m})}).catch(()=>{l.value=!1})};return _(()=>{d()}),(n,e)=>(r(),u("div",{style:k(y(f)),class:"design-canvas"},[(r(!0),u(h,null,b(s.value.list,(a,t)=>(r(),D(R,{key:t,data:a},null,8,["data"]))),128))],4))}});export{C as default};