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