← Back
Editing: set-tomcat.js
import{G as s}from"./utils-lib.js?v=VERSION_NUMBER";import{c as a,g as t,e,B as r,T as o,p as m,q as l,v as i,x as p}from"./base-lib.js?v=VERSION_NUMBER";import{k as u,h as n,b as c,d,F as j}from"./form-item.js?v=VERSION_NUMBER";import{r as x,u as v,e as _,f,h as b,a as w,g as h}from"./index361.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./index103.js?v=VERSION_NUMBER";import"./index123.js?v=VERSION_NUMBER";import"./index101.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";import"./site.js?v=VERSION_NUMBER";import"./validator.js?v=VERSION_NUMBER";const g={class:"p-2rem"},k=a({__name:"set-tomcat",emits:["close"],setup(a,{expose:k,emit:q}){const y=q,{BtForm:B,submit:C}=s({data:()=>x.value?{...x.value}:{},options:s=>t((()=>[u("启动用户","user",v.value,{attrs:{class:"!w-[30rem]"}}),n("开机启动",(()=>e(o,{modelValue:s.value.auto_restart,"onUpdate:modelValue":a=>s.value.auto_restart=a},{default:()=>[r("是否设置开机自动启动")]})),"auto_restart",{attrs:{class:"!w-[10rem]"}}),c("端口","port",{attrs:{class:"!w-[20rem]",placeholder:"请输入端口",type:"number"},rules:[{required:!0,message:"请输入Tomcat名称"}]}),d([u("JDK","jdk_path",_.value,{attrs:{class:"!w-[30rem]"}}),j((()=>e("span",{class:"bt-link ml-8px h-[32px] leading-[32px] text-center",onClick:()=>{y("close"),f()}},[r("添加JDK")])))]),c("备注","ps",{attrs:{class:"!w-[30rem]",placeholder:"请输入备注"}})])),submit:async(s,a)=>(await a(),await b(s.value))});return m((()=>{w(),h()})),k({onConfirm:C}),(s,a)=>(l(),i("div",g,[e(p(B))]))}});export{k as default};
Save File
Cancel