diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index 045fb2ffa..10d8a7f18 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -2,13 +2,14 @@ import { onMounted, ref, watch } from "vue"; import { useCounterMixin } from "@/stores/mixin"; import { useQuasar } from "quasar"; +import type { QTableProps } from "quasar"; const mixin = useCounterMixin(); const { dialogRemove, dialogConfirm } = mixin; const $q = useQuasar(); const modalNote = ref(false); -const organization = ref(1); +const organization = ref(1); const organizationOptions = ref([{ id: 1, name: "ทั้งหมด" }]); const visibleColumns = ref([ "no", @@ -182,15 +183,24 @@ const rows = ref([ ]); const Note = ref(""); +const titleModal = ref(""); +const actionModal = ref(""); +const person = ref([]); -const clickNote = (props: any) => { +const clickAction = (props: any, action: string) => { + Note.value = ""; + person.value = props; + titleModal.value = props.name; + actionModal.value = action; modalNote.value = true; }; const clickDelete = () => { dialogRemove($q); + console.log(person.value, Note.value); }; const clickSavenote = () => { dialogConfirm($q); + console.log(person.value); }; const filterKeyword = ref(""); @@ -348,40 +358,40 @@ const paginationLabel = (start: string, end: string, total: string) => { dense > - + - หมายเหตุ + ไม่ยื่นขอ - หมายเหตุ + ไม่ยื่นขอ - ลบข้อมูล + ลบออก - ลบ + ลบออก @@ -410,7 +420,8 @@ const paginationLabel = (start: string, end: string, total: string) => { - หมายเหตุ +
หมายเหตุ {{ titleModal }}
+
ลบออก {{ titleModal }}
{ label="กรอกหมายเหตุ" v-model="Note" @keyup.enter="modalNote = false" + :rules="[(val) => !!val || 'กรอกหมายเหตุ']" /> - + +