import{z as e,_ as t,r as a,c as n,w as i,o,a as s,b as r,K as l,F as c,d as h,e as u,f as p,g as d,h as m,A as g,i as f,E as P,j as v}from"./vendor.0502eb24.js";!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const a of e)if("childList"===a.type)for(const e of a.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const L={name:"app",components:{},data:()=>({locale:e,localeEl:t}),methods:{}};L.render=function(e,t,r,l,c,h){const u=a("router-view"),p=a("a-config-provider"),d=a("el-config-provider");return o(),n(d,{locale:c.localeEl},{default:i((()=>[s(p,{locale:c.locale},{default:i((()=>[s(u)])),_:1},8,["locale"])])),_:1},8,["locale"])};const b={},y=function(e,t){return t&&0!==t.length?Promise.all(t.map((e=>{if((e=`${e}`)in b)return;b[e]=!0;const t=e.endsWith(".css"),a=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${a}`))return;const n=document.createElement("link");return n.rel=t?"stylesheet":"modulepreload",t||(n.as="script",n.crossOrigin=""),n.href=e,document.head.appendChild(n),t?new Promise(((e,t)=>{n.addEventListener("load",e),n.addEventListener("error",t)})):void 0}))).then((()=>e())):e()};const _={name:"PageTableView",components:{},data:()=>({pageList:[],linkList:[],activePage:"",multiPage:!0,ignoreParamPath:["/data/export"]}),computed:{pageTabNameMap(){return this.$store.state.pageTabNameMap}},created(){let{name:e,path:t,fullPath:a}=this.$route;this.pageList.push({name:e,path:t,fullPath:a});let n=this.getRouteRealPath(this.$route);this.linkList.push(n),this.activePage=n,this.$router.push(this.$route.fullPath)},watch:{$route:function(e,t){let a=this.getRouteRealPath(e);if(this.activePage=a,this.linkList.indexOf(a)<0){this.linkList.push(a);let{name:t,path:n,fullPath:i}=e;this.pageList.push({name:t,path:n,fullPath:i})}this.pageList.find((e=>this.getRouteRealPath(e)===a)).fullPath=e.fullPath}},methods:{isIgnoreParamPath(e){return this.ignoreParamPath.indexOf(e)>=0},getRouteRealPath(e){return this.isIgnoreParamPath(e.path)?e.path:e.fullPath},changePage(e){let t=this.pageList.find((t=>t.fullPath===e));this.activePage=this.getRouteRealPath(t),this.$router.push(t.fullPath)},editPage(e,t){this[t](e)},removePageTab(e){if(1===this.pageList.length)return void this.$message.warning("这是最后一页,不能再关闭了啦");this.pageList=this.pageList.filter((t=>this.getRouteRealPath(t)!==e)),this.linkList=this.linkList.filter((t=>t!==e));let t=this.linkList.indexOf(this.activePage);t<0&&(t=this.linkList.length-1,this.activePage=this.linkList[t],this.$router.push(this.activePage))}}},k={class:"page-layout"};_.render=function(e,t,u,p,d,m){const g=a("a-tab-pane"),f=a("a-tabs"),P=a("router-view");return o(),r("div",k,[s(f,{type:"card",activeKey:d.activePage,"onUpdate:activeKey":t[0]||(t[0]=e=>d.activePage=e),closable:"",onTabClick:m.changePage,onEdit:m.removePageTab,style:{padding:"5px 10px 0"}},{default:i((()=>[(o(!0),r(c,null,h(d.pageList,(e=>(o(),n(g,{tab:m.pageTabNameMap[e.fullPath]||e.name,name:m.getRouteRealPath(e),fullPath:e.fullPath,key:e.fullPath},null,8,["tab","name","fullPath"])))),128))])),_:1},8,["activeKey","onTabClick","onEdit"]),(o(),n(l,null,[s(P,{key:e.$route.fullPath})],1024))])};const E={name:"EmptyLayout",components:{},props:[],data:()=>({}),methods:{}};E.render=function(e,t,i,s,r,l){const c=a("router-view");return o(),n(c)};let R=[{path:"/",name:"主页",component:()=>y((()=>import("./GlobalLayout.d7c605f8.js")),["assets/GlobalLayout.d7c605f8.js","assets/vendor.0502eb24.js"]),redirect:"/doc/console",children:[{path:"/doc",name:"系统配置",meta:{icon:"SettingOutlined"},component:_,children:[{path:"/doc/console",name:"控制台",meta:{icon:"DashboardOutlined"},component:()=>y((()=>import("./Console.eb8296cc.js")),["assets/Console.eb8296cc.js","assets/vendor.0502eb24.js"])},{path:"/doc/setting",name:"系统配置",meta:{icon:"SettingOutlined"},component:E,children:[{path:"/doc/setting/view",name:"展示配置",component:()=>y((()=>import("./SettingView.46cc75f4.js")),["assets/SettingView.46cc75f4.js","assets/vendor.0502eb24.js"])}]},{path:"/doc/view",name:"文档展示",meta:{hidden:!0},component:()=>y((()=>import("./DocView.7def2551.js")),["assets/DocView.7def2551.js","assets/vendor.0502eb24.js"])}]}]}];var T=u({state:()=>({userInfo:{},pageTabNameMap:{},docMap:{"/getUserInfo":{name:"获取用户信息"},"/deleteUserInfo":{name:"删除用户信息"},"/updateUserInfo":{name:"修改用户信息"}}}),mutations:{setUserInfo(e,t){e.userInfo=t},addTableName(e,t){let a=Object.assign({},e.pageTabNameMap);a[t.key]=t.val,e.pageTabNameMap=a}}});const w=p({history:d(),routes:R}),I=m(L);I.config.productionTip=!1,I.use(g),I.use(w),I.use(T),I.component(f.name,f),I.component(P.name,P),I.component(v.name,v),I.mount("#app");