HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/alarm2.js
import{c,t as i,g as p,e as t,ag as f,U as y,x as g,z as b,a9 as B,j as _,k,q as v,p as w}from"./base-lib.js?v=1777008528";import{c as x,X as h,B as s,k as C}from"./utils-lib.js?v=1777008528";import{a1 as E,k as F,a5 as V,a6 as q}from"./index3.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";const U=c({__name:"alarm",setup(N){const{payment:r}=x(),{authType:l}=i(r.value),o=async()=>{const{data:e}=await q(),{status:a,safe_type:d,sender:m}=e.data.alertable;return{data:{status:a,safe_type:d,sender:m}}},{BtForm:u,submit:n}=h({data:async()=>{const{data:e}=await o();return e.sender.length>0&&(e.sender=e.sender.filter(a=>{if(a&&a!=="")return a})),e||{sender:[],status:!1,safe_type:[]}},options:e=>p(()=>[{type:"switch",label:"告警开关",key:"status"},{type:"custom",render:()=>t(s,{label:"类型"},{default:()=>[t(f,{modelValue:e.value.safe_type,"onUpdate:modelValue":a=>e.value.safe_type=a},{default:()=>[t(y,{value:"webshell"},{default:()=>[g("恶意文件告警")]})]})]})},E("通知方式","sender",{attrs:{class:"!w-24rem",limit:["sms"]},rules:{sender:[{required:!0,message:"请选择告警方式",trigger:"change"}]}}),{type:"custom",render:()=>t(s,{label:" "},{default:()=>[t(b,{type:"primary",onClick:n},{default:()=>["保存"]})]})}]),submit:async(e,a)=>{if(l.value!=="ltd"){F({sourceId:68});return}await a(),await C({loading:"正在保存配置,请稍后...",request:V(B(e.value)),message:!0})}});return(e,a)=>(_(),k("div",null,[a[0]||(a[0]=v("div",{class:"text-large mb-6"},"全局告警设置",-1)),t(w(u))]))}});export{U as default};