import{_ as y}from"./BaseForm.vue_vue_type_script_setup_true_lang-b746edb5-1782572373740v=1.0.0.js";import{u as _,g as b}from"./noticeApi-d129a4e2-1782572373740v=1.0.0.js";import{u as C}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as R}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as u}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as p,r as i,m as w,al as T,z as k,I as B,J as E,R as F,u as l,k as c}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 q=p({name:"noticeEdit"}),$=p({...q,setup(x){const{closeCurrent:m}=C(),d=i(null),o=i({name:"",uploadType:"",coverImage:[],isPopupRemind:"",popupRemindType:"",content:"",publishTime:"",isHomeRecommend:"",status:"",creator:"",updater:"",createTime:"",updateTime:""}),t=i(!1),f=()=>{m()},g=async n=>{t.value=!0;try{let e=_,r="\u66F4\u65B0\u6210\u529F",a=await e(n);a.code==0?(u({type:"success",message:`${r}!`}),m()):u.warning(a.msg),t.value=!1}catch{t.value=!1}},s=R(),v=async n=>{let e=await b(n);if(e.code!=0){u.warning(e.msg);return}o.value=e.data};return w(()=>{s.query.id&&(d.value=s.query.id,v(s.query.id))}),(n,e)=>{const r=T("HZPageLayout");return k(),B(r,{title:l(s).meta.title,isBack:!0},{default:E(()=>[F(y,{value:l(o),"onUpdate:value":e[0]||(e[0]=a=>c(o)?o.value=a:null),loading:l(t),"onUpdate:loading":e[1]||(e[1]=a=>c(t)?t.value=a:null),onCancel:f,onSubmit:g},null,8,["value","loading"])]),_:1},8,["title"])}}});export{$ as default};
