From 03ea92dbe91c5df5eb4656ceae0b4b515bbe2741 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Mon, 13 May 2024 11:01:10 +0700 Subject: [PATCH] updated KPI form icon progress & problem --- .../components/Tab/Topic/01_Indicator.vue | 61 +++++++++++++++---- 1 file changed, 48 insertions(+), 13 deletions(-) diff --git a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue index d31badf..f15ab3e 100644 --- a/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue +++ b/src/modules/08_KPI/components/Tab/Topic/01_Indicator.vue @@ -168,6 +168,19 @@ function onDelete(id: string) { }); } +const modalProgress = ref(false); +const modalProblem = ref(false); +const type = ref(""); +function openPopupProgress() { + modalProgress.value = true; + type.value = rows.value ? "plan" : rows.value ? "role" : "special"; +} + +function openPopupProblem() { + modalProblem.value = true; + type.value = rows.value ? "plan" : rows.value ? "role" : "special"; +} + watch( () => modal.value, () => { @@ -260,13 +273,7 @@ watch( {{ col.label }} - +