import{b as C}from"./list.f5b484b8.js";import{A as b}from"./index.1d26a072.js";import{d as h,r as A,p as k,b as v,c as a,e as x,k as B,i as o,h as t,u as s,m as _,E as D}from"./index.0308b213.js";const w=_("\u63D0\u4EA4"),y=_("\u53D6\u6D88"),M=h({props:{modelValue:{type:Boolean},ids:null},emits:["update:modelValue","onClose"],setup(f,{emit:i}){const p=f,u=A(!1);k(()=>p.modelValue,d=>{u.value=d});const e=v({ids:[],agentid:""}),g=()=>{e.ids=p.ids,C(e).then(d=>{D({message:"\u66F4\u65B0\u4EE3\u7406\u6210\u529F",type:"success"}),n()})},n=()=>{i("update:modelValue",!1),i("onClose"),e.agentid="",e.ids=[]};return(d,l)=>{const r=a("el-form-item"),c=a("el-button"),E=a("el-form"),V=a("el-dialog");return x(),B(V,{modelValue:u.value,"onUpdate:modelValue":l[1]||(l[1]=m=>u.value=m),title:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EE3\u7406",width:"50%",onClose:n},{default:o(()=>[t(E,{model:s(e),"label-width":"120px"},{default:o(()=>[t(r,{label:"\u6240\u5C5E\u4EE3\u7406",prop:"agentid"},{default:o(()=>[t(s(b),{modelValue:s(e).agentid,"onUpdate:modelValue":l[0]||(l[0]=m=>s(e).agentid=m)},null,8,["modelValue"])]),_:1}),t(r,null,{default:o(()=>[t(c,{type:"primary",onClick:g},{default:o(()=>[w]),_:1}),t(c,{onClick:n},{default:o(()=>[y]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}});export{M as _};
