From ac302b80acd54c2f1287b099a73832ce80336d97 Mon Sep 17 00:00:00 2001
From: dhy1725534722 <1725534722@qq.com>
Date: Tue, 22 Aug 2023 15:22:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../sentiment/components/componentRight.vue | 38 +++++++++++++------
1 file changed, 27 insertions(+), 11 deletions(-)
diff --git a/src/views/privateOrder/sentiment/components/componentRight.vue b/src/views/privateOrder/sentiment/components/componentRight.vue
index a6c69a1..0f6b675 100644
--- a/src/views/privateOrder/sentiment/components/componentRight.vue
+++ b/src/views/privateOrder/sentiment/components/componentRight.vue
@@ -69,17 +69,17 @@
专报
-
{{ filteryqbg(1) }}
+
{{Transfer[0].bg }}
月报
-
{{ filteryqbg(2) }}
+
{{ Transfer[1].bg }}
深度报告
-
{{ filteryqbg(3) }}
+
{{ Transfer[2].bg }}
@@ -340,7 +340,21 @@ export default {
turnTime: null,
tsdNum: 461,
zbdNum: 475,
- Transfer: {},
+ Transfer: [
+ {
+ type: 1,
+ bg: 0,
+ },
+ {
+ type: 2,
+ bg: 0,
+ },
+ {
+ type: 3,
+ bg: 0,
+ },
+ ],
+
turnDetailsList: [],
sentimeentList: {
options: ["转办量", "转办详情"],
@@ -437,17 +451,19 @@ export default {
this.getOneList();
},
methods: {
- filteryqbg(e) {
- let arr = this.Transfer.reportList.filter((value) => {
- return value.sentimentReportType == e;
- });
- return arr[0].count;
- },
getDataList() {
yqbg().then((res) => {
this.tsdNum = res.data.reminder;
this.zbdNum = res.data.isturn;
- this.Transfer = res.data;
+ res.data.reportList.forEach((value, index) => {
+ this.Transfer.forEach((value1,index1)=>{
+ if(value.sentimentReportType == value1.type){
+ this.Transfer[index1].bg = value.count
+ return
+ }
+ })
+ });
+ console.log(this.Transfer);
});
//获取舆情列表
yuqingListA().then((res) => {