import{_ as y}from"./BaseForm.vue_vue_type_script_setup_true_lang-05a2cb59-1782468512657v=1.0.0.js";import{u as b,g as C}from"./clubManageApi-720ad24a-1782468512657v=1.0.0.js";import{u as F}from"./useFormEdit-57ddb914-1782468512657v=1.0.0.js";import{a as E}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{E as l}from"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import{x as c,r as n,k,al as w,y as M,H as x,I as B,Q as I,u as m,l as f}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import"./collageManageApi-6fb2328f-1782468512657v=1.0.0.js";import"./keepAlive-a871c896-1782468512657v=1.0.0.js";const R=c({name:"managerManageEdit"}),$=c({...R,setup(q){const{closeCurrent:i}=F(),d=n(null),s=n({collegeId:"",clubName:""}),a=n(!1),g=()=>{i()},p=async t=>{a.value=!0;try{let e=b,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=E(),_=n(null),v=async t=>{let e=await C(t);if(e.code!=0){l.warning(e.msg);return}s.value=e.data};return k(()=>{u.query.id&&(d.value=u.query.id,v(u.query.id))}),(t,e)=>{const r=w("HZPageLayout");return M(),x(r,{title:"\u7F16\u8F91\u4FF1\u4E50\u90E8",isBack:!0},{default:B(()=>[I(y,{value:m(s),"onUpdate:value":e[0]||(e[0]=o=>f(s)?s.value=o:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=o=>f(a)?a.value=o:null),onCancel:g,onSubmit:p,tsIdDisabled:!0,ref_key:"formRef",ref:_},null,8,["value","loading"])]),_:1})}}});export{$ as default};
