import{_ as y}from"./BaseForm.vue_vue_type_script_setup_true_lang-068bce94-1782729249161v=1.0.0.js";import{u as _,g as b}from"./noticeApi-b0dbfbdc-1782729249161v=1.0.0.js";import{u as C}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as R}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as u}from"./eleVendor-5008d1ec-1782729249161v=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-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 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};
