diff --git a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue index 43b5377f7..cb75991a6 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/01_ProfessionalLicense.vue @@ -340,7 +340,6 @@ onMounted(async () => { flat color="primary" icon="add" - size="16px" @click=" dialogStatus = 'create'; clearForm(); diff --git a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue index e5e2dd0fc..fe13d0da0 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/02_Train.vue @@ -497,7 +497,6 @@ onMounted(async () => { flat color="primary" icon="add" - size="16px" @click=" () => { dialogStatus = 'create'; diff --git a/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue b/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue index 144f5f9c7..f023c6b4d 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue @@ -8,7 +8,6 @@ import type { QTableProps, QForm } from "quasar"; import { useCounterMixin } from "@/stores/mixin"; import { useInsigniaDataStore } from "@/modules/04_registryNew/stores/insignia"; -import HistoryTable from "@/components/TableHistory.vue"; import DialogHeader from "@/components/DialogHeader.vue"; import type { DataOption, @@ -30,7 +29,6 @@ const { hideLoader, messageError, dialogConfirm, - dialogRemove, } = mixin; const profileId = ref( route.params.id ? route.params.id.toString() : "" @@ -54,6 +52,10 @@ const insigniaForm = reactive({ note: "", }); +const currentPage = ref(1); +const maxPageHistory = ref(1); +const currentPageHistory = ref(1); +const maxPage = ref(1); const isEdit = ref(false); const modal = ref(false); const modeView = ref("table"); @@ -61,7 +63,6 @@ const filterSearch = ref(""); const filterHistory = ref(""); const modalHistory = ref(false); const rowsHistory = ref([]); -const tittleHistory = ref("ประวัติแก้ไขเครื่องราชอิสริยาภรณ์"); const Ops = ref({ insigniaOptions: [], @@ -378,22 +379,22 @@ const columnsHistory = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "createdFullName", + name: "lastUpdateFullName", align: "left", label: "ผู้ดำเนินการ", sortable: true, - field: "createdFullName", + field: "lastUpdateFullName", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "createdAt", + name: "lastUpdatedAt", align: "left", label: "วันที่แก้ไข", sortable: true, - field: "createdAt", + field: "lastUpdatedAt", headerStyle: "font-size: 14px", style: "font-size: 14px", format: (v) => date2Thai(v), @@ -416,7 +417,6 @@ const visibleColumns = ref([ "refCommandNo", "refCommandDate", "note", - "createdAt", ]); const visibleColumnsHistory = ref([ "insignia", @@ -432,8 +432,8 @@ const visibleColumnsHistory = ref([ "dateAnnounce", "refCommandNo", "refCommandDate", - "createdFullName", - "createdAt", + "lastUpdateFullName", + "lastUpdatedAt", ]); async function fetchData() { @@ -487,19 +487,6 @@ async function addEditData(editStatus: boolean = false) { } } -// async function clickDelete(dataId: string) { -// try { -// await http.delete(config.API.profileNewInsignById(dataId)); -// success($q, "ลบข้อมูลสำเร็จ"); -// await fetchData(); -// modal.value = false; -// } catch (error) { -// messageError($q, error); -// } finally { -// hideLoader(); -// } -// } - function onClickOpenDialog(editStatus: boolean = false, row?: ResponseObject) { modal.value = true; isEdit.value = editStatus; @@ -606,45 +593,56 @@ onMounted(async () => { + - + { :grid="modeView === 'card'" :visible-columns="visibleColumns" :rows-per-page-options="[20, 50, 100]" + :card-container-class="modeView === 'card' ? 'q-col-gutter-md' : ''" > + + @@ -1111,30 +1125,123 @@ onMounted(async () => { - - - + + + + + + + + +
+ + + + + +
+ + > + + + + + + +
+
+
- + diff --git a/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue b/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue index 93e6c99fa..0a7fd4450 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/04_DeclarationHonor.vue @@ -7,7 +7,6 @@ import config from "@/app.config"; import type { QTableProps, QForm } from "quasar"; import { useCounterMixin } from "@/stores/mixin"; -import HistoryTable from "@/components/TableHistory.vue"; import DialogHeader from "@/components/DialogHeader.vue"; import type { RequestItemsObject } from "@/modules/04_registryNew/interface/request/DeclarationHonor"; import type { ResponseObject } from "@/modules/04_registryNew/interface/response/DeclarationHonor"; @@ -22,7 +21,6 @@ const { showLoader, hideLoader, dialogConfirm, - dialogRemove, } = mixin; const profileId = ref( route.params.id ? route.params.id.toString() : "" @@ -39,15 +37,17 @@ const declHonorForm = reactive({ refCommandDate: null, }); +const currentPage = ref(1); +const maxPage = ref(1); +const currentPageHistory = ref(1); +const maxPageHistory = ref(1); const isEdit = ref(false); -const myForm = ref(); const modal = ref(false); -const modelView = ref("table"); +const modeView = ref("table"); const filterSearch = ref(""); const filterHistory = ref(""); const modalHistory = ref(false); const rowsHistory = ref([]); -const tittleHistory = ref("ประวัติแก้ไขประกาศเกียรติคุณ"); const rows = ref([]); @@ -169,22 +169,22 @@ const columnsHistory = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "createdFullName", + name: "lastUpdateFullName", align: "left", label: "ผู้ดำเนินการ", sortable: true, - field: "createdFullName", + field: "lastUpdateFullName", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "createdAt", + name: "lastUpdatedAt", align: "left", label: "วันที่แก้ไข", sortable: true, - field: "createdAt", + field: "lastUpdatedAt", headerStyle: "font-size: 14px", style: "font-size: 14px", format: (v) => date2Thai(v), @@ -207,8 +207,8 @@ const visibleColumnsHistory = ref([ "issueDate", "refCommandNo", "refCommandDate", - "createdFullName", - "createdAt", + "lastUpdateFullName", + "lastUpdatedAt", ]); async function fetchData() { @@ -255,19 +255,6 @@ async function addEditData(editStatus: boolean = false) { } } -// async function clickDelete(dataId: string) { -// try { -// await http.delete(config.API.profileNewHonorById(dataId)); -// success($q, "ลบข้อมูลสำเร็จ"); -// await fetchData(); -// modal.value = false; -// } catch (error) { -// messageError($q, error); -// } finally { -// hideLoader(); -// } -// } - function onClickOpenDialog(editStatus: boolean = false, row?: ResponseObject) { modal.value = true; isEdit.value = editStatus; @@ -347,45 +334,56 @@ watch( ); + - + - diff --git a/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue b/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue index c653756f1..b8ef11535 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/05_ResultsPerformance.vue @@ -8,7 +8,6 @@ import type { QTableProps, QForm } from "quasar"; import { useCounterMixin } from "@/stores/mixin"; import { useResultsPerformDataStore } from "@/modules/04_registryNew/stores/ResultsPerformance"; -import HistoryTable from "@/components/TableHistory.vue"; import DialogHeader from "@/components/DialogHeader.vue"; import type { RequestItemsObject } from "@/modules/04_registryNew/interface/request/ResultsPerformance"; @@ -26,7 +25,6 @@ const { showLoader, hideLoader, dialogConfirm, - dialogRemove, } = mixin; const profileId = ref( route.params.id ? route.params.id.toString() : "" @@ -44,15 +42,17 @@ const resPerformForm = reactive({ date: null, }); +const currentPage = ref(1); +const maxPage = ref(1); +const currentPageHistory = ref(1); +const maxPageHistory = ref(1); const isEdit = ref(false); -const myForm = ref(); const modal = ref(false); -const modelView = ref("table"); +const modeView = ref("table"); const filterSearch = ref(""); const filterHistory = ref(""); const modalHistory = ref(false); const rowsHistory = ref([]); -const tittleHistory = ref("ประวัติแก้ไขผลการประเมินการปฏิบัติราชการ"); const rows = ref([]); @@ -146,6 +146,16 @@ const columns = ref([ }, ]); const columnsHistory = ref([ + { + name: "date", + align: "left", + label: "วันที่ได้รับ", + sortable: true, + field: "date", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + format: (v) => date2Thai(v), + }, { name: "point1Total", align: "left", @@ -222,22 +232,22 @@ const columnsHistory = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "createdFullName", + name: "lastUpdateFullName", align: "left", label: "ผู้ดำเนินการ", sortable: true, - field: "createdFullName", + field: "lastUpdateFullName", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "createdAt", + name: "lastUpdatedAt", align: "left", label: "วันที่แก้ไข", sortable: true, - field: "createdAt", + field: "lastUpdatedAt", headerStyle: "font-size: 14px", style: "font-size: 14px", format: (v) => date2Thai(v), @@ -254,8 +264,8 @@ const visibleColumnsHistory = ref([ "pointSum", "name", "date", - "createdFullName", - "createdAt", + "lastUpdateFullName", + "lastUpdatedAt", ]); const visibleColumns = ref([ @@ -308,19 +318,6 @@ async function addEditData(editStatus: boolean = false) { } } -// async function clickDelete(dataId: string) { -// try { -// await http.delete(config.API.profileNewAssessmentsById(dataId)); -// success($q, "ลบข้อมูลสำเร็จ"); -// await fetchData(); -// modal.value = false; -// } catch (error) { -// messageError($q, error); -// } finally { -// hideLoader(); -// } -// } - function onClickOpenDialog(editStatus: boolean = false, row?: ResponseObject) { modal.value = true; isEdit.value = editStatus; @@ -390,45 +387,56 @@ onMounted(async () => { }); + - + - diff --git a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue index 360c007b7..bcb0df7ac 100644 --- a/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue +++ b/src/modules/04_registryNew/components/detail/GovernmentInformation/01_Info.vue @@ -461,15 +461,15 @@ onMounted(() => {
แก้ไขแก้ไขข้อมูล {