import{aa as b,d as F,a6 as v,b as C,c as s,u as a,e as r,f,g,h as e,i as o,m as _,E as V,_ as x}from"./index.0308b213.js";const k=()=>b.request({url:"agent/plugin.employee.employee_config/getConfig",method:"POST"}),N=i=>b.request({url:"agent/plugin.employee.employee_config/edit",method:"POST",data:i}),A={key:0,class:"area-config"},P={class:"config-form"},q=_("\u5F00"),D=_("\u5173"),O=_("\u5F00"),T=_("\u5173"),w={class:"operation-btn"},S=_("\u63D0\u4EA4"),U={key:1},I=F({setup(i){const{OpPlatform:c}=v(),n=C({is_open:0,is_deduct:0});(()=>{c.value==="agent"&&k().then(t=>{console.log(t),t&&(n.is_open=t.data.is_open?Number(t.data.is_open):0,n.is_deduct=t.data.is_deduct?Number(t.data.is_deduct):0)})})();const h=()=>{N(n).then(t=>{console.log(t),V.success("\u8BBE\u7F6E\u6210\u529F")})};return(t,l)=>{const u=s("el-radio"),p=s("el-radio-group"),m=s("el-form-item"),y=s("el-form"),B=s("el-button"),E=s("el-empty");return a(c)==="agent"?(r(),f("div",A,[g("div",P,[e(y,{model:a(n),"label-width":"160px"},{default:o(()=>[e(m,{label:"\u9A91\u624B\u4FDD\u9669\u5F00\u5173"},{default:o(()=>[e(p,{modelValue:a(n).is_open,"onUpdate:modelValue":l[0]||(l[0]=d=>a(n).is_open=d)},{default:o(()=>[e(u,{label:1},{default:o(()=>[q]),_:1}),e(u,{label:0},{default:o(()=>[D]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(m,{label:"\u662F\u5426\u6263\u6B3E"},{default:o(()=>[e(p,{modelValue:a(n).is_deduct,"onUpdate:modelValue":l[1]||(l[1]=d=>a(n).is_deduct=d)},{default:o(()=>[e(u,{label:1},{default:o(()=>[O]),_:1}),e(u,{label:0},{default:o(()=>[T]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),g("div",w,[e(B,{type:"primary",onClick:h},{default:o(()=>[S]),_:1})])])):(r(),f("div",U,[e(E,{description:"\u8BF7\u53BB\u4EE3\u7406\u540E\u53F0\u8BBE\u7F6E"})]))}}});const z=x(I,[["__scopeId","data-v-93a684a3"]]);export{z as default};
