数据赋值更改
This commit is contained in:
parent
c6649d5fee
commit
462f39826c
|
@ -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 || ' '
|
||||
}
|
||||
})
|
||||
// 请求右侧数据结束
|
||||
|
|
Loading…
Reference in New Issue