import{a4 as i,ai as D,d as U,aj as I,al as w,r as u,o as f,a6 as C,a7 as n,a9 as s,a8 as t,af as F,ac as A,ao as L,ad as x,c as $,ak as b}from"./vendor.e9cda63f.js";import{F as S}from"./index.d2f92af0.js";import{g as j}from"./gm.aff5ce9f.js";import{_ as M,o as R,n as N}from"./index.ef7ee694.js";import"./pagination.7745095e.js";const T=i(!1),a=D({server_id:0,nick_name:"",exp:0,option:1}),q=i(19),O=i(!1),p={required:!0,message:"\u8BE5\u9879\u4E3A\u5FC5\u586B\u9879"},P=i({server_id:[p],game_url:[p],name:[p],config:[p],desc:[p]}),W=U({name:"Exp",components:{Footer:S},setup(){I();const e=i(),l=i([{id:1,name:"\u67E5\u8BE2"},{id:2,name:"\u589E\u52A0"}]),V=i(),k="100px",y={children:"children",label:"label"},B=i(),v=i(18);w("logType",v);const m=D({level:"",exp:""}),_=()=>{j.getServerInfo().then(r=>{e.value=r.data.data,a.server_id=e.value[0].id,console.log(e.value)})},d=r=>{a.server_id=r,console.log(a)},g=r=>{a.option=r,console.log(a)},E=()=>{if(console.log(a),a.nick_name==""){R("\u73A9\u5BB6\u6635\u79F0\u4E0D\u53EF\u4E3A\u7A7A!");return}const r=L.service({lock:!0,text:"\u52A0\u8F7D\u4E2D...",background:"rgba(0, 0 ,0 ,0.7)"});j.UpdatePlayerExp(a).then(o=>{o.code==200?(m.level=o.data.Level,m.exp=o.data.Exp,r.close(),N(o.message)):(r.close(),R(o.message))})},h=()=>{a.server_id=0,a.nick_name="",a.exp=0,_()};return _(),{useI18n:I,defaultProps:y,serverForm:V,logType:v,RefChild:B,radio:q,form:a,serverInfo:e,changeServerID:d,changeOption:g,loading:O,dialogVisible:T,formRules:P,formLabelWidth:k,submitForm:E,resetForm:h,levelInfo:m,optionInfo:l}}}),z=s("br",null,null,-1),G={class:"el_form"},H={class:"select_server"},J={class:"select_option"},K={class:"submit_style"},Q=b("\u63D0\u4EA4"),X=b("\u91CD\u7F6E"),Y={class:"paiwei_info"},Z=s("div",{class:"info_title"}," \u7B49\u7EA7\u4FE1\u606F ",-1),ee={class:"info_item"},oe=s("div",{class:"item_l"},"\u7B49\u7EA7\uFF1A",-1),ne={class:"item_r"},le={class:"info_item"},se=s("div",{class:"item_l"},"\u7ECF\u9A8C\uFF1A",-1),te={class:"item_r"};function ae(e,l,V,k,y,B){const v=u("el-alert"),m=u("el-radio"),_=u("el-radio-group"),d=u("el-form-item"),g=u("el-input"),E=u("el-button"),h=u("el-form"),r=u("el-divider");return f(),C(A,null,[n(v,{title:"\u7ECF\u9A8C\u503C\u589E\u52A0",type:"info"}),z,s("div",G,[n(h,{ref:"ruleFormRef",model:e.form,"label-width":"120px",style:{"max-width":"560px"}},{default:t(()=>[n(d,{label:"\u533A\u670D\u9009\u62E9"},{default:t(()=>[s("div",H,[(f(!0),C(A,null,x(e.serverInfo,o=>(f(),$(_,{modelValue:e.form.server_id,"onUpdate:modelValue":l[0]||(l[0]=c=>e.form.server_id=c),key:o.id,onChange:c=>e.changeServerID(o.id)},{default:t(()=>[n(m,{class:"server_name",label:o.id},{default:t(()=>[b(F(o.name),1)]),_:2},1032,["label"])]),_:2},1032,["modelValue","onChange"]))),128))])]),_:1}),n(d,{label:"\u64CD\u4F5C\u9009\u62E9"},{default:t(()=>[s("div",J,[(f(!0),C(A,null,x(e.optionInfo,o=>(f(),$(_,{modelValue:e.form.option,"onUpdate:modelValue":l[1]||(l[1]=c=>e.form.option=c),key:o.id,onChange:c=>e.changeOption(o.id)},{default:t(()=>[n(m,{class:"option",label:o.id},{default:t(()=>[b(F(o.name),1)]),_:2},1032,["label"])]),_:2},1032,["modelValue","onChange"]))),128))])]),_:1}),n(d,{label:"\u73A9\u5BB6\u6635\u79F0"},{default:t(()=>[n(g,{modelValue:e.form.nick_name,"onUpdate:modelValue":l[2]||(l[2]=o=>e.form.nick_name=o)},null,8,["modelValue"])]),_:1}),n(d,{label:"\u589E\u52A0\u7ECF\u9A8C"},{default:t(()=>[n(g,{modelValue:e.form.exp,"onUpdate:modelValue":l[3]||(l[3]=o=>e.form.exp=o),modelModifiers:{number:!0}},null,8,["modelValue"])]),_:1}),n(d,null,{default:t(()=>[s("div",K,[n(E,{type:"primary",onClick:l[4]||(l[4]=o=>e.submitForm())},{default:t(()=>[Q]),_:1}),n(E,{onClick:l[5]||(l[5]=o=>e.resetForm())},{default:t(()=>[X]),_:1})])]),_:1})]),_:1},8,["model"]),s("div",Y,[Z,n(r),s("div",ee,[oe,s("div",ne,F(e.levelInfo.level),1)]),s("div",le,[se,s("div",te,F(e.levelInfo.exp),1)]),n(r)])])],64)}var _e=M(W,[["render",ae]]);export{_e as default};
