diff --git a/src/api/05_placement/api.probation.ts b/src/api/05_placement/api.probation.ts index 6cf5144e4..db4aadfa1 100644 --- a/src/api/05_placement/api.probation.ts +++ b/src/api/05_placement/api.probation.ts @@ -41,17 +41,17 @@ export default { //แบบประเมินผล (ผู้บังคับบัญชา) evaluateCreate: (id: string) => `${evaluate}/evaluate/create?assign_id=${id}`, evaluatecommader: (id: string, no: string) => `${evaluate}/evaluate?assign_id=${id}&evaluate_no=${no}`, - createformCommader: (id: string) => `${evaluate}/evaluate?id=${id}`, + createformCommader: (id: string) => `${evaluate}/evaluate?assign_id=${id}`, //แบบประเมินผล (คณะกรรมการ) evaluateChairman: (id: string) => `${evaluate}/evaluate-chairman/create?assign_id=${id}`, evaluateRoundChairman: (id: string, no: string) => `${evaluate}/evaluate-chairman?assign_id=${id}&evaluate_no=${no}`, - createformChairman: (id: string) => `${evaluate}/evaluate-chairman?id=${id}`, + createformChairman: (id: string) => `${evaluate}/evaluate-chairman?assign_id=${id}`, //แบบรายงาน evaluateReportcreate: (id: string) => `${evaluate}/evaluate-result/create?assign_id=${id}`, evaluateReport: (id: string) => `${evaluate}/evaluate-result?assign_id=${id}`, - createformReport: (id: string) => `${evaluate}/evaluate-result?id=${id}`, + createformReport: (id: string) => `${evaluate}/evaluate-result?assign_id=${id}`, diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue index 13621e6ba..d42e1c3a0 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue @@ -26,7 +26,7 @@ const assign = ref([]); const mentors = ref([]); const commander = ref([]); const status = ref(true); -const evaluate = ref([]); +// const evaluate = ref([]); onMounted(() => { fecthAssign(assignId.value); @@ -68,7 +68,7 @@ const director1_dated = ref(""); const director2_dated = ref(""); const fecthResult = async (id: string) => { await http - .get(config.API.evaluateReport(id)) + .get(config.API.createformReport(id)) .then((res: any) => { let data = res.data.data.evaluate; console.log(data); @@ -124,7 +124,7 @@ const postData = async () => { director2_dated: director2_dated.value, }; - console.log("postData===>", data); + // console.log("postData===>", data); await http .post(config.API.createformReport(assignId.value), data) .then(() => { @@ -146,15 +146,8 @@ const postData = async () => {
- + @@ -162,22 +155,10 @@ const postData = async () => { {{ parseInt(value + 543) }}