flavor适配
This commit is contained in:
parent
004b12286e
commit
d8dab76372
|
@ -474,7 +474,6 @@ export default {
|
|||
projectId: '',
|
||||
instanceId: ''
|
||||
},
|
||||
OSSupportsHotPlug: [],
|
||||
modifyPasswordDialog: {
|
||||
visible: false,
|
||||
instanceId: ''
|
||||
|
@ -691,7 +690,6 @@ export default {
|
|||
let $this = this;
|
||||
let roleType = String(Vue.roleType);
|
||||
$this.$nextTick(async () => {
|
||||
await $this.loadInspurConfigs();
|
||||
if (roleType === '0') {
|
||||
$this.loadFilteredUsers('');
|
||||
$this.loadHostList();
|
||||
|
@ -1630,17 +1628,6 @@ export default {
|
|||
const $this = this;
|
||||
$this.loadData($this.currentPage, true);
|
||||
},
|
||||
async loadInspurConfigs() {
|
||||
const $this = this
|
||||
const res = await $this.$ajax({
|
||||
type: 'get',
|
||||
url: `api/nova/v2.1/inspur-configs`
|
||||
});
|
||||
$this.OSSupportsHotPlug = [];
|
||||
for (let key in res) {
|
||||
$this.OSSupportsHotPlug.push(key);
|
||||
}
|
||||
},
|
||||
async loadHostList() {
|
||||
const $this = this;
|
||||
const res = await $this.$ajax({
|
||||
|
|
|
@ -114,7 +114,7 @@ export default {
|
|||
async loadFlavors() {
|
||||
const $this = this;
|
||||
const res = await $this.$ajax({
|
||||
url: `api/nova/v2.1/flavors-inspur/detail?project_id=${$this.incomingData.projectId}`,
|
||||
url: `api/nova/v2.1/flavors/detail?project_id=${$this.incomingData.projectId}`,
|
||||
method: 'get'
|
||||
});
|
||||
let flavors = res.flavors;
|
||||
|
|
Loading…
Reference in New Issue