API ประเมืน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-12-22 16:00:05 +07:00
parent 0e5d15dc7c
commit 257b4a1424
16 changed files with 700 additions and 186 deletions

View file

@ -5,58 +5,58 @@ import type { QTableProps } from "quasar";
export const useEvaluateDetailStore = defineStore("evaluateDetailStore", () => {
/** columns TableViewStep1*/
const columnsLicense = ref<QTableProps["columns"]>([
const columnsCertificates = ref<QTableProps["columns"]>([
{
name: "licenseName",
align: "center",
name: "certificateType",
align: "left",
label: "ชื่อใบอนุณาต",
sortable: false,
field: "licenseName",
field: "certificateType",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "licensingAgency",
name: "issuer",
align: "left",
label: "หน่วยงานผู้ออกใบอนุญาต",
sortable: true,
field: "licensingAgency",
field: "issuer",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "licenseNumber",
name: "certificateNo",
align: "left",
label: "เลขที่ใบอนุญาต",
sortable: true,
field: "licenseNumber",
field: "certificateNo",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "licenseDate",
name: "issueDate",
align: "left",
label: "วันที่ออกใบอนุญาต",
sortable: true,
field: "licenseDate",
field: "issueDate",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "expirationDate",
name: "expireDate",
align: "left",
label: "วันที่หมดอายุ",
sortable: true,
field: "expirationDate",
field: "expireDate",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
]);
const columnPeriodhistory = ref<QTableProps["columns"]>([
const columnSalaries = ref<QTableProps["columns"]>([
{
name: "date",
align: "center",
align: "left",
label: "วัน เดือน ปี",
sortable: false,
field: "date",
@ -64,11 +64,11 @@ export const useEvaluateDetailStore = defineStore("evaluateDetailStore", () => {
style: "font-size: 14px",
},
{
name: "affiliation",
name: "oc",
align: "left",
label: "สังกัด",
sortable: true,
field: "affiliation",
field: "oc",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
@ -82,11 +82,11 @@ export const useEvaluateDetailStore = defineStore("evaluateDetailStore", () => {
style: "font-size: 14px",
},
{
name: "positionNumber",
name: "posNo",
align: "left",
label: "ตำแหน่งเลขที่",
sortable: true,
field: "positionNumber",
field: "posNo",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
@ -146,67 +146,67 @@ export const useEvaluateDetailStore = defineStore("evaluateDetailStore", () => {
},
]);
const columnTrainingHistory = ref<QTableProps["columns"]>([
const columnTraining = ref<QTableProps["columns"]>([
{
name: "projectName",
align: "center",
name: "name",
align: "left",
label: "ชื่อโครงการ/หลักสูตรการฝึกอบรม",
sortable: false,
field: "projectName",
field: "name",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "trainingTopics",
name: "topic",
align: "left",
label: "หัวข้อการฝึกอบรม/ดูงาน",
sortable: true,
field: "trainingTopics",
field: "topic",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "trainingStartDate",
name: "startDate",
align: "left",
label: "วันเริ่มต้นการฝึกอบรม/ดูงาน",
sortable: true,
field: "trainingStartDate",
field: "startDate",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "trainingEndDate",
name: "endDate",
align: "left",
label: "วันสิ้นสุดการฝึกอบรม/ดูงาน",
sortable: true,
field: "trainingEndDate",
field: "endDate",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "trainingYear",
name: "yearly",
align: "left",
label: "ปีที่อบรม/ดูงาน",
sortable: true,
field: "trainingYear",
field: "yearly",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "trainingTotalTime",
name: "duration",
align: "left",
label: "รวมระยะเวลาในการฝึกอบรม/ดูงาน",
sortable: true,
field: "trainingTotalTime",
field: "duration",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "trainingAgency",
name: "department",
align: "left",
label: "หน่วยงานที่รับผิดชอบจัดการฝึกอบรม/ดูงาน",
sortable: true,
field: "trainingAgency",
field: "department",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
@ -261,9 +261,9 @@ export const useEvaluateDetailStore = defineStore("evaluateDetailStore", () => {
]);
return {
columnsLicense,
columnPeriodhistory,
columnTrainingHistory,
columnsCertificates,
columnSalaries,
columnTraining,
columnProjectsProposed,
};
});