更改云图接口
This commit is contained in:
parent
5ac149fc62
commit
4f36fdbc0c
|
@ -1,8 +1,8 @@
|
|||
<!--
|
||||
* @Author: hisense.liangjunhua
|
||||
* @Date: 2022-06-19 10:15:33
|
||||
* @LastEditors: hisense.wuhongjian
|
||||
* @LastEditTime: 2022-06-22 16:53:08
|
||||
* @LastEditors: hisense.liangjunhua
|
||||
* @LastEditTime: 2022-06-24 10:46:23
|
||||
* @Description: 告诉大家这是什么
|
||||
-->
|
||||
<template>
|
||||
|
@ -36,7 +36,7 @@
|
|||
</template>
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { count } from '@/api/file'
|
||||
// import { count } from '@/api/file'
|
||||
import { dataResourceInfo } from '@/api/capabilityCloud'
|
||||
// import { abc } from './dataABC.json'
|
||||
// 左侧数据
|
||||
|
@ -116,26 +116,26 @@
|
|||
}
|
||||
// 请求左侧数据结束
|
||||
// 请求右侧数据开始
|
||||
const contentData = ref([])
|
||||
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 * 100 + '%' || '0' + '%'
|
||||
// 排行
|
||||
for (let i = 1; i < 6; i++) {
|
||||
// TOP
|
||||
assignRankings.value[i - 1].index = i
|
||||
//
|
||||
assignRankings.value[i - 1].name =
|
||||
contentData.value.resourceTop5[i - 1].service_name || ''
|
||||
assignRankings.value[i - 1].operation =
|
||||
contentData.value.resourceTop5[i - 1].count || ' '
|
||||
}
|
||||
})
|
||||
// const contentData = ref([])
|
||||
// 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 * 100 + '%' || '0' + '%'
|
||||
// // 排行
|
||||
// for (let i = 1; i < 6; i++) {
|
||||
// // TOP
|
||||
// assignRankings.value[i - 1].index = i
|
||||
// //
|
||||
// assignRankings.value[i - 1].name =
|
||||
// contentData.value.resourceTop5[i - 1].service_name || ''
|
||||
// assignRankings.value[i - 1].operation =
|
||||
// contentData.value.resourceTop5[i - 1].count || ' '
|
||||
// }
|
||||
// })
|
||||
// 请求右侧数据结束
|
||||
dataResourceInfo().then((res) => {
|
||||
// console.log('数据资源数据===================>', res.data.data)
|
||||
|
@ -152,8 +152,8 @@
|
|||
val.operation = ''
|
||||
})
|
||||
arr.resourceTop5.forEach((val, index) => {
|
||||
assignRankings.value[index].name = val['服务名称']
|
||||
assignRankings.value[index].operation = val['申请次数']
|
||||
assignRankings.value[index].name = val.zyname || val.serviceName || 0
|
||||
assignRankings.value[index].operation = val.syqk || val.requestCount || 0
|
||||
})
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue