Commit 79c7ef84 authored by 徐一鸣's avatar 徐一鸣

普通用户云资源列表修复

parent 32e3860a
...@@ -1205,39 +1205,42 @@ export default { ...@@ -1205,39 +1205,42 @@ export default {
if (this.type == 2) { if (this.type == 2) {
const cloud = data.data.cloud_resource_count; const cloud = data.data.cloud_resource_count;
if (this.level == 1) { if (this.level != 2) {
this.listTotal = data.total; this.listTotal = data.total;
this.listData = data.data.cloud_apply_list; this.listData = data.data.cloud_apply_list;
this.cloud_zuzhi = {
count_zy: cloud.count_zy, if (this.level == 1) {
dashboard_list: [ this.cloud_zuzhi = {
{ count_zy: cloud.count_zy,
name: "CPU使用量", dashboard_list: [
value: cloud.cpu_use, {
total: cloud.cpu_total, name: "CPU使用量",
unit: "(核)", value: cloud.cpu_use,
}, total: cloud.cpu_total,
{ unit: "(核)",
name: "内存使用量", },
value: cloud.memory_use, {
total: cloud.memory_total, name: "内存使用量",
unit: "(GB)", value: cloud.memory_use,
}, total: cloud.memory_total,
/* { unit: "(GB)",
},
/* {
name: "数据盘使用量", name: "数据盘使用量",
value: cloud.disk_use, value: cloud.disk_use,
total: cloud.disk_total, total: cloud.disk_total,
unit: "(GB)", unit: "(GB)",
}, */ }, */
{ {
name: "容器组使用量", name: "容器组使用量",
value: cloud.containers_use, value: cloud.containers_use,
total: cloud.containers_total, total: cloud.containers_total,
unit: "(个)", unit: "(个)",
}, },
], ],
}; };
} else if (this.level == 2) { }
} else {
this.cloud_admin = { this.cloud_admin = {
dashboard_list: [ dashboard_list: [
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment