import{_ as g}from"./BaseForm.vue_vue_type_script_setup_true_lang-66b7fd79-1782729249161v=1.0.0.js";import{a as v}from"./contestAppealApi-fdd3a65e-1782729249161v=1.0.0.js";import{u as _}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as y}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as m}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as i,r as n,al as b,z as C,I as k,J as F,R as I,u as r,k as c}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const N=i({name:"contestAppealAdd"}),L=i({...N,setup(w){const{closeCurrent:l}=_(),o=n({eventId:"",dictId:"",content:"",evidence:[],replyContent:"",replyAttachments:[],isShowReply:"",appealFeedbackType:"",appealFeedbackStatus:"",creatorName:"",createPhone:"",createTime:"",eventName:"",appealFeedbackId:"",creatorOrganUnitId:"",handlerName:"",dictIdName:""}),a=n(!1),p=()=>{l()};n("");const d=y(),f=async u=>{a.value=!0;try{let e=v,s="\u65B0\u589E\u6210\u529F",t=await e(u);t.code==0?(m({type:"success",message:`${s}!`}),l()):m.warning(t.msg),a.value=!1}catch{a.value=!1}};return(u,e)=>{const s=b("HZPageLayout");return C(),k(s,{title:r(d).meta.title,isBack:!0},{default:F(()=>[I(g,{value:r(o),"onUpdate:value":e[0]||(e[0]=t=>c(o)?o.value=t:null),loading:r(a),"onUpdate:loading":e[1]||(e[1]=t=>c(a)?a.value=t:null),onCancel:p,onSubmit:f},null,8,["value","loading"])]),_:1},8,["title"])}}});export{L as default};
