import{az as _,d as A,r as f,b,c as o,e as r,k as E,i as t,h as a,u as s,f as w,j as F,m as u,t as B,F as q,E as L}from"./index.0308b213.js";const D=()=>_.request({url:"addon/balanceSplittingSetting.web.balance_splitting_setting/getConfig"}),T=c=>_.request({url:"addon/balanceSplittingSetting.web.balance_splitting_setting/setConfig",method:"POST",data:c}),v=()=>_.request({url:"addon/balanceSplittingSetting.web.balance_splitting_setting/getAgentList",method:"GET"}),N=u("\u5F00"),U=u("\u5173"),j=u("\u63D0\u4EA4"),G=A({setup(c){f([]),f(1);let n=b({is_open:0,agentids:[]});const h=()=>{T(n).then(e=>{L.success("\u8BBE\u7F6E\u6210\u529F"),g()})},g=()=>{D().then(e=>{console.log(e),e&&e.data&&(n.is_open=e.data.is_open,n.agentids=e.data.agentids||[])})},p=b({list:[]}),S=()=>{v().then(e=>{p.list=e})};return g(),S(),(e,i)=>{const m=o("el-radio"),C=o("el-radio-group"),d=o("el-form-item"),k=o("el-checkbox"),V=o("el-button"),x=o("el-card");return r(),E(x,{shadow:"always",style:{"margin-top":"20px"}},{default:t(()=>[a(d,{label:"\u5F00\u5173"},{default:t(()=>[a(C,{modelValue:s(n).is_open,"onUpdate:modelValue":i[0]||(i[0]=l=>s(n).is_open=l)},{default:t(()=>[a(m,{label:1},{default:t(()=>[N]),_:1}),a(m,{label:0},{default:t(()=>[U]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u53C2\u4E0E\u7684\u4EE3\u7406\u5546"},{default:t(()=>[(r(!0),w(q,null,F(s(p).list,l=>(r(),E(k,{modelValue:s(n).agentids,"onUpdate:modelValue":i[1]||(i[1]=y=>s(n).agentids=y),key:l.id,label:l.id},{default:t(()=>[u(B(l.title),1)]),_:2},1032,["modelValue","label"]))),128))]),_:1}),a(d,{label:"",class:"continer-item"},{default:t(()=>[a(V,{type:"primary",onClick:h},{default:t(()=>[j]),_:1})]),_:1})]),_:1})}}});export{G as default};
