|
|
@ -132,7 +132,6 @@ Page({ |
|
|
|
}) |
|
|
|
Request.get(getPatrolRecord('all', moment(date1).format('YYYY-MM-DD') + ' 00:00:00', moment('2099-12-31').format('YYYY-MM-DD') + ' 23:59:59', 'null', 'null')).then(res => { |
|
|
|
if (res) { |
|
|
|
let statusCount={} |
|
|
|
let normal = 0; |
|
|
|
let abnormal = 0; |
|
|
|
let unknown = 0; |
|
|
@ -166,14 +165,11 @@ Page({ |
|
|
|
const state = item.patrolRecordIssueHandles[0].state; |
|
|
|
if (state === 6) { |
|
|
|
// 正常
|
|
|
|
statusCount['正常'] += 1; |
|
|
|
normal += 1; |
|
|
|
} else if (state === 5) { |
|
|
|
statusCount['未知'] += 1; |
|
|
|
// 未知
|
|
|
|
unknown += 1; |
|
|
|
}else { |
|
|
|
statusCount['异常'] += 1; |
|
|
|
// 异常
|
|
|
|
abnormal += 1; |
|
|
|
} |
|
|
|