import{_ as a}from"./index105.js?v=1761009159";import{_ as e}from"./index114.js?v=1761009159";import{u as s,di as t,P as l,W as o,l as r}from"./utils-lib.js?v=1761009159";import{aH as n}from"./validator.js?v=1761009159";import{aB as i,aC as m,aD as p}from"./firewall.js?v=1761009159";import{c as d,V as u,b7 as g,r as c,q as w,H as f,v as j,N as b,B as _,z as x,e as y,y as h,Q as v,I as q}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const H={class:"flex items-center w-[28rem]"},V=d({__name:"index",setup(d,{expose:V}){s();const C=u([]),U=u(!1),B=u(0),z=g({p:1,rows:10}),A=c(""),D=[{label:"告警名称",prop:"type",width:120},{label:"告警信息",render:a=>y("span",{innerHTML:t(a.log)},null)},{label:"日期",prop:"addtime",width:180}],I=async()=>{await l({loading:U,request:i(z),data:{data:[Array,C],page:o(B)}})},L=async()=>{await l({loading:"正在获取告警方式，请稍后...",request:p(),data:{msg:[String,A]}})},M=async a=>{await l({loading:"正在设置告警方式，请稍后...",request:m({type:a}),message:!0}),L()},N=()=>{I(),L()};return w(N),V({init:N}),(s,t)=>{const l=n,o=r,i=e,m=a,p=f("bt-loading");return j(),b(m,null,{"header-left":_(()=>[x("div",H,[t[3]||(t[3]=x("span",{class:"mr-[.8rem] w-[6rem] text-small"},"告警方式",-1)),y(l,{limit:["sms"],modelValue:h(A),"onUpdate:modelValue":t[0]||(t[0]=a=>v(A)?A.value=a:null),multiple:!1,onChange:M,options:[{label:"不绑定",value:"error"}]},null,8,["modelValue"])])]),content:_(()=>[q(y(o,{column:D,data:h(C)},null,8,["data"]),[[p,h(U)],[p,"正在加载中，请稍后...","title"]])]),"footer-right":_(()=>[y(i,{total:h(B),page:h(z).p,"onUpdate:page":t[1]||(t[1]=a=>h(z).p=a),row:h(z).rows,"onUpdate:row":t[2]||(t[2]=a=>h(z).rows=a),onChange:I},null,8,["total","page","row"])]),_:1})}}});export{V as default};
