云主机列表,开关机操作原生api支持

This commit is contained in:
gao.fei 2021-08-23 11:01:30 +08:00
parent e54021c22e
commit 004b12286e
2 changed files with 3 additions and 3 deletions

View File

@ -1743,7 +1743,7 @@ export default {
if ($this.refreshTimeout !== null) {
clearTimeout($this.refreshTimeout);
}
let url = `api/nova/v2.1/servers-inspur/detail`;
let url = `api/nova/v2.1/servers/detail`;
let roleType = Vue.roleType + '';
let queryString = Object.keys(params).map(key => {
return `${key}=${params[key]}`

View File

@ -34,7 +34,7 @@ module.exports = function() {
self.$sequence({
type: 'post',
data: body,
url: 'api/nova/v2.1/servers-inspur/{id}/action',
url: 'api/nova/v2.1/servers/{id}/action',
params: selectRows,
confirmMsg: Vue.t('calcStorLang.openInstConfirm'),
log: {
@ -77,7 +77,7 @@ module.exports = function() {
self.$sequence({
type: 'post',
data: body,
url: 'api/nova/v2.1/servers-inspur/{id}/action',
url: 'api/nova/v2.1/servers/{id}/action',
params: selectRows,
confirmMsg: Vue.t('calcStorLang.closeInstConfirm'),
log: {