From c1935a0c6b46afd18508f5f44bad7cc358b9c767 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 8 Sep 2023 13:16:48 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B9=80=E0=B8=81=E0=B9=89=20?= =?UTF-8?q?=E0=B8=94=E0=B8=B2=E0=B8=95=E0=B9=89=E0=B8=B2=E0=B9=80=E0=B8=9B?= =?UTF-8?q?=E0=B9=87=E0=B8=99=20null=20=E0=B9=80=E0=B9=80=E0=B8=A5?= =?UTF-8?q?=E0=B9=89=E0=B8=A7=E0=B8=9B=E0=B8=B8=E0=B9=88=E0=B8=A1=E0=B8=9A?= =?UTF-8?q?=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=B6=E0=B8=81=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/probation/SummarySurvey.vue | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/modules/05_placement/components/probation/SummarySurvey.vue b/src/modules/05_placement/components/probation/SummarySurvey.vue index e135138f6..c541779f0 100644 --- a/src/modules/05_placement/components/probation/SummarySurvey.vue +++ b/src/modules/05_placement/components/probation/SummarySurvey.vue @@ -49,16 +49,6 @@ onMounted(() => { getSurveyData(); }); -const saveEdit = (id: string) => { - dialogConfirm($q, () => console.log("save")); -}; -const edit = () => { - status.value = true; -}; -const cancel = () => { - status.value = false; -}; - const getSurveyData = async () => { await http .get(config.API.summarySurveyDetail(assignId.value)) @@ -68,8 +58,8 @@ const getSurveyData = async () => { answer1.value = data.answer1; answer2.value = data.answer2; answer3.value = data.answer3; + status.value = false; } - status.value = false; }) .catch((e) => { console.log(e); @@ -92,7 +82,10 @@ const save = async () => { }) .catch((e: any) => { messageError($q, e); - }); + }) + .finally(()=>{ + getSurveyData() + }) }); } else if (answer3.value == 0) { classBordered.value = "border_custom";