From a5a967c09fb17f84d9e548efdbc33f061301cbc1 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Tue, 17 Jun 2025 17:25:16 +0700 Subject: [PATCH] fixing modal datepicker --- src/modules/08_KPI/components/Tab/Dialog/DialogDevelop.vue | 4 ---- src/modules/10_registry/04_Achievement/06_DevelopmentPlan.vue | 3 --- src/modules/10_registry/Dialog/DialogDevelopmant.vue | 2 -- 3 files changed, 9 deletions(-) diff --git a/src/modules/08_KPI/components/Tab/Dialog/DialogDevelop.vue b/src/modules/08_KPI/components/Tab/Dialog/DialogDevelop.vue index f73776a..373051a 100644 --- a/src/modules/08_KPI/components/Tab/Dialog/DialogDevelop.vue +++ b/src/modules/08_KPI/components/Tab/Dialog/DialogDevelop.vue @@ -236,8 +236,6 @@ function onSubmit() { } } -const customPosition = () => ({ top: "490px", left: "410px" }); - async function getDataByYear() { if (formData.year) { showLoader(); @@ -388,9 +386,7 @@ watch( v-model="formData.year" :locale="'th'" autoApply - position="center" year-picker - :alt-position="customPosition" :enableTimePicker="false" @update:model-value="getDataByYear(), (projectName = '')" > diff --git a/src/modules/10_registry/04_Achievement/06_DevelopmentPlan.vue b/src/modules/10_registry/04_Achievement/06_DevelopmentPlan.vue index 9c51513..eff42db 100644 --- a/src/modules/10_registry/04_Achievement/06_DevelopmentPlan.vue +++ b/src/modules/10_registry/04_Achievement/06_DevelopmentPlan.vue @@ -7,9 +7,6 @@ import http from "@/plugins/http"; import config from "@/app.config"; import { useDataStore } from "@/stores/data"; -//history dialog -import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue"; - import DialogDevelop from "@/modules/10_registry/Dialog/DialogDevelopmant.vue"; const typeIDP = ref(""); diff --git a/src/modules/10_registry/Dialog/DialogDevelopmant.vue b/src/modules/10_registry/Dialog/DialogDevelopmant.vue index 5f18e68..1a24492 100644 --- a/src/modules/10_registry/Dialog/DialogDevelopmant.vue +++ b/src/modules/10_registry/Dialog/DialogDevelopmant.vue @@ -254,7 +254,6 @@ watch( } ); -const customPosition = () => ({ top: "385px", left: "410px" }); async function getDataByYear() { if (formData.year) { showLoader(); @@ -409,7 +408,6 @@ function filterOptionFn(val: string, update: Function) { autoApply position="center" year-picker - :alt-position="customPosition" :enableTimePicker="false" @update:model-value="getDataByYear(), (projectName = '')" >