y9-interface-platform/y9vue-interfacePlatform/interface/assets/testDialog-165d40b3.js

2 lines
23 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{E,M as tt,s as at,o as lt,p as rt,b as it,t as st,G as ot,w as ut,l as nt,q as dt,c as pt,v as ft,K as mt,H as vt,a as gt}from"./element-plus-53a783a7.js";import"./vue-20eed888.js";import{u as ct,b as X}from"./index-03a63030.js";import{u as bt}from"./vue-i18n-d6e8419a.js";import{m as Te,d as le,t as St}from"./interface-6c1bedf7.js";import{a as yt}from"./systemidentifier-26774e0a.js";import{p as wt}from"./parameterTable-f92cb2bf.js";import{b as ht,u as kt}from"./vue-router-e03c3082.js";import{S as Dt}from"./vue-json-pretty-1e6e4575.js";import{d as Rt,G as _t,r as s,k as l,ah as N,ai as xe,o as h,c as Ce,Q as Vt,e as n,P as d,u as S,b as V,L as G,a as c,U as B,S as q,T as Ee,F as qt}from"./@vue-e95c845e.js";import{_ as Tt}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";const xt={"element-loading-text":"加载中...",style:{height:"calc(100% - 30px)",padding:"15px","background-color":"#ffffff"}},Ct={class:"rtDataBackground"},Et={class:"rtDataTitleDiv",style:{display:"flex","align-items":"center !important","vertical-align":"middle","text-align":"center"}},Nt={class:"rtDataContent"},Ot=Rt({__name:"testDialog",props:{status:{type:String,default:()=>"其他"},isShow:{type:Boolean,default:()=>!0}},emits:["getDataListParent"],setup(Ne,{expose:Oe,emit:Ft}){const k=_t("sizeObjInfo"),y=s(!1);ct(),ht();const{t:a}=bt(),Fe=s({});s();const re=s(),P=s([]),L=s([]),ie=s(),Ie=s(),ze=s(),se=s(),O=s(!1),Je=s("webService信息补充"),oe=s(!1);s("配置限流信息"),s(!1);const Q=s(),ue=s("false"),ne=s("false"),de=s("false"),pe=s(),g=s(!0),Y=s({}),fe=s("0"),me=s("0"),Be=s(!0),ve=s("3"),Pe=s();s("2"),s();const T=s("Rest"),Le=s("N"),U=s(),ge=s(),ce=s("get");kt();const be=s(""),Ue=s([]);s([]);const A=s({thresholdType:"0",limitTime:"",limitCount:"",thresholdVal:"",effect:"1",waitTime:""}),Ae=Ne,$=s(),Se=s({}),f=s({}),$e=s({webSpecification:[{required:!0,message:l(()=>a("webService规范协议不能为空")),trigger:"blur"}],nameSpace:[{required:!0,message:l(()=>a("命名空间不能为空")),trigger:"blur"}],method:[{required:!0,message:l(()=>a("调用方法名不能为空")),trigger:"blur"}]}),_=s(),j=(e,t,r)=>{let i=X("nopreurl",t,!0);i.valid?r():r(new Error(i.msg))},ye=(e,t,r)=>{let i=X("special",t,!0);console.log(t),i.valid?r(new Error(i.msg)):r()},we=(e,t,r)=>{let i=X("version",t,!0);if(!i.valid)r(new Error(i.msg));else{let v=t.substring(1).split(".");for(let o of v)isNaN(Number(o))&&r(new Error("版本格式错误,正确格式为V1.1.1错误格式为V1.01;V1..;V0.1等")),W(o)&&r(new Error("版本格式错误,正确格式为V1.1.1错误格式为V1.01;V1..;V0.1等")),Number(o).toString().length!=o.length&&r(new Error("版本格式错误,正确格式为V1.1.1错误格式为V1.01;V1..;V0.1等")),o<=0&&r(new Error("版本格式错误,正确格式为V1.1.1错误格式为V1.01;V1..;V0.1等"));r()}},he=(e,t,r)=>{let i=X("phone",t,!0);i.valid?r():r(new Error(i.msg))};let w=s({show:!1,title:l(()=>a("新增接口")),margin:"5vh auto",showFooter:!0,onOkLoading:!0,visibleChange:e=>{}});const x=s({headerBackground:!0,pageConfig:!1,editConfig:{trigger:"click",enable:!0,mode:"cell"},editRules:{parameterKey:[{required:!0,message:l(()=>a("参数key不能为空")),trigger:"blur"}],parameterType:[{required:!0,message:l(()=>a("参数类型不能为空")),trigger:"blur"}],val:[{required:!0,message:l(()=>a("参数值不能为空")),trigger:"blur"}]},height:200,keepSource:!0,columns:[{type:"checkbox",width:50,fixed:"left"},{type:"index",title:l(()=>a("序号")),width:50,fixed:"left"},{title:l(()=>a("参数key")),key:"parameterKey",editRender:{name:"input",useElement:!0}},{title:l(()=>a("参数value")),key:"val",editRender:{name:"input",useElement:!0}},{title:l(()=>a("参数类型")),key:"parameterType",editRender:{name:"select",useElement:!0,options:[{label:l(()=>a("String")),value:"String"},{label:l(()=>a("integer")),value:"integer"},{label:l(()=>a("double")),value:"double"},{label:l(()=>a("boolean")),value:"boolean"}]}},{title:l(()=>a("操作")),width:70,fixed:"right",render:e=>{if(g.value)return N("div",[N("span",{onClick:()=>{I(e.parameterStatus,e.id)},class:"operate"},a("删除"))])}}],tableData:[]}),C=s({headerBackground:!0,pageConfig:!1,editConfig:{trigger:"click",enable:!0,mode:"cell"},height:200,editRules:{parameterKey:[{required:!0,message:l(()=>a("参数key不能为空")),trigger:"blur"}],parameterType:[{required:!0,message:l(()=>a("参数类型不能为空")),trigger:"blur"}],val:[{required:!0,message:l(()=>a("参数值不能为空")),trigger:"blur"}]},keepSource:!0,columns:[{type:"checkbox",width:50,fixed:"left"},{type:"index",title:l(()=>a("序号")),width:50,fixed:"left"},{title:l(()=>a("参数key")),key:"parameterKey",editRender:{name:"input",useElement:!0}},{title:l(()=>a("参数value")),key:"val",editRender:{name:"input",useElement:!0}},{title:l(()=>a("参数类型")),key:"parameterType",editRender:{name:"select",useElement:!0,options:[{label:l(()=>a("String")),value:"String"},{label:l(()=>a("integer")),value:"integer"},{label:l(()=>a("double")),value:"double"},{label:l(()=>a("boolean")),value:"boolean"}]}},{title:l(()=>a("操作")),width:70,fixed:"right",render:e=>{if(g.value)return N("div",[N("span",{onClick:()=>{I(e.parameterStatus,e.id)},class:"operate"},a("删除"))])}}],tableData:[]}),F=s({headerBackground:!0,pageConfig:!1,editConfig:{trigger:"click",enable:!0,mode:"cell",autoClear:!1},height:200,keepSource:!0,editRules:{parameterKey:[{required:!0,message:l(()=>a("参数key不能为空")),trigger:"blur"}],parameterType:[{required:!0,message:l(()=>a("参数类型不能为空")),trigger:"blur"}],required:[{required:!0,message:l(()=>a("是否必填不能为空")),trigger:"blur"}]},columns:[{type:"index",title:l(()=>a("序号")),width:80,fixed:"left"},{title:l(()=>a("参数key")),key:"parameterKey",editRender:{name:"input",useElement:!0}},{title:l(()=>a("参数类型")),key:"parameterType",editRender:{name:"select",useElement:!0,options:[{value:"String",label:"String"},{value:"int",label:"int"},{value:"boolean",label:"boolean"},{value:"double",label:"double"}]}},{title:l(()=>a("是否必填")),key:"required",editRender:{name:"select",useElement:!0,options:[{value:"是",label:"是"},{value:"否",label:"否"}]}},{title:l(()=>a("参数描述")),key:"notes",editRender:{name:"input",useElement:!0}},{title:l(()=>a("操作")),width:100,fixed:"right",render:e=>{if(g.value)return N("div",[N("span",{onClick:()=>{I(e.parameterStatus,e.id)},class:"operate"},a("删除"))])}}],tableData:[]}),ke=s({filtersValueCallBack:e=>{Fe.value=e},itemList:[{type:"slot",slotName:"slotBtns",span:24,justify:"flex-end"}],showBorder:!0});s({model:{},rules:{interfaceName:[{required:!0,message:l(()=>a("接口名称不能为空")),trigger:"blur"},{validator:ye,trigger:"blur"}],interfaceUrl:[{required:!0,message:l(()=>a("接口调用地址不能为空")),trigger:"blur"},{validator:j,trigger:"blur"}],interfaceType:[{required:!0,message:l(()=>a("接口类型不能为空")),trigger:"blur"}],interfaceMethod:[{required:!0,message:l(()=>a("请求方式不能为空")),trigger:"blur"}],networkAgreement:[{required:!0,message:l(()=>a("网络协议不能为空")),trigger:"blur"}],head:[{required:!0,message:l(()=>a("接口负责人不能为空")),trigger:"blur"}],headPhone:[{required:!0,message:l(()=>a("接口负责人联系方式不能为空")),trigger:"blur"},{validator:he,trigger:"blur"}],deptInfo:[{required:!0,message:l(()=>a("接口负责单位不能为空")),trigger:"blur"}],isOverwrite:[{required:!0,message:l(()=>a("是否覆盖更新不能为空")),trigger:"blur"}],version:[{required:!0,message:l(()=>a("版本不能为空")),trigger:"blur"},{validator:we,trigger:"blur"}],url:[{required:!0,message:l(()=>a("请输入链接地址")),trigger:"blur"},{validator:j,trigger:"blur"}]},itemList:[{type:"textarea",label:l(()=>a("请求头参数")),prop:""}],descriptionsFormConfig:{labelWidth:"100px",labelAlign:"center"}});let m=s({model:{networkAgreement:"http"},rules:{interfaceName:[{required:!0,message:l(()=>a("接口名称不能为空")),trigger:"blur"},{validator:ye,trigger:"blur"}],interfaceUrl:[{required:!0,message:l(()=>a("接口调用地址不能为空")),trigger:"blur"},{validator:j,trigger:"blur"}],interfaceType:[{required:!0,message:l(()=>a("接口类型不能为空")),trigger:"blur"}],interfaceMethod:[{required:!0,message:l(()=>a("请求方式不能为空")),trigger:"blur"}],networkAgreement:[{required:!0,message:l(()=>a("网络协议不能为空")),trigger:"blur"}],head:[{required:!0,message:l(()=>a("接口负责人不能为空")),trigger:"blur"}],isResponseFile:[{required:!0,message:l(()=>a("是否返回文件")),trigger:"blur"}],headPhone:[{required:!0,message:l(()=>a("接口负责人联系方式不能为空")),trigger:"blur"},{validator:he,trigger:"blur"}],deptInfo:[{required:!0,message:l(()=>a("接口负责单位不能为空")),trigger:"blur"}],isOverwrite:[{required:!0,message:l(()=>a("是否覆盖更新不能为空")),trigger:"blur"}],version:[{required:!0,message:l(()=>a("版本不能为空")),trigger:"blur"},{validator:we,trigger:"blur"}],url:[{required:!0,message:l(()=>a("请输入链接地址")),trigger:"blur"},{validator:j,trigger:"blur"}]},itemList:[{type:"select",label:l(()=>a("网络协议")),prop:"networkAgreement",props:{options:[{label:l(()=>a("http")),value:"http"},{label:l(()=>a("https")),value:"https"}],events:{change:e=>{m.value.model=_.value.model;for(let t of m.value.itemList)t.prop=="interfaceUrl"&&(t.props.prependText=e+"://")}}}},{type:"input",label:l(()=>a("接口地址")),prop:"interfaceUrl",required:!0,props:{placeholder:"请输入接口地址例如www.baidu.com",maxlength:500,prependText:"http://"}},{type:"slot",label:l(()=>a("接口类型")),prop:"interfaceType",props:{slotName:"interfaceType"}},{type:"select",label:l(()=>a("请求方式")),prop:"interfaceMethod",props:{options:[{label:l(()=>a("get")),value:"get"},{label:l(()=>a("post")),value:"post"}],events:{change:e=>{ce.value=e}}}},{type:"select",label:l(()=>a("是否返回文件")),prop:"isResponseFile",props:{disabled:!0,options:[{label:l(()=>a("是")),value:"true"},{label:l(()=>a("否")),value:"false"}]}},{type:"slot",label:l(()=>a("请求头参数")),prop:"",props:{slotName:"parameterHeader"}},{type:"slot",label:l(()=>a("请求参数")),prop:"",props:{slotName:"parameter"}}],descriptionsFormConfig:{labelWidth:"130px",labelAlign:"center"}});function De(e){let t={id:""+Date.now(),parameterKey:"",parameterType:"",required:"",defaultVal:"",notes:"",parameterStatus:e,isItems:!1,pid:0,level:1};if(e==1){let r=D(e,!1);t.sort=r.length==0?1:r[r.length-1].sort+1,r.push(t),x.value.tableData=r}else if(e==2){let r=D(e,!1);t.sort=r.length==0?1:r[r.length-1].sort+1,r.push(t),C.value.tableData=r}else if(e==3){let r=D(e,!1);r.push(t),F.value.tableData=r}}const Re=e=>{if(e==1)if(L.value.length!=0)for(let t of L.value)I(e,t);else E({type:"warning",message:(e==1?"请求头参数,":e==2?"请求参数,":e==3?"返回参数,":"")+"未选择数据,无法删除"});else if(e==2)if(P.value.length!=0)for(let t of P.value)I(e,t);else E({type:"warning",message:(e==1?"请求头参数,":e==2?"请求参数,":e==3?"返回参数,":"")+"未选择数据,无法删除"})};function D(e,t){let r=[],i=[];e==1?(r=re.value.vxeTableRef.getRecordset().updateRecords,i=x.value.tableData):e==2?(r=ie.value.vxeTableRef.getRecordset().updateRecords,i=C.value.tableData):e==3&&(r=Ie.value.vxeTableRef.getRecordset().updateRecords,i=F.value.tableData);let u=[],v=0;for(let o of i)v<r.length&&o.id==r[v].id?(u.push(r[v]),v++):u.push(o);if(t){let o=1;for(let b of u){if(!Z(b.parameterKey))return E({type:"warning",message:(e==1?"请求头参数,":e==2?"请求参数,":e==3?"返回参数":"")+"第"+o+"行参数key不能为空"}),!1;if(!Z(b.parameterType))return E({type:"warning",message:(e==1?"请求头参数":e==2?"请求参数":e==3?"返回参数":"")+"第"+o+"行,参数类型不能为空"}),!1;if(!Z(b.val))return E({type:"warning",message:(e==1?"请求头参数":e==2?"请求参数":e==3?"返回参数":"")+"第"+o+"行参数value不能为空"}),!1;o++}}return u}function Z(e){return!(e==null||e==null||e=="")}function I(e,t){let r=[],i=[];if(e==1){r=D(e,!1);for(let u of r)u.id!=t&&i.push(u);x.value.tableData=i}else if(e==2){r=D(e,!1);for(let u of r)u.id!=t&&i.push(u);C.value.tableData=i}else if(e==3){r=D(e,!1);for(let u of r)u.id!=t&&i.push(u);F.value.tableData=i}}function je(e){if(e==1)oe.value=!1,A.value=JSON.parse(JSON.stringify($.value));else if(e==2){O.value=!1;let t=JSON.parse(JSON.stringify(Se.value));f.value.method=t.method,f.value.nameSpace=t.nameSpace,f.value.webSpecification=t.webSpecification}}function He(e){e==1?ze.value.validate(t=>{if(t)oe.value=!1,$.value=JSON.parse(JSON.stringify(A.value));else return!1}):e==2&&se.value.validate(t=>{if(t)O.value=!1,Se.value=JSON.parse(JSON.stringify(f.value));else return!1})}async function _e(){m.value.model={},m.value.model.networkAgreement="http",m.value.model.interfaceUrl="",m.value.model.interfaceType="Rest",m.value.model.interfaceMethod="post",m.value.model.isResponseFile="false",M();let e=await Te();m.value.model.id=e.data,fe.value=e.data,Q.value=e.data,H("[]",!1),K(e)}_e();async function Ke(e){M();let r=await le({id:e});m.value.model=r.data;for(let i of m.value.itemList)i.props==null?i.props={disabled:!1}:i.props.disabled=!1;ee(r.data),H(r.data.parameters,!1),K(r),w.value.title=l(()=>a("编辑接口信息")),w.value.okText="保存",w.value.show=!0}async function Me(e){M();let t={id:e},r=await le(t);m.value.model=r.data;for(let v of m.value.itemList)v.props==null?v.props={disabled:!1}:v.props.disabled=!1;ee(r.data),H(r.data.parameters,!1),K(r);let i=await Te(t);m.value.model.id=i.data,fe.value=i.data,Q.value=i.data,me.value="1";let u={type:"slot",label:l(()=>a("覆盖更新")),prop:"isOverwrite",props:{slotName:"isOverwrite"}};m.value.itemList.push(u),w.value.title=l(()=>a("接口版本升级维护信息")),w.value.okText="保存",w.value.show=!0}async function We(e,t){M();let i=await le({id:e});m.value.model=i.data;for(let u of m.value.itemList)u.props==null?u.props={disabled:!0}:u.props.disabled=!0;ee(i.data),H(i.data.parameters,!0),K(i),w.value.okText=!1,w.value.title=l(()=>a("查看接口信息")),w.value.show=!0,Ae.isShow=t}function H(e,t){let r=JSON.parse(e),i=[],u=[],v=[];for(let o of r)o.parameterStatus=="1"&&i.push(o),o.parameterStatus=="2"&&u.push(o),o.parameterStatus=="3"&&v.push(o);g.value=!t,x.value.editConfig=g.value?{trigger:"click",enable:!0,mode:"cell"}:!1,x.value.tableData=i,C.value.editConfig=g.value?{trigger:"click",enable:!0,mode:"cell"}:!1,C.value.tableData=u,F.value.editConfig=g.value?{trigger:"click",enable:!0,mode:"cell"}:!1,F.value.tableData=v}function K(e){e.data.reqParameters!=null?ge.value=JSON.parse(e.data.reqParameters):ge.value=[],e.data.resParameters!=null?U.value=JSON.parse(e.data.resParameters):U.value=[]}function ee(e,t){e.isLimit=="是"?ue.value=!0:ue.value=!1,e.isAuth=="是"?de.value=!0:de.value=!1,e.isLimitData=="是"?ne.value=!0:ne.value=!1,ce.value=e.interfaceMethod,T.value=e.interfaceType,A.value=JSON.parse(e.limitInfo),$.value=JSON.parse(e.limitInfo),pe.value=e.parameterIds,Q.value=e.id}function M(){T.value="Rest",A.value={thresholdType:"0",limitTime:"",limitCount:"",thresholdVal:"",effect:"1",waitTime:""},$.value={thresholdType:"0",limitTime:"",limitCount:"",thresholdVal:"",effect:"1",waitTime:""},pe.value="",Be.value=!0,me.value="0";let e=[];for(let t of m.value.itemList)t.prop!="isOverwrite"&&e.push(t);m.value.itemList=e}function te(e,t){gt.alert(t,e,{confirmButtonText:"确认"})}const Xe=()=>{O.value=!0,console.log(_.value.model)},Ge=()=>{var t;y.value=!0;const e=(t=_.value)==null?void 0:t.elFormRef;_.value.model.interfaceType=T.value,console.log(_.value.model),e.validate(async r=>{if(r){let i=_.value.model;if(i.interfaceType!="Rest"){if(W(f.value.webSpecification)){te("webService补充信息确认","webService补充信息页面存在未填信息请确认"),y.value=!1;return}else if(f.value.webSpecification=="JAX-WS"&&(W(f.value.nameSpace)||W(f.value.method))){te("webService补充信息确认","webService补充信息页面存在未填信息请确认"),y.value=!1;return}}i.interfaceType!="Rest"&&(i.webSpecification=f.value.webSpecification,i.nameSpace=f.value.nameSpace,i.method=f.value.method),i.interfaceType=T.value,i.isOverwrite=Le.value;let u=D(1,!0);if(typeof u=="boolean"){y.value=!1;return}i.parameters=JSON.stringify(u);let v=D(2,!0);if(typeof v=="boolean"){y.value=!1;return}i.reqParameters=JSON.stringify(v);let o=await St(i);if(i.isResponseFile=="true"){const b=document.createElement("a");b.href=URL.createObjectURL(new Blob(o,{type:"application/octet-stream"}));const z=o.headers.get("Content-Disposition");let J="流文件";if(z&&z.includes("attachment")){const R=z.match(/filename="(["]*)"/);R&&(J=R)}b.download=J,b.click()}else if(o.code==0){E({message:"接口请求成功",type:"success"});try{o.data.data=JSON.parse(o.data.data)}catch{}Y.value=o.data,y.value=!1}else y.value=!1,Y.value={},te("接口请求失败",o.msg)}else y.value=!1})},W=e=>e==null||e==null||e=="";return yt({parameterType:0}).then(e=>{for(let t of e.data){let r={label:t.name,value:t.id};Ue.value.push(r)}}),Oe({addDialog:_e,edit:Ke,view:We,updateVersion:Me}),(e,t)=>{const r=tt,i=at,u=lt,v=rt,o=it,b=xe("y9VxeTable"),z=xe("y9Form"),J=st,R=ot,Ve=ut,Qe=nt,ae=dt,qe=pt,Ye=ft,Ze=mt,et=vt;return h(),Ce(qt,null,[Vt((h(),Ce("div",xt,[n(Ve,{gutter:10,class:"rowHeight"},{default:d(()=>[n(R,{span:14,class:"rowHeight"},{default:d(()=>[n(J,null,{default:d(()=>[n(z,{ref_key:"ruleFormRef",ref:_,config:S(m)},{interfaceType:d(()=>[n(i,{modelValue:T.value,"onUpdate:modelValue":t[1]||(t[1]=p=>T.value=p),disabled:!g.value},{default:d(()=>[n(r,{label:"Rest",value:"Rest"}),n(r,{label:"webService",value:"webService",onClick:t[0]||(t[0]=p=>Xe())})]),_:1},8,["modelValue","disabled"])]),network:d(()=>[n(v,{modelValue:be.value,"onUpdate:modelValue":t[2]||(t[2]=p=>be.value=p),disabled:""},{default:d(()=>[n(u,{label:"http",value:"http"}),n(u,{label:"https",value:"https"})]),_:1},8,["modelValue"])]),parameterHeader:d(()=>[n(b,{ref_key:"editRequestHeaderRef",ref:re,config:x.value,selectedVal:L.value,"onUpdate:selectedVal":t[5]||(t[5]=p=>L.value=p),filterConfig:ke.value},{slotBtns:d(()=>[g.value?(h(),V(o,{key:0,size:S(k).buttonSize,style:G({fontSize:S(k).baseFontSize}),class:"global-btn-main",type:"primary",onClick:t[3]||(t[3]=p=>De("1"))},{default:d(()=>[t[18]||(t[18]=c("i",{class:"ri-add-line"},null,-1)),c("span",null,B(e.$t("新增")),1)]),_:1},8,["size","style"])):q("",!0),g.value?(h(),V(o,{key:1,size:S(k).buttonSize,style:G({fontSize:S(k).baseFontSize}),class:"el-button el-button--default global-btn-third",type:"primary",onClick:t[4]||(t[4]=p=>Re("1"))},{default:d(()=>[t[19]||(t[19]=c("i",{class:"ri-delete-bin-line"},null,-1)),c("span",null,B(e.$t("删除")),1)]),_:1},8,["size","style"])):q("",!0)]),_:1},8,["config","selectedVal","filterConfig"])]),parameter:d(()=>[n(b,{ref_key:"editRequestRef",ref:ie,config:C.value,selectedVal:P.value,"onUpdate:selectedVal":t[8]||(t[8]=p=>P.value=p),filterConfig:ke.value},{slotBtns:d(()=>[g.value?(h(),V(o,{key:0,size:S(k).buttonSize,style:G({fontSize:S(k).baseFontSize}),class:"global-btn-main",type:"primary",onClick:t[6]||(t[6]=p=>De("2"))},{default:d(()=>[t[20]||(t[20]=c("i",{class:"ri-add-line"},null,-1)),c("span",null,B(e.$t("新增")),1)]),_:1},8,["size","style"])):q("",!0),g.value?(h(),V(o,{key:1,size:S(k).buttonSize,style:G({fontSize:S(k).baseFontSize}),class:"el-button el-button--default global-btn-third",type:"primary",onClick:t[7]||(t[7]=p=>Re("2"))},{default:d(()=>[t[21]||(t[21]=c("i",{class:"ri-delete-bin-line"},null,-1)),c("span",null,B(e.$t("删除")),1)]),_:1},8,["size","style"])):q("",!0)]),_:1},8,["config","selectedVal","filterConfig"])]),parameterResponse:d(()=>[n(wt,{ref_key:"responseParameterRef",ref:Pe,parameterStatus:ve.value,"onUpdate:parameterStatus":t[9]||(t[9]=p=>ve.value=p),data:U.value,"onUpdate:data":t[10]||(t[10]=p=>U.value=p),isView:g.value,"onUpdate:isView":t[11]||(t[11]=p=>g.value=p)},null,8,["parameterStatus","data","isView"])]),_:1},8,["config"])]),_:1})]),_:1}),n(R,{span:10,class:"rowHeight"},{default:d(()=>[c("div",Ct,[c("div",Et,[n(Ve,{style:{width:"100%"}},{default:d(()=>[n(R,{span:4,class:"elRow"},{default:d(()=>t[22]||(t[22]=[c("span",{class:"rtDataTitle"},"返回数据",-1)])),_:1}),n(R,{span:16}),n(R,{span:4,class:"btnDiv"},{default:d(()=>[n(o,{class:"global-btn-main",type:"primary",onClick:Ge},{default:d(()=>[t[23]||(t[23]=c("i",{class:"ri-send-plane-line"},null,-1)),c("span",null,B(e.$t("发送")),1)]),_:1})]),_:1})]),_:1})]),c("div",Nt,[n(J,{height:"calc(100% - 1px)"},{default:d(()=>[n(S(Dt),{data:Y.value},null,8,["data"])]),_:1})])])]),_:1})]),_:1})])),[[et,y.value]]),n(Ze,{modelValue:O.value,"onUpdate:modelValue":t[17]||(t[17]=p=>O.value=p),title:Je.value},{footer:d(()=>[g.value?(h(),V(o,{key:0,class:"el-button el-button--primary el-button--default global-btn-main",onClick:t[15]||(t[15]=p=>He("2"))},{default:d(()=>t[24]||(t[24]=[Ee("确定")])),_:1})):q("",!0),n(o,{onClick:t[16]||(t[16]=p=>je("2"))},{default:d(()=>t[25]||(t[25]=[Ee("取消")])),_:1})]),default:d(()=>[n(Qe),n(Ye,{ref_key:"webServiceRef",ref:se,model:f.value,"label-width":"155px",rules:$e.value},{default:d(()=>[n(ae,{label:"webService规范协议",prop:"webSpecification"},{default:d(()=>[n(v,{modelValue:f.value.webSpecification,"onUpdate:modelValue":t[12]||(t[12]=p=>f.value.webSpecification=p),placeholder:"请选择webService规范协议",disabled:!g.value},{default:d(()=>[n(u,{label:"JAX-WS",value:"JAX-WS"}),n(u,{label:"JAX-RS",value:"JAX-RS"})]),_:1},8,["modelValue","disabled"])]),_:1}),f.value.webSpecification=="JAX-WS"?(h(),V(ae,{key:0,label:"命名空间",prop:"nameSpace"},{default:d(()=>[n(qe,{modelValue:f.value.nameSpace,"onUpdate:modelValue":t[13]||(t[13]=p=>f.value.nameSpace=p),disabled:!g.value,placeholder:"请输入命名空间",maxlength:"300"},null,8,["modelValue","disabled"])]),_:1})):q("",!0),f.value.webSpecification=="JAX-WS"?(h(),V(ae,{key:1,label:"调用方法名",prop:"method"},{default:d(()=>[n(qe,{modelValue:f.value.method,"onUpdate:modelValue":t[14]||(t[14]=p=>f.value.method=p),disabled:!g.value,placeholder:"请输入调用方法名",maxlength:"300"},null,8,["modelValue","disabled"])]),_:1})):q("",!0)]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])],64)}}});const ya=Tt(Ot,[["__scopeId","data-v-b98edccb"],["__file","E:/workSpaceJDK11/y9-interface-platform/y9vue-interfacePlatform/src/views/interfaceTest/testDialog.vue"]]);export{ya as default};