import{x as f,r as n,k as y,al as b,y as F,H as C,I as M,Q as k,u as m,l as c}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import w from"./BaseForm-92879067-1783405707921v=1.0.0.js";import{u as E,g as x}from"./clubManageApi-2b55464b-1783405707921v=1.0.0.js";import{u as B}from"./useFormEdit-38c2c94d-1783405707921v=1.0.0.js";import{a as h,_ as I}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{E as l}from"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import"./collageManageApi-e21931eb-1783405707921v=1.0.0.js";import"./keepAlive-6cb682d1-1783405707921v=1.0.0.js";const R=f({name:"managerManageEdit"}),q=f({...R,setup(D){const{closeCurrent:i}=B(),d=n(null),s=n({collegeId:"",clubName:""}),a=n(!1),g=()=>{i()},p=async t=>{a.value=!0;try{let e=E,r="\u66F4\u65B0\u6210\u529F";t.attachment=t.fileStr;let o=await e(t);o.code==0?l({type:"success",message:`${r}!`}):l.warning(o.msg),a.value=!1,i()}catch{a.value=!1}},u=h(),_=n(null),v=async t=>{let e=await x(t);if(e.code!=0){l.warning(e.msg);return}s.value=e.data};return y(()=>{u.query.id&&(d.value=u.query.id,v(u.query.id))}),(t,e)=>{const r=b("HZPageLayout");return F(),C(r,{title:"\u7F16\u8F91\u4FF1\u4E50\u90E8",isBack:!0},{default:M(()=>[k(w,{value:m(s),"onUpdate:value":e[0]||(e[0]=o=>c(s)?s.value=o:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=o=>c(a)?a.value=o:null),onCancel:g,onSubmit:p,tsIdDisabled:!0,ref_key:"formRef",ref:_},null,8,["value","loading"])]),_:1})}}}),Q=I(q,[["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/baseManage/clubManage/edit.vue"]]);export{Q as default};
