forked from JointCloud/JCC-RIP
算力接口对接
This commit is contained in:
parent
6ca79e5b5e
commit
5ca16634b9
|
@ -228,6 +228,15 @@ export function getResourceCount(params) {
|
|||
})
|
||||
}
|
||||
|
||||
// 云际拓扑图页面--地图下面算力数据
|
||||
export function getComputility(params) {
|
||||
return request({
|
||||
url: '/jcc-schedule/api/v1/resource/getComputility',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 调度实例页面--列表查询
|
||||
export function getPropagationPolicyList(params) {
|
||||
return request({
|
||||
|
|
|
@ -67,7 +67,7 @@ import BarChart from './components/BarChart'
|
|||
import Exhibition from '@/components/Exhibition'
|
||||
import Navbar from '@/layout/components/Navbar'
|
||||
import List from '@/components/list'
|
||||
import { getProjectNamespaceList, getMapDomainList, getNamespaceDescribe, getResourceCount } from '@/api/dispatching-center/dispatchingCenter'
|
||||
import { getProjectNamespaceList, getMapDomainList, getNamespaceDescribe, getResourceCount, getComputility } from '@/api/dispatching-center/dispatchingCenter'
|
||||
|
||||
export default {
|
||||
components: { List, Earth, Exhibition, Navbar, BarChart, PieChart },
|
||||
|
@ -220,6 +220,11 @@ export default {
|
|||
this.exhibitionArray1[1].value = e.data?.cluster || '-'
|
||||
this.exhibitionArray1[2].value = e.data?.pod || '-'
|
||||
})
|
||||
getComputility().then(e => {
|
||||
this.exhibitionArray2[0].value = e.data?.all || '-'
|
||||
this.exhibitionArray2[1].value = e.data?.top || '-'
|
||||
this.exhibitionArray2[2].value = e.data?.now || '-'
|
||||
})
|
||||
},
|
||||
// 获取地图的全量数据
|
||||
getMapData() {
|
||||
|
|
Loading…
Reference in New Issue