...
|
...
|
@@ -124,7 +124,7 @@ export default { |
|
|
},(res)=>{
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dict){
|
|
|
overviewList.value[0].host[i] = res.map[dict[i]] || 0;
|
|
|
overviewList.value[0].host[i] = res.map[dict[i]].kpiValue || 0;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
@@ -137,7 +137,7 @@ export default { |
|
|
},(res)=>{
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dict){
|
|
|
overviewList.value[0].virtualMachine[i] = res.map[dict[i]] || 0;
|
|
|
overviewList.value[0].virtualMachine[i] = res.map[dict[i]].kpiValue || 0;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
@@ -151,7 +151,7 @@ export default { |
|
|
console.log(res.map);
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dict){
|
|
|
overviewList.value[1].host[i] = res.map[dict[i]] || 0;
|
|
|
overviewList.value[1].host[i] = res.map[dict[i]].kpiValue || 0;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
@@ -164,7 +164,7 @@ export default { |
|
|
},(res)=>{
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dict){
|
|
|
overviewList.value[1].virtualMachine[i] = res.map[dict[i]] || 0;
|
|
|
overviewList.value[1].virtualMachine[i] = res.map[dict[i]].kpiValue || 0;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
@@ -179,7 +179,7 @@ export default { |
|
|
},(res)=>{
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dictCpu){
|
|
|
overviewList.value[0].res.cpu[i] = res.map[dictCpu[i]];
|
|
|
overviewList.value[0].res.cpu[i] = res.map[dictCpu[i]].kpiValue;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
@@ -192,7 +192,7 @@ export default { |
|
|
},(res)=>{
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dictMem){
|
|
|
overviewList.value[0].res.storage[i] = res.map[dictMem[i]];
|
|
|
overviewList.value[0].res.storage[i] = res.map[dictMem[i]].kpiValue;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
@@ -205,7 +205,7 @@ export default { |
|
|
},(res)=>{
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dictDisk){
|
|
|
overviewList.value[0].res.disk[i] = res.map[dictDisk[i]];
|
|
|
overviewList.value[0].res.disk[i] = res.map[dictDisk[i]].kpiValue;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
@@ -219,7 +219,7 @@ export default { |
|
|
},(res)=>{
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dictCpu){
|
|
|
overviewList.value[1].res.cpu[i] = res.map[dictCpu[i]];
|
|
|
overviewList.value[1].res.cpu[i] = res.map[dictCpu[i]].kpiValue;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
@@ -232,7 +232,7 @@ export default { |
|
|
},(res)=>{
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dictMem){
|
|
|
overviewList.value[1].res.storage[i] = res.map[dictMem[i]];
|
|
|
overviewList.value[1].res.storage[i] = res.map[dictMem[i]].kpiValue;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
@@ -245,7 +245,7 @@ export default { |
|
|
},(res)=>{
|
|
|
if (Object.keys(res.map).length){
|
|
|
for (let i in dictDisk){
|
|
|
overviewList.value[1].res.disk[i] = res.map[dictDisk[i]];
|
|
|
overviewList.value[1].res.disk[i] = res.map[dictDisk[i]].kpiValue;
|
|
|
}
|
|
|
}
|
|
|
},(err)=>{
|
...
|
...
|
|