Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.dfb878b5.js 5.3KB

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