数据赋值更改

This commit is contained in:
gaoyuanwei 2022-06-19 18:07:27 +08:00
parent c6649d5fee
commit 462f39826c
1 changed files with 6 additions and 2 deletions

View File

@ -131,16 +131,20 @@
count().then((res) => {
contentData.value = res.data.data
console.log(contentData.value)
//
resourcesLeft.value[1].num = contentData.value.requestCount || '0'
//
resourcesLeft.value[2].num =
contentData.value.satisfactionRate + '%' || '0' + '%'
//
for (let i = 1; i < 6; i++) {
// TOP
assignRankings.value[i - 1].index = i
//
assignRankings.value[i - 1].name =
contentData.value.list[i - 1].resourceTop5.service_name || ' '
contentData.value.resourceTop5[i - 1].service_name || 'wowoow'
assignRankings.value[i - 1].opacity =
contentData.value.list[i - 1].resourceTop5.count || ' '
contentData.value.resourceTop5[i - 1].count || ' '
}
})
//