You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
maotu-webtopo/webVue/assets/view_index-ed158ebd.js

2 lines
6.2 KiB
JavaScript

3 weeks ago
import{d as E,aO as q,as as u,o as l,a as h,F as k,A as j,i as s,w as t,b as S,t as O,g as c,aQ as y,h as p,aR as D,p as f,a0 as z,aS as P,aC as $,_ as F,r as N,Z as Q,aT as A,x as B,aU as X,$ as Z,at as J,aV as K,aW as Y,P as ee,S as le,aX as te,q as ne}from"./index-9847718b.js";const ae={class:"main"},oe=["onClick"],ie={name:"doCreateMenu"},se=E({...ie,props:{menuList:{},isCollapse:{type:Boolean,default:!1}},setup(I){function v(r){console.log("routeName"),P.includes(r)&&$.emit("getStairRoute",r)}const d=q();function m(r){v(r.index),d.push({name:r.index,query:{screen:r.index}})}function b(r){v(r.name),d.push({name:r.name,query:{screen:r.name}})}return(r,M)=>{const i=u("el-icon"),n=u("el-menu-item"),g=u("menuDoCreateMenu",!0),x=u("el-sub-menu");return l(),h("div",ae,[(l(!0),h(k,null,j(I.menuList,e=>(l(),h(k,{key:e.path},[e.children?f("",!0):(l(),h(k,{key:0},[!e.children&&e.meta.hidden!==!0?(l(),s(n,{key:0,index:e.name,onClick:m},{title:t(()=>[S("span",null,O(e.meta.title),1)]),default:t(()=>[c(i,null,{default:t(()=>[e.meta.menuIcon?(l(),s(y(e.meta.menuIcon),{key:0})):(l(),s(y(p(D)),{key:1}))]),_:2},1024)]),_:2},1032,["index"])):f("",!0)],64)),e.children&&e.children.length===1?(l(),h(k,{key:1},[e.children&&e.children.length===1&&e.children[0].meta.hidden!==!0?(l(),s(n,{key:0,index:e.children[0].name,onClick:m},{title:t(()=>[S("span",null,O(e.children[0].meta.title),1)]),default:t(()=>[c(i,null,{default:t(()=>[e.meta.menuIcon?(l(),s(y(e.meta.menuIcon),{key:0})):(l(),s(y(p(D)),{key:1}))]),_:2},1024)]),_:2},1032,["index"])):f("",!0)],64)):f("",!0),e.children&&e.children.length>1&&e.children[0].name=="homeOverview"?(l(),h(k,{key:2},[e.children&&e.children.length>1&&e.children[0].meta.hidden!==!0?(l(),s(n,{key:0,index:e.children[0].name,onClick:m},{title:t(()=>[S("span",null,O(e.children[0].meta.title),1)]),default:t(()=>[c(i,null,{default:t(()=>[e.children[0].meta.menuIcon?(l(),s(y(e.children[0].meta.menuIcon),{key:0})):(l(),s(y(p(D)),{key:1}))]),_:2},1024)]),_:2},1032,["index"])):f("",!0)],64)):f("",!0),e.children&&e.children.length>1&&e.children[0].name!="homeOverview"?(l(),h(k,{key:3},[e.children&&e.children.length>1?(l(),s(x,{key:0,index:e.children[0].name},{title:t(()=>[c(i,null,{default:t(()=>[e.children[0].meta.menuIcon?(l(),s(y(e.children[0].meta.menuIcon),{key:0})):(l(),s(y(p(D)),{key:1}))]),_:2},1024),I.isCollapse?f("",!0):(l(),h("span",{key:0,onClick:z(C=>b(e.children[0]),["stop"])},O(e.children[0].meta.title),9,oe))]),default:t(()=>[c(g,{menuList:e.children},null,8,["menuList"])]),_:2},1032,["index"])):f("",!0)],64)):f("",!0)],64))),128))])}}}),ce=F(se,[["__scopeId","data-v-e2fcc64d"]]),re=E({__name:"menuIndex",props:{isCollapse:{type:Boolean,default:!1}},emits:["getMenuList"],setup(I,{emit:v}){let d=[];const m=N([]);function b(M,i){M.forEach(n=>{var g,x,e,C,o,_,a,w;if(!n.children&&!((g=n.meta)!=null&&g.bottomHidden)&&i.push({id:n.name,label:(x=n.meta)==null?void 0:x.title}),n.children&&((e=n.children)==null?void 0:e.length)===1&&!((C=n.meta)!=null&&C.bottomHidden)&&i.push({id:n.children[0].name,label:(o=n.children[0].meta)==null?void 0:o.title}),n.children&&((_=n.children)==null?void 0:_.length)>1&&!((a=n.meta)!=null&&a.bottomHidden)){const L={id:n.children[0].name,label:(w=n.children[0].meta)==null?void 0:w.title,children:[]};b(n.children,L.children),i.push(L)}})}const r=v;return Q(()=>{b(A.options.routes,d),m.value=Array.from(A.options.routes),r("getMenuList",d)}),(M,i)=>(l(),h("div",null,[c(ce,{menuList:m.value,"is-collapse":I.isCollapse},null,8,["menuList","is-collapse"])]))}}),de={class:"common-layout"},ue={class:"el-main-core"},he={key:0,class:"footer-navigation"},_e=E({__name:"view_index",setup(I){let v=[{id:"homeGlobalMessage",label:"全站报文"},{id:"homeExceedMessage",label:"越限信息"},{id:"homeExceptionFacility",label:"异常设备"},{id:"fireControlIndex",label:"消防系统"},{id:"securityIndex",label:"安全防范"},{id:"monitoringIndex",label:"在线监测"},{id:"waterSupply",label:"给排水系统"},{id:"environmentIndex",label:"环境监控"},{id:"lightingIndex",label:"照明控制"},{id:"