import v from"./BaseForm-9a7cf223-1782572373740v=1.0.0.js";import{u as _,b}from"./auditSettingApi-48a02122-1782572373740v=1.0.0.js";import{u as C}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as B}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as u}from"./eleVendor-48a7d3b8-1782572373740v=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-866bb149-1782572373740v=1.0.0.js";import"./Logicflow-f6948428-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=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};
