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
5.2KB

  1. import{_ as E}from"./homeBottom-9df05b51.js";import{x as w,y as V,r as x,B as R,b as l,c as n,d as g,e as f,f as v,h as s,i as j,F as $,H as T,L as c,t as I,_ as M,k as F,G as B,E as A,u as h,j as C,A as z,C as D,ak as H,O as L}from"./index-dd5fae99.js";const q="/assets/rightTopLogo-0e312ac7.png";const G={class:"ml-20 mt-10"},K={class:"flex items-center"},P={class:"mt-8 font-semibold routeNameSize"},J=F({name:"breadcrumb"}),Q=Object.assign(J,{setup(e){const u=w(),r=V(),o=x(),d=x([]),a=()=>{r.go(-1)};return R(u,i=>{o.value=u.meta.title,d.value=u.matched.filter((t,m)=>m!==0)},{immediate:!0,deep:!0}),(i,t)=>{const m=l("ArrowLeft"),p=l("el-icon"),_=l("el-breadcrumb-item"),k=l("el-breadcrumb");return n(),g("div",G,[f("div",K,[f("div",{class:"flex items-center mr-5 backsize",onClick:a},[v(p,null,{default:s(()=>[v(m)]),_:1}),t[0]||(t[0]=j("返回 "))]),v(k,{separator:"/"},{default:s(()=>[(n(!0),g($,null,T(d.value,y=>(n(),c(_,{key:y.name},{default:s(()=>[j(I(y.meta.title),1)]),_:2},1024))),128))]),_:1})]),f("div",P,[f("span",null,I(o.value),1),t[1]||(t[1]=f("img",{class:"rightTopLogo",src:q,alt:""},null,-1))])])}}}),U=M(Q,[["__scopeId","data-v-02d0860d"]]);const W={key:1},X={__name:"sidebarItem",props:{index:String,title:String,item:Object,active:String},setup(e){const{totalNum:u}=B(A.countStore)||0,r=B(A.userStore).userInfo||{},o=V(),d=w(),a=e,i=m=>{o.push({name:m.index})},t=m=>(m.name==="operationProjectRecord"&&r.value.regionCode==="330500",!0);return(m,p)=>{const _=l("svg-icon"),k=l("el-badge"),y=l("el-menu-item"),S=l("sidebar-item",!0),N=l("el-sub-menu");return!(e.item.children&&e.item.children.length)&&!e.item.meta.hidden&&t(e.item)?(n(),c(y,{key:0,index:a.index,onClick:i},{title:s(()=>[e.item.name==="waitMeToHandle"?(n(),c(k,{key:0,value:h(u),max:99,class:"myBadage",hidden:!h(u)},{default:s(()=>[f("span",null,I(e.title),1)]),_:1},8,["value","hidden"])):(n(),g("span",W,I(e.title),1))]),default:s(()=>[e.item.meta.activeIcon&&e.item.meta.uIcon?(n(),c(_,{key:0,name:e.index==e.active?e.item.meta.activeIcon:e.item.meta.uIcon,"svg-class":"menuIcon"},null,8,["name"])):C("",!0)]),_:1},8,["index"])):(n(),g($,{key:1},[!e.item.meta.hidden&&t(e.item)?(n(),c(N,{key:0,index:a.index},{title:s(()=>{var b;return[e.item.meta.activeIcon&&e.item.meta.uIcon?(n(),c(_,{key:0,name:h(d).path.includes(e.index)||(b=h(d).meta.activeMenu)!=null&&b.includes(e.index)?e.item.meta.activeIcon:e.item.meta.uIcon,"svg-class":"menuIcon"},null,8,["name"])):C("",!0),f("span",null,I(e.title),1)]}),default:s(()=>[(n(!0),g($,null,T(e.item.children,b=>(n(),c(S,{key:b.name,index:b.name,title:b.meta.title,item:b},null,8,["index","title","item"]))),128))]),_:1},8,["index"])):C("",!0)],64))}}},Y=M(X,[["__scopeId","data-v-15c1672c"]]),Z={__name:"index",props:{isCollapse:{type:Boolean,default:!1},sidebarMenu:{type:Array,default:()=>[]}},setup(e){const u=e,r=B(A.userStore).userInfo,o=z(()=>{const d=w(),{meta:a,name:i}=d;return a.activeMenu?a.activeMenu:i});return(d,a)=>{const i=l("el-menu");return n(),c(i,{"default-active":o.value,collapse:u.isCollapse,class:"el-menu-vertical-demo","unique-opened":""},{default:s(()=>[(n(!0),g($,null,T(h(r).regionCode!=="331123"?u.sidebarMenu.filter(t=>t.name!=="applicationRegist"):u.sidebarMenu,t=>(n(),c(Y,{key:t.name,index:t.name,title:t.meta.title,item:t,active:o.value},null,8,["index","title","item","active"]))),128))]),_:1},8,["default-active","collapse"])}}};const ee={class:"mainBox"},te={class:"collapse"},ne=F({name:"elAside"}),ae=Object.assign(ne,{emits:["collapseFn"],setup(e,{emit:u}){const r=w(),o=x(!1),d=x(r.path.split("/")[r.path.split("/").length-1]),{menuArr:a}=B(A.menuStore),i=u,t=()=>{o.value=!o.value,i("collapseFn",o.value)},m=x([]);return R(r,p=>{m.value=a.value.find(_=>_.name===p.meta.topMenu)&&a.value.find(_=>_.name===p.meta.topMenu).children||[]},{immediate:!0,deep:!0}),(p,_)=>{const k=l("expand"),y=l("fold"),S=l("el-icon"),N=l("el-scrollbar");return n(),g("div",ee,[v(N,null,{default:s(()=>[v(Z,{"sidebar-menu":m.value,"is-collapse":o.value,active:d.value},null,8,["sidebar-menu","is-collapse","active"]),f("div",te,[v(S,{color:"rgba(0, 0, 0, 0.45)"},{default:s(()=>[o.value?(n(),c(k,{key:0,onClick:t})):(n(),c(y,{key:1,onClick:t}))]),_:1})])]),_:1})])}}}),O=M(ae,[["__scopeId","data-v-97d11a37"]]);const le=F({name:"secondView"}),se=Object.assign(le,{setup(e){const u=w(),r=x(!1),o=a=>{r.value=a},d=x();return R(u,async a=>{var i,t;await D(),(t=(i=document.getElementsByClassName("el-main"))==null?void 0:i[0])!=null&&t.scrollTop&&(document.getElementsByClassName("el-main")[0].scrollTop=0)},{immediate:!0,deep:!0}),(a,i)=>{const t=l("router-view"),m=l("el-main"),p=l("el-container");return n(),c(p,{class:"overflow-hidden"},{default:s(()=>[v(O,{class:"aside",width:r.value?"64px":"200px"},{default:s(()=>[v(O,{onCollapseFn:o})]),_:1},8,["width"]),i[0]||(i[0]=f("p",{class:"absolute bottom-[0] left-[0] w-full"},[f("img",{src:E,class:"w-full"})],-1)),v(p,{class:"is-vertical relative overflow-x-auto"},{default:s(()=>[v(U),v(m,{ref_key:"mainRef",ref:d,class:"main"},{default:s(()=>[v(t,null,{default:s(({Component:_})=>[(n(),c(H,null,[a.$route.meta.keepAlive?(n(),c(L(_),{key:0})):C("",!0)],1024)),a.$route.meta.keepAlive?C("",!0):(n(),c(L(_),{key:0}))]),_:1})]),_:1},512)]),_:1})]),_:1})}}}),ce=M(se,[["__scopeId","data-v-60bc17a9"]]);export{ce as default};