CN-1145 fix: 修改测试用例

This commit is contained in:
chenjinsong
2023-08-04 16:00:29 +08:00
parent 3471cb159f
commit 680d94d929
9 changed files with 33 additions and 36 deletions

View File

@@ -141,7 +141,10 @@ export function getUnitType (column) {
/* 单位转换,返回转换后的[value, unit]type=time时若value<1ms返回<1mstype=percent时若value<0.01%,返回<0.01% */
export function valueToRangeValue (value, unitType) {
const values = unitConvert(_.isString(value) ? Number(value) : value, unitType)
const values = unitConvert(value, unitType)
if (values[0] === '-') {
return values
}
if (values[0] || values[0] === 0) {
switch (unitType) {
case unitTypes.time: {