import{r as k,b as A,w as C,e as I,d,f as T,o as t,c as r,g as $,a as s,p as E,h as B,n as w,_ as N,t as H,F as v,i as g,j as S,k as h,m as j,l as L,q,s as z,v as D,u as F,x as G,y as _,z as M,A as O,B as J,C as b,D as K,E as P,G as U,H as V}from"./index-CHTXMeh8.js";import{g as Q}from"./index-DABeXvnV.js";import{T as R}from"./ToolHeader-D85r-QHP.js";import"./XButton-C1WkVWZR.js";import"./el-avatar-DfAMRPCL.js";import"./formatTime-DG99nHw2.js";import"./index-BdGhazw1.js";import"./el-dropdown-item-CeWj3-13.js";import"./tagsView-C8yDzF3Q.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";import"./useValidator-kEqoZj3j.js";import"./tree-BBZY150N.js";import"./LocaleDropdown.vue_vue_type_script_setup_true_lang-CJYmMO9l.js";const W=I({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),X=I({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Y=d({name:"ElSkeletonItem"});var f=N(d({...Y,props:X,setup(i){const p=T("skeleton");return(e,n)=>(t(),r("div",{class:w([s(p).e("item"),s(p).e(e.variant)])},[e.variant==="image"?(t(),$(s(E),{key:0})):B("v-if",!0)],2))}}),[["__file","skeleton-item.vue"]]);const Z=d({name:"ElSkeleton"}),aa=q(N(d({...Z,props:W,setup(i,{expose:p}){const e=i,n=T("skeleton"),u=((a,m=0)=>{if(m===0)return a;const o=k(!1);let l=0;const y=()=>{l&&clearTimeout(l),l=window.setTimeout(()=>{o.value=a.value},m)};return A(y),C(()=>a.value,c=>{c?y():o.value=c}),o})(H(e,"loading"),e.throttle);return p({uiLoading:u}),(a,m)=>s(u)?(t(),r("div",j({key:0,class:[s(n).b(),s(n).is("animated",a.animated)]},a.$attrs),[(t(!0),r(v,null,g(a.count,o=>(t(),r(v,{key:o},[a.loading?S(a.$slots,"template",{key:o},()=>[h(f,{class:w(s(n).is("first")),variant:"p"},null,8,["class"]),(t(!0),r(v,null,g(a.rows,l=>(t(),$(f,{key:l,class:w([s(n).e("paragraph"),s(n).is("last",l===a.rows&&a.rows>1)]),variant:"p"},null,8,["class"]))),128))]):B("v-if",!0)],64))),128))],16)):S(a.$slots,"default",L(j({key:1},a.$attrs)))}}),[["__file","skeleton.vue"]]),{SkeletonItem:f});z(f);const sa=(i=>(P("data-v-b82697f7"),i=i(),U(),i))(()=>b("div",null,[b("h1",null,"IAILAB \u5E73\u53F0\u4E3B\u9875")],-1)),ta=["onClick"],ea=V(d({name:"Home2",__name:"Index2",setup(i){D(),F(),k({grantType:"password",scope:"user.read user.write",refreshToken:G(),username:_().username,password:_().password,redirectUri:"http://localhost:90"}),M();const p=k(!0);let e=O([]);const n=async()=>{const u=await Q();e=Object.assign(e,u)};return(async()=>(await Promise.all([n()]),p.value=!1))(),(u,a)=>{const m=aa;return t(),r(v,null,[h(R,{ref:"toolHeader"},null,512),sa,h(m,{loading:s(p),animated:""},{default:J(()=>[(t(!0),r(v,null,g(s(e),(o,l)=>(t(),r("div",{id:"app",key:`dynamics-${l}`},[b("div",{class:"card",onClick:y=>(async c=>{let x=c.appType;console.log(x),x===1?window.location.href="/index":window.open("http://localhost:90/login?appid="+c.appMenuId+"&username="+_().username,"_blank")})(o)},K(o.appName),9,ta)]))),128))]),_:1},8,["loading"])],64)}}}),[["__scopeId","data-v-b82697f7"]]);export{ea as default};
|