算力接口对接

This commit is contained in:
jhnine 2022-11-23 16:32:53 +08:00
parent 6ca79e5b5e
commit 5ca16634b9
2 changed files with 15 additions and 1 deletions

View File

@ -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({

View File

@ -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() {