import v from"./BaseForm-d2577af2-1782729249161v=1.0.0.js";import{u as _,b}from"./auditSettingApi-3eb5bec3-1782729249161v=1.0.0.js";import{u as C}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as B}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as u}from"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import{y as c,r as i,m as R,al as S,z as w,I as F,J as L,R as k,u as l,k as m}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./Logicflow-16a23541-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=1.0.0.js";const E=c({name:"auditSettingEdit"}),O=c({...E,setup(I){const{closeCurrent:d}=C(),f=i(null),o=i({type:"",name:"",dictTypeSign:"",status:"",creatorOrganUnitType:""}),a=i(!1),n=B(),p=()=>{d()},g=async r=>{a.value=!0;try{let e=_,s="\u66F4\u65B0\u6210\u529F",t=await e(r);t.code==0?u({type:"success",message:`${s}!`}):u.warning(t.msg),a.value=!1,d()}catch{a.value=!1}},y=async r=>{let e=await b(r);if(e.code!=0){u.warning(e.msg);return}e.data.auditNodeConfBase=e.data.auditNodeConfListRespVOList.map(s=>{var t;return{...s,auditRolePersIds:(t=s.auditRolePersIds)==null?void 0:t.split(",").map(Number)}}),o.value=e.data};return R(()=>{n.query.id&&(f.value=n.query.id,y(n.query.id))}),(r,e)=>{const s=S("HZPageLayout");return w(),F(s,{isBack:!0,title:l(n).meta.title},{default:L(()=>[k(v,{value:l(o),"onUpdate:value":e[0]||(e[0]=t=>m(o)?o.value=t:null),loading:l(a),"onUpdate:loading":e[1]||(e[1]=t=>m(a)?a.value=t:null),onCancel:p,onSubmit:g},null,8,["value","loading"])]),_:1},8,["title"])}}});export{O as default};
