From 6d7547d14f13518e8e9d8142194eb59b01118eba Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 18 Jun 2024 09:03:04 +0700 Subject: [PATCH 1/3] updated --- .../components/Tab/Dialog/DialogStatus.vue | 54 ++++++++++--------- src/modules/08_KPI/views/form.vue | 23 ++++---- 2 files changed, 43 insertions(+), 34 deletions(-) diff --git a/src/modules/08_KPI/components/Tab/Dialog/DialogStatus.vue b/src/modules/08_KPI/components/Tab/Dialog/DialogStatus.vue index a425cb4..49037a3 100644 --- a/src/modules/08_KPI/components/Tab/Dialog/DialogStatus.vue +++ b/src/modules/08_KPI/components/Tab/Dialog/DialogStatus.vue @@ -13,7 +13,7 @@ const store = useKpiDataStore(); const route = useRoute(); const router = useRouter(); -const id = ref(route.params.id as string) +const id = ref(route.params.id as string); const work = ref(false); const $q = useQuasar(); const mixin = useCounterMixin(); @@ -29,35 +29,37 @@ const { } = mixin; const modal = defineModel("modal", { required: true }); +const isProbation = defineModel("isProbation", { required: true }); function close() { modal.value = false; } -function getData() { - showLoader(); - http - .get(config.API.orgPosition+`/${store.dataProfile.profileId}`) - .then((res) => { - const data = res.data.result.isProbation; - work.value = data; - }) - .catch((e) => { - messageError($q, e); - }) - .finally(() => { - hideLoader(); - }); -} -watch( - () => modal.value, - (n) => { - if (n == true) { - getData(); - } - } -); +// function getData() { +// showLoader(); +// http +// .get(config.API.orgPosition+`/${store.dataProfile.profileId}`) +// .then((res) => { +// const data = res.data.result.isProbation; +// work.value = data; +// }) +// .catch((e) => { +// messageError($q, e); +// }) +// .finally(() => { +// hideLoader(); +// }); +// } +// watch( +// () => modal.value, +// (n) => { +// if (n == true) { +// getData(); +// } +// } +// ); +