import{_}from"./BaseForm.vue_vue_type_script_setup_true_lang-b9aa5b8f-1782729249161v=1.0.0.js";import{u as v,a as C}from"./blackListApi-59f03f24-1782729249161v=1.0.0.js";import{u as y}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as B}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as i}from"./eleVendor-5008d1ec-1782729249161v=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-1e24e3ad-1782729249161v=1.0.0.js";import"./index-38156277-1782729249161v=1.0.0.js";import"./useTable-cf8e962b-1782729249161v=1.0.0.js";import"./notData-926f7286-1782729249161v=1.0.0.js";import"./useHandleData-54f3fb4d-1782729249161v=1.0.0.js";import"./blackMemberApi-6663df46-1782729249161v=1.0.0.js";import"./keepAlive-20a782c5-1782729249161v=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};
