From 727f3c6765bfd5d344d1f2f4f3d31bae0ab4fb34 Mon Sep 17 00:00:00 2001 From: oat Date: Wed, 7 Feb 2024 11:16:41 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1=E0=B8=B9?= =?UTF-8?q?=E0=B8=A5=E0=B8=9A=E0=B8=B8=E0=B8=84=E0=B8=84=E0=B8=A5:=20API?= =?UTF-8?q?=E0=B8=A3=E0=B8=B0=E0=B8=94=E0=B8=B1=E0=B8=9A=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B8=A8=E0=B8=B6=E0=B8=81=E0=B8=A9=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/personal/07ListEducationLevel.vue | 16 +++++++++++++--- .../components/personal/DialogForm.vue | 3 ++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/modules/01_metadataNew/components/personal/07ListEducationLevel.vue b/src/modules/01_metadataNew/components/personal/07ListEducationLevel.vue index 34833037a..6b998694f 100644 --- a/src/modules/01_metadataNew/components/personal/07ListEducationLevel.vue +++ b/src/modules/01_metadataNew/components/personal/07ListEducationLevel.vue @@ -71,7 +71,7 @@ const columns = [ ] as const satisfies QTableProps["columns"]; const $q = useQuasar(); - +const editId = ref(""); const filterKeyword = ref(""); const dialog = ref(false); const educationLevel = ref(""); @@ -139,6 +139,8 @@ onMounted(async () => { () => { dialogStatus = 'create'; dialog = true; + educationLevel = ''; + educationRank = undefined; } " > @@ -211,6 +213,9 @@ onMounted(async () => { () => { dialogStatus = 'edit'; dialog = true; + editId = props.row.id; + educationLevel = props.row.name; + educationRank = props.row.rank; } " > @@ -223,7 +228,12 @@ onMounted(async () => {
@@ -241,7 +251,7 @@ onMounted(async () => { ("personalName"); const dialogStatus = defineModel("dialogStatus"); const editId = defineModel("editId"); const dialog = defineModel("dialog"); -const educationRank = defineModel("rank"); +const educationRank = defineModel("educationRank"); const props = defineProps({ fetchData: { type: Function, @@ -52,6 +52,7 @@ async function onSubmit() { : props.editData(editId.value); closeDialog(); data.value = ""; + educationRank.value = undefined; }, "ยืนยันการบันทึกข้อมูล", "ต้องการยืนยันการบันทึกข้อมูลนี้หรือไม่ ?"