(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-b0c32518"],{"2deb":function(t,e,i){},"4e38":function(t,e,i){"use strict";i("2deb")},"4e74":function(t,e,i){"use strict";i.r(e);i("caad");var l=i("afbc"),a={data:()=>({search:"",searchRoutes:[],allRoute:[]}),methods:{doSearch(){""!=this.search?this.searchRoutes=this.searchRouteByTitle(this.allRoute,this.search):this.$message.error("请输入搜索内容")},collectAllRouteItems(t){const e=[],i=(t,l=[])=>{var a,n,s;const r=(null===(a=t.meta)||void 0===a||null===(n=a.title)||void 0===n?void 0:n.trim())||"";if(!r)return;const c=(null===(s=t.path)||void 0===s?void 0:s.trim())||"";if(!c)return;const o=[...l,r].join("-");e.push({path:c,title:r,fullTitle:o,level:l.length+1}),t.children&&Array.isArray(t.children)&&t.children.length&&t.children.forEach(t=>i(t,[...l,r]))};return t.forEach(t=>i(t)),e},searchRouteByTitle(t,e){const i=this.collectAllRouteItems(t);if(!e)return i;const l=e.toLowerCase();return i.filter(t=>t.title.toLowerCase().includes(l)||t.fullTitle.toLowerCase().includes(l))}},created(){this.allRoute=l.b.options.routes;for(var t=[],e=0;e<this.allRoute.length;e++)null!=this.allRoute[e].meta&&this.allRoute[e].meta&&null==this.allRoute[e].meta.hidden&&t.push(this.allRoute[e]);this.allRoute=t}},n=(i("4e38"),i("2877")),s=Object(n.a)(a,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"ls-card m-t-16"},[i("h3",[t._v("功能搜索")]),i("div",[i("el-input",{staticStyle:{width:"280px"},attrs:{placeholder:"请输入内容进行搜索"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}}),i("el-button",{staticStyle:{"margin-left":"12px"},attrs:{type:"primary"},on:{click:function(e){return t.doSearch()}}},[t._v("搜索")])],1),""==t.search?i("div",{staticStyle:{display:"flex","margin-top":"20px"}},t._l(t.allRoute,(function(e,l){return i("div",{key:l,staticStyle:{width:"150px",display:"flex","flex-direction":"column","align-items":"center"}},[i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"45px","background-color":"#f5f5f5",width:"100%"}},[t._v(" "+t._s(null==e.meta?e.title:e.meta.title)+" ")]),t._l(e.children,(function(e,l){return i("div",{key:l},[null==e.meta.hidden||0==e.meta.hidden?i("div",{staticClass:"hoverBlack",staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"45px",width:"150px"}},[i("router-link",{staticClass:"whiteFont",staticStyle:{"text-decoration":"none",color:"#2b2b2b",width:"100%",height:"100%","line-height":"45px","text-align":"center"},attrs:{to:e.path}},[t._v(t._s(e.meta.title))])],1):t._e()])}))],2)})),0):t._e(),""!=t.search?i("div",{staticStyle:{width:"300px","margin-top":"20px"}},t._l(t.searchRoutes,(function(e,l){return i("div",{key:l,staticStyle:{width:"100%",height:"45px"}},[i("router-link",{staticClass:"whiteFont",staticStyle:{"text-decoration":"none",color:"#2b2b2b",width:"100%",height:"100%","line-height":"45px","text-align":"center"},attrs:{to:e.path}},[t._v(t._s(e.fullTitle))])],1)})),0):t._e()])])}),[],!1,null,null,null);e.default=s.exports}}]);