import{h as C}from"./slide.03026ab3.js";import{A as b}from"./index.1d26a072.js";import{d as h,r as k,p as v,b as x,c as a,e as A,k as B,i as o,h as t,u,m as _,E as D}from"./index.0308b213.js";const w=_("\u63D0\u4EA4"),y=_("\u53D6\u6D88"),M=h({props:{modelValue:{type:Boolean},agents:null,ids:null},emits:["update:modelValue","onClose"],setup(f,{emit:i}){const p=f,s=k(!1);v(()=>p.modelValue,d=>{s.value=d});const e=x({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 A(),B(V,{modelValue:s.value,"onUpdate:modelValue":l[1]||(l[1]=m=>s.value=m),title:"\u8BF7\u9009\u62E9\u6240\u5C5E\u4EE3\u7406",width:"50%",onClose:n},{default:o(()=>[t(E,{model:u(e),"label-width":"120px"},{default:o(()=>[t(r,{label:"\u6240\u5C5E\u4EE3\u7406",prop:"agentid"},{default:o(()=>[t(u(b),{modelValue:u(e).agentid,"onUpdate:modelValue":l[0]||(l[0]=m=>u(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 _};
