import{a4 as i,ai as y,d as h,aj as k,r,o as p,a6 as A,a7 as l,a9 as m,a8 as s,ac as B,M as I,E as $,ao as j,ad as M,c as O,ak as g,af as S}from"./vendor.e9cda63f.js";import{g as w}from"./gm.616963af.js";import{o as x}from"./operate.1f3f44e3.js";import{_ as K,o as C,n as L}from"./index.fdd4233a.js";const N=i(!1),a=y({server_id:0,nick_name:"",role_id:0}),U=i(3),P=i(!1),R=h({name:"KickOut",setup(){k();const e=i(),o=i(),v="100px",F={children:"children",label:"label"},_=()=>{w.getServerInfo().then(n=>{e.value=n.data.data,a.server_id=e.value[0].id,console.log(e.value)})},D=n=>{a.server_id=n,console.log(a)},c=()=>{I.alert("\u6B64\u64CD\u4F5C\u4F1A\u76F4\u63A5\u5F71\u54CD\u670D\u52A1\u5668\u6A21\u5757\u529F\u80FD\uFF0C\u662F\u5426\u7EE7\u7EED\uFF1F "," \u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",callback:n=>{if(console.log(n),n==="cancel")$({type:"info",message:"\u5DF2\u53D6\u6D88"});else{if(console.log(a),a.nick_name==""&&a.role_id==0){C("\u89D2\u8272ID\u4E0E\u73A9\u5BB6\u6635\u79F0\u4E0D\u53EF\u540C\u65F6\u4E3A\u7A7A!");return}const t=j.service({lock:!0,text:"\u52A0\u8F7D\u4E2D...",background:"rgba(0, 0 ,0 , 0.7)"});x.OutPlayer(a).then(d=>{d.code==200?(t.close(),L(d.message)):(t.close(),C(d.message))})}}})},f=()=>{a.server_id=0,a.nick_name="",a.role_id=0,_()};return _(),{useI18n:k,defaultProps:F,serverForm:o,radio:U,form:a,serverInfo:e,changeServerID:D,loading:P,dialogVisible:N,formLabelWidth:v,submitForm:c,resetForm:f}}}),T=m("br",null,null,-1),W={class:"el_form"},q={class:"select_server"},z={class:"submit_style"},G=g("\u63D0\u4EA4"),H=g("\u91CD\u7F6E");function J(e,o,v,F,_,D){const c=r("el-alert"),f=r("el-radio"),n=r("el-radio-group"),t=r("el-form-item"),d=r("el-input"),E=r("el-button"),V=r("el-form");return p(),A(B,null,[l(c,{title:"\u73A9\u5BB6\u6635\u79F0\u548C\u89D2\u8272ID\u5FC5\u586B\u4E00\u4E2A\uFF01",type:"info"}),T,m("div",W,[l(V,{ref:"ruleFormRef",model:e.form,"label-width":"120px",style:{"max-width":"560px"}},{default:s(()=>[l(t,{label:"\u533A\u670D\u9009\u62E9"},{default:s(()=>[m("div",q,[(p(!0),A(B,null,M(e.serverInfo,u=>(p(),O(n,{modelValue:e.form.server_id,"onUpdate:modelValue":o[0]||(o[0]=b=>e.form.server_id=b),key:u.id,onChange:b=>e.changeServerID(u.id)},{default:s(()=>[l(f,{class:"server_name",label:u.id},{default:s(()=>[g(S(u.name),1)]),_:2},1032,["label"])]),_:2},1032,["modelValue","onChange"]))),128))])]),_:1}),l(t,{label:"\u89D2\u8272ID"},{default:s(()=>[l(d,{modelValue:e.form.role_id,"onUpdate:modelValue":o[1]||(o[1]=u=>e.form.role_id=u)},null,8,["modelValue"])]),_:1}),l(t,{label:"\u73A9\u5BB6\u6635\u79F0"},{default:s(()=>[l(d,{modelValue:e.form.nick_name,"onUpdate:modelValue":o[2]||(o[2]=u=>e.form.nick_name=u)},null,8,["modelValue"])]),_:1}),l(t,null,{default:s(()=>[m("div",z,[l(E,{type:"primary",onClick:o[3]||(o[3]=u=>e.submitForm())},{default:s(()=>[G]),_:1}),l(E,{onClick:o[4]||(o[4]=u=>e.resetForm())},{default:s(()=>[H]),_:1})])]),_:1})]),_:1},8,["model"])])],64)}var ee=K(R,[["render",J]]);export{ee as default};
