From c5262bf04dd143277f8d7e051e4fe23de0b61663 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 13 Sep 2024 18:18:23 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../18_command/components/Step/1_Detail.vue | 58 +++++++++++++++---- .../components/Step/Dialog1_Perview.vue | 24 +++++--- 2 files changed, 63 insertions(+), 19 deletions(-) diff --git a/src/modules/18_command/components/Step/1_Detail.vue b/src/modules/18_command/components/Step/1_Detail.vue index e0f20c207..10a453642 100644 --- a/src/modules/18_command/components/Step/1_Detail.vue +++ b/src/modules/18_command/components/Step/1_Detail.vue @@ -74,7 +74,9 @@ async function onSubmit() { showLoader(); await http .put(config.API.commandAction(commandId.value, "tab1"), formData) - .then(() => {}) + .then(() => { + fetchData(); + }) .catch((err) => { messageError($q, err); }) @@ -87,8 +89,8 @@ async function onSubmit() { /** * ทำงานเมื่อ Components ถูกเรียกใช้งาน */ -onMounted(() => { - fetchData(); +onMounted(async () => { + await fetchData(); }); /** @@ -188,7 +190,18 @@ defineExpose({
- + +
- + +
- + +
@@ -317,5 +352,8 @@ defineExpose({ - + diff --git a/src/modules/18_command/components/Step/Dialog1_Perview.vue b/src/modules/18_command/components/Step/Dialog1_Perview.vue index b18357f43..7d0520a57 100644 --- a/src/modules/18_command/components/Step/Dialog1_Perview.vue +++ b/src/modules/18_command/components/Step/Dialog1_Perview.vue @@ -1,5 +1,5 @@