META-INF.resources.assets.main.f997fd55.js Maven / Gradle / Ivy
import{z as y,r as h,o as l,c as d,w as g,a as f,b as _,F as L,d as k,e as R,f as T,K as w,g as x,h as N,i as $,j as E,A as O,l as M}from"./vendor.fae58fd3.js";const I=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function s(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerpolicy&&(i.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?i.credentials="include":a.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=s(a);fetch(a.href,i)}};I();var P=(e,t)=>{for(const[s,r]of t)e[s]=r;return e};const A={name:"app",components:{},data(){return{locale:y}},methods:{}};function C(e,t,s,r,a,i){const o=h("router-view"),u=h("a-config-provider");return l(),d(u,{locale:a.locale},{default:g(()=>[f(o)]),_:1},8,["locale"])}var D=P(A,[["render",C]]);const S="modulepreload",v={},j="",m=function(t,s){return!s||s.length===0?t():Promise.all(s.map(r=>{if(r=`${j}${r}`,r in v)return;v[r]=!0;const a=r.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${i}`))return;const o=document.createElement("link");if(o.rel=a?"stylesheet":S,a||(o.as="script",o.crossOrigin=""),o.href=r,document.head.appendChild(o),a)return new Promise((u,p)=>{o.addEventListener("load",u),o.addEventListener("error",p)})})).then(()=>t())};const q={name:"PageTableView",components:{},data(){return{pageList:[],linkList:[],activePage:"",multiPage:!0,ignoreParamPath:["/data/export"],apiRequestIndex:1}},computed:{pageTabNameMap(){return this.$store.state.pageTabNameMap}},created(){let{name:e,path:t,fullPath:s}=this.$route;this.pageList.push({name:e,path:t,fullPath:s});let r=this.getRouteRealPath(this.$route);this.linkList.push(r),this.activePage=r,this.$router.push(this.$route.fullPath)},watch:{$route:function(e,t){let s=this.getRouteRealPath(e);if(this.activePage=s,this.linkList.indexOf(s)<0){this.linkList.push(s);let{name:a,path:i,fullPath:o}=e;this.pageList.push({name:a,path:i,fullPath:o})}let r=this.pageList.find(a=>this.getRouteRealPath(a)===s);r.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(s=>s.fullPath===e);this.activePage=this.getRouteRealPath(t),this.$router.push(t.fullPath)},editPage(e,t){this[t](e)},editPageTab(e,t){t==="add"?this.addPageTab():this.removePageTab(e)},addPageTab(){this.$router.push({path:"/api/request",query:{id:this.apiRequestIndex++}})},removePageTab(e){if(this.pageList.length===1){this.$message.warning("\u8FD9\u662F\u6700\u540E\u4E00\u9875\uFF0C\u4E0D\u80FD\u518D\u5173\u95ED\u4E86\u5566");return}this.pageList=this.pageList.filter(s=>this.getRouteRealPath(s)!==e),this.linkList=this.linkList.filter(s=>s!==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))}}},V={class:"page-layout"},K={class:"page-body"};function B(e,t,s,r,a,i){const o=h("a-tab-pane"),u=h("a-tabs"),p=h("router-view");return l(),_("div",V,[f(u,{type:"editable-card",activeKey:a.activePage,"onUpdate:activeKey":t[0]||(t[0]=n=>a.activePage=n),"hide-add":"",onTabClick:i.changePage,onEdit:i.editPageTab,style:{padding:"5px 10px 0"}},{default:g(()=>[(l(!0),_(L,null,k(a.pageList,n=>(l(),d(o,{closable:"",tab:i.pageTabNameMap[n.fullPath]||n.name,name:i.getRouteRealPath(n),fullPath:n.fullPath,key:n.fullPath},null,8,["tab","name","fullPath"]))),128))]),_:1},8,["activeKey","onTabClick","onEdit"]),R("div",K,[f(p,null,{default:g(({Component:n,route:b})=>[(l(),d(w,null,[(l(),d(T(n),{key:b.fullPath}))],1024))]),_:1})])])}var F=P(q,[["render",B]]);let U=[{path:"/",name:"\u4E3B\u9875",component:()=>m(()=>import("./GlobalLayout.37f78eb5.js"),["assets/GlobalLayout.37f78eb5.js","assets/vendor.fae58fd3.js","assets/custom.16f46b2f.js"]),redirect:"/swagger/info",children:[{path:"/doc",name:"\u6587\u6863\u7BA1\u7406",component:F,children:[{path:"/swagger/info",name:"\u6587\u6863\u4FE1\u606F",meta:{icon:"FileTextOutlined"},component:()=>m(()=>import("./DocInfo.d40f5041.js"),["assets/DocInfo.d40f5041.js","assets/vendor.fae58fd3.js","assets/index.403a7171.js"])},{path:"/swagger/view",name:"\u6587\u6863\u5C55\u793A",component:()=>m(()=>import("./DocView.deefabf1.js"),["assets/DocView.deefabf1.js","assets/vendor.fae58fd3.js","assets/index.403a7171.js","assets/custom.16f46b2f.js"])}]}]}];var z=x({state(){return{docChangedNum:1,userInfo:{},pageTabNameMap:{},swaggerDoc:{},swaggerDefinitions:{},urlMethodMap:{},methodStatistic:{},swaggerResource:{},globalParam:[]}},mutations:{setUserInfo(e,t){e.userInfo=t},setGlobalParam(e,t){e.globalParam=t},setSwaggerResource(e,t){e.swaggerResource=t},addDocChangedNum(e){e.docChangedNum++},setSwaggerDoc(e,t){e.swaggerDoc=t,e.swaggerDefinitions=t.definitions||{}},setUrlMethodMap(e,t){e.urlMethodMap=t},setMethodStatistic(e,t){e.methodStatistic=t},addTableName(e,t){let s=Object.assign({},e.pageTabNameMap);s[t.key]=t.val,e.pageTabNameMap=s}}});const G=N({history:$(),routes:U}),c=E(D);c.config.productionTip=!1;c.use(O);c.use(G);c.use(z);c.mount("#app");c.directive("highlight",{updated(e){e.querySelectorAll("pre code").forEach(s=>{M.highlightBlock(s)})}});export{P as _};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy