diff --git a/src/views/portal/case/Charts.vue b/src/views/portal/case/Charts.vue index ad18250f..46c547e0 100644 --- a/src/views/portal/case/Charts.vue +++ b/src/views/portal/case/Charts.vue @@ -103,14 +103,14 @@ import portalHeader from '@/components/PortalHeader.vue' }, methods: { getPopularity() { - apiCase.queryPraisesNew(10,this.popularityName == '季度' ? 3 : 4).then(res => { + apiCase.queryPraisesNew(10,this.popularityName == '季度' ? 1 : 2).then(res => { if(res.status == 200) { this.Popularity = res.result } }) }, getPositive() { - apiCase.queryCommentsNew(10,this.favorableName == '季度' ? 1 : 2).then(res => { + apiCase.queryCommentsNew(10,this.favorableName == '季度' ? 3 : 4).then(res => { if(res.status == 200) { this.Positive = res.result } diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index f0086e9f..83fdaefe 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -1791,7 +1791,7 @@ export default { // } // }); - apiCase.queryPraisesNew(3,this.popularityName == '季度' ? 3 : 4).then(res => { + apiCase.queryPraisesNew(3,this.popularityName == '季度' ? 1 : 2).then(res => { if(res.status == 200) { this.Popularity = res.result } @@ -1814,7 +1814,7 @@ export default { // // } // } // }); - apiCase.queryCommentsNew(3,this.favorableName == '季度' ? 1 : 2).then(res => { + apiCase.queryCommentsNew(3,this.favorableName == '季度' ? 3 : 4).then(res => { if(res.status == 200) { this.Positive = res.result }