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

  1. import{_ as E}from"./homeBottom.50972391.js";import{d as R,x as w,y as O,r as x,J as T,c as l,e as n,f as g,g as f,h as v,i as s,j as F,F as $,H as j,G as c,t as I,_ as S,C as B,B as M,u as k,k as C,M as z,L as D,aj as H,U as L}from"./index.2dada31c.js";const q="/assets/rightTopLogo.0e312ac7.png";const G={class:"ml-20 mt-10"},J={class:"flex items-center"},K={class:"mt-8 font-semibold routeNameSize"},P=R({name:"breadcrumb"}),U=Object.assign(P,{setup(e){const u=w(),r=O(),o=x(),d=x([]),a=()=>{r.go(-1)};return T(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"),h=l("el-breadcrumb");return n(),g("div",G,[f("div",J,[f("div",{class:"flex items-center mr-5 backsize",onClick:a},[v(p,null,{default:s(()=>[v(m)]),_:1}),t[0]||(t[0]=F("\u8FD4\u56DE "))]),v(h,{separator:"/"},{default:s(()=>[(n(!0),g($,null,j(d.value,y=>(n(),c(_,{key:y.name},{default:s(()=>[F(I(y.meta.title),1)]),_:2},1024))),128))]),_:1})]),f("div",K,[f("span",null,I(o.value),1),t[1]||(t[1]=f("img",{class:"rightTopLogo",src:q,alt:""},null,-1))])])}}}),Q=S(U,[["__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(M.countStore)||0,r=B(M.userStore).userInfo||{},o=O(),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"),h=l("el-badge"),y=l("el-menu-item"),A=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(h,{key:0,value:k(u),max:99,class:"myBadage",hidden:!k(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:k(d).path.includes(e.index)||((b=k(d).meta.activeMenu)==null?void 0: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,j(e.item.children,b=>(n(),c(A,{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=S(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(M.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,j(k(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=R({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(M.menuStore),i=u,t=()=>{o.value=!o.value,i("collapseFn",o.value)},m=x([]);return T(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 h=l("expand"),y=l("fold"),A=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(A,{color:"rgba(0, 0, 0, 0.45)"},{default:s(()=>[o.value?(n(),c(h,{key:0,onClick:t})):(n(),c(y,{key:1,onClick:t}))]),_:1})])]),_:1})])}}}),V=S(ae,[["__scopeId","data-v-97d11a37"]]);const le=R({name:"secondView"}),se=Object.assign(le,{setup(e){const u=w(),r=x(!1),o=a=>{r.value=a},d=x();return T(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(V,{class:"aside",width:r.value?"64px":"200px"},{default:s(()=>[v(V,{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(Q),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=S(se,[["__scopeId","data-v-60bc17a9"]]);export{ce as default};