fix:格式化方法调整
This commit is contained in:
@@ -504,7 +504,7 @@ export default {
|
|||||||
},
|
},
|
||||||
formatThreshold:function(value,unit){
|
formatThreshold:function(value,unit){
|
||||||
let unitMethod=chartDataFormat.getUnit(unit)
|
let unitMethod=chartDataFormat.getUnit(unit)
|
||||||
if(unitMethod&&unit.compute){
|
if(unitMethod&&value){
|
||||||
return unitMethod.compute(value,null,2);
|
return unitMethod.compute(value,null,2);
|
||||||
}else{
|
}else{
|
||||||
return value
|
return value
|
||||||
|
|||||||
@@ -355,7 +355,7 @@
|
|||||||
},
|
},
|
||||||
formatThreshold:function(value,unit){
|
formatThreshold:function(value,unit){
|
||||||
let unitMethod=chartDataFormat.getUnit(unit)
|
let unitMethod=chartDataFormat.getUnit(unit)
|
||||||
if(unitMethod&&unit.compute){
|
if(unitMethod&&value){
|
||||||
return unitMethod.compute(value,null,2);
|
return unitMethod.compute(value,null,2);
|
||||||
}else{
|
}else{
|
||||||
return value
|
return value
|
||||||
|
|||||||
@@ -485,7 +485,7 @@
|
|||||||
},
|
},
|
||||||
formatThreshold:function(value,unit){
|
formatThreshold:function(value,unit){
|
||||||
let unitMethod=chartDataFormat.getUnit(unit)
|
let unitMethod=chartDataFormat.getUnit(unit)
|
||||||
if(unitMethod&&unit.compute){
|
if(unitMethod&&value){
|
||||||
return unitMethod.compute(value,null,2);
|
return unitMethod.compute(value,null,2);
|
||||||
}else{
|
}else{
|
||||||
return value
|
return value
|
||||||
@@ -603,7 +603,7 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
current=['','']
|
current=[null,null]
|
||||||
}
|
}
|
||||||
this.$set(item, "current", current);
|
this.$set(item, "current", current);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user