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