Browse Source

(*) 今日问题-图表图例过多显示优化

master
liujiangyong 12 months ago
parent
commit
62029b33aa
  1. 5
      weapp/package/subSystem/dayPatrolInfo/dayPatrolInfo.js

5
weapp/package/subSystem/dayPatrolInfo/dayPatrolInfo.js

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

Loading…
Cancel
Save