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) => {