import{d as T,r as m,u as B,ar as O,c as w,o as V,U as N,w as n,j as e,t as q,i as M,_ as R,k as S,c8 as $,H as j,c9 as z,p,cf as D,B as H,M as P}from"./index-9PRMimni.js";const F=T({__name:"BasicSetting",setup(A){const v={name:{required:!0,message:"请输入网站名称",trigger:"blur"},mobile:{required:!0,message:"请输入联系电话",trigger:"input"}},i=m(),_=B(),c=O(),t=m({name:"",mobile:"",icpCode:"",address:"",loginCode:0,closeText:"网站维护中，暂时无法访问！本网站正在进行系统维护和技术升级，网站暂时无法访问，敬请谅解！",systemOpen:!0});function f(s){s||c.warning({title:"提示",content:"您确定要关闭系统访问吗？该操作立马生效，请慎重操作！",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{_.success("操作成功")},onNegativeClick:()=>{state.formValue.systemOpen=!0}})}function g(){i.value.validate(s=>{s?_.error("验证失败，请填写完整信息"):_.success("验证成功")})}return(s,l)=>{const u=S,a=R,r=z,d=j,b=$,C=D,x=H,y=q,U=P,k=N;return V(),w(k,{cols:"1 s:1 m:1 l:4 xl:4 2xl:4",responsive:"screen"},{default:n(()=>[e(U,null,{default:n(()=>[e(y,{"label-width":80,model:t.value,rules:v,ref_key:"formRef",ref:i},{default:n(()=>[e(a,{label:"网站名称",path:"name"},{default:n(()=>[e(u,{value:t.value.name,"onUpdate:value":l[0]||(l[0]=o=>t.value.name=o),placeholder:"请输入网站名称"},null,8,["value"])]),_:1}),e(a,{label:"备案编号",path:"icpCode"},{default:n(()=>[e(u,{placeholder:"请输入备案编号",value:t.value.icpCode,"onUpdate:value":l[1]||(l[1]=o=>t.value.icpCode=o)},null,8,["value"])]),_:1}),e(a,{label:"联系电话",path:"mobile"},{default:n(()=>[e(u,{placeholder:"请输入联系电话",value:t.value.mobile,"onUpdate:value":l[2]||(l[2]=o=>t.value.mobile=o)},null,8,["value"])]),_:1}),e(a,{label:"联系地址",path:"address"},{default:n(()=>[e(u,{value:t.value.address,"onUpdate:value":l[3]||(l[3]=o=>t.value.address=o),type:"textarea",placeholder:"请输入联系地址"},null,8,["value"])]),_:1}),e(a,{label:"登录验证码",path:"loginCode"},{default:n(()=>[e(b,{value:t.value.loginCode,"onUpdate:value":l[4]||(l[4]=o=>t.value.loginCode=o),name:"loginCode"},{default:n(()=>[e(d,null,{default:n(()=>[e(r,{value:1},{default:n(()=>l[7]||(l[7]=[p("开启")])),_:1}),e(r,{value:0},{default:n(()=>l[8]||(l[8]=[p("关闭")])),_:1})]),_:1})]),_:1},8,["value"])]),_:1}),e(a,{label:"网站开启访问",path:"systemOpen"},{default:n(()=>[e(C,{size:"large",value:t.value.systemOpen,"onUpdate:value":[l[5]||(l[5]=o=>t.value.systemOpen=o),f]},null,8,["value"])]),_:1}),e(a,{label:"网站关闭提示",path:"closeText"},{default:n(()=>[e(u,{value:t.value.closeText,"onUpdate:value":l[6]||(l[6]=o=>t.value.closeText=o),type:"textarea",placeholder:"请输入网站关闭提示"},null,8,["value"])]),_:1}),M("div",null,[e(d,null,{default:n(()=>[e(x,{type:"primary",onClick:g},{default:n(()=>l[9]||(l[9]=[p("更新基本信息")])),_:1})]),_:1})])]),_:1},8,["model"])]),_:1})]),_:1})}}});export{F as _};
