fix: 修复网元概览数据饼图状态异常
This commit is contained in:
@@ -174,15 +174,13 @@ function fnGetList(one: boolean) {
|
|||||||
tableState.loading = false;
|
tableState.loading = false;
|
||||||
var rightNum = 0;
|
var rightNum = 0;
|
||||||
var errorNum = 0;
|
var errorNum = 0;
|
||||||
// if (res.length) nfInfo.serialNum = res[0].serialNum;
|
res.data.forEach((item: any) => {
|
||||||
for (let i = 0; i < res.length; i++) {
|
if (item.serverState.online) {
|
||||||
if (res[i].status == '正常' || res[i].status == 'Normal') {
|
|
||||||
rightNum++;
|
rightNum++;
|
||||||
} else {
|
} else {
|
||||||
errorNum++;
|
errorNum++;
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
const optionData: any = {
|
const optionData: any = {
|
||||||
title: {
|
title: {
|
||||||
text: '',
|
text: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user