NEZ-3299 fix:新建Record Rules,Expression为空提示语问题
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
<!-- begin--表单-->
|
||||
<div class="right-box__container">
|
||||
<div class="container__form">
|
||||
<el-form ref="recordRuleForm" :model="editRecordRule"
|
||||
:rules="rules" label-position="top" label-width="120px">
|
||||
<el-form ref="recordRuleForm" :model="editRecordRule" :rules="rules" label-position="top" label-width="120px">
|
||||
<!-- name -->
|
||||
<el-form-item :label='$t("overall.name")' prop="name">
|
||||
<el-input
|
||||
@@ -262,6 +261,7 @@ export default {
|
||||
},
|
||||
metricChange (val) {
|
||||
this.editRecordRule.expr = val
|
||||
this.$refs.recordRuleForm?.clearValidate('expr')
|
||||
},
|
||||
labelsSort (obj) {
|
||||
if (typeof obj != 'object') {
|
||||
|
||||
@@ -583,7 +583,6 @@ export default {
|
||||
})),
|
||||
span: /^[a-zA-Z0-9_:]+$/
|
||||
}
|
||||
console.log(res.options)
|
||||
// 过滤 非logs的函数
|
||||
if (res !== null) {
|
||||
historyItems.options = historyItems.options.concat(res.options)
|
||||
|
||||
Reference in New Issue
Block a user