import y from"./BaseForm-27b997f0-1785478469326v=1.0.0.js";import{u as C,b as _}from"./warnConfApi-c3a5d645-1785478469326v=1.0.0.js";import{u as b}from"./useFormEdit-c3e1ba91-1785478469326v=1.0.0.js";import{b as w}from"./index-5a47c360-1785478469326v=1.0.0.js";import{E as r}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{x as c,r as l,k as F,al as B,y as x,H as k,I as q,Q as E,u as m,l as f}from"./vendor-46662d77-1785478469326v=1.0.0.js";import"./eleValidate-142411d7-1785478469326v=1.0.0.js";import"./keepAlive-4a384a77-1785478469326v=1.0.0.js";const N=c({name:"warnConfEdit"}),W=c({...N,setup(H){const{closeCurrent:i}=b(),d=l(null),o=l({semester:"",name:"",warnConfTypes:"",status:"",updater:"",updateTime:"",schoolYearName:"",unqualifiedNum:"",exerciseNum:""}),a=l(!1),p=()=>{i()},g=async s=>{a.value=!0;try{let e=C,u="\u66F4\u65B0\u6210\u529F",t=await e(s);t.code==0?r({type:"success",message:`${u}!`}):r.warning(t.msg),a.value=!1,i()}catch{a.value=!1}},n=w(),v=async s=>{let e=await _(s);if(e.code!=0){r.warning(e.msg);return}o.value=e.data};return F(()=>{n.query.id&&(d.value=n.query.id,v(n.query.id))}),(s,e)=>{const u=B("HZPageLayout");return x(),k(u,{isBack:!0,title:"\u7F16\u8F91\u9884\u8B66\u89C4\u5219"},{default:q(()=>[E(y,{value:m(o),"onUpdate:value":e[0]||(e[0]=t=>f(o)?o.value=t:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=t=>f(a)?a.value=t:null),onCancel:p,onSubmit:g},null,8,["value","loading"])]),_:1})}}});export{W as default};
