diff --git a/src/modules/01_metadata/components/insignia/Insignia.vue b/src/modules/01_metadata/components/insignia/Insignia.vue index 4858afc35..6710add80 100644 --- a/src/modules/01_metadata/components/insignia/Insignia.vue +++ b/src/modules/01_metadata/components/insignia/Insignia.vue @@ -304,7 +304,7 @@ const mixin = useCounterMixin(); const { success, dateText, messageError, showLoader, hideLoader } = mixin; const store = useManageDataStore(); const { manageData, changeManageColumns, getInsignia, dataInsignia } = store; -const rows = ref(); //list data table +const rows = ref([]); //list data table const rowsHistory = ref([]); //select data history const rawHistory = ref([]); //raw data history const tittleHistory = ref("ประวัติแก้ไขชื่อเครื่องราชฯ"); // diff --git a/src/modules/01_metadata/components/insignia/InsigniaType.vue b/src/modules/01_metadata/components/insignia/InsigniaType.vue index ce94bc177..ec4d62557 100644 --- a/src/modules/01_metadata/components/insignia/InsigniaType.vue +++ b/src/modules/01_metadata/components/insignia/InsigniaType.vue @@ -206,7 +206,7 @@ const { success, dateText, messageError, showLoader, hideLoader } = mixin; const store = useManageDataStore(); const { manageData, changeManageColumns, getInsigniaType, dataInsigniaType } = store; -const rows = ref(); //list data table +const rows = ref([]); //list data table const rowsHistory = ref([]); //select data history const rawHistory = ref([]); //raw data history const tittleHistory = ref("ประวัติแก้ไขลำดับชั้นเครื่องราชฯ"); // diff --git a/src/modules/08_registryEmployee/views/Main.vue b/src/modules/08_registryEmployee/views/Main.vue index 25c790b7e..ee6892220 100644 --- a/src/modules/08_registryEmployee/views/Main.vue +++ b/src/modules/08_registryEmployee/views/Main.vue @@ -164,7 +164,7 @@ import { ref, onMounted } from "vue"; import { useQuasar } from "quasar"; import { useCounterMixin } from "@/stores/mixin"; -import type { QInput, QForm } from "quasar"; +import type { QInput, QForm, QTableProps } from "quasar"; import { useRouter } from "vue-router"; import http from "@/plugins/http"; import config from "@/app.config"; @@ -327,7 +327,7 @@ const visibleColumns = ref([ "yearly", "pay", ]); -const columns = [ +const columns = ref([ { name: "no", align: "left", label: "ลำดับ", field: "no", sortable: true }, { name: "name", @@ -393,7 +393,7 @@ const columns = [ field: "pay", sortable: true, }, -]; +]); const rows = [ { @@ -596,7 +596,7 @@ const clickAdd = () => { // router.push(`/placement/detail`); }; -const editDetail = () => { +const editDetail = (id: string) => { router.push({ name: "" }); };