2 lines
31 KiB
JavaScript
2 lines
31 KiB
JavaScript
|
import{E as H,a as wt,G as Vt,b as kt,w as Dt,u as ht,d as Rt,L as Tt,M as xt,s as qt,o as Ct,p as It,l as Et,t as Nt,r as Ut,q as Ot,c as Lt,v as Jt,K as Pt,H as zt}from"./element-plus-53a783a7.js";import"./vue-20eed888.js";import{u as Ft,b as re}from"./index-03a63030.js";import{u as Bt}from"./vue-i18n-d6e8419a.js";import{m as Xe,d as Re,b as _t,c as $t}from"./interface-6c1bedf7.js";import{g as At,a as Kt}from"./systemidentifier-26774e0a.js";import{i as Wt}from"./interfaceAuth-23f23afd.js";import{p as Ge}from"./parameterTable-f92cb2bf.js";import{b as Mt,u as jt}from"./vue-router-e03c3082.js";import{d as Ht,G as Xt,r as u,k as a,n as Te,ah as X,ai as xe,o as g,c as Ye,Q as Gt,e as n,P as o,a as h,b as S,U as G,S as w,u as J,L as Se,T as D,F as Yt}from"./@vue-e95c845e.js";import{_ as Qt}from"./y9plugin-components-412bad23.js";import"./lodash-es-2e98bc53.js";import"./@vueuse-409d7ed5.js";import"./@element-plus-57b52633.js";import"./@popperjs-c75af06c.js";import"./@ctrl-f8748455.js";import"./dayjs-e13f206c.js";import"./axios-db0ed51e.js";import"./async-validator-20f92749.js";import"./memoize-one-297ddbcb.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-606f2ab9.js";import"./lodash-11751b8b.js";import"./pinia-22d008e7.js";import"./nprogress-e9cc33fd.js";/* empty css *//* empty css *//* empty css */import"./y9plugin-sso-6f4b3ca3.js";import"./y9plugin-watermark-e18d3181.js";import"./@intlify-d4a3a758.js";import"./v-viewer-decd5d79.js";import"./viewerjs-c43574b2.js";import"./vxe-table-3ccf2bcd.js";import"./xe-utils-90392958.js";import"./dom-zindex-d72a3c32.js";import"./request-6d47a533.js";import"./authInterface-473123dc.js";const Zt={style:{padding:"15px","background-color":"#ffffff"},"element-loading-text":"加载中..."},el={class:"btnDiv"},tl=Ht({__name:"interfaceRegister",props:{status:{type:String,default:()=>"其他"},isShow:{type:Boolean,default:()=>!0}},emits:["getDataListParent"],setup(Qe,{expose:Ze,emit:ll}){const P=Xt("sizeObjInfo"),R=u(!1);Ft(),Mt();const{t:l}=Bt(),et=u({});u();const ie=u([]),se=u([]),qe=u(),Ce=u(),tt=u(),Ie=u(),Ee=u(),Y=u(!1),lt=u("webService信息补充"),Q=u(!1),at=u("配置限流信息"),rt=u(!1),oe=u(),B=u("false"),V=u(!1),$=u("false"),C=u(),d=u(!0),Ne=u("0"),ue=u("0"),Ue=u(!0),_=u(),Oe=u("3"),Le=u(),Je=u("2"),Pe=u(),T=u("Rest"),we=u("N"),ne=u(),de=u(),A=u("get"),it=jt(),ze=u(""),Ve=u([]),Z=u([]),v=u({thresholdType:"0",limitTime:"",limitCount:"",thresholdVal:"",effect:"1",waitTime:""}),pe=Qe,me=(t,e,i)=>{let r=re("number",e,!0);r.valid?i():i(new Error(r.msg))},ee=u(),st=u({thresholdType:[{required:!0,message:a(()=>l("阈值类型不能为空")),trigger:"blur"}],limitTime:[{required:!0,message:a(()=>l("限定时间不能为空")),trigger:"blur"},{validator:me,trigger:"blur"}],limitCount:[{required:!0,message:a(()=>l("限定访问量不能为空")),trigger:"blur"},{validator:me,trigger:"blur"}],thresholdVal:[{required:!0,message:a(()=>l("阈值不能为空")),trigger:"blur"},{validator:me,trigger:"blur"}],effect:[{required:!0,message:a(()=>l("流控效果不能为空")),trigger:"blur"}],waitTime:[{required:!0,message:a(()=>l("超时时间不能为空")),trigger:"blur"},{validator:me,trigger:"blur"}]}),Fe=u({}),b=u({}),ot=u({webSpecification:[{required:!0,message:a(()=>l("webService规范协议不能为空")),trigger:"blur"}],nameSpace:[{required:!0,message:a(()=>l("命名空间不能为空")),trigger:"blur"}],method:[{required:!0,message:a(()=>l("调用方法名不能为空")),trigger:"blur"}]}),I=u(),Be=(t,e,i)=>{let r=re("nopreurl",e,!0);r.valid?i():i(new Error(r.msg))},ut=(t,e,i)=>{let r=re("special",e,!0);console.log(e),r.valid?i(new Error(r.msg)):i()},nt=(t,e,i)=>{let r=re("version",e,!0);if(!r.valid)i(new Error(r.msg));else{let c=e.substring(1).split(".");for(let f of c)isNaN(Number(f))&&i(new Error("版本格式错误,正确格式为V1.1.1,错误格式为V1.01;V1..;V0.1等")),be(f)&&i(new Error("版本格式错误,正确格式为V1.1.1,错误格式为V1.01;V1..;V0.1等")),Number(f).toString().length!=f.length&
|