forked from Inspur/skyline
云主机列表,开关机操作原生api支持
This commit is contained in:
parent
e54021c22e
commit
004b12286e
|
@ -1743,7 +1743,7 @@ export default {
|
||||||
if ($this.refreshTimeout !== null) {
|
if ($this.refreshTimeout !== null) {
|
||||||
clearTimeout($this.refreshTimeout);
|
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 roleType = Vue.roleType + '';
|
||||||
let queryString = Object.keys(params).map(key => {
|
let queryString = Object.keys(params).map(key => {
|
||||||
return `${key}=${params[key]}`
|
return `${key}=${params[key]}`
|
||||||
|
|
|
@ -34,7 +34,7 @@ module.exports = function() {
|
||||||
self.$sequence({
|
self.$sequence({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
data: body,
|
data: body,
|
||||||
url: 'api/nova/v2.1/servers-inspur/{id}/action',
|
url: 'api/nova/v2.1/servers/{id}/action',
|
||||||
params: selectRows,
|
params: selectRows,
|
||||||
confirmMsg: Vue.t('calcStorLang.openInstConfirm'),
|
confirmMsg: Vue.t('calcStorLang.openInstConfirm'),
|
||||||
log: {
|
log: {
|
||||||
|
@ -77,7 +77,7 @@ module.exports = function() {
|
||||||
self.$sequence({
|
self.$sequence({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
data: body,
|
data: body,
|
||||||
url: 'api/nova/v2.1/servers-inspur/{id}/action',
|
url: 'api/nova/v2.1/servers/{id}/action',
|
||||||
params: selectRows,
|
params: selectRows,
|
||||||
confirmMsg: Vue.t('calcStorLang.closeInstConfirm'),
|
confirmMsg: Vue.t('calcStorLang.closeInstConfirm'),
|
||||||
log: {
|
log: {
|
||||||
|
|
Loading…
Reference in New Issue