← Back
Editing: config4.js
import{$ as e,k as l,c as a,W as s}from"./utils-lib.js?v=VERSION_NUMBER";import{c as t,s as r,q as m,v as o,e as u,A as n,x as d,y as i,B as p,al as f,a9 as _,a7 as c}from"./base-lib.js?v=VERSION_NUMBER";import{_ as V}from"./validator.js?v=VERSION_NUMBER";import{S as v}from"./index.vue_vue_type_script_setup_true_lang8.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";const x={class:"p-2rem"},y={class:"flex items-center"},b={class:"flex items-center"},j={class:"flex items-center"},w=t({__name:"config",setup(t){const w=v(),{alertFormRef:k,alarmRef:R,alertForm:U,rules:h}=r(w),{countOptions:g,alarmRefreshEvent:F}=w;return(t,r)=>{const v=f,w=_,C=e,q=l,A=V,B=c,E=a,H=s;return m(),o("div",x,[u(B,{ref_key:"alertFormRef",ref:k,model:d(U),"label-width":"80px",rules:d(h)},{default:n((()=>[u(w,{label:"停止告警"},{default:n((()=>[u(v,{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(C,{type:"radio",modelValue:d(U).count,"onUpdate:modelValue":r[1]||(r[1]=e=>d(U).count=e),options:d(g)},null,8,["modelValue","options"])])),_:1}),u(w,{label:"间隔时间",prop:"interval"},{default:n((()=>[i("div",y,[u(q,{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}),u(w,{label:"发送次数",prop:"day_num"},{default:n((()=>[i("div",b,[u(q,{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}),u(w,{label:"告警方式",prop:"sender"},{default:n((()=>[u(A,{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(H,{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("点击安装后状态未更新,尝试点击【")),u(E,{onClick:d(F)},{default:n((()=>r[7]||(r[7]=[p("手动刷新")]))),_:1},8,["onClick"]),r[9]||(r[9]=p("】"))])])])),_:1})])}}});export{w as default};
Save File
Cancel