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