diff --git a/webs/cms-web/src/services/monitor/index.js b/webs/cms-web/src/services/monitor/index.js index 7632a9a..abe0264 100644 --- a/webs/cms-web/src/services/monitor/index.js +++ b/webs/cms-web/src/services/monitor/index.js @@ -151,6 +151,11 @@ export function getVms(params) { params: params }) } +export function getVmsByDc(params) { + return request.get('/cms/v1/vms/listByDataCenter', { + params: params + }) +} export function getDataStore(params) { return request.get('/cms/v1/datastores', { diff --git a/webs/cms-web/src/services/platform/index.js b/webs/cms-web/src/services/platform/index.js index dc9563e..1fca3f1 100644 --- a/webs/cms-web/src/services/platform/index.js +++ b/webs/cms-web/src/services/platform/index.js @@ -60,3 +60,11 @@ export function detailVolume(type, id) { export function getResourceList() { return request.get('/cms/v1/monitor/resourcetype', { params: { rows: 99, page: 1 } }) } + +// 数据中心 +const dcUrl = 'cmp/v1/dcs' +export function getDc(params) { + return request.get(dcUrl, { + params + }) +} diff --git a/webs/cms-web/src/views/compute/cloud/platform.vue b/webs/cms-web/src/views/compute/cloud/platform.vue index 98b299d..f606d5e 100644 --- a/webs/cms-web/src/views/compute/cloud/platform.vue +++ b/webs/cms-web/src/views/compute/cloud/platform.vue @@ -1,6 +1,20 @@ diff --git a/webs/cms-web/src/views/compute/vm.vue b/webs/cms-web/src/views/compute/vm.vue index 306dbe8..16231b1 100644 --- a/webs/cms-web/src/views/compute/vm.vue +++ b/webs/cms-web/src/views/compute/vm.vue @@ -10,22 +10,27 @@ - + - + - + - + + + + + + @@ -165,10 +170,10 @@