import{e as R}from"./systemManage-d67b09c0-1779868775780v=1.0.0.js";import{E as i}from"./eleVendor-dbf96bf3-1779868775780v=1.0.0.js";import{l as k,a as n,e as A,ah as a,m as D,M,O as e,U as o,ab as f,ac as _,u as l,S as F,T as P}from"./vendor-98154105-1779868775780v=1.0.0.js";const T=k({__name:"EditPeopleForm",props:{info:Object},emits:["update"],setup(p,{emit:g}){const b=n(null),c=n({xs:24,sm:24,md:24,lg:18,xl:18}),r=n(!1),v=n({});let x=p;const t=A(()=>x.info),C=()=>{t.value,B()},y=g,B=async()=>{let s={areaId:t.value.areaId,peopleNum:t.value.peopleNum};r.value=!0,R(s).then(u=>{u.code===0?(i.success("\u66F4\u65B0\u6210\u529F"),y("update",s)):i.warning(u.message),r.value=!1})};return(s,u)=>{const m=a("el-form-item"),E=a("el-input"),d=a("FormCol"),N=a("el-button"),V=a("FormRow"),h=a("el-form");return D(),M(h,{model:l(t),rules:l(v),ref_key:"ruleFormRef",ref:b,"scroll-to-error":!0,"label-width":"120px"},{default:e(()=>[o(V,null,{default:e(()=>[o(d,f(_(l(c))),{default:e(()=>[o(m,{label:"\u533A\u57DF",prop:"name"},{default:e(()=>[F(P(p.info.name),1)]),_:1}),o(m,{label:"\u603B\u4EBA\u53E3\u6570\u91CF",prop:"people_num"},{default:e(()=>[o(E,{modelValue:l(t).peopleNum,"onUpdate:modelValue":u[0]||(u[0]=w=>l(t).peopleNum=w),type:"number",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1},16),o(d,f(_(l(c))),{default:e(()=>[o(m,null,{default:e(()=>[o(N,{type:"primary",loading:l(r),onClick:C},{default:e(()=>[F("\u63D0\u4EA4")]),_:1},8,["loading"])]),_:1})]),_:1},16)]),_:1})]),_:1},8,["model","rules"])}}});export{T as _};
