diff --git a/src/api/14_KPI/api.KPI.ts b/src/api/14_KPI/api.KPI.ts index 97e20ae68..732ecd14d 100644 --- a/src/api/14_KPI/api.KPI.ts +++ b/src/api/14_KPI/api.KPI.ts @@ -2,6 +2,7 @@ import env from "../index"; const KPI = `${env.API_URI}/kpi`; const kpiPeriod = `${env.API_URI}/kpi/period`; const kpiEvaluation = `${env.API_URI}/kpi/evaluation`; +const kpiEvaluationUser = `${env.API_URI}/kpi/user/evaluation`; const kpiUserEvaluation = `${env.API_URI}/kpi/user/evaluation`; const kpiPlan = `${env.API_URI}/kpi/plan`; const kpiRole = `${env.API_URI}/kpi/role`; @@ -28,6 +29,7 @@ export default { kpiPeriodById: (id: string) => `${kpiPeriod}/${id}`, kpiEvaluation, + kpiEvaluationUser, kpiPlan, kpiPlanById: (id: string) => `${kpiPlan}/${id}`, diff --git a/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue b/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue index 34d0a914b..9c1d7c139 100644 --- a/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue +++ b/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue @@ -459,7 +459,7 @@ watch(props.data, async () => { color="secondary" label="บันทึก" type="submit" - >บับทึกข้อมูลบันทึกข้อมูล diff --git a/src/modules/14_KPI/components/Tab/Dialog/DialogEvalute.vue b/src/modules/14_KPI/components/Tab/Dialog/DialogEvalute.vue new file mode 100644 index 000000000..19557760b --- /dev/null +++ b/src/modules/14_KPI/components/Tab/Dialog/DialogEvalute.vue @@ -0,0 +1,633 @@ + + diff --git a/src/modules/14_KPI/interface/index/Main.ts b/src/modules/14_KPI/interface/index/Main.ts index 663e03ecd..e0114d8f9 100644 --- a/src/modules/14_KPI/interface/index/Main.ts +++ b/src/modules/14_KPI/interface/index/Main.ts @@ -17,4 +17,48 @@ interface NewPagination { sortBy: string; } -export type { DataOption, ItemsMenu,NewPagination }; +interface typeOp { + id: string; + name: string; +} + +interface ResponsePreson { + id: string; //id อ้างอิง profile + idcard: string; //เลขประจำตัวประชาชน + prefix: string; //คำนำหน้า + firstName: string; //ชื่อ + lastName: string; //นามสกุล + posNo: string; //เลขที่ตำแหน่ง + position: string; //ตำแหน่ง + positionLevel: string; //ระดับ + salaries: number; //เงินเดือน + organization: string; //สังกัด + email: string; //อีเมล + phone: string; //เบอร์โทรศัพท์ +} + +interface tableType { + personId: string; + idcard: string; + prefix: string; + firstName: string; + lastName: string; + position: string; + positionLevel: string; + organization: string; + salary: string; + name: string; +} + +interface FormData { + personalId: string; + prefix: string; + firstname: string; + lastname: string; + position: string; + phone: string; + email: string; + qualification: string; +} + +export type { DataOption, ItemsMenu,NewPagination,typeOp,ResponsePreson,tableType,FormData }; diff --git a/src/modules/14_KPI/views/list.vue b/src/modules/14_KPI/views/list.vue index 804974416..c212d2d03 100644 --- a/src/modules/14_KPI/views/list.vue +++ b/src/modules/14_KPI/views/list.vue @@ -11,6 +11,7 @@ import type { QTableProps } from "quasar"; import { useCounterMixin } from "@/stores/mixin"; import { useKpiDataStore } from "@/modules/14_KPI/store"; +import DialogEvalute from '@/modules/14_KPI/components/Tab/Dialog/DialogEvalute.vue' const $q = useQuasar(); const router = useRouter(); const store = useKpiDataStore(); @@ -24,6 +25,7 @@ const rows = ref([]); const year = ref(new Date().getFullYear()); +const modalDialog = ref(false) const round = ref(""); const roundOp = ref([]); @@ -193,6 +195,9 @@ watch( } ); +function onDialog(){ + modalDialog.value = true +} onMounted(async () => { fetchRoundOption(); }); @@ -256,7 +261,9 @@ onMounted(async () => { map-options @update:model-value="changRound" /> - + + เพิ่มผู้ประเมิน +