From 24e6512ff5224f70fefb6cd6c571c44c7a2d9ca9 Mon Sep 17 00:00:00 2001 From: lichao <326994889@qq.com> Date: Tue, 10 Sep 2024 09:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=A3=8E=E8=8F=9C=E7=AF=AE=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/next/screen-content-left/zdyf-left/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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')