NEZ-3299 fix:新建Record Rules,Expression为空提示语问题

This commit is contained in:
zyh
2023-10-31 14:03:40 +08:00
parent b88fc1c582
commit 690513cd81
2 changed files with 2 additions and 3 deletions

View File

@@ -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') {

View File

@@ -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)