import{g as V,s as b}from"./index.d6727940.js";import{d as B,b as E,c as p,e as C,f as D,g as r,h as t,i as o,u as a,m as c,E as v,R as x,S as h,_ as y}from"./index.0308b213.js";const F=s=>(x("data-v-07b18d7a"),s=s(),h(),s),S={class:"area-config"},A=F(()=>r("h1",{style:{"font-size":"20px"}},"\u652F\u4ED8\u5B9D\u56E2\u8D2D\u5B98\u65B9\u8BA2\u5355\u5206\u8D26\u8BBE\u7F6E",-1)),I={class:"config-form"},U=c("%"),k=c("%"),w=c("\u63D0\u4EA4"),N=B({setup(s){const e=E({platform_account:"",platform_percent:"",agent_account:"",agent_percent:""}),m=()=>{V().then(l=>{e.platform_account=l.data.platform_account,e.platform_percent=l.data.platform_percent,e.agent_account=l.data.agent_account,e.agent_percent=l.data.agent_percent})};m();const i=()=>{b(e).then(l=>{v.success("\u4FDD\u5B58\u6210\u529F"),m()})};return(l,n)=>{const d=p("el-input"),_=p("el-form-item"),f=p("el-button"),g=p("el-form");return C(),D("div",S,[A,r("div",I,[t(g,{model:a(e),"label-width":"160px"},{default:o(()=>[t(_,{label:"\u54C1\u724C\u65B9\u8D26\u53F7"},{default:o(()=>[t(d,{modelValue:a(e).platform_account,"onUpdate:modelValue":n[0]||(n[0]=u=>a(e).platform_account=u)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u54C1\u724C\u65B9\u5206\u6210"},{default:o(()=>[t(d,{modelValue:a(e).platform_percent,"onUpdate:modelValue":n[1]||(n[1]=u=>a(e).platform_percent=u)},{append:o(()=>[U]),_:1},8,["modelValue"])]),_:1}),t(_,{label:"\u4EE3\u7406\u5546\u8D26\u53F7"},{default:o(()=>[t(d,{modelValue:a(e).agent_account,"onUpdate:modelValue":n[2]||(n[2]=u=>a(e).agent_account=u)},null,8,["modelValue"])]),_:1}),t(_,{label:"\u4EE3\u7406\u5546\u5206\u6210"},{default:o(()=>[t(d,{modelValue:a(e).agent_percent,"onUpdate:modelValue":n[3]||(n[3]=u=>a(e).agent_percent=u)},{append:o(()=>[k]),_:1},8,["modelValue"])]),_:1}),t(_,null,{default:o(()=>[t(f,{type:"primary",onClick:i},{default:o(()=>[w]),_:1})]),_:1})]),_:1},8,["model"])])])}}});const R=y(N,[["__scopeId","data-v-07b18d7a"]]);export{R as default};
