import{c as e,r as a,o as s,v as r,x as o,e as t,B as m,y as l,ab as d,a9 as n}from"./base-lib.js?v=1761009159";import{P as u,k as p,_ as i}from"./utils-lib.js?v=1761009159";import{addJavaGroup as c}from"./site.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const f={class:"p-[2rem]"},_=i(e({__name:"add-group",props:{compData:{default:{}}},setup(e,{expose:i}){const _=e,b=a(),v=a(!1),g=s({name:""}),j={name:{required:!0,message:"请输入项目组名称",trigger:"blur"}};return i({onConfirm:async e=>{await b.value.validate(),u({loading:v,request:c({group_name:g.name}),success:a=>{a.status&&(_.compData.refreshEvent&&_.compData.refreshEvent(),e&&e())}})}}),(e,a)=>{const s=p,u=d,i=n;return r(),o("div",f,[t(i,{ref_key:"javaAddFormRef",ref:b,model:l(g),disabled:l(v),"label-width":"9rem",rules:j},{default:m(()=>[t(u,{label:"项目组名称",prop:"name"},{default:m(()=>[t(s,{modelValue:l(g).name,"onUpdate:modelValue":a[0]||(a[0]=e=>l(g).name=e),width:"22rem"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])])}}}),[["__scopeId","data-v-aa2b2282"]]);export{_ as default};
