diff --git a/src/modules/01_metadataNew/components/personal/01ListPrefix.vue b/src/modules/01_metadataNew/components/personal/01ListPrefix.vue index 7be892d64..26dec7b35 100644 --- a/src/modules/01_metadataNew/components/personal/01ListPrefix.vue +++ b/src/modules/01_metadataNew/components/personal/01ListPrefix.vue @@ -64,7 +64,6 @@ const $q = useQuasar(); const filterKeyword = ref(""); const dialog = ref(false); const prefix = ref(""); -const prefixRef = ref(null); const dialogStatus = ref(""); const personalName = ref("คำนำหน้าชื่อ"); const visibleColumns = ref([ @@ -74,35 +73,32 @@ const visibleColumns = ref([ "lastUpdateFullName", ]); -function fetchData() { - const data = [ - { - id: "1", - name: "ว่าที่ร้อยตรี", - createdAt: new Date(), - lastUpdatedAt: new Date(), - lastUpdateFullName: "สาวิตรี ศรีสมัย", - }, - { - id: "2", - name: "นางสาว", - createdAt: new Date(), - lastUpdatedAt: new Date(), - lastUpdateFullName: "System Administrator", - }, - { - id: "3", - name: "นาย", - createdAt: new Date(), - lastUpdatedAt: new Date(), - lastUpdateFullName: "คณะกรรมการ ตรวจรับ", - }, - ]; - store.fetchData(data); -} +const data = [ + { + id: "1", + name: "ว่าที่ร้อยตรี", + createdAt: new Date(), + lastUpdatedAt: new Date(), + lastUpdateFullName: "สาวิตรี ศรีสมัย", + }, + { + id: "2", + name: "นางสาว", + createdAt: new Date(), + lastUpdatedAt: new Date(), + lastUpdateFullName: "System Administrator", + }, + { + id: "3", + name: "นาย", + createdAt: new Date(), + lastUpdatedAt: new Date(), + lastUpdateFullName: "คณะกรรมการ ตรวจรับ", + }, +]; onMounted(async () => { - fetchData(); + store.fetchData(data); }); @@ -164,11 +160,7 @@ onMounted(async () => {