import d from"./BaseForm-5822065e-1785478469326v=1.0.0.js";import{a as g}from"./exerciseConfApi-049fdfec-1785478469326v=1.0.0.js";import{u as B}from"./useFormEdit-c3e1ba91-1785478469326v=1.0.0.js";import{E as l}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{x as c,r,al as v,y as C,H as _,I as x,Q as y,u as m,l as i}from"./vendor-46662d77-1785478469326v=1.0.0.js";import"./eleValidate-142411d7-1785478469326v=1.0.0.js";import"./index-5a47c360-1785478469326v=1.0.0.js";import"./keepAlive-4a384a77-1785478469326v=1.0.0.js";const E=c({name:"exerciseConfAdd"}),S=c({...E,setup(b){const{closeCurrent:u}=B(),s=r({exerciseType:[],fullNum:"",schoolYearId:"",semester:"",updateTime:"",updater:""}),a=r(!1),f=()=>{u()};r("");const p=async n=>{a.value=!0;try{let e=g,t="\u65B0\u589E\u6210\u529F",o=await e(n);o.code==0?(l({type:"success",message:`${t}!`}),u()):l.warning(o.msg),a.value=!1}catch{a.value=!1}};return(n,e)=>{const t=v("HZPageLayout");return C(),_(t,{isBack:!0,title:"\u65B0\u589E\u8BFE\u5916\u953B\u70BC\u8BB0\u5F55"},{default:x(()=>[y(d,{value:m(s),"onUpdate:value":e[0]||(e[0]=o=>i(s)?s.value=o:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=o=>i(a)?a.value=o:null),onCancel:f,onSubmit:p},null,8,["value","loading"])]),_:1})}}});export{S as default};
