import{_ as v}from"./BaseForm.vue_vue_type_script_setup_true_lang-7cb17ce7-1782572373740v=1.0.0.js";import{u as _,b as y}from"./blackListApi-f3bc4cc8-1782572373740v=1.0.0.js";import{u as k}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{a as C}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as i}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as d,r as l,m as B,al as L,z as w,I as M,J as E,R as F,u,k as c}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 I=d({name:"blackListEdit"}),J=d({...I,setup(q){const{closeCurrent:m}=k(),f=l(null),o=l({name:"",violationsType:"",status:"",blacklistMembers:"",blacklistMemberCount:"",createTime:""}),t=l(!1),s=C(),p=()=>{m()},g=async r=>{t.value=!0;try{let e=_,n="\u66F4\u65B0\u6210\u529F",a=await e(r);a.code==0?i({type:"success",message:`${n}!`}):i.warning(a.msg),t.value=!1,m()}catch{t.value=!1}},b=async r=>{let e=await y(r);if(e.code!=0){i.warning(e.msg);return}e.data.dictId=Number(e.data.dictId||0),o.value=e.data};return B(()=>{s.query.id&&(f.value=s.query.id,b(s.query.id))}),(r,e)=>{const n=L("HZPageLayout");return w(),M(n,{title:u(s).meta.title,isBack:!0},{default:E(()=>[F(v,{value:u(o),"onUpdate:value":e[0]||(e[0]=a=>c(o)?o.value=a:null),loading:u(t),"onUpdate:loading":e[1]||(e[1]=a=>c(t)?t.value=a:null),editMode:!0,onCancel:p,onSubmit:g},null,8,["value","loading"])]),_:1},8,["title"])}}});export{J as default};
