From 00b75e0a1066fb4c93d661a8cc44bdf6fab1e71b Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 4 Jul 2024 15:43:28 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A8=E0=B9=80=E0=B8=81=E0=B8=A9=E0=B8=B5=E0=B8=A2=E0=B8=93?= =?UTF-8?q?=E0=B8=AD=E0=B8=B2=E0=B8=A2=E0=B8=B8=E0=B8=A3=E0=B8=B2=E0=B8=8A?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ListRetirement/AddList.vue | 206 +++++++++--------- .../components/ListRetirement/TableList.vue | 42 ++-- .../components/ListRetirement/popupAdd.vue | 2 +- 3 files changed, 137 insertions(+), 113 deletions(-) diff --git a/src/modules/06_retirement/components/ListRetirement/AddList.vue b/src/modules/06_retirement/components/ListRetirement/AddList.vue index 282a5d2ca..1754ea456 100644 --- a/src/modules/06_retirement/components/ListRetirement/AddList.vue +++ b/src/modules/06_retirement/components/ListRetirement/AddList.vue @@ -6,6 +6,8 @@ import { useCounterMixin } from "@/stores/mixin"; import { useQuasar } from "quasar"; import { useRoute } from "vue-router"; +import DialogHeader from "../DialogHeader.vue"; + /** Use */ const $q = useQuasar(); //ใช้ noti quasar const mixin = useCounterMixin(); @@ -79,6 +81,8 @@ const rows = ref([]); watch(modal, () => { if (modal.value === true) { retireld.value = props.retireld; + formPagePersonList.page = 1; + formPagePersonList.keyword = ""; if (props.dataProfile) { if (props.dataProfile.type === "OFFICER") { type.value = "officer"; @@ -150,9 +154,7 @@ const fecthProfile = async () => { fullname: e.prefix + e.firstName + " " + e.lastName, position: e.position, level: - e.posTypeName && e.posLevelName - ? e.posTypeName + " (" + e.posLevelName + ")" - : "-", + e.posTypeName && e.posLevelName ? e.posTypeName + " (" + e.posLevelName + ")" : "-", organizationOrganization: findOrgChildName(e), })); }) @@ -185,8 +187,8 @@ const fecthProfile = async () => { fullname: e.prefix + e.firstName + " " + e.lastName, position: e.position, level: - e.posTypeName && e.posLevelName - ? e.posTypeName + " (" + e.posLevelName + ")" + e.posType && e.posLevel + ? e.posType + " (" + e.posLevel + ")" : "-", organizationOrganization: findOrgName(e), })); @@ -242,6 +244,10 @@ watch( fecthProfile(); } ); + +function closeDialog() { + modal.value = false; +} diff --git a/src/modules/06_retirement/components/ListRetirement/TableList.vue b/src/modules/06_retirement/components/ListRetirement/TableList.vue index 4c7649b69..cd3f270f5 100644 --- a/src/modules/06_retirement/components/ListRetirement/TableList.vue +++ b/src/modules/06_retirement/components/ListRetirement/TableList.vue @@ -657,19 +657,32 @@ function updatemodalPersonal(modal: boolean) { {{ props.row.positionNumber ? props.row.positionNumber : "-" }} - + {{ props.row.organization ? props.row.organization : "-" }} - - + + + ข้อมูล + @@ -742,7 +755,7 @@ function updatemodalPersonal(modal: boolean) { - + @@ -758,6 +771,7 @@ function updatemodalPersonal(modal: boolean) { :rules="[(val) => !!val || 'กรุณากรอกเหตุผล']" :label="`${'กรอกเหตุผล'}`" type="textarea" + :readonly="statusUpload" /> @@ -765,7 +779,7 @@ function updatemodalPersonal(modal: boolean) { - + - + diff --git a/src/modules/06_retirement/components/ListRetirement/popupAdd.vue b/src/modules/06_retirement/components/ListRetirement/popupAdd.vue index fbebbe5cd..32dbacb10 100644 --- a/src/modules/06_retirement/components/ListRetirement/popupAdd.vue +++ b/src/modules/06_retirement/components/ListRetirement/popupAdd.vue @@ -111,7 +111,7 @@ const cerateRetirement = async (data: object) => { > เพิ่ม - +
เพิ่มประกาศ