import d from"./BaseForm-27b997f0-1785478469326v=1.0.0.js";import{a as g}from"./warnConfApi-c3a5d645-1785478469326v=1.0.0.js";import{u as C}from"./useFormEdit-c3e1ba91-1785478469326v=1.0.0.js";import{E as l}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{x as f,r as n,al as v,y as _,H as y,I as B,Q as b,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 w=f({name:"warnConfAdd"}),U=f({...w,setup(x){const{closeCurrent:r}=C(),s=n({semester:"",name:"",warnConfTypes:"",schoolYearName:"",unqualifiedNum:"",exerciseNum:""}),a=n(!1),c=()=>{r()};n("");const p=async u=>{a.value=!0;try{let e=g,t="\u65B0\u589E\u6210\u529F",o=await e(u);o.code==0?(l({type:"success",message:`${t}!`}),r()):l.warning(o.msg),a.value=!1}catch{a.value=!1}};return(u,e)=>{const t=v("HZPageLayout");return _(),y(t,{isBack:!0,title:"\u65B0\u589E\u9884\u8B66\u89C4\u5219"},{default:B(()=>[b(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:c,onSubmit:p},null,8,["value","loading"])]),_:1})}}});export{U as default};
