用户登录系统 统计分析 bug修改
This commit is contained in:
parent
cf8591fc51
commit
d8fe6fcc48
@ -152,9 +152,13 @@ class BI005LoginRecord extends React.Component {
|
||||
}
|
||||
}
|
||||
if (this.state.totalActiveUsers == 0) {
|
||||
this.state.totalActiveUsers = ret.Data.reverse().find(
|
||||
(item) => item.type === 0
|
||||
).COUNT;
|
||||
// this.state.totalActiveUsers = ret.Data.reverse().find((item) => item.type === 0 ).COUNT;
|
||||
var ActiveUsers = ret.Data.reverse().find((item) => item.type === 0)
|
||||
if (ActiveUsers != null && ActiveUsers.length > 0) {
|
||||
this.state.totalActiveUsers = ActiveUsers.length
|
||||
} else {
|
||||
this.state.totalActiveUsers = 0;
|
||||
}
|
||||
}
|
||||
this.state.dates.push(moment().format("MM/DD"));
|
||||
this.state.loginNums.push(todayCount);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user