diff --git a/src/modules/04_registryPerson/components/detail/Achievement/05_ResultsPerformance.vue b/src/modules/04_registryPerson/components/detail/Achievement/05_ResultsPerformance.vue index f2babbd7c..5fe2fb02f 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/05_ResultsPerformance.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/05_ResultsPerformance.vue @@ -47,12 +47,16 @@ const resPerformForm = reactive({ const isEdit = ref(false); const modal = ref(false); const modeView = ref("table"); +const modeViewPlan = ref("table"); const filterSearch = ref(""); + const filterHistory = ref(""); const modalHistory = ref(false); const rowsHistory = ref([]); +const filterSearchPlan = ref(""); const rows = ref([]); +const rowsPlan = ref([]); const columns = ref([ { @@ -277,10 +281,90 @@ const visibleColumns = ref([ "date", ]); +const visibleColumnsPlan = ref([ + "no", + "Knowledge", + "develop", + "target", + "developmentResults", + "developmentReport", +]); +const columnsPlan = ref([ + { + name: "no", + align: "left", + label: "ลำดับ", + sortable: true, + field: "no", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + format: (v) => date2Thai(v), + }, + { + name: "Knowledge", + align: "left", + label: "ความรู้ / ทักษะ / สมรรถนะที่ต้องได้รับการพัฒนา", + sortable: true, + field: "Knowledge", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, + { + name: "develop", + align: "left", + label: "วิธีการพัฒนา", + sortable: true, + field: "develop", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, + { + name: "target", + align: "left", + label: "เป้าหมายการพัฒนา", + sortable: true, + field: "target", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, + { + name: "developmentResults", + align: "left", + label: "วิธีการวัดผลการพัฒนา", + sortable: true, + field: "developmentResults", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, + { + name: "developmentReport", + align: "left", + label: "รายงานผลการพัฒนา", + sortable: true, + field: "developmentReport", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a: string, b: string) => + a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, +]); + const pagination = ref({ page: 1, rowsPerPage: 10, }); +const paginationPlan = ref({ + page: 1, + rowsPerPage: 10, +}); const historyPagination = ref({ page: 1, @@ -426,103 +510,332 @@ onMounted(() => { }); + + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ การพัฒนารายบุคคล (Individual Development Plan) +
+
+
+ เพิ่มข้อมูล + + + + + + + + + + + +
+
+ +
+ -