瀏覽代碼

修改日报

yun
douzhuo 2 年之前
父節點
當前提交
9567466e67
共有 1 個檔案被更改,包括 6 行新增6 行删除
  1. +6
    -6
      pages/reportExcel/dayReport.vue

+ 6
- 6
pages/reportExcel/dayReport.vue 查看文件

@@ -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…
取消
儲存