|
@ -283,10 +283,8 @@ export default { |
|
|
deduplicationJs (arr) { |
|
|
deduplicationJs (arr) { |
|
|
const data = [] |
|
|
const data = [] |
|
|
arr.forEach((item, index) => { |
|
|
arr.forEach((item, index) => { |
|
|
if ((index + 1) % 2 === 0) { |
|
|
|
|
|
const num = item.AvgPrice |
|
|
const num = item.AvgPrice |
|
|
data.push({ ...item, price: num }) |
|
|
data.push({ ...item, price: num }) |
|
|
} |
|
|
|
|
|
}) |
|
|
}) |
|
|
return data |
|
|
return data |
|
|
}, |
|
|
}, |
|
@ -294,7 +292,6 @@ export default { |
|
|
prcCollectionListForGov({ ...this.params, ...data }).then((res) => { |
|
|
prcCollectionListForGov({ ...this.params, ...data }).then((res) => { |
|
|
if (res.priceslist.length > 0) { |
|
|
if (res.priceslist.length > 0) { |
|
|
this.dayList = res.priceslist.filter(item => item.CategoryName == '蔬菜') |
|
|
this.dayList = res.priceslist.filter(item => item.CategoryName == '蔬菜') |
|
|
console.log(this.dayList) |
|
|
|
|
|
this.getDayScTData() |
|
|
this.getDayScTData() |
|
|
} else { |
|
|
} else { |
|
|
this.times = this.$moment(this.times) |
|
|
this.times = this.$moment(this.times) |
|
|