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