![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/bbf0862fc1c44624dc5518f24f94c4ca.png)
data() {
return {
spectionList: [{
cuIcon: 'form',
color: 'red',
active: true,
badge: 0,
title: '今日任务',
url: '/pages/views/dmom/equip-inspection/today-task/index'
}, {
cuIcon: 'squarecheck',
color: 'orange',
active: true,
badge: 0,
title: '剩余待办',
url: '/pages/views/dmom/equip-inspection/all-todo/index'
}, {
cuIcon: 'write',
color: 'yellow',
active: true,
badge: 0,
title: '点检记录',
url: '/pages/views/dmom/equip-inspection/inspection-record/index'
}],
this.$set(this.repairList[0],"badge",todoRepair.object.totalRows)
//todoRepair.object.totalRows ==6
this.$set(this.repairList[1],"badge",startedRepair.object.totalRows)
//startedRepair.object.totalRows ==2
this.$set(this.repairList[2],"badge",finishedRepair.object.totalRows)
//finishedRepair.object.totalRows ==3