Explorar el Código

修改日报

yun
douzhuo hace 2 años
padre
commit
9567466e67
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. +6
    -6
      pages/reportExcel/dayReport.vue

+ 6
- 6
pages/reportExcel/dayReport.vue Ver fichero

@@ -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)
}


Cargando…
Cancelar
Guardar