import{g as D,h as C,i as j}from"./index.6effa892.js";import{d as S,a6 as w,r as g,b as y,c as s,u as l,e as _,k as r,i as t,h as a,f as A,j as v,m as i,t as L,F as U,E as N}from"./index.0308b213.js";const P=i("\u5F00"),G=i("\u5173"),M=i("\u63D0\u4EA4"),O=i(" \u8BF7\u5230\u4EE3\u7406\u540E\u53F0\u8BBE\u7F6E "),H=S({setup(T){const{OpPlatform:p}=w();g([]),g(1);let o=y({is_open:0,day:0,not_join_sids:[]});const b=()=>{D(o).then(e=>{N.success("\u8BBE\u7F6E\u6210\u529F"),c()})},c=()=>{C().then(e=>{console.log(e),e&&e.data&&(o.is_open=e.data.is_open,o.day=e.data.day,o.not_join_sids=e.data.not_join_sids)})},m=y({list:[]}),F=()=>{j().then(e=>{console.log("res",e),m.list=e})};return p.value=="agent"&&(c(),F()),(e,u)=>{const f=s("el-radio"),B=s("el-radio-group"),d=s("el-form-item"),V=s("el-input"),h=s("el-checkbox"),k=s("el-button"),E=s("el-card");return l(p)=="agent"?(_(),r(E,{key:0,shadow:"always",style:{"margin-top":"20px"}},{default:t(()=>[a(d,{label:"\u5F00\u5173"},{default:t(()=>[a(B,{modelValue:l(o).is_open,"onUpdate:modelValue":u[0]||(u[0]=n=>l(o).is_open=n)},{default:t(()=>[a(f,{label:1},{default:t(()=>[P]),_:1}),a(f,{label:0},{default:t(()=>[G]),_:1})]),_:1},8,["modelValue"])]),_:1}),a(d,{label:"\u53EF\u63D0\u524D\u51E0\u5929\u4E0B\u5355"},{default:t(()=>[a(V,{modelValue:l(o).day,"onUpdate:modelValue":u[1]||(u[1]=n=>l(o).day=n),placeholder:"\u8BF7\u8F93\u5165\u53EF\u63D0\u524D\u51E0\u5929\u4E0B\u5355"},null,8,["modelValue"])]),_:1}),a(d,{label:"\u4E0D\u53C2\u4E0E\u7684\u5546\u6237"},{default:t(()=>[(_(!0),A(U,null,v(l(m).list,n=>(_(),r(h,{modelValue:l(o).not_join_sids,"onUpdate:modelValue":u[2]||(u[2]=x=>l(o).not_join_sids=x),key:n.id,label:n.id},{default:t(()=>[i(L(n.title),1)]),_:2},1032,["modelValue","label"]))),128))]),_:1}),a(d,{label:"",class:"continer-item"},{default:t(()=>[a(k,{type:"primary",onClick:b},{default:t(()=>[M]),_:1})]),_:1})]),_:1})):(_(),r(E,{key:1,shadow:"always",style:{"margin-top":"20px"}},{default:t(()=>[O]),_:1}))}}});export{H as default};
