forked from github/dataease
fix: 【仪表板】指标卡-高级-阈值-介于条件-最小值为0被判断成了值为空
This commit is contained in:
parent
8c8fd154ce
commit
bfb1619a1a
@ -91,13 +91,12 @@ const changeLabelThreshold = () => {
|
||||
// check line config
|
||||
for (let i = 0; i < state.thresholdArr.length; i++) {
|
||||
const ele = state.thresholdArr[i]
|
||||
console.log(ele)
|
||||
if (!ele.term || ele.term === '') {
|
||||
if (ele.term === undefined || ele.term === '') {
|
||||
ElMessage.error(t('chart.exp_can_not_empty'))
|
||||
return
|
||||
}
|
||||
if (ele.term === 'between') {
|
||||
if (!ele.min || !ele.max) {
|
||||
if (ele.min === undefined || ele.max === undefined) {
|
||||
ElMessage.error(t('chart.value_can_not_empty'))
|
||||
return
|
||||
}
|
||||
@ -110,7 +109,6 @@ const changeLabelThreshold = () => {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
console.log(ele.value === undefined)
|
||||
if (ele.value === undefined) {
|
||||
ElMessage.error(t('chart.value_can_not_empty'))
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user