fix: 修复npm折线图bug

This commit is contained in:
chenjinsong
2023-03-14 17:18:49 +08:00
parent a8a84b6abb
commit 502d098413
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
}
}