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