import v from"./BaseForm-7a053dce-1782572373740v=1.0.0.js";import{u as _,g as C}from"./scoreApi-49c9277f-1782572373740v=1.0.0.js";import{u as b}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as w}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as u}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as f,r as l,m as B,al as F,z as S,I as k,J as E,R as q,u as i,k as c}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./scoreCertificateApi-e42b5e9e-1782572373740v=1.0.0.js";import"./scoreReleaseApi-a2bdf2d9-1782572373740v=1.0.0.js";import"./eleValidate-aae13e4d-1782572373740v=1.0.0.js";import"./index.vue_vue_type_script_setup_true_lang-aea23a9b-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const x=f({name:"scoreEdit"}),J=f({...x,setup(L){const{closeCurrent:m}=b(),p=l(null),o=l({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:"",eventGradeConf:"ts"}),t=l(!1),s=w(),d=()=>{m()},g=async r=>{t.value=!0;try{let e=_,n="\u66F4\u65B0\u6210\u529F",a=await e(r);a.code==0?u({type:"success",message:`${n}!`}):u.warning(a.msg),t.value=!1,m()}catch{t.value=!1}},y=async r=>{let e=await C(r);if(e.code!=0){u.warning(e.msg);return}o.value=e.data};return B(()=>{s.query.id&&(p.value=s.query.id,y(s.query.id))}),(r,e)=>{const n=F("HZPageLayout");return S(),k(n,{isBack:!0,title:i(s).meta.title},{default:E(()=>[q(v,{value:i(o),"onUpdate:value":e[0]||(e[0]=a=>c(o)?o.value=a:null),loading:i(t),"onUpdate:loading":e[1]||(e[1]=a=>c(t)?t.value=a:null),onCancel:d,onSubmit:g},null,8,["value","loading"])]),_:1},8,["title"])}}});export{J as default};
