import{a as e,G as l,o as a,e as t,f as o,g as u,w as s,I as d,r,F as n,l as m,c as i,q as p,h as f,p as c,i as v}from"./vendor.08ecc2ea.js";import{g as b,e as y}from"./setting.d38de73f.js";import{_ as V}from"./index.4567af67.js";import"./request.33748d8c.js";const _={name:"setting-system",setup(){const a=e({group:"system"}),t=e([]);b(a).then((e=>{200==e.status&&(t.value=e.data),console.log(t)}));const o=l(null);return{query:a,options:t,formRef:o,onSubmit:()=>{o.value.validate((e=>{if(!e)return!1;y(t.value).then((e=>{200==e.status?d.success(e.msg):d.error(e.msg)}))}))}}}},g={class:"crumbs"},k=(e=>(c("data-v-ab9b182a"),e=e(),v(),e))((()=>o("i",{class:"el-icon-lx-calendar"},null,-1))),U=f(" 系统设置 "),x=f("系统设置"),h={class:"container"},j={class:"form-box"},w=f("关闭"),q=f("开启"),R=f("提交");var C=V(_,[["render",function(e,l,d,f,c,v){const b=r("el-breadcrumb-item"),y=r("el-breadcrumb"),V=r("el-radio"),_=r("el-radio-group"),C=r("el-input"),I=r("el-alert"),S=r("el-form-item"),F=r("el-button"),G=r("el-form");return a(),t("div",null,[o("div",g,[u(y,{separator:"/"},{default:s((()=>[u(b,null,{default:s((()=>[k,U])),_:1}),u(b,null,{default:s((()=>[x])),_:1})])),_:1})]),o("div",h,[o("div",j,[u(G,{ref:"formRef",model:f.formRef,"label-width":"auto",multiple:""},{default:s((()=>[(a(!0),t(n,null,m(f.options.value,((e,l)=>(a(),i(S,{key:l,label:e.title,prop:e.name},{default:s((()=>["radio"==e.type?(a(),i(_,{key:0,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},{default:s((()=>[u(V,{label:"0"},{default:s((()=>[w])),_:1}),u(V,{label:"1"},{default:s((()=>[q])),_:1})])),_:2},1032,["modelValue","onUpdate:modelValue"])):p("",!0),"text"==e.type?(a(),i(C,{key:1,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["modelValue","onUpdate:modelValue"])):p("",!0),"number"==e.type?(a(),i(C,{key:2,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["modelValue","onUpdate:modelValue"])):p("",!0),"textarea"==e.type?(a(),i(C,{key:3,type:"textarea",rows:"auto",modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["modelValue","onUpdate:modelValue"])):p("",!0),e.tips?(a(),i(I,{key:4,title:e.tips,type:"info","show-icon":"",closable:!1},null,8,["title"])):p("",!0)])),_:2},1032,["label","prop"])))),128)),u(S,null,{default:s((()=>[u(F,{type:"primary",onClick:f.onSubmit},{default:s((()=>[R])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model"])])])])}],["__scopeId","data-v-ab9b182a"]]);export{C as default};
