import{_ as v}from"./BaseForm.vue_vue_type_script_setup_true_lang-b9aa5b8f-1782729249161v=1.0.0.js";import{u as _,b as y}from"./blackListApi-59f03f24-1782729249161v=1.0.0.js";import{u as k}from"./useFormEdit-fb8b8504-1782729249161v=1.0.0.js";import{a as C}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{E as i}from"./eleVendor-5008d1ec-1782729249161v=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-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 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};
