import{ag as e,k as l,e as a,$ as s}from"./utils-lib.js?v=1761009159";import{c as t,s as r,v as m,x as o,e as u,B as n,y as d,z as i,C as p,an as _,ab as f,a9 as c}from"./base-lib.js?v=1761009159";import{_ as V}from"./validator.js?v=1761009159";import{S as b}from"./index.vue_vue_type_script_setup_true_lang8.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const v={class:"p-2rem"},x={class:"flex items-center"},y={class:"flex items-center"},j={class:"flex items-center"},w=t({__name:"config",setup(t){const w=b(),{alertFormRef:k,alarmRef:R,alertForm:U,rules:g}=r(w),{countOptions:h,alarmRefreshEvent:C}=w;return(t,r)=>{const b=_,w=f,F=e,z=l,B=V,E=c,H=a,O=s;return m(),o("div",v,[u(E,{ref_key:"alertFormRef",ref:k,model:d(U),"label-width":"80px",rules:d(g)},{default:n(()=>[u(w,{label:"停止告警"},{default:n(()=>[u(b,{modelValue:d(U).status,"onUpdate:modelValue":r[0]||(r[0]=e=>d(U).status=e)},null,8,["modelValue"])]),_:1}),u(w,{label:"自动重启"},{default:n(()=>[u(F,{type:"radio",modelValue:d(U).count,"onUpdate:modelValue":r[1]||(r[1]=e=>d(U).count=e),options:d(h)},null,8,["modelValue","options"])]),_:1}),u(w,{label:"间隔时间",prop:"interval"},{default:n(()=>[i("div",x,[u(z,{type:"number",modelValue:d(U).interval,"onUpdate:modelValue":r[2]||(r[2]=e=>d(U).interval=e),min:"60","text-type":"秒",width:"14rem",class:"w-14rem mr-8px"},null,8,["modelValue"]),r[5]||(r[5]=p(" 后再次监控检测条件 ",-1))])]),_:1}),u(w,{label:"发送次数",prop:"day_num"},{default:n(()=>[i("div",y,[u(z,{type:"number",modelValue:d(U).day_num,"onUpdate:modelValue":r[3]||(r[3]=e=>d(U).day_num=e),min:"0","text-type":"次",width:"14rem",class:"w-14rem mr-8px"},null,8,["modelValue"]),r[6]||(r[6]=p(" 后，当日不再发送，次日恢复 ",-1))])]),_:1}),u(w,{label:"告警方式",prop:"sender"},{default:n(()=>[u(B,{ref_key:"alarmRef",ref:R,modelValue:d(U).sender,"onUpdate:modelValue":r[4]||(r[4]=e=>d(U).sender=e),limit:["sms"],class:"!w-[33rem]"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),u(O,{class:"pl-3rem leading-2rem"},{default:n(()=>[r[10]||(r[10]=i("li",null,"开启该告警后，若该插件状态停止，将会使用您选中的告警方式发送告警信息",-1)),i("li",null,[i("div",j,[r[8]||(r[8]=p("点击安装后状态未更新，尝试点击【",-1)),u(H,{onClick:d(C)},{default:n(()=>r[7]||(r[7]=[p("手动刷新",-1)])),_:1,__:[7]},8,["onClick"]),r[9]||(r[9]=p("】",-1))])])]),_:1,__:[10]})])}}});export{w as default};
