Browse Source

修改日报

yun
douzhuo 2 years ago
parent
commit
9567466e67
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      pages/reportExcel/dayReport.vue

+ 6
- 6
pages/reportExcel/dayReport.vue View File

@@ -443,12 +443,12 @@
// 分割数组排名前三,倒三
getTopThree() {
if (this.weekObj.XJTopList && this.weekObj.XJTopList.length > 0) {
this.carryOutLast = this.weekObj.XJTopList.slice(0, 3).reverse()
this.carryOutLast.map((item, index) => {
if (item.value == 100) {
this.carryOutLast.splice(index, 1)
}
})
let arr = this.weekObj.XJTopList.slice(0, 3).reverse()
arr.forEach(item => {
if (item.value != 100) {
this.carryOutLast.push(item)
}
})
this.carryOutTop = this.weekObj.XJTopList.reverse().slice(0, 3)
console.log(this.weekObj.XJTopList)
}


Loading…
Cancel
Save