import{_}from"./BaseForm.vue_vue_type_script_setup_true_lang-7cb17ce7-1782572373740v=1.0.0.js";import{u as v,a as C}from"./blackListApi-f3bc4cc8-1782572373740v=1.0.0.js";import{u as y}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as B}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as i}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as f,r as u,al as L,z as x,I as F,J as k,R as w,u as l,k as m}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./index-da665ffa-1782572373740v=1.0.0.js";import"./useTable-34acff72-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import"./blackMemberApi-a2afd7a9-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const E=f({name:"exerciseConfAdd"}),M=f({...E,setup(I){const{closeCurrent:p}=y(),d=B(),s=u({}),t=u(!1),c=()=>{p()};u("");const g=async(r,e)=>{t.value=!0;try{let a=r.blacklistId?v:C,o="\u4FDD\u5B58\u6210\u529F",n=await a(r);n.code==0?(i({type:"success",message:`${o}!`}),s.value.blacklistId=n.data,e==null||e()):i.warning(n.msg),t.value=!1}catch{t.value=!1}};return(r,e)=>{const a=L("HZPageLayout");return x(),F(a,{isBack:!0,title:l(d).meta.title},{default:k(()=>[w(_,{value:l(s),"onUpdate:value":e[0]||(e[0]=o=>m(s)?s.value=o:null),loading:l(t),"onUpdate:loading":e[1]||(e[1]=o=>m(t)?t.value=o:null),onCancel:c,onSubmit:g},null,8,["value","loading"])]),_:1},8,["title"])}}});export{M as default};
