diff --git a/src/views/next/screen-content-left/zdyf-left/index.vue b/src/views/next/screen-content-left/zdyf-left/index.vue index caed454..96b93f1 100644 --- a/src/views/next/screen-content-left/zdyf-left/index.vue +++ b/src/views/next/screen-content-left/zdyf-left/index.vue @@ -293,7 +293,8 @@ export default { getDayScData (data) { prcCollectionListForGov({ ...this.params, ...data }).then((res) => { if (res.priceslist.length > 0) { - this.dayList = res.priceslist + this.dayList = res.priceslist.filter(item => item.CategoryName == '蔬菜') + // console.log(this.dayList) this.getDayScTData() } else { this.times = this.$moment(this.times) @@ -320,7 +321,7 @@ export default { FStartDate: this.times }).then((res1) => { if (res1.priceslist.length > 0) { - this.shichangList = this.getScData(this.dayList, res1.priceslist) + this.shichangList = this.getScData(this.dayList, res1.priceslist.filter(item => item.CategoryName == '蔬菜')) } else { this.times = this.$moment(this.times) .subtract(1, 'days')