import v from"./BaseForm-2e045d54-1785478469326v=1.0.0.js";import{a as C}from"./sportsTargetApi-e7a26b67-1785478469326v=1.0.0.js";import{u as y}from"./useGetCollage-5696f774-1785478469326v=1.0.0.js";import{u as L}from"./useFormEdit-c3e1ba91-1785478469326v=1.0.0.js";import{E as i}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{x as d,r as n,k as _,al as E,y as b,H as B,I as F,Q as T,u as m,l as c}from"./vendor-46662d77-1785478469326v=1.0.0.js";import"./index-5a47c360-1785478469326v=1.0.0.js";import"./keepAlive-4a384a77-1785478469326v=1.0.0.js";const w=d({name:"sportsTargetAdd"}),O=d({...w,setup(V){const{closeCurrent:r}=L(),o=n({semester:"0",updater:"",updateTime:"",schoolYearName:"",synTargetConfAddReqVOList:[],totalVoList:{collegeId:0}}),{collageList:u,getCollageList:f}=y(!1),t=n(!1),g=()=>{r()};n("");const p=async s=>{t.value=!0;try{let e=C,l="\u65B0\u589E\u6210\u529F",a=await e(s);a.code==0?(i({type:"success",message:`${l}!`}),r()):i.warning(a.msg)}catch{}finally{t.value=!1}};return _(async()=>{await f("",{size:100}),u.value;const s=u.value.map(e=>({collegeId:e.value,collegeName:e.label}));o.value.synTargetConfAddReqVOList=[...o.value.synTargetConfAddReqVOList,...s]}),(s,e)=>{const l=E("HZPageLayout");return b(),B(l,{isBack:!0,title:"\u65B0\u589E\u4F53\u80B2\u5DE5\u4F5C\u76EE\u6807"},{default:F(()=>[T(v,{value:m(o),"onUpdate:value":e[0]||(e[0]=a=>c(o)?o.value=a:null),loading:m(t),"onUpdate:loading":e[1]||(e[1]=a=>c(t)?t.value=a:null),onCancel:g,onSubmit:p},null,8,["value","loading"])]),_:1})}}});export{O as default};
