|
|
@ -69,6 +69,27 @@ const Statistic = ({ dispatch, actions, user, history, loading, groupStatistic, |
|
|
|
title: '中断时长', |
|
|
|
dataIndex: "maxOffLineTime", |
|
|
|
key: 'maxOffLineTime', |
|
|
|
render: (text, row) => { |
|
|
|
let title |
|
|
|
if (text) { |
|
|
|
if (text >= 1440 && Math.floor(text / 1440)) title = Math.floor(text / 1440) + "天" |
|
|
|
if ((text % 1440) >= 60 && Math.floor(text % 1440 / 60)) { |
|
|
|
if (title) { |
|
|
|
title = title + Math.floor(text % 1440 / 60) + "时" |
|
|
|
} else { |
|
|
|
title = Math.floor(text % 1440 / 60) + "时" |
|
|
|
} |
|
|
|
} |
|
|
|
if (text % 1440 % 60) { |
|
|
|
if (title) { |
|
|
|
title = title + text % 1440 % 60 + "分" |
|
|
|
} else { |
|
|
|
title = text % 1440 % 60 + "分" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return title || "--" |
|
|
|
} |
|
|
|
}, { |
|
|
|
title: '今日告警个数', |
|
|
|
dataIndex: "todayAlarms", |
|
|
|