"use strict";(self.webpackChunkwu_vue_zone_ecology_net=self.webpackChunkwu_vue_zone_ecology_net||[]).push([[394],{62394:function(e,l,o){o.r(l),o.d(l,{default:function(){return r}});var t=o(67759),a=o(76364);var r={__name:"ServerPermeateClientPortPoolEdit",props:{showDialog:{type:Boolean,default:!0},title:{type:String,default:"添加"},rowData:{type:Object,default:null}},emits:["closeDialog"],setup(e,{emit:l}){const o={projectId:[{required:!0,message:"请输入选择项目",trigger:"blur"}],schemaName:[{required:!0,message:"请输入选择数据库",trigger:"blur"}],applicationName:[{required:!0,message:"请输入应用名",trigger:"blur"}]},r=e,u=l,{title:i,rowData:d}=(0,a.BK)(r),n=()=>{u("closeDialog",!1)},s=(0,a.iH)(null),c=(0,a.qj)({visitorPort:"",describe:""}),{visitorPort:m,describe:p}=(0,a.BK)(c);d.value&&(m.value=d.value.visitorPort,p.value=d.value.describe);return(0,t.bv)((async()=>{})),(l,r)=>{const u=(0,t.up)("el-input"),v=(0,t.up)("el-form-item"),f=(0,t.up)("el-form"),w=(0,t.up)("el-button"),_=(0,t.up)("el-dialog");return(0,t.wg)(),(0,t.j4)(_,{title:(0,a.SU)(i),"append-to-body":"","destroy-on-close":"","model-value":e.showDialog,onClose:r[4]||(r[4]=e=>n())},{footer:(0,t.w5)((()=>[(0,t._)("span",null,[(0,t.Wm)(w,{onClick:r[2]||(r[2]=e=>n())},{default:(0,t.w5)((()=>r[5]||(r[5]=[(0,t.Uk)("取消")]))),_:1}),(0,t.Wm)(w,{type:"primary",onClick:r[3]||(r[3]=e=>{s.value.validate((async e=>{if(!e)return console.log("error submit!!"),!1;{let e;e="添加"===i.value?await VE_API.cloudNetwork.visitorSave(c):await VE_API.cloudNetwork.visitorUpdate({visitorPort:d.value.visitorPort,...c});const{code:l}=e;0===l&&n()}}))})},{default:(0,t.w5)((()=>r[6]||(r[6]=[(0,t.Uk)("确定")]))),_:1})])])),default:(0,t.w5)((()=>[(0,t.Wm)(f,{model:c,ref_key:"formRef",ref:s,rules:o,"label-width":"80px",inline:!1},{default:(0,t.w5)((()=>[(0,t.Wm)(v,{label:"访客端口",prop:"visitorPort"},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{modelValue:(0,a.SU)(m),"onUpdate:modelValue":r[0]||(r[0]=e=>(0,a.dq)(m)?m.value=e:null),placeholder:"",clearable:""},null,8,["modelValue"])])),_:1}),(0,t.Wm)(v,{label:"描述",prop:"describe"},{default:(0,t.w5)((()=>[(0,t.Wm)(u,{modelValue:(0,a.SU)(p),"onUpdate:modelValue":r[1]||(r[1]=e=>(0,a.dq)(p)?p.value=e:null),placeholder:"",clearable:""},null,8,["modelValue"])])),_:1})])),_:1},8,["model"])])),_:1},8,["title","model-value"])}}}}}]);