Browse Source

今日市场缺少部分数据

master
mk 11 months ago
parent
commit
4c0b284530
  1. 3
      src/views/next/screen-content-left/zdyf-left/index.vue

3
src/views/next/screen-content-left/zdyf-left/index.vue

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

Loading…
Cancel
Save