|
|
@ -17,7 +17,8 @@ const setPieOptions = ((chart, data) => { |
|
|
|
trigger: 'item' |
|
|
|
}, |
|
|
|
legend: { |
|
|
|
top: 'bottom', |
|
|
|
type: 'scroll', |
|
|
|
bottom: 0, |
|
|
|
}, |
|
|
|
series: [ |
|
|
|
{ |
|
|
@ -127,7 +128,7 @@ Page({ |
|
|
|
subSystemPatrol.dayPatrolPlan.forEach((plan) => { |
|
|
|
const unit = plan.frequency.split('/')[1]; |
|
|
|
const frequency = Number(plan.frequency.split('次')[0]); |
|
|
|
let record = patrolRecord.filter(r => |
|
|
|
let record = patrolRecord.filter(r => |
|
|
|
moment(r.inspectionTime).isBefore(moment(this.day).endOf('day')) // 当前选定日期及之前的巡检记录
|
|
|
|
&& r.patrolPlanId === plan.id // 关联当前计划的记录
|
|
|
|
); |
|
|
|