import{_ as g}from"./BaseForm.vue_vue_type_script_setup_true_lang-f4ad8f50-1782729249161v=1.0.0.js";import{a as _}from"./noticeApi-b0dbfbdc-1782729249161v=1.0.0.js";import{u as v}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as y}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as l}from"./eleVendor-5008d1ec-1782729249161v=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-1e24e3ad-1782729249161v=1.0.0.js";import"./WangEditor-ba648bf2-1782729249161v=1.0.0.js";import"./style-368a93d4-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=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};
