import{_ as g}from"./BaseForm.vue_vue_type_script_setup_true_lang-4958fad7-1782572373740v=1.0.0.js";import{a as _}from"./noticeApi-d129a4e2-1782572373740v=1.0.0.js";import{u as v}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as y}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as l}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as p,r as n,al as b,z as C,I as R,J as T,R as k,u as r,k as i}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./WangEditor-58f37dd0-1782572373740v=1.0.0.js";import"./style-72b27c88-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const B=p({name:"noticeAdd"}),U=p({...B,setup(E){const{closeCurrent:u}=v(),o=n({name:"",uploadType:"pic",coverImage:"",isPopupRemind:"",popupRemindType:"",content:"",publishTime:"",isHomeRecommend:"",status:"",creator:"",updater:"",createTime:"",updateTime:""}),a=n(!1),c=()=>{u()};n("");const d=y(),f=async m=>{a.value=!0;try{let e=_,s="\u65B0\u589E\u6210\u529F",t=await e(m);t.code==0?(l({type:"success",message:`${s}!`}),u()):l.warning(t.msg),a.value=!1}catch{a.value=!1}};return(m,e)=>{const s=b("HZPageLayout");return C(),R(s,{title:r(d).meta.title,isBack:!0},{default:T(()=>[k(g,{value:r(o),"onUpdate:value":e[0]||(e[0]=t=>i(o)?o.value=t:null),loading:r(a),"onUpdate:loading":e[1]||(e[1]=t=>i(a)?a.value=t:null),onCancel:c,onSubmit:f},null,8,["value","loading"])]),_:1},8,["title"])}}});export{U as default};
