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.
2 lines
4.4 KiB
2 lines
4.4 KiB
import{d as N,o as l,g as f,j as n,n as L,bl as U,cb as T,r as g,aU as S,a as d,w as s,b as a,u as o,eu as $,bH as b,F as A,bt as P,ew as F,x as M,h as p,t as H,bI as _,i as q,et as K,eI as z,ev as D,bi as V,bF as j,ea as R,bz as G,dU as W,dV as J,aT as Q}from"./index-f4658ae7.js";import X from"./SaaSMenu-545abd12.js";import{a as Y,M as Z}from"./MenuUnfoldOutlined-9166492e.js";const ee={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},te=n("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),se=n("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),oe=n("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1),ae=[te,se,oe],le=N({name:"LogOutOutline",render:function(h,x){return l(),f("svg",ee,ae)}}),v=c=>(W("data-v-2ef22d89"),c=c(),J(),c),ne={key:0,class:"logo"},re={key:1,class:"logo"},ue={class:"quick-links"},ie=v(()=>n("i",{class:"icon-home"},null,-1)),de=v(()=>n("i",{class:"icon-people"},null,-1)),ce=v(()=>n("i",{class:"icon-settings"},null,-1)),pe={class:"component-wrapper"},_e=N({__name:"Home",setup(c){const h=L(),x=U(),C=T(),y=g([]),w=g(["sub1"]),r=g(!1);function E(i){return R(i)}const m=i=>{if(i.Paras){const e=G(i.Paras),k={path:i.path,query:E(e)};C.replace(k)}else{const e={path:i.path};C.replace(e)}},O=()=>{h.confirmLoginOut()};return(i,e)=>{const k=S("router-link"),B=S("router-view");return l(),d(o(K),null,{default:s(()=>[a(o($),{collapsed:r.value,"onUpdate:collapsed":e[2]||(e[2]=t=>r.value=t),trigger:null,collapsible:"",style:{background:"#fff"}},{default:s(()=>[r.value?(l(),f("div",ne,"SAAS")):(l(),f("div",re,"\u9A70\u9A8BBPM\u591A\u79DF\u6237")),a(o(b),{selectedKeys:y.value,"onUpdate:selectedKeys":e[0]||(e[0]=t=>y.value=t),mode:"inline",openKeys:w.value,"onUpdate:openKeys":e[1]||(e[1]=t=>w.value=t)},{default:s(()=>[(l(!0),f(A,null,P(o(X),(t,I)=>(l(),d(o(F),{key:I},{icon:s(()=>[n("i",{class:M(t.Icon?t.Icon:"icon-folder")},null,2)]),title:s(()=>[p(" \xA0\xA0"+H(t.GroupName),1)]),default:s(()=>[t.children?(l(!0),f(A,{key:0},P(t.children,u=>(l(),d(o(_),{key:u.No,url:u.FileUrl,EnName:u.Paras,class:"menu-item-li"},{default:s(()=>[a(k,{to:{path:t.Path+"/"+u.Path,query:E(u.Paras)},class:"menu_area",style:{"font-weight":"500"}},{default:s(()=>[n("i",{class:M(u.Icon?u.Icon:"icon-folder")},null,2),n("span",null,"\xA0\xA0"+H(u.Name),1)]),_:2},1032,["to"])]),_:2},1032,["url","EnName"]))),128)):q("",!0)]),_:2},1024))),128))]),_:1},8,["selectedKeys","openKeys"])]),_:1},8,["collapsed"]),a(o(K),null,{default:s(()=>[a(o(z),{class:"layout-header-class",style:{background:"var(--system-bg-color)",color:"#fff",padding:"0",height:"48px","line-height":"47px","font-size":"14px",position:"relative","z-index":"10"}},{default:s(()=>[r.value?(l(),d(o(Y),{key:0,class:"trigger",onClick:e[3]||(e[3]=()=>r.value=!r.value)})):(l(),d(o(Z),{key:1,class:"trigger",onClick:e[4]||(e[4]=()=>r.value=!r.value)})),n("div",ue,[a(o(b),{mode:"horizontal",selectedKeys:y.value,"onUpdate:selectedKeys":e[8]||(e[8]=t=>y.value=t),style:{background:"var(--system-bg-color)",height:"48px","font-size":"14px"}},{default:s(()=>[a(o(_),{key:"HomePage",onClick:e[5]||(e[5]=t=>m({path:"/SaasHome/SaaSWelcome",title:"\u4E3B\u9875"})),class:"cg_style"},{default:s(()=>[ie,p(" \u4E3B\u9875 ")]),_:1}),a(o(_),{key:"TreeEns_Dept2Emp",onClick:e[6]||(e[6]=t=>m({path:"/SaasHome/TreeEns",title:"\u7EC4\u7EC7\u6811",Paras:"?EnName=TreeEns_Dept2Emp"})),class:"cg_style"},{default:s(()=>[de,p(" \u7EC4\u7EC7\u6811 ")]),_:1}),a(o(_),{key:"Orgs",onClick:e[7]||(e[7]=t=>m({path:"/SaasHome/Search",title:"\u7EC4\u7EC7",Paras:"?EnName=TS.SaaS.Org"})),class:"cg_style"},{default:s(()=>[ce,p(" \u7EC4\u7EC7 ")]),_:1}),a(o(_),{key:"200-02",class:"quitOut cg_style",onClick:O},{default:s(()=>[a(o(le),{style:{width:"16px"}}),p(" \xA0\u9000\u51FA ")]),_:1})]),_:1},8,["selectedKeys"])])]),_:1}),a(o(D),{style:{margin:"24px 16px",padding:"24px",background:"#fff",minHeight:"280px"}},{default:s(()=>[n("div",pe,[a(B,null,{default:s(({Component:t})=>[a(V,{name:"fade"},{default:s(()=>[(l(),d(j(t),{key:o(x).fullPath}))]),_:2},1024)]),_:1})])]),_:1})]),_:1})]),_:1})}}});const ke=Q(_e,[["__scopeId","data-v-2ef22d89"]]);export{ke as default};
|