|
@@ -236,13 +236,13 @@ function getSysWarnList(id, type) {
|
|
|
if (maxY.value.length < 2) {
|
|
|
maxY.value = 10
|
|
|
} else if (maxY.value.length < 3) {
|
|
|
- maxY.value = Number(maxY.value[0]) * 10
|
|
|
+ maxY.value = (Number(maxY.value[0])+1) * 10
|
|
|
} else if (maxY.value.length < 4) {
|
|
|
- maxY.value = Number(maxY.value[0]) * 100
|
|
|
+ maxY.value = (Number(maxY.value[0])+1) * 100
|
|
|
} else if (maxY.value.length < 5) {
|
|
|
- maxY.value = Number(maxY.value[0]) * 1000
|
|
|
+ maxY.value = (Number(maxY.value[0])+1) * 1000
|
|
|
} else if (maxY.value.length < 6) {
|
|
|
- maxY.value = Number(maxY.value[0]) * 10000
|
|
|
+ maxY.value = (Number(maxY.value[0])+1) * 10000
|
|
|
}
|
|
|
} else {
|
|
|
activeIndex.value = 0;
|
|
@@ -275,17 +275,17 @@ function getSysWarnList(id, type) {
|
|
|
return acr > cur ? acr : cur;
|
|
|
});
|
|
|
maxY.value = maxY.value.toString().indexOf('.') == -1 ? maxY.value.toString() : maxY.value.toString().substring(0, maxY.value.toString().indexOf('.'))
|
|
|
- if (maxY.value.length < 2) {
|
|
|
- maxY.value = 10
|
|
|
- } else if (maxY.value.length < 3) {
|
|
|
- maxY.value = Number(maxY.value[0]) * 10
|
|
|
- } else if (maxY.value.length < 4) {
|
|
|
- maxY.value = Number(maxY.value[0]) * 100
|
|
|
- } else if (maxY.value.length < 5) {
|
|
|
- maxY.value = Number(maxY.value[0]) * 1000
|
|
|
- } else if (maxY.value.length < 6) {
|
|
|
- maxY.value = Number(maxY.value[0]) * 10000
|
|
|
- }
|
|
|
+ if (maxY.value.length < 2) {
|
|
|
+ maxY.value = 10
|
|
|
+ } else if (maxY.value.length < 3) {
|
|
|
+ maxY.value = (Number(maxY.value[0])+1) * 10
|
|
|
+ } else if (maxY.value.length < 4) {
|
|
|
+ maxY.value = (Number(maxY.value[0])+1) * 100
|
|
|
+ } else if (maxY.value.length < 5) {
|
|
|
+ maxY.value = (Number(maxY.value[0])+1) * 1000
|
|
|
+ } else if (maxY.value.length < 6) {
|
|
|
+ maxY.value = (Number(maxY.value[0])+1) * 10000
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|