refactor: 仪表盘极值设置优化

This commit is contained in:
junjun 2022-06-25 10:54:25 +08:00
parent 1bc5afa52b
commit c39ae62062
2 changed files with 8 additions and 0 deletions

View File

@ -361,6 +361,10 @@ export default {
},
changeBarSizeCase(modifyName) {
this.sizeForm['modifyName'] = modifyName
if (this.sizeForm.gaugeMax <= this.sizeForm.gaugeMin) {
this.$message.error(this.$t('chart.max_more_than_mix'))
return
}
this.$emit('onSizeChange', this.sizeForm)
},
showProperty(property) {

View File

@ -552,6 +552,10 @@ export default {
},
changeBarSizeCase(modifyName) {
this.sizeForm['modifyName'] = modifyName
if (this.sizeForm.gaugeMax <= this.sizeForm.gaugeMin) {
this.$message.error(this.$t('chart.max_more_than_mix'))
return
}
this.$emit('onSizeChange', this.sizeForm)
},
showProperty(property) {