diff --git a/src/pages/workbench/fwgl/fwglList.vue b/src/pages/workbench/fwgl/fwglList.vue index 6d347a6678228975142e9c5a1f5177308b1ffcb3..4c5438f7cdddf8638af287184111d4b672fdaa44 100644 --- a/src/pages/workbench/fwgl/fwglList.vue +++ b/src/pages/workbench/fwgl/fwglList.vue @@ -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: [ {