import{c as k}from"./member.b42ee60e.js";import{d as v,b as h,p as A,r as D,c as a,e as r,k as E,i as e,h as o,u as i,f as x,j as y,m as p,t as w,F as N,a2 as U,E as j}from"./index.0308b213.js";const G=p("\u63D0\u4EA4"),L=p("\u53D6\u6D88"),T=v({props:{modelValue:{type:Boolean,default:!1},ids:{default:[]},groups:{default:[]}},emits:["update:modelValue","onClose"],setup(c,{emit:m}){const t=c,u=h({groupid:"",ids:[]});A(()=>t.modelValue,_=>{n.value=_,u.ids=t.ids,console.log(t.ids,t,"sss")});const V=()=>{k(t.ids,u.groupid).then(()=>{j.success("\u8BBE\u7F6E\u6210\u529F"),d()})},n=D(!1),d=()=>{m("update:modelValue",!1),m("onClose")};return(_,s)=>{const B=a("el-option"),b=a("el-select"),f=a("el-form-item"),g=a("el-button"),C=a("el-dialog");return r(),E(C,{modelValue:n.value,"onUpdate:modelValue":s[1]||(s[1]=l=>n.value=l),title:"\u63A8\u5E7F\u7B49\u7EA7\u8BBE\u7F6E",width:"50%",onClose:d},{default:e(()=>[o(i(U),{"label-width":"140px"},{default:e(()=>[o(f,null,{default:e(()=>[o(b,{modelValue:i(u).groupid,"onUpdate:modelValue":s[0]||(s[0]=l=>i(u).groupid=l),placeholder:"\u8BF7\u9009\u62E9\u63A8\u5E7F\u7B49\u7EA7",filterable:"",clearable:""},{default:e(()=>[(r(!0),x(N,null,y(c.groups,(l,F)=>(r(),E(B,{key:F,value:l.id,label:l.title},{default:e(()=>[p(w(l.title),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1}),o(f,null,{default:e(()=>[o(g,{type:"primary",onClick:V},{default:e(()=>[G]),_:1}),o(g,{onClick:d},{default:e(()=>[L]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])}}});export{T as _};
