From c1622582d2580bb193c5ae20edede7a56355197b Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 30 May 2025 14:29:16 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B9=80=E0=B9=80=E0=B8=9B=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ExpertPageDetail.vue | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/src/modules/06_evaluate/components/ExpertPageDetail.vue b/src/modules/06_evaluate/components/ExpertPageDetail.vue index c722a0a..048da81 100644 --- a/src/modules/06_evaluate/components/ExpertPageDetail.vue +++ b/src/modules/06_evaluate/components/ExpertPageDetail.vue @@ -41,8 +41,14 @@ const formCommand = reactive({ commanderAboveFullname: "", //ผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ commanderAbovePosition: "", //ตำแหน่ง ผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ author: "", //เจ้าของผลงาน - subject: "", //ชื่อผลงาน + subject: [], //ชื่อผลงาน assignedPosition: "", + commanderPositionOld: "", + commanderOrgOld: "", + commanderOrg: "", + commanderAbovePositionOld: "", + commanderAboveOrgOld: "", + commanderAboveOrg: "", }); const formData = reactive({ @@ -420,9 +426,7 @@ async function getData() { messageError($q, e); hideLoader(); }) - .finally(() => { - - }); + .finally(() => {}); } function getDetail(type: any) { @@ -448,24 +452,23 @@ const keyObject = ref([ "assessments", "government", ]); -const reportData = ref() -async function getCheckSpace(){ +const reportData = ref(); +async function getCheckSpace() { http - .get(config.API.evaluationReportCheckspecByid(evaluateId.value)) - .then((res)=>{ - reportData.value = res.data.result - }) - .catch((e)=>{ - messageError($q,e) - hideLoader(); - }).finally(()=>{ - - }) + .get(config.API.evaluationReportCheckspecByid(evaluateId.value)) + .then((res) => { + reportData.value = res.data.result; + }) + .catch((e) => { + messageError($q, e); + hideLoader(); + }) + .finally(() => {}); } onMounted(() => { showLoader(); - Promise.all([getData(),getCheckSpace(), ...keyObject.value.map(getDetail)]) + Promise.all([getData(), getCheckSpace(), ...keyObject.value.map(getDetail)]) .then(() => {}) .catch((e) => { hideLoader();