案例修改参数

This commit is contained in:
zhangsir
2024-09-12 14:04:15 +08:00
parent 95de64a5ee
commit 7f581272d5
2 changed files with 4 additions and 4 deletions

View File

@@ -103,14 +103,14 @@ import portalHeader from '@/components/PortalHeader.vue'
}, },
methods: { methods: {
getPopularity() { getPopularity() {
apiCase.queryPraisesNew(10,this.popularityName == '季度' ? 3 : 4).then(res => { apiCase.queryPraisesNew(10,this.popularityName == '季度' ? 1 : 2).then(res => {
if(res.status == 200) { if(res.status == 200) {
this.Popularity = res.result this.Popularity = res.result
} }
}) })
}, },
getPositive() { getPositive() {
apiCase.queryCommentsNew(10,this.favorableName == '季度' ? 1 : 2).then(res => { apiCase.queryCommentsNew(10,this.favorableName == '季度' ? 3 : 4).then(res => {
if(res.status == 200) { if(res.status == 200) {
this.Positive = res.result this.Positive = res.result
} }

View File

@@ -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) { if(res.status == 200) {
this.Popularity = res.result 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) { if(res.status == 200) {
this.Positive = res.result this.Positive = res.result
} }