|
|
@@ -165,30 +165,30 @@
|
|
|
<br/>
|
|
|
<br/>
|
|
|
短信接收号码:
|
|
|
- <el-input v-model="cf.phone" style="width: 150px" />
|
|
|
+ <el-input v-model="cf.phone" @input="phoneNumFn" style="width: 150px" />
|
|
|
<br />
|
|
|
<br />
|
|
|
当日同一IP非法访问超过
|
|
|
- <el-input v-model="cf.ip_times" style="width: 50px" />
|
|
|
+ <el-input v-model="cf.ip_times" type="number" style="width: 50px" />
|
|
|
次,则发送短信告警。
|
|
|
<br />
|
|
|
<br />
|
|
|
硬盘使用空间超过
|
|
|
- <el-input v-model="cf.hdd_used" style="width: 50px" />
|
|
|
+ <el-input v-model="cf.hdd_used" type="number" :max="100" :min="0" style="width: 50px" />
|
|
|
%,发送短信告警。
|
|
|
<br />
|
|
|
<br />
|
|
|
当日连续
|
|
|
- <el-input v-model="cf.cpu_times" style="width: 50px" />
|
|
|
+ <el-input v-model="cf.cpu_times" type="number" style="width: 50px" />
|
|
|
个周期,CPU超过
|
|
|
- <el-input v-model="cf.cpu_used" style="width: 50px" />
|
|
|
+ <el-input v-model="cf.cpu_used" type="number" style="width: 50px" />
|
|
|
%,发送短信告警。
|
|
|
<br />
|
|
|
<br />
|
|
|
当日连续
|
|
|
- <el-input v-model="cf.mem_times" style="width: 50px" />
|
|
|
+ <el-input v-model="cf.mem_times" type="number" style="width: 50px" />
|
|
|
个周期,内存超过
|
|
|
- <el-input v-model="cf.mem_used" style="width: 50px" />
|
|
|
+ <el-input v-model="cf.mem_used" type="number" style="width: 50px" />
|
|
|
%,发送短信告警。
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
@@ -317,7 +317,10 @@ function handleUpdate(row) {
|
|
|
title.value = '查看系统告警'
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+const phoneNumFn = (data)=>{
|
|
|
+ const rge = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/
|
|
|
+ console.log('data',data);
|
|
|
+}
|
|
|
/** 提交按钮 */
|
|
|
function submitForm() {
|
|
|
proxy.$refs['alarmRef'].validate((valid) => {
|