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