fix: 修复npm折线图bug

(cherry picked from commit 502d098413)
This commit is contained in:
chenjinsong
2023-03-14 17:18:49 +08:00
committed by 陈劲松
parent 26b54baa33
commit 14e3d6522a
2 changed files with 48 additions and 14 deletions

View File

@@ -1146,3 +1146,20 @@ export function getLineIndexUnit (type, show) {
}
}
}
export function getLineIndexUnit2 (type) {
if (type.indexOf('total') > -1) {
return 0
} else if (type.indexOf('inbound') > -1) {
return 1
} else if (type.indexOf('outbound') > -1) {
return 2
} else if (type.indexOf('internal') > -1) {
return 3
} else if (type.indexOf('through') > -1) {
return 4
} else if (type.indexOf('other') > -1) {
return 5
} else {
return 0
}
}