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

普通用户云资源列表修复

parent 32e3860a
......@@ -1205,39 +1205,42 @@ export default {
if (this.type == 2) {
const cloud = data.data.cloud_resource_count;
if (this.level == 1) {
if (this.level != 2) {
this.listTotal = data.total;
this.listData = data.data.cloud_apply_list;
this.cloud_zuzhi = {
count_zy: cloud.count_zy,
dashboard_list: [
{
name: "CPU使用量",
value: cloud.cpu_use,
total: cloud.cpu_total,
unit: "(核)",
},
{
name: "内存使用量",
value: cloud.memory_use,
total: cloud.memory_total,
unit: "(GB)",
},
/* {
if (this.level == 1) {
this.cloud_zuzhi = {
count_zy: cloud.count_zy,
dashboard_list: [
{
name: "CPU使用量",
value: cloud.cpu_use,
total: cloud.cpu_total,
unit: "(核)",
},
{
name: "内存使用量",
value: cloud.memory_use,
total: cloud.memory_total,
unit: "(GB)",
},
/* {
name: "数据盘使用量",
value: cloud.disk_use,
total: cloud.disk_total,
unit: "(GB)",
}, */
{
name: "容器组使用量",
value: cloud.containers_use,
total: cloud.containers_total,
unit: "(个)",
},
],
};
} else if (this.level == 2) {
{
name: "容器组使用量",
value: cloud.containers_use,
total: cloud.containers_total,
unit: "(个)",
},
],
};
}
} else {
this.cloud_admin = {
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