feat:threshold添加校验

This commit is contained in:
wangwenrui
2020-10-13 17:06:32 +08:00
parent 54b66053df
commit e1b7c8da63
2 changed files with 7 additions and 1 deletions

View File

@@ -306,6 +306,7 @@
import {getUUID, resetZIndex} from "../../common/js/common";
import alertChartParam from "./alertChartParam";
import promqlInput from "./explore/promqlInput";
import {nzNumber} from "../../common/js/validate";
var rz = {
methods: {
rz(e) {
@@ -348,6 +349,9 @@
],
url: [
{required: true, message: this.$t('validate.required'), trigger: 'blur'}
],
'param.threshold':[
{validator:nzNumber,trigger: 'blur'}
]
},
chartTypeList: [