fix:修复project 底部弹出框在切换module时没有关闭的问题 & 阈值类型调整

This commit is contained in:
wangwenrui
2020-09-18 11:36:02 +08:00
parent af13b0902b
commit 742b6cade2
3 changed files with 3 additions and 3 deletions

View File

@@ -430,7 +430,7 @@ let unitOptions=[
{ {
value:4, value:4,
compute:percent02, compute:percent02,
label:'percent(0.0-0.1)' label:'percent(0.0-1.0)'
}, },
{ {
value:5, value:5,

View File

@@ -35,7 +35,7 @@
</el-form-item> </el-form-item>
<!--threshold--> <!--threshold-->
<el-form-item :label="$t('alert.config.threshold')" prop="threshold" style="width: 415px;display: inline-block;"> <el-form-item :label="$t('alert.config.threshold')" prop="threshold" style="width: 415px;display: inline-block;">
<el-input type="text" placeholder="" v-model.number="editAlertRule.threshold" size="small"> <el-input type="text" placeholder="" v-model="editAlertRule.threshold" size="small">
</el-input> </el-input>
</el-form-item> </el-form-item>
<!--unit--> <!--unit-->
@@ -152,7 +152,6 @@
], ],
threshold:[ threshold:[
{required:true,message:this.$t('validate.required'),trigger:'blur'}, {required:true,message:this.$t('validate.required'),trigger:'blur'},
{type:'number',message:this.$t('validate.number')}
], ],
}, },
operators:[ operators:[

View File

@@ -573,6 +573,7 @@
}); });
bus.$on("current-module-change", module => { bus.$on("current-module-change", module => {
this.currentModule = module; this.currentModule = module;
this.bottomBox.showSubList=false;
}); });
bus.$on("project-list-change", () => { bus.$on("project-list-change", () => {
this.getProjectList(); this.getProjectList();