From 4ca7b49cb5c31c939694d90bd0eb442a77af19f1 Mon Sep 17 00:00:00 2001 From: daeyeon ko Date: Mon, 4 Nov 2024 18:26:11 +0900 Subject: [PATCH 01/41] feat: vmEvaluatePerf --- front/src/entities/mci/model/stores.ts | 10 +- .../workloadOperations/mci/ui/MciPage.vue | 12 +- .../workload/mci/mciDetail/ui/MciDetail.vue | 14 +- .../workload/mci/mciList/model/index.ts | 5230 +---------------- .../vm/vmEvaluatePerf/ui/VmEvaluatePerf.vue | 54 + 5 files changed, 103 insertions(+), 5217 deletions(-) create mode 100644 front/src/widgets/workload/vm/vmEvaluatePerf/ui/VmEvaluatePerf.vue diff --git a/front/src/entities/mci/model/stores.ts b/front/src/entities/mci/model/stores.ts index c8c2c9b0..9e96e7d2 100644 --- a/front/src/entities/mci/model/stores.ts +++ b/front/src/entities/mci/model/stores.ts @@ -19,6 +19,13 @@ export const useMCIStore = defineStore(NAMESPACE, () => { ); } + function setMci(_mci: IMci) { + const targetMci = mcis.value.find(mci => mci.uid === _mci.uid); + if (targetMci) { + Object.assign(targetMci, _mci); + } + } + function setVmsInfo(mciID: string, vm: Array) { const mci = getMciById(mciID); if (mci) { @@ -28,13 +35,14 @@ export const useMCIStore = defineStore(NAMESPACE, () => { function setVmInfo(mciID: string, vm: IVm) { const mci = getMciById(mciID); - const targetVm = mci?.vm.find(_vm => _vm.id === vm.id); + const targetVm = mci?.vm.find(_vm => _vm.uid === vm.uid); if (targetVm) { Object.assign(targetVm, vm); } } return { mcis, + setMci, setMcis, getMciById, setVmsInfo, diff --git a/front/src/pages/workloadOperations/mci/ui/MciPage.vue b/front/src/pages/workloadOperations/mci/ui/MciPage.vue index 0454551b..ec041724 100644 --- a/front/src/pages/workloadOperations/mci/ui/MciPage.vue +++ b/front/src/pages/workloadOperations/mci/ui/MciPage.vue @@ -1,11 +1,17 @@